2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 1.9cvs.
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-2005 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
='1.9cvs'
719 PACKAGE_STRING
='llvm 1.9cvs'
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
885 CONVENIENCE_LTDL_TRUE
886 CONVENIENCE_LTDL_FALSE
920 ac_precious_vars
='build_alias
936 ac_subdirs_all
='projects/sample
944 projects/llvm-poolalloc
945 projects/llvm-kernel'
947 # Initialize some variables set by options.
949 ac_init_version
=false
950 # The variables have the same names as the options, with
951 # dashes changed to underlines.
959 program_transform_name
=s
,x
,x
,
967 # Installation directory options.
968 # These are left unexpanded so users can "make install exec_prefix=/foo"
969 # and all the variables that are supposed to be based on exec_prefix
970 # by default will actually change.
971 # Use braces instead of parens because sh, perl, etc. also accept them.
972 # (The list follows the same order as the GNU Coding Standards.)
973 bindir
='${exec_prefix}/bin'
974 sbindir
='${exec_prefix}/sbin'
975 libexecdir
='${exec_prefix}/libexec'
976 datarootdir
='${prefix}/share'
977 datadir
='${datarootdir}'
978 sysconfdir
='${prefix}/etc'
979 sharedstatedir
='${prefix}/com'
980 localstatedir
='${prefix}/var'
981 includedir
='${prefix}/include'
982 oldincludedir
='/usr/include'
983 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
984 infodir
='${datarootdir}/info'
989 libdir
='${exec_prefix}/lib'
990 localedir
='${datarootdir}/locale'
991 mandir
='${datarootdir}/man'
997 # If the previous option needs an argument, assign it.
998 if test -n "$ac_prev"; then
999 eval $ac_prev=\
$ac_option
1005 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1009 # Accept the important Cygnus configure options, so we can diagnose typos.
1011 case $ac_dashdash$ac_option in
1015 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1017 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1018 bindir
=$ac_optarg ;;
1020 -build |
--build |
--buil |
--bui |
--bu)
1021 ac_prev
=build_alias
;;
1022 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1023 build_alias
=$ac_optarg ;;
1025 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1026 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1027 ac_prev
=cache_file
;;
1028 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1029 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1030 cache_file
=$ac_optarg ;;
1032 --config-cache |
-C)
1033 cache_file
=config.cache
;;
1035 -datadir |
--datadir |
--datadi |
--datad)
1037 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1038 datadir
=$ac_optarg ;;
1040 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1041 |
--dataroo |
--dataro |
--datar)
1042 ac_prev
=datarootdir
;;
1043 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1044 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1045 datarootdir
=$ac_optarg ;;
1047 -disable-* |
--disable-*)
1048 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1051 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1052 { (exit 1); exit 1; }; }
1053 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1054 eval enable_
$ac_feature=no
;;
1056 -docdir |
--docdir |
--docdi |
--doc |
--do)
1058 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1059 docdir
=$ac_optarg ;;
1061 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1063 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1064 dvidir
=$ac_optarg ;;
1066 -enable-* |
--enable-*)
1067 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1070 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1073 eval enable_
$ac_feature=\
$ac_optarg ;;
1075 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1076 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1077 |
--exec |
--exe |
--ex)
1078 ac_prev
=exec_prefix
;;
1079 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1080 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1081 |
--exec=* |
--exe=* |
--ex=*)
1082 exec_prefix
=$ac_optarg ;;
1084 -gas |
--gas |
--ga |
--g)
1085 # Obsolete; use --with-gas.
1088 -help |
--help |
--hel |
--he |
-h)
1089 ac_init_help
=long
;;
1090 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1091 ac_init_help
=recursive
;;
1092 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1093 ac_init_help
=short
;;
1095 -host |
--host |
--hos |
--ho)
1096 ac_prev
=host_alias
;;
1097 -host=* |
--host=* |
--hos=* |
--ho=*)
1098 host_alias
=$ac_optarg ;;
1100 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1102 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1104 htmldir
=$ac_optarg ;;
1106 -includedir |
--includedir |
--includedi |
--included |
--include \
1107 |
--includ |
--inclu |
--incl |
--inc)
1108 ac_prev
=includedir
;;
1109 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1110 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1111 includedir
=$ac_optarg ;;
1113 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1115 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1116 infodir
=$ac_optarg ;;
1118 -libdir |
--libdir |
--libdi |
--libd)
1120 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1121 libdir
=$ac_optarg ;;
1123 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1124 |
--libexe |
--libex |
--libe)
1125 ac_prev
=libexecdir
;;
1126 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1127 |
--libexe=* |
--libex=* |
--libe=*)
1128 libexecdir
=$ac_optarg ;;
1130 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1131 ac_prev
=localedir
;;
1132 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1133 localedir
=$ac_optarg ;;
1135 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1136 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1137 ac_prev
=localstatedir
;;
1138 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1139 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1140 localstatedir
=$ac_optarg ;;
1142 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1144 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1145 mandir
=$ac_optarg ;;
1147 -nfp |
--nfp |
--nf)
1148 # Obsolete; use --without-fp.
1151 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1152 |
--no-cr |
--no-c |
-n)
1155 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1156 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1159 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1160 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1161 |
--oldin |
--oldi |
--old |
--ol |
--o)
1162 ac_prev
=oldincludedir
;;
1163 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1164 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1165 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1166 oldincludedir
=$ac_optarg ;;
1168 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1170 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1171 prefix
=$ac_optarg ;;
1173 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1174 |
--program-pre |
--program-pr |
--program-p)
1175 ac_prev
=program_prefix
;;
1176 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1177 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1178 program_prefix
=$ac_optarg ;;
1180 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1181 |
--program-suf |
--program-su |
--program-s)
1182 ac_prev
=program_suffix
;;
1183 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1184 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1185 program_suffix
=$ac_optarg ;;
1187 -program-transform-name |
--program-transform-name \
1188 |
--program-transform-nam |
--program-transform-na \
1189 |
--program-transform-n |
--program-transform- \
1190 |
--program-transform |
--program-transfor \
1191 |
--program-transfo |
--program-transf \
1192 |
--program-trans |
--program-tran \
1193 |
--progr-tra |
--program-tr |
--program-t)
1194 ac_prev
=program_transform_name
;;
1195 -program-transform-name=* |
--program-transform-name=* \
1196 |
--program-transform-nam=* |
--program-transform-na=* \
1197 |
--program-transform-n=* |
--program-transform-=* \
1198 |
--program-transform=* |
--program-transfor=* \
1199 |
--program-transfo=* |
--program-transf=* \
1200 |
--program-trans=* |
--program-tran=* \
1201 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1202 program_transform_name
=$ac_optarg ;;
1204 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1206 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1207 pdfdir
=$ac_optarg ;;
1209 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1211 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1214 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1215 |
-silent |
--silent |
--silen |
--sile |
--sil)
1218 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1220 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1222 sbindir
=$ac_optarg ;;
1224 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1225 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1226 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1228 ac_prev
=sharedstatedir
;;
1229 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1230 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1231 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1233 sharedstatedir
=$ac_optarg ;;
1235 -site |
--site |
--sit)
1237 -site=* |
--site=* |
--sit=*)
1240 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1242 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1243 srcdir
=$ac_optarg ;;
1245 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1246 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1247 ac_prev
=sysconfdir
;;
1248 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1249 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1250 sysconfdir
=$ac_optarg ;;
1252 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1253 ac_prev
=target_alias
;;
1254 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1255 target_alias
=$ac_optarg ;;
1257 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1260 -version |
--version |
--versio |
--versi |
--vers |
-V)
1261 ac_init_version
=: ;;
1264 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1267 { echo "$as_me: error: invalid package name: $ac_package" >&2
1268 { (exit 1); exit 1; }; }
1269 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1270 eval with_
$ac_package=\
$ac_optarg ;;
1272 -without-* |
--without-*)
1273 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1276 { echo "$as_me: error: invalid package name: $ac_package" >&2
1277 { (exit 1); exit 1; }; }
1278 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1279 eval with_
$ac_package=no
;;
1282 # Obsolete; use --with-x.
1285 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1286 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1287 ac_prev
=x_includes
;;
1288 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1289 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1290 x_includes
=$ac_optarg ;;
1292 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1293 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1294 ac_prev
=x_libraries
;;
1295 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1296 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1297 x_libraries
=$ac_optarg ;;
1299 -*) { echo "$as_me: error: unrecognized option: $ac_option
1300 Try \`$0 --help' for more information." >&2
1301 { (exit 1); exit 1; }; }
1305 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1306 # Reject names that are not valid shell variable names.
1307 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1308 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1309 { (exit 1); exit 1; }; }
1310 eval $ac_envvar=\
$ac_optarg
1311 export $ac_envvar ;;
1314 # FIXME: should be removed in autoconf 3.0.
1315 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1316 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1317 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1318 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1324 if test -n "$ac_prev"; then
1325 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1326 { echo "$as_me: error: missing argument to $ac_option" >&2
1327 { (exit 1); exit 1; }; }
1330 # Be sure to have absolute directory names.
1331 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1332 datadir sysconfdir sharedstatedir localstatedir includedir \
1333 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1334 libdir localedir mandir
1336 eval ac_val
=\$
$ac_var
1338 [\\/$
]* | ?
:[\\/]* ) continue;;
1339 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1341 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1342 { (exit 1); exit 1; }; }
1345 # There might be people who depend on the old broken behavior: `$host'
1346 # used to hold the argument of --host etc.
1347 # FIXME: To remove some day.
1350 target
=$target_alias
1352 # FIXME: To remove some day.
1353 if test "x$host_alias" != x
; then
1354 if test "x$build_alias" = x
; then
1355 cross_compiling
=maybe
1356 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1357 If a cross compiler is detected then cross compile mode will be used." >&2
1358 elif test "x$build_alias" != "x$host_alias"; then
1364 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1366 test "$silent" = yes && exec 6>/dev
/null
1369 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1370 ac_ls_di
=`ls -di .` &&
1371 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1372 { echo "$as_me: error: Working directory cannot be determined" >&2
1373 { (exit 1); exit 1; }; }
1374 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1375 { echo "$as_me: error: pwd does not report name of working directory" >&2
1376 { (exit 1); exit 1; }; }
1379 # Find the source files, if location was not specified.
1380 if test -z "$srcdir"; then
1381 ac_srcdir_defaulted
=yes
1382 # Try the directory containing this script, then the parent directory.
1383 ac_confdir
=`$as_dirname -- "$0" ||
1384 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1385 X"$0" : 'X\(//\)[^/]' \| \
1386 X"$0" : 'X\(//\)$' \| \
1387 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1411 ac_srcdir_defaulted
=no
1413 if test ! -r "$srcdir/$ac_unique_file"; then
1414 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1415 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1416 { (exit 1); exit 1; }; }
1418 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1420 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1421 { (exit 1); exit 1; }; }
1423 # When building in place, set srcdir=.
1424 if test "$ac_abs_confdir" = "$ac_pwd"; then
1427 # Remove unnecessary trailing slashes from srcdir.
1428 # Double slashes in file names in object file debugging info
1429 # mess up M-x gdb in Emacs.
1431 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1433 for ac_var
in $ac_precious_vars; do
1434 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1435 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1436 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1437 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1441 # Report the --help message.
1443 if test "$ac_init_help" = "long"; then
1444 # Omit some internal or obsolete options to make the list less imposing.
1445 # This message is too long to be a string in the A/UX 3.1 sh.
1447 \`configure' configures llvm 1.9cvs to adapt to many kinds of systems.
1449 Usage: $0 [OPTION]... [VAR=VALUE]...
1451 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1452 VAR=VALUE. See below for descriptions of some of the useful variables.
1454 Defaults for the options are specified in brackets.
1457 -h, --help display this help and exit
1458 --help=short display options specific to this package
1459 --help=recursive display the short help of all the included packages
1460 -V, --version display version information and exit
1461 -q, --quiet, --silent do not print \`checking...' messages
1462 --cache-file=FILE cache test results in FILE [disabled]
1463 -C, --config-cache alias for \`--cache-file=config.cache'
1464 -n, --no-create do not create output files
1465 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1467 Installation directories:
1468 --prefix=PREFIX install architecture-independent files in PREFIX
1469 [$ac_default_prefix]
1470 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1473 By default, \`make install' will install all the files in
1474 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1475 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1476 for instance \`--prefix=\$HOME'.
1478 For better control, use the options below.
1480 Fine tuning of the installation directories:
1481 --bindir=DIR user executables [EPREFIX/bin]
1482 --sbindir=DIR system admin executables [EPREFIX/sbin]
1483 --libexecdir=DIR program executables [EPREFIX/libexec]
1484 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1485 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1486 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1487 --libdir=DIR object code libraries [EPREFIX/lib]
1488 --includedir=DIR C header files [PREFIX/include]
1489 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1490 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1491 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1492 --infodir=DIR info documentation [DATAROOTDIR/info]
1493 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1494 --mandir=DIR man documentation [DATAROOTDIR/man]
1495 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1496 --htmldir=DIR html documentation [DOCDIR]
1497 --dvidir=DIR dvi documentation [DOCDIR]
1498 --pdfdir=DIR pdf documentation [DOCDIR]
1499 --psdir=DIR ps documentation [DOCDIR]
1505 --build=BUILD configure
for building on BUILD
[guessed
]
1506 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1507 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1511 if test -n "$ac_init_help"; then
1512 case $ac_init_help in
1513 short | recursive
) echo "Configuration of llvm 1.9cvs:";;
1518 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1519 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1522 --enable-debug-runtime
1523 --enable-jit Enable Just In Time Compiling
(default is YES
)
1524 --enable-doxygen Build doxygen documentation
(default is NO
)
1525 --enable-threads Use threads
if available
(default is YES
)
1526 --enable-targets Build specific
host targets
:
1527 all
,host-only
,{target-name
} (default
=all
)
1528 --enable-ltdl-install install libltdl
1529 --enable-shared[=PKGS
] build shared libraries
1530 [default
=enable_shared_default
]
1531 --enable-static[=PKGS
] build static libraries
1532 [default
=enable_static_default
]
1533 --enable-fast-install[=PKGS
]
1534 optimize
for fast installation
1535 [default
=enable_Fast_install_default
]
1536 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1539 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1540 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1541 --with-llvmgccdir Specify location of llvm-gcc
install dir
(default
1543 --with-extra-options Specify addtional options to compile LLVM with
1544 --with-tclinclude directory where tcl headers are
1545 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1546 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1548 --with-tags[=TAGS
] include additional configurations
[automatic
]
1550 Some influential environment variables
:
1551 CC C compiler
command
1552 CFLAGS C compiler flags
1553 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1554 nonstandard directory
<lib dir
>
1555 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1556 you have headers
in a nonstandard directory
<include dir
>
1558 CXX C
++ compiler
command
1559 CXXFLAGS C
++ compiler flags
1560 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1561 the first program found out of: `bison
-y', `byacc', `yacc'.
1562 YFLAGS The list of arguments that will be passed by default to $YACC.
1563 This script will default YFLAGS to the empty string to avoid a
1564 default value of `-d' given by some make applications.
1565 CXXCPP C++ preprocessor
1566 F77 Fortran 77 compiler command
1567 FFLAGS Fortran 77 compiler flags
1569 Use these variables to override the choices made by `configure' or to
help
1570 it to
find libraries and programs with nonstandard names
/locations.
1572 Report bugs to
<llvmbugs@cs.uiuc.edu
>.
1577 if test "$ac_init_help" = "recursive"; then
1578 # If there are subdirs, report their specific --help.
1579 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1580 test -d "$ac_dir" ||
continue
1584 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1586 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1587 # A ".." for each directory in $ac_dir_suffix.
1588 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1589 case $ac_top_builddir_sub in
1590 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1591 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1594 ac_abs_top_builddir
=$ac_pwd
1595 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1596 # for backward compatibility:
1597 ac_top_builddir
=$ac_top_build_prefix
1600 .
) # We are building in place.
1602 ac_top_srcdir
=$ac_top_builddir_sub
1603 ac_abs_top_srcdir
=$ac_pwd ;;
1604 [\\/]* | ?
:[\\/]* ) # Absolute name.
1605 ac_srcdir
=$srcdir$ac_dir_suffix;
1606 ac_top_srcdir
=$srcdir
1607 ac_abs_top_srcdir
=$srcdir ;;
1609 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1610 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1611 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1613 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1615 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1616 # Check for guested configure.
1617 if test -f "$ac_srcdir/configure.gnu"; then
1619 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1620 elif test -f "$ac_srcdir/configure"; then
1622 $SHELL "$ac_srcdir/configure" --help=recursive
1624 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1626 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1630 test -n "$ac_init_help" && exit $ac_status
1631 if $ac_init_version; then
1633 llvm configure
1.9cvs
1634 generated by GNU Autoconf
2.60
1636 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1637 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1638 This configure
script is free software
; the Free Software Foundation
1639 gives unlimited permission to copy
, distribute and modify it.
1641 Copyright
(c
) 2003-2005 University of Illinois
at Urbana-Champaign.
1645 cat >config.log
<<_ACEOF
1646 This file contains any messages produced by compilers while
1647 running configure, to aid debugging if configure makes a mistake.
1649 It was created by llvm $as_me 1.9cvs, which was
1650 generated by GNU Autoconf 2.60. Invocation command line was
1662 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1663 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1664 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1665 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1666 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1668 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1669 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1671 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1672 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1673 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1674 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1675 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1676 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1677 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1685 test -z "$as_dir" && as_dir
=.
1686 echo "PATH: $as_dir"
1702 # Keep a trace of the command line.
1703 # Strip out --no-create and --no-recursion so they do not pile up.
1704 # Strip out --silent because we don't want to record it for future runs.
1705 # Also quote any args containing shell meta-characters.
1706 # Make two passes to allow for proper duplicate-argument suppression.
1710 ac_must_keep_next
=false
1716 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1717 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1718 |
-silent |
--silent |
--silen |
--sile |
--sil)
1721 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1724 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1726 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1727 if test $ac_must_keep_next = true
; then
1728 ac_must_keep_next
=false
# Got value, back to normal.
1731 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1732 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1733 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1734 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1735 case "$ac_configure_args0 " in
1736 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1739 -* ) ac_must_keep_next
=true
;;
1742 ac_configure_args
="$ac_configure_args '$ac_arg'"
1747 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1748 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1750 # When interrupted or exit'd, cleanup temporary files, and complete
1751 # config.log. We remove comments because anyway the quotes in there
1752 # would cause problems or look ugly.
1753 # WARNING: Use '\'' to represent an apostrophe within the trap.
1754 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1755 trap 'exit_status=$?
1756 # Save into config.log some information that might help in debugging.
1761 ## ---------------- ##
1762 ## Cache variables. ##
1763 ## ---------------- ##
1766 # The following way of writing the cache mishandles newlines in values,
1768 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1769 eval ac_val=\$$ac_var
1773 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1774 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1777 _ | IFS | as_nl) ;; #(
1778 *) $as_unset $ac_var ;;
1783 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1784 *${as_nl}ac_space=\ *)
1786 "s/'\''/'\''\\\\'\'''\''/g;
1787 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1790 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1798 ## ----------------- ##
1799 ## Output variables. ##
1800 ## ----------------- ##
1803 for ac_var in $ac_subst_vars
1805 eval ac_val=\$$ac_var
1807 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1809 echo "$ac_var='\''$ac_val'\''"
1813 if test -n "$ac_subst_files"; then
1815 ## ------------------- ##
1816 ## File substitutions. ##
1817 ## ------------------- ##
1820 for ac_var
in $ac_subst_files
1822 eval ac_val
=\$
$ac_var
1824 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826 echo "$ac_var='\''$ac_val'\''"
1831 if test -s confdefs.h; then
1841 test "$ac_signal" != 0 &&
1842 echo "$as_me: caught signal $ac_signal"
1843 echo "$as_me: exit $exit_status"
1845 rm -f core *.core core.conftest.* &&
1846 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1849 for ac_signal
in 1 2 13 15; do
1850 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1854 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1855 rm -f -r conftest
* confdefs.h
1857 # Predefined preprocessor variables.
1859 cat >>confdefs.h
<<_ACEOF
1860 #define PACKAGE_NAME "$PACKAGE_NAME"
1864 cat >>confdefs.h
<<_ACEOF
1865 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1869 cat >>confdefs.h
<<_ACEOF
1870 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1874 cat >>confdefs.h
<<_ACEOF
1875 #define PACKAGE_STRING "$PACKAGE_STRING"
1879 cat >>confdefs.h
<<_ACEOF
1880 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1884 # Let the site file select an alternate cache file if it wants to.
1885 # Prefer explicitly selected file to automatically selected ones.
1886 if test -n "$CONFIG_SITE"; then
1887 set x
"$CONFIG_SITE"
1888 elif test "x$prefix" != xNONE
; then
1889 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1891 set x
"$ac_default_prefix/share/config.site" \
1892 "$ac_default_prefix/etc/config.site"
1897 if test -r "$ac_site_file"; then
1898 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1899 echo "$as_me: loading site script $ac_site_file" >&6;}
1900 sed 's/^/| /' "$ac_site_file" >&5
1905 if test -r "$cache_file"; then
1906 # Some versions of bash will fail to source /dev/null (special
1907 # files actually), so we avoid doing that.
1908 if test -f "$cache_file"; then
1909 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1910 echo "$as_me: loading cache $cache_file" >&6;}
1912 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1913 *) .
"./$cache_file";;
1917 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1918 echo "$as_me: creating cache $cache_file" >&6;}
1922 # Check that the precious variables saved in the cache have kept the same
1924 ac_cache_corrupted
=false
1925 for ac_var
in $ac_precious_vars; do
1926 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1927 eval ac_new_set
=\
$ac_env_${ac_var}_set
1928 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1929 eval ac_new_val
=\
$ac_env_${ac_var}_value
1930 case $ac_old_set,$ac_new_set in
1932 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1933 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1934 ac_cache_corrupted
=: ;;
1936 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1937 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1938 ac_cache_corrupted
=: ;;
1941 if test "x$ac_old_val" != "x$ac_new_val"; then
1942 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1943 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1944 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1945 echo "$as_me: former value: $ac_old_val" >&2;}
1946 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1947 echo "$as_me: current value: $ac_new_val" >&2;}
1948 ac_cache_corrupted
=:
1951 # Pass precious variables to config.status.
1952 if test "$ac_new_set" = set; then
1954 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1955 *) ac_arg
=$ac_var=$ac_new_val ;;
1957 case " $ac_configure_args " in
1958 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1959 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1963 if $ac_cache_corrupted; then
1964 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1965 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1966 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1967 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1968 { (exit 1); exit 1; }; }
1996 ac_cpp
='$CPP $CPPFLAGS'
1997 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2003 LLVM_COPYRIGHT
="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
2012 for ac_dir
in autoconf
"$srcdir"/autoconf
; do
2013 if test -f "$ac_dir/install-sh"; then
2015 ac_install_sh
="$ac_aux_dir/install-sh -c"
2017 elif test -f "$ac_dir/install.sh"; then
2019 ac_install_sh
="$ac_aux_dir/install.sh -c"
2021 elif test -f "$ac_dir/shtool"; then
2023 ac_install_sh
="$ac_aux_dir/shtool install -c"
2027 if test -z "$ac_aux_dir"; then
2028 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2029 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2030 { (exit 1); exit 1; }; }
2033 # These three variables are undocumented and unsupported,
2034 # and are intended to be withdrawn in a future Autoconf release.
2035 # They can cause serious problems if a builder's source tree is in a directory
2036 # whose full name contains unusual characters.
2037 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2038 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2039 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2043 if test ${srcdir} != "." ; then
2044 if test -f ${srcdir}/include
/llvm
/Config
/config.h
; then
2045 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2046 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2047 { (exit 1); exit 1; }; }
2051 for i
in `ls ${srcdir}/projects`
2053 if test -d ${srcdir}/projects
/${i} ; then
2056 "sample") subdirs
="$subdirs projects/sample"
2058 "Stacker") subdirs
="$subdirs projects/Stacker"
2060 "privbracket") subdirs
="$subdirs projects/privbracket"
2062 "llvm-test") subdirs
="$subdirs projects/llvm-test"
2064 "llvm-reopt") subdirs
="$subdirs projects/llvm-reopt"
2066 "llvm-gcc") subdirs
="$subdirs projects/llvm-gcc"
2068 "llvm-java") subdirs
="$subdirs projects/llvm-java"
2070 "llvm-tv") subdirs
="$subdirs projects/llvm-tv"
2072 "llvm-poolalloc") subdirs
="$subdirs projects/llvm-poolalloc"
2074 "llvm-kernel") subdirs
="$subdirs projects/llvm-kernel"
2077 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2078 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2085 # Make sure we can run config.sub.
2086 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2087 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2088 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2089 { (exit 1); exit 1; }; }
2091 { echo "$as_me:$LINENO: checking build system type" >&5
2092 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2093 if test "${ac_cv_build+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 ac_build_alias
=$build_alias
2097 test "x$ac_build_alias" = x
&&
2098 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2099 test "x$ac_build_alias" = x
&&
2100 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2101 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2102 { (exit 1); exit 1; }; }
2103 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2104 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2105 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2106 { (exit 1); exit 1; }; }
2109 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2110 echo "${ECHO_T}$ac_cv_build" >&6; }
2111 case $ac_cv_build in
2113 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2114 echo "$as_me: error: invalid value of canonical build" >&2;}
2115 { (exit 1); exit 1; }; };;
2118 ac_save_IFS
=$IFS; IFS
='-'
2124 # Remember, the first character of IFS is used to create $*,
2125 # except with old shells:
2128 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2131 { echo "$as_me:$LINENO: checking host system type" >&5
2132 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2133 if test "${ac_cv_host+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 if test "x$host_alias" = x
; then
2137 ac_cv_host
=$ac_cv_build
2139 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2140 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2141 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2142 { (exit 1); exit 1; }; }
2146 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2147 echo "${ECHO_T}$ac_cv_host" >&6; }
2150 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2151 echo "$as_me: error: invalid value of canonical host" >&2;}
2152 { (exit 1); exit 1; }; };;
2155 ac_save_IFS
=$IFS; IFS
='-'
2161 # Remember, the first character of IFS is used to create $*,
2162 # except with old shells:
2165 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2168 { echo "$as_me:$LINENO: checking target system type" >&5
2169 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2170 if test "${ac_cv_target+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 if test "x$target_alias" = x
; then
2174 ac_cv_target
=$ac_cv_host
2176 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2177 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2178 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2179 { (exit 1); exit 1; }; }
2183 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2184 echo "${ECHO_T}$ac_cv_target" >&6; }
2185 case $ac_cv_target in
2187 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2188 echo "$as_me: error: invalid value of canonical target" >&2;}
2189 { (exit 1); exit 1; }; };;
2191 target
=$ac_cv_target
2192 ac_save_IFS
=$IFS; IFS
='-'
2198 # Remember, the first character of IFS is used to create $*,
2199 # except with old shells:
2202 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2205 # The aliases save the names the user supplied, while $host etc.
2206 # will get canonicalized.
2207 test -n "$target_alias" &&
2208 test "$program_prefix$program_suffix$program_transform_name" = \
2210 program_prefix
=${target_alias}-
2212 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2213 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2214 if test "${llvm_cv_os_type+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 llvm_cv_link_all_option
="-Wl,--whole-archive"
2220 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2221 llvm_cv_os_type
="AIX"
2222 llvm_cv_platform_type
="Unix" ;;
2224 llvm_cv_link_all_option
="-Wl,--whole-archive"
2225 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2226 llvm_cv_os_type
="Cygwin"
2227 llvm_cv_platform_type
="Unix" ;;
2229 llvm_cv_link_all_option
="-Wl,-all_load"
2230 llvm_cv_link_all_option
="-Wl,-noall_load"
2231 llvm_cv_os_type
="Darwin"
2232 llvm_cv_platform_type
="Unix" ;;
2234 llvm_cv_link_all_option
="-Wl,--whole-archive"
2235 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2236 llvm_cv_os_type
="FreeBSD"
2237 llvm_cv_platform_type
="Unix" ;;
2239 llvm_cv_link_all_option
="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2241 llvm_cv_os_type
="OpenBSD"
2242 llvm_cv_platform_type
="Unix" ;;
2244 llvm_cv_link_all_option
="-Wl,--whole-archive"
2245 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2246 llvm_cv_os_type
="HP-UX"
2247 llvm_cv_platform_type
="Unix" ;;
2249 llvm_cv_link_all_option
="-Wl,--whole-archive"
2250 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2251 llvm_cv_os_type
="Interix"
2252 llvm_cv_platform_type
="Unix" ;;
2254 llvm_cv_link_all_option
="-Wl,--whole-archive"
2255 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2256 llvm_cv_os_type
="Linux"
2257 llvm_cv_platform_type
="Unix" ;;
2259 llvm_cv_link_all_option
="-Wl,-z,allextract"
2260 llvm_cv_no_link_all_option
="-Wl,-z,defaultextract"
2261 llvm_cv_os_type
="SunOS"
2262 llvm_cv_platform_type
="Unix" ;;
2264 llvm_cv_link_all_option
="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2266 llvm_cv_os_type
="Win32"
2267 llvm_cv_platform_type
="Win32" ;;
2269 llvm_cv_link_all_option
="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2271 llvm_cv_os_type
="MingW"
2272 llvm_cv_platform_type
="Win32" ;;
2274 llvm_cv_link_all_option
=""
2275 llvm_cv_no_link_all_option
=""
2276 llvm_cv_os_type
="Unknown"
2277 llvm_cv_platform_type
="Unknown" ;;
2280 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2281 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2283 if test "$llvm_cv_os_type" = "Unknown" ; then
2284 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2285 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2286 { (exit 1); exit 1; }; }
2292 LINKALL
=$llvm_cv_link_all_option
2294 NOLINKALL
=$llvm_cv_no_link_all_option
2297 case $llvm_cv_platform_type in
2300 cat >>confdefs.h
<<\_ACEOF
2301 #define LLVM_ON_UNIX 1
2311 cat >>confdefs.h
<<\_ACEOF
2312 #define LLVM_ON_WIN32 1
2322 { echo "$as_me:$LINENO: checking target architecture" >&5
2323 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2324 if test "${llvm_cv_target_arch+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 i?
86-*) llvm_cv_target_arch
="x86" ;;
2329 amd64-
* | x86_64-
*) llvm_cv_target_arch
="x86_64" ;;
2330 sparc
*-*) llvm_cv_target_arch
="Sparc" ;;
2331 powerpc
*-*) llvm_cv_target_arch
="PowerPC" ;;
2332 alpha
*-*) llvm_cv_target_arch
="Alpha" ;;
2333 ia64-
*) llvm_cv_target_arch
="IA64" ;;
2334 *) llvm_cv_target_arch
="Unknown" ;;
2337 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2338 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2340 if test "$llvm_cv_target_arch" = "Unknown" ; then
2341 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2342 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2345 ARCH
=$llvm_cv_target_arch
2349 ac_cpp
='$CPP $CPPFLAGS'
2350 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2353 if test -n "$ac_tool_prefix"; then
2354 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2355 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2358 if test "${ac_cv_prog_CC+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 if test -n "$CC"; then
2362 ac_cv_prog_CC
="$CC" # Let the user override the test.
2364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2368 test -z "$as_dir" && as_dir
=.
2369 for ac_exec_ext
in '' $ac_executable_extensions; do
2370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2371 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 if test -n "$CC"; then
2383 { echo "$as_me:$LINENO: result: $CC" >&5
2384 echo "${ECHO_T}$CC" >&6; }
2386 { echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6; }
2392 if test -z "$ac_cv_prog_CC"; then
2394 # Extract the first word of "gcc", so it can be a program name with args.
2395 set dummy gcc
; ac_word
=$2
2396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2398 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2401 if test -n "$ac_ct_CC"; then
2402 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2408 test -z "$as_dir" && as_dir
=.
2409 for ac_exec_ext
in '' $ac_executable_extensions; do
2410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2411 ac_cv_prog_ac_ct_CC
="gcc"
2412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2421 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2422 if test -n "$ac_ct_CC"; then
2423 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2424 echo "${ECHO_T}$ac_ct_CC" >&6; }
2426 { echo "$as_me:$LINENO: result: no" >&5
2427 echo "${ECHO_T}no" >&6; }
2430 if test "x$ac_ct_CC" = x
; then
2433 case $cross_compiling:$ac_tool_warned in
2435 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2436 whose name does not start with the host triplet. If you think this
2437 configuration is useful to you, please write to autoconf@gnu.org." >&5
2438 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2439 whose name does not start with the host triplet. If you think this
2440 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2441 ac_tool_warned
=yes ;;
2449 if test -z "$CC"; then
2450 if test -n "$ac_tool_prefix"; then
2451 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2452 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2455 if test "${ac_cv_prog_CC+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 if test -n "$CC"; then
2459 ac_cv_prog_CC
="$CC" # Let the user override the test.
2461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2465 test -z "$as_dir" && as_dir
=.
2466 for ac_exec_ext
in '' $ac_executable_extensions; do
2467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2468 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 if test -n "$CC"; then
2480 { echo "$as_me:$LINENO: result: $CC" >&5
2481 echo "${ECHO_T}$CC" >&6; }
2483 { echo "$as_me:$LINENO: result: no" >&5
2484 echo "${ECHO_T}no" >&6; }
2490 if test -z "$CC"; then
2491 # Extract the first word of "cc", so it can be a program name with args.
2492 set dummy cc
; ac_word
=$2
2493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2495 if test "${ac_cv_prog_CC+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 if test -n "$CC"; then
2499 ac_cv_prog_CC
="$CC" # Let the user override the test.
2502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2506 test -z "$as_dir" && as_dir
=.
2507 for ac_exec_ext
in '' $ac_executable_extensions; do
2508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2509 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2510 ac_prog_rejected
=yes
2514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 if test $ac_prog_rejected = yes; then
2522 # We found a bogon in the path, so make sure we never use it.
2523 set dummy
$ac_cv_prog_CC
2525 if test $# != 0; then
2526 # We chose a different compiler from the bogus one.
2527 # However, it has the same basename, so the bogon will be chosen
2528 # first if we set CC to just the basename; use the full file name.
2530 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2536 if test -n "$CC"; then
2537 { echo "$as_me:$LINENO: result: $CC" >&5
2538 echo "${ECHO_T}$CC" >&6; }
2540 { echo "$as_me:$LINENO: result: no" >&5
2541 echo "${ECHO_T}no" >&6; }
2546 if test -z "$CC"; then
2547 if test -n "$ac_tool_prefix"; then
2548 for ac_prog
in cl.exe
2550 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2551 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2554 if test "${ac_cv_prog_CC+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 if test -n "$CC"; then
2558 ac_cv_prog_CC
="$CC" # Let the user override the test.
2560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2564 test -z "$as_dir" && as_dir
=.
2565 for ac_exec_ext
in '' $ac_executable_extensions; do
2566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2567 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 if test -n "$CC"; then
2579 { echo "$as_me:$LINENO: result: $CC" >&5
2580 echo "${ECHO_T}$CC" >&6; }
2582 { echo "$as_me:$LINENO: result: no" >&5
2583 echo "${ECHO_T}no" >&6; }
2587 test -n "$CC" && break
2590 if test -z "$CC"; then
2592 for ac_prog
in cl.exe
2594 # Extract the first word of "$ac_prog", so it can be a program name with args.
2595 set dummy
$ac_prog; ac_word
=$2
2596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2598 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 if test -n "$ac_ct_CC"; then
2602 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2604 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2608 test -z "$as_dir" && as_dir
=.
2609 for ac_exec_ext
in '' $ac_executable_extensions; do
2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2611 ac_cv_prog_ac_ct_CC
="$ac_prog"
2612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2622 if test -n "$ac_ct_CC"; then
2623 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2624 echo "${ECHO_T}$ac_ct_CC" >&6; }
2626 { echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6; }
2631 test -n "$ac_ct_CC" && break
2634 if test "x$ac_ct_CC" = x
; then
2637 case $cross_compiling:$ac_tool_warned in
2639 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2640 whose name does not start with the host triplet. If you think this
2641 configuration is useful to you, please write to autoconf@gnu.org." >&5
2642 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2643 whose name does not start with the host triplet. If you think this
2644 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2645 ac_tool_warned
=yes ;;
2654 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2655 See \`config.log' for more details." >&5
2656 echo "$as_me: error: no acceptable C compiler found in \$PATH
2657 See \`config.log' for more details." >&2;}
2658 { (exit 1); exit 1; }; }
2660 # Provide some information about the compiler.
2661 echo "$as_me:$LINENO: checking for C compiler version" >&5
2662 ac_compiler
=`set X $ac_compile; echo $2`
2663 { (ac_try
="$ac_compiler --version >&5"
2665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2666 *) ac_try_echo=$ac_try;;
2668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2669 (eval "$ac_compiler --version >&5") 2>&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }
2673 { (ac_try="$ac_compiler -v >&5"
2675 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2676 *) ac_try_echo
=$ac_try;;
2678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2679 (eval "$ac_compiler -v >&5") 2>&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }
2683 { (ac_try
="$ac_compiler -V >&5"
2685 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2686 *) ac_try_echo=$ac_try;;
2688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2689 (eval "$ac_compiler -V >&5") 2>&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }
2694 cat >conftest.$ac_ext <<_ACEOF
2697 cat confdefs.h >>conftest.$ac_ext
2698 cat >>conftest.$ac_ext <<_ACEOF
2699 /* end confdefs.h. */
2709 ac_clean_files_save=$ac_clean_files
2710 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2711 # Try to create an executable without -o first, disregard a.out.
2712 # It will help us diagnose broken compilers, and finding out an intuition
2714 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2715 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2716 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2718 # List of possible output files, starting from the most likely.
2719 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2720 # only as a last resort. b.out is created by i960 compilers.
2721 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2723 # The IRIX 6 linker writes into existing files which may not be
2724 # executable, retaining their permissions. Remove them first so a
2725 # subsequent execution test works.
2727 for ac_file in $ac_files
2730 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2731 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2736 if { (ac_try="$ac_link_default"
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742 (eval "$ac_link_default") 2>&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; then
2746 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2747 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2748 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2749 # so that the user can short-circuit this test for compilers unknown to
2751 for ac_file
in $ac_files
2753 test -f "$ac_file" ||
continue
2755 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2758 # We found the default executable, but exeext='' is most
2762 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2764 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2766 # We set ac_cv_exeext here because the later test for it is not
2767 # safe: cross compilers may not add the suffix if given an `-o'
2768 # argument, so we may need to know it at that point already.
2769 # Even if this section looks crufty: it has the advantage of
2776 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2779 echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.
$ac_ext >&5
2782 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2783 See \`config.log' for more details." >&5
2784 echo "$as_me: error: C compiler cannot create executables
2785 See \`config.log' for more details." >&2;}
2786 { (exit 77); exit 77; }; }
2789 ac_exeext
=$ac_cv_exeext
2790 { echo "$as_me:$LINENO: result: $ac_file" >&5
2791 echo "${ECHO_T}$ac_file" >&6; }
2793 # Check that the compiler produces executables we can run. If not, either
2794 # the compiler is broken, or we cross compile.
2795 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2796 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2797 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2798 # If not cross compiling, check that we can run a simple program.
2799 if test "$cross_compiling" != yes; then
2800 if { ac_try
='./$ac_file'
2801 { (case "(($ac_try" in
2802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2803 *) ac_try_echo=$ac_try;;
2805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2806 (eval "$ac_try") 2>&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; }; then
2812 if test "$cross_compiling" = maybe; then
2815 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2816 If you meant to cross compile, use \`--host'.
2817 See \`config.log' for more details.
" >&5
2818 echo "$as_me: error
: cannot run C compiled programs.
2819 If you meant to cross compile
, use \
`--host'.
2820 See \`config.log
' for more details." >&2;}
2821 { (exit 1); exit 1; }; }
2825 { echo "$as_me:$LINENO: result: yes" >&5
2826 echo "${ECHO_T}yes" >&6; }
2828 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2829 ac_clean_files=$ac_clean_files_save
2830 # Check that the compiler produces executables we can run. If not, either
2831 # the compiler is broken, or we cross compile.
2832 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2833 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2834 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2835 echo "${ECHO_T}$cross_compiling" >&6; }
2837 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2838 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2839 if { (ac_try="$ac_link"
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_link") 2>&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; then
2849 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2850 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2851 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2853 for ac_file
in conftest.exe conftest conftest.
*; do
2854 test -f "$ac_file" ||
continue
2856 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2857 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2863 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2864 See \`config.log' for more details." >&5
2865 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2866 See \`config.log' for more details." >&2;}
2867 { (exit 1); exit 1; }; }
2870 rm -f conftest
$ac_cv_exeext
2871 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2872 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2874 rm -f conftest.
$ac_ext
2875 EXEEXT
=$ac_cv_exeext
2877 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2878 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2879 if test "${ac_cv_objext+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 cat >conftest.
$ac_ext <<_ACEOF
2885 cat confdefs.h
>>conftest.
$ac_ext
2886 cat >>conftest.
$ac_ext <<_ACEOF
2887 /* end confdefs.h. */
2897 rm -f conftest.o conftest.obj
2898 if { (ac_try
="$ac_compile"
2900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_compile") 2>&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; then
2908 for ac_file in conftest.o conftest.obj conftest.*; do
2909 test -f "$ac_file" || continue;
2911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2912 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2917 echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2920 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2921 See \`config.log
' for more details." >&5
2922 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2923 See \`config.log' for more details.
" >&2;}
2924 { (exit 1); exit 1; }; }
2927 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2929 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2930 echo "${ECHO_T}$ac_cv_objext" >&6; }
2931 OBJEXT=$ac_cv_objext
2933 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2934 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2935 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2936 echo $ECHO_N "(cached
) $ECHO_C" >&6
2938 cat >conftest.$ac_ext <<_ACEOF
2941 cat confdefs.h >>conftest.$ac_ext
2942 cat >>conftest.$ac_ext <<_ACEOF
2943 /* end confdefs.h. */
2956 rm -f conftest.$ac_objext
2957 if { (ac_try="$ac_compile"
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2962 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2963 (eval "$ac_compile") 2>conftest.er1
2965 grep -v '^ *+' conftest.er1 >conftest.err
2967 cat conftest.err >&5
2968 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2969 (exit $ac_status); } &&
2970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2971 { (case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_try") 2>&5
2978 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2979 (exit $ac_status); }; } &&
2980 { ac_try='test -s conftest.$ac_objext'
2981 { (case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2985 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_try") 2>&5
2988 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2989 (exit $ac_status); }; }; then
2992 echo "$as_me: failed program was
:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2999 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3002 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3003 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3004 GCC=`test $ac_compiler_gnu = yes && echo yes`
3005 ac_test_CFLAGS=${CFLAGS+set}
3006 ac_save_CFLAGS=$CFLAGS
3007 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3008 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3009 if test "${ac_cv_prog_cc_g+set}" = set; then
3010 echo $ECHO_N "(cached
) $ECHO_C" >&6
3012 ac_save_c_werror_flag=$ac_c_werror_flag
3013 ac_c_werror_flag=yes
3016 cat >conftest.$ac_ext <<_ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3031 rm -f conftest.$ac_objext
3032 if { (ac_try="$ac_compile"
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3037 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_compile") 2>conftest.er1
3040 grep -v '^ *+' conftest.er1 >conftest.err
3042 cat conftest.err >&5
3043 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3044 (exit $ac_status); } &&
3045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3046 { (case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_try") 2>&5
3053 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3054 (exit $ac_status); }; } &&
3055 { ac_try='test -s conftest.$ac_objext'
3056 { (case "(($ac_try" in
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3060 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_try") 2>&5
3063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3064 (exit $ac_status); }; }; then
3067 echo "$as_me: failed program was
:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3071 cat >conftest.$ac_ext <<_ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3086 rm -f conftest.$ac_objext
3087 if { (ac_try="$ac_compile"
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3092 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_compile") 2>conftest.er1
3095 grep -v '^ *+' conftest.er1 >conftest.err
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3099 (exit $ac_status); } &&
3100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3101 { (case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_try") 2>&5
3108 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3109 (exit $ac_status); }; } &&
3110 { ac_try='test -s conftest.$ac_objext'
3111 { (case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3115 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_try") 2>&5
3118 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3119 (exit $ac_status); }; }; then
3122 echo "$as_me: failed program was
:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3125 ac_c_werror_flag=$ac_save_c_werror_flag
3127 cat >conftest.$ac_ext <<_ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3142 rm -f conftest.$ac_objext
3143 if { (ac_try="$ac_compile"
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_compile") 2>conftest.er1
3151 grep -v '^ *+' conftest.er1 >conftest.err
3153 cat conftest.err >&5
3154 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3155 (exit $ac_status); } &&
3156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3157 { (case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_try") 2>&5
3164 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3165 (exit $ac_status); }; } &&
3166 { ac_try='test -s conftest.$ac_objext'
3167 { (case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_try") 2>&5
3174 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3175 (exit $ac_status); }; }; then
3178 echo "$as_me: failed program was
:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 ac_c_werror_flag=$ac_save_c_werror_flag
3193 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3194 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3195 if test "$ac_test_CFLAGS" = set; then
3196 CFLAGS=$ac_save_CFLAGS
3197 elif test $ac_cv_prog_cc_g = yes; then
3198 if test "$GCC" = yes; then
3204 if test "$GCC" = yes; then
3210 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3211 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3212 if test "${ac_cv_prog_cc_c89+set}" = set; then
3213 echo $ECHO_N "(cached
) $ECHO_C" >&6
3215 ac_cv_prog_cc_c89=no
3217 cat >conftest.$ac_ext <<_ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3225 #include <sys/types.h>
3226 #include <sys/stat.h>
3227 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3228 struct buf { int x; };
3229 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3230 static char *e (p, i)
3236 static char *f (char * (*g) (char **, int), char **p, ...)
3241 s = g (p, va_arg (v,int));
3246 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3247 function prototypes and stuff, but not '\xHH' hex character constants.
3248 These don't provoke an error unfortunately, instead are silently treated
3249 as 'x'. The following induces an error, until -std is added to get
3250 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3251 array size at least. It's necessary to write '\x00'==0 to get something
3252 that's true only with -std. */
3253 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3255 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3256 inside strings and character constants. */
3258 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3260 int test (int i, double x);
3261 struct s1 {int (*f) (int a);};
3262 struct s2 {int (*f) (double a);};
3263 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3269 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3274 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3275 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3277 CC="$ac_save_CC $ac_arg"
3278 rm -f conftest.$ac_objext
3279 if { (ac_try="$ac_compile"
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3284 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_compile") 2>conftest.er1
3287 grep -v '^ *+' conftest.er1 >conftest.err
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3291 (exit $ac_status); } &&
3292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3293 { (case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3297 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3298 (eval "$ac_try") 2>&5
3300 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3301 (exit $ac_status); }; } &&
3302 { ac_try='test -s conftest.$ac_objext'
3303 { (case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3307 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3308 (eval "$ac_try") 2>&5
3310 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3311 (exit $ac_status); }; }; then
3312 ac_cv_prog_cc_c89=$ac_arg
3314 echo "$as_me: failed program was
:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3320 rm -f core conftest.err conftest.$ac_objext
3321 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3323 rm -f conftest.$ac_ext
3328 case "x
$ac_cv_prog_cc_c89" in
3330 { echo "$as_me:$LINENO: result
: none needed
" >&5
3331 echo "${ECHO_T}none needed
" >&6; } ;;
3333 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3334 echo "${ECHO_T}unsupported
" >&6; } ;;
3336 CC="$CC $ac_cv_prog_cc_c89"
3337 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3338 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3350 ac_cpp='$CPP $CPPFLAGS'
3351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3354 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3355 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3356 # On Suns, sometimes $CPP names a directory.
3357 if test -n "$CPP" && test -d "$CPP"; then
3360 if test -z "$CPP"; then
3361 if test "${ac_cv_prog_CPP+set}" = set; then
3362 echo $ECHO_N "(cached
) $ECHO_C" >&6
3364 # Double quotes because CPP needs to be expanded
3365 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3368 for ac_c_preproc_warn_flag in '' yes
3370 # Use a header file that comes with gcc, so configuring glibc
3371 # with a fresh cross-compiler works.
3372 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3373 # <limits.h> exists even on freestanding compilers.
3374 # On the NeXT, cc -E runs the code through the compiler's parser,
3375 # not just through cpp. "Syntax error
" is here to catch this case.
3376 cat >conftest.$ac_ext <<_ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h. */
3383 # include <limits.h>
3385 # include <assert.h>
3389 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3394 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3397 grep -v '^ *+' conftest.er1 >conftest.err
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3401 (exit $ac_status); } >/dev/null; then
3402 if test -s conftest.err; then
3403 ac_cpp_err=$ac_c_preproc_warn_flag
3404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3411 if test -z "$ac_cpp_err"; then
3414 echo "$as_me: failed program was
:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3417 # Broken: fails on valid input.
3421 rm -f conftest.err conftest.$ac_ext
3423 # OK, works on sane cases. Now check whether nonexistent headers
3424 # can be detected and how.
3425 cat >conftest.$ac_ext <<_ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h. */
3431 #include <ac_nonexistent.h>
3433 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3438 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3439 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3441 grep -v '^ *+' conftest.er1 >conftest.err
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3445 (exit $ac_status); } >/dev/null; then
3446 if test -s conftest.err; then
3447 ac_cpp_err=$ac_c_preproc_warn_flag
3448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3455 if test -z "$ac_cpp_err"; then
3456 # Broken: success on invalid input.
3459 echo "$as_me: failed program was
:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3462 # Passes both tests.
3467 rm -f conftest.err conftest.$ac_ext
3470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3471 rm -f conftest.err conftest.$ac_ext
3472 if $ac_preproc_ok; then
3484 { echo "$as_me:$LINENO: result
: $CPP" >&5
3485 echo "${ECHO_T}$CPP" >&6; }
3487 for ac_c_preproc_warn_flag in '' yes
3489 # Use a header file that comes with gcc, so configuring glibc
3490 # with a fresh cross-compiler works.
3491 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3492 # <limits.h> exists even on freestanding compilers.
3493 # On the NeXT, cc -E runs the code through the compiler's parser,
3494 # not just through cpp. "Syntax error
" is here to catch this case.
3495 cat >conftest.$ac_ext <<_ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h. */
3502 # include <limits.h>
3504 # include <assert.h>
3508 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3513 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3514 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3516 grep -v '^ *+' conftest.er1 >conftest.err
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3520 (exit $ac_status); } >/dev/null; then
3521 if test -s conftest.err; then
3522 ac_cpp_err=$ac_c_preproc_warn_flag
3523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3530 if test -z "$ac_cpp_err"; then
3533 echo "$as_me: failed program was
:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3536 # Broken: fails on valid input.
3540 rm -f conftest.err conftest.$ac_ext
3542 # OK, works on sane cases. Now check whether nonexistent headers
3543 # can be detected and how.
3544 cat >conftest.$ac_ext <<_ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3550 #include <ac_nonexistent.h>
3552 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3557 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3558 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3560 grep -v '^ *+' conftest.er1 >conftest.err
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3564 (exit $ac_status); } >/dev/null; then
3565 if test -s conftest.err; then
3566 ac_cpp_err=$ac_c_preproc_warn_flag
3567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3574 if test -z "$ac_cpp_err"; then
3575 # Broken: success on invalid input.
3578 echo "$as_me: failed program was
:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3581 # Passes both tests.
3586 rm -f conftest.err conftest.$ac_ext
3589 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3590 rm -f conftest.err conftest.$ac_ext
3591 if $ac_preproc_ok; then
3594 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3595 See \
`config.log' for more details." >&5
3596 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3597 See \`config.log
' for more details." >&2;}
3598 { (exit 1); exit 1; }; }
3602 ac_cpp='$CPP $CPPFLAGS'
3603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3604 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3608 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3609 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3610 if test "${ac_cv_path_GREP+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3613 # Extract the first word of "grep ggrep" to use in msg output
3614 if test -z "$GREP"; then
3615 set dummy grep ggrep; ac_prog_name=$2
3616 if test "${ac_cv_path_GREP+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 ac_path_GREP_found=false
3620 # Loop through the user's path and
test for each of PROGNAME-LIST
3621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3622 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3625 test -z "$as_dir" && as_dir
=.
3626 for ac_prog
in grep ggrep
; do
3627 for ac_exec_ext
in '' $ac_executable_extensions; do
3628 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3629 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
3630 # Check for GNU ac_path_GREP and select it if it is found.
3631 # Check for GNU $ac_path_GREP
3632 case `"$ac_path_GREP" --version 2>&1` in
3634 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3637 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3640 cat "conftest.in" "conftest.in" >"conftest.tmp"
3641 mv "conftest.tmp" "conftest.in"
3642 cp "conftest.in" "conftest.nl"
3643 echo 'GREP' >> "conftest.nl"
3644 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3645 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3646 ac_count
=`expr $ac_count + 1`
3647 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3648 # Best one so far, save it but keep looking for a better one
3649 ac_cv_path_GREP
="$ac_path_GREP"
3650 ac_path_GREP_max
=$ac_count
3652 # 10*(2^10) chars as input seems more than enough
3653 test $ac_count -gt 10 && break
3655 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3659 $ac_path_GREP_found && break 3
3669 GREP
="$ac_cv_path_GREP"
3670 if test -z "$GREP"; then
3671 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3672 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3673 { (exit 1); exit 1; }; }
3677 ac_cv_path_GREP
=$GREP
3682 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3683 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3684 GREP
="$ac_cv_path_GREP"
3687 { echo "$as_me:$LINENO: checking for egrep" >&5
3688 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3689 if test "${ac_cv_path_EGREP+set}" = set; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3693 then ac_cv_path_EGREP
="$GREP -E"
3695 # Extract the first word of "egrep" to use in msg output
3696 if test -z "$EGREP"; then
3697 set dummy
egrep; ac_prog_name
=$2
3698 if test "${ac_cv_path_EGREP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 ac_path_EGREP_found
=false
3702 # Loop through the user's path and test for each of PROGNAME-LIST
3703 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3704 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3707 test -z "$as_dir" && as_dir
=.
3708 for ac_prog
in egrep; do
3709 for ac_exec_ext
in '' $ac_executable_extensions; do
3710 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3711 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
3712 # Check for GNU ac_path_EGREP and select it if it is found.
3713 # Check for GNU $ac_path_EGREP
3714 case `"$ac_path_EGREP" --version 2>&1` in
3716 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3719 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3722 cat "conftest.in" "conftest.in" >"conftest.tmp"
3723 mv "conftest.tmp" "conftest.in"
3724 cp "conftest.in" "conftest.nl"
3725 echo 'EGREP' >> "conftest.nl"
3726 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3727 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3728 ac_count
=`expr $ac_count + 1`
3729 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3730 # Best one so far, save it but keep looking for a better one
3731 ac_cv_path_EGREP
="$ac_path_EGREP"
3732 ac_path_EGREP_max
=$ac_count
3734 # 10*(2^10) chars as input seems more than enough
3735 test $ac_count -gt 10 && break
3737 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3741 $ac_path_EGREP_found && break 3
3751 EGREP
="$ac_cv_path_EGREP"
3752 if test -z "$EGREP"; then
3753 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3754 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3755 { (exit 1); exit 1; }; }
3759 ac_cv_path_EGREP
=$EGREP
3765 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3766 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3767 EGREP
="$ac_cv_path_EGREP"
3770 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3771 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3772 if test "${ac_cv_header_stdc+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 cat >conftest.
$ac_ext <<_ACEOF
3778 cat confdefs.h
>>conftest.
$ac_ext
3779 cat >>conftest.
$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3794 rm -f conftest.
$ac_objext
3795 if { (ac_try
="$ac_compile"
3797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3801 (eval "$ac_compile") 2>conftest.er1
3803 grep -v '^ *+' conftest.er1 >conftest.err
3805 cat conftest.err >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } &&
3808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3809 { (case "(($ac_try" in
3810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3811 *) ac_try_echo
=$ac_try;;
3813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3814 (eval "$ac_try") 2>&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }; } &&
3818 { ac_try
='test -s conftest.$ac_objext'
3819 { (case "(($ac_try" in
3820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3824 (eval "$ac_try") 2>&5
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; }; then
3828 ac_cv_header_stdc=yes
3830 echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3833 ac_cv_header_stdc=no
3836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3838 if test $ac_cv_header_stdc = yes; then
3839 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3840 cat >conftest.$ac_ext <<_ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3850 $EGREP "memchr" >/dev/null 2>&1; then
3853 ac_cv_header_stdc=no
3859 if test $ac_cv_header_stdc = yes; then
3860 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3861 cat >conftest.$ac_ext <<_ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3871 $EGREP "free" >/dev/null 2>&1; then
3874 ac_cv_header_stdc=no
3880 if test $ac_cv_header_stdc = yes; then
3881 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3882 if test "$cross_compiling" = yes; then
3885 cat >conftest.$ac_ext <<_ACEOF
3888 cat confdefs.h >>conftest.$ac_ext
3889 cat >>conftest.$ac_ext <<_ACEOF
3890 /* end confdefs.h. */
3893 #if ((' ' & 0x0FF) == 0x020)
3894 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3895 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3897 # define ISLOWER(c) \
3898 (('a' <= (c) && (c) <= 'i') \
3899 || ('j' <= (c) && (c) <= 'r') \
3900 || ('s' <= (c) && (c) <= 'z'))
3901 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3904 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3909 for (i = 0; i < 256; i++)
3910 if (XOR (islower (i), ISLOWER (i))
3911 || toupper (i) != TOUPPER (i))
3916 rm -f conftest$ac_exeext
3917 if { (ac_try="$ac_link"
3919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3920 *) ac_try_echo
=$ac_try;;
3922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3923 (eval "$ac_link") 2>&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3927 { (case "(($ac_try" in
3928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3932 (eval "$ac_try") 2>&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3938 echo "$as_me: program exited with status $ac_status" >&5
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3943 ac_cv_header_stdc=no
3945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3951 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3952 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3953 if test $ac_cv_header_stdc = yes; then
3955 cat >>confdefs.h <<\_ACEOF
3956 #define STDC_HEADERS 1
3961 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3971 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3972 inttypes.h stdint.h unistd.h
3974 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 cat >conftest.$ac_ext <<_ACEOF
3983 cat confdefs.h >>conftest.$ac_ext
3984 cat >>conftest.$ac_ext <<_ACEOF
3985 /* end confdefs.h. */
3986 $ac_includes_default
3988 #include <$ac_header>
3990 rm -f conftest.$ac_objext
3991 if { (ac_try="$ac_compile"
3993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3994 *) ac_try_echo
=$ac_try;;
3996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3997 (eval "$ac_compile") 2>conftest.er1
3999 grep -v '^ *+' conftest.er1
>conftest.err
4001 cat conftest.err
>&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } &&
4004 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4005 { (case "(($ac_try" in
4006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4010 (eval "$ac_try") 2>&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; } &&
4014 { ac_try='test -s conftest.$ac_objext'
4015 { (case "(($ac_try" in
4016 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4017 *) ac_try_echo
=$ac_try;;
4019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4020 (eval "$ac_try") 2>&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }; }; then
4024 eval "$as_ac_Header=yes"
4026 echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.
$ac_ext >&5
4029 eval "$as_ac_Header=no"
4032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4034 ac_res
=`eval echo '${'$as_ac_Header'}'`
4035 { echo "$as_me:$LINENO: result: $ac_res" >&5
4036 echo "${ECHO_T}$ac_res" >&6; }
4037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4038 cat >>confdefs.h
<<_ACEOF
4039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4047 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4048 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4049 if test "${ac_cv_c_bigendian+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 # See if sys/param.h defines the BYTE_ORDER macro.
4053 cat >conftest.
$ac_ext <<_ACEOF
4056 cat confdefs.h
>>conftest.
$ac_ext
4057 cat >>conftest.
$ac_ext <<_ACEOF
4058 /* end confdefs.h. */
4059 #include <sys/types.h>
4060 #include <sys/param.h>
4065 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4073 rm -f conftest.
$ac_objext
4074 if { (ac_try
="$ac_compile"
4076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_compile") 2>conftest.er1
4082 grep -v '^ *+' conftest.er1 >conftest.err
4084 cat conftest.err >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } &&
4087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4088 { (case "(($ac_try" in
4089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4090 *) ac_try_echo
=$ac_try;;
4092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093 (eval "$ac_try") 2>&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; } &&
4097 { ac_try
='test -s conftest.$ac_objext'
4098 { (case "(($ac_try" in
4099 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4103 (eval "$ac_try") 2>&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }; }; then
4107 # It does; now see whether it defined to BIG_ENDIAN or not.
4108 cat >conftest.$ac_ext <<_ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4114 #include <sys/types.h>
4115 #include <sys/param.h>
4120 #if BYTE_ORDER != BIG_ENDIAN
4128 rm -f conftest.$ac_objext
4129 if { (ac_try="$ac_compile"
4131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4132 *) ac_try_echo
=$ac_try;;
4134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135 (eval "$ac_compile") 2>conftest.er1
4137 grep -v '^ *+' conftest.er1
>conftest.err
4139 cat conftest.err
>&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); } &&
4142 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4143 { (case "(($ac_try" in
4144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_try") 2>&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; } &&
4152 { ac_try='test -s conftest.$ac_objext'
4153 { (case "(($ac_try" in
4154 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4155 *) ac_try_echo
=$ac_try;;
4157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158 (eval "$ac_try") 2>&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; }; then
4162 ac_cv_c_bigendian
=yes
4164 echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.
$ac_ext >&5
4167 ac_cv_c_bigendian
=no
4170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4172 echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.
$ac_ext >&5
4175 # It does not; compile a test program.
4176 if test "$cross_compiling" = yes; then
4177 # try to guess the endianness by grepping values into an object file
4178 ac_cv_c_bigendian
=unknown
4179 cat >conftest.
$ac_ext <<_ACEOF
4182 cat confdefs.h
>>conftest.
$ac_ext
4183 cat >>conftest.
$ac_ext <<_ACEOF
4184 /* end confdefs.h. */
4185 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4186 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4187 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4188 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4189 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4190 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4194 _ascii (); _ebcdic ();
4199 rm -f conftest.
$ac_objext
4200 if { (ac_try
="$ac_compile"
4202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4206 (eval "$ac_compile") 2>conftest.er1
4208 grep -v '^ *+' conftest.er1 >conftest.err
4210 cat conftest.err >&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } &&
4213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4214 { (case "(($ac_try" in
4215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4216 *) ac_try_echo
=$ac_try;;
4218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_try") 2>&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }; } &&
4223 { ac_try
='test -s conftest.$ac_objext'
4224 { (case "(($ac_try" in
4225 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4226 *) ac_try_echo=$ac_try;;
4228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4229 (eval "$ac_try") 2>&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; }; then
4233 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4234 ac_cv_c_bigendian=yes
4236 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4237 if test "$ac_cv_c_bigendian" = unknown; then
4238 ac_cv_c_bigendian=no
4240 # finding both strings is unlikely to happen, but who knows?
4241 ac_cv_c_bigendian=unknown
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253 cat >conftest.$ac_ext <<_ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4259 $ac_includes_default
4264 /* Are we little or big endian? From Harbison&Steele. */
4268 char c[sizeof (long int)];
4271 return u.c[sizeof (long int) - 1] == 1;
4277 rm -f conftest$ac_exeext
4278 if { (ac_try="$ac_link"
4280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4281 *) ac_try_echo
=$ac_try;;
4283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284 (eval "$ac_link") 2>&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4288 { (case "(($ac_try" in
4289 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293 (eval "$ac_try") 2>&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; }; then
4297 ac_cv_c_bigendian=no
4299 echo "$as_me: program exited with status $ac_status" >&5
4300 echo "$as_me: failed program was:" >&5
4301 sed 's/^/| /' conftest.$ac_ext >&5
4304 ac_cv_c_bigendian=yes
4306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4315 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4316 case $ac_cv_c_bigendian in
4324 { { echo "$as_me:$LINENO: error: unknown endianness
4325 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4326 echo "$as_me: error: unknown endianness
4327 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4328 { (exit 1); exit 1; }; } ;;
4332 if test "$cross_compiling" = yes; then
4333 LLVM_CROSS_COMPILING=1
4336 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4337 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4338 if test "${ac_cv_build_exeext+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4342 ac_cv_build_exeext=.exe
4344 ac_build_prefix=${build_alias}-
4346 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4347 set dummy ${ac_build_prefix}gcc; ac_word=$2
4348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4350 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 if test -n "$BUILD_CC"; then
4354 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 test -z "$as_dir" && as_dir=.
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4363 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 BUILD_CC=$ac_cv_prog_BUILD_CC
4374 if test -n "$BUILD_CC"; then
4375 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4376 echo "${ECHO_T}$BUILD_CC" >&6; }
4378 { echo "$as_me:$LINENO: result: no" >&5
4379 echo "${ECHO_T}no" >&6; }
4383 if test -z "$BUILD_CC"; then
4384 # Extract the first word of "gcc", so it can be a program name with args.
4385 set dummy gcc; ac_word=$2
4386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4388 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 if test -n "$BUILD_CC"; then
4392 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4401 ac_cv_prog_BUILD_CC="gcc"
4402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 BUILD_CC=$ac_cv_prog_BUILD_CC
4412 if test -n "$BUILD_CC"; then
4413 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4414 echo "${ECHO_T}$BUILD_CC" >&6; }
4416 { echo "$as_me:$LINENO: result: no" >&5
4417 echo "${ECHO_T}no" >&6; }
4421 if test -z "$BUILD_CC"; then
4422 # Extract the first word of "cc", so it can be a program name with args.
4423 set dummy cc; ac_word=$2
4424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4426 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 if test -n "$BUILD_CC"; then
4430 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4440 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4441 ac_prog_rejected=yes
4444 ac_cv_prog_BUILD_CC="cc"
4445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 if test $ac_prog_rejected = yes; then
4453 # We found a bogon in the path, so make sure we never use it.
4454 set dummy $ac_cv_prog_BUILD_CC
4456 if test $# != 0; then
4457 # We chose a different compiler from the bogus one.
4458 # However, it has the same basename, so the bogon will be chosen
4459 # first if we set BUILD_CC to just the basename; use the full file name.
4461 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4466 BUILD_CC=$ac_cv_prog_BUILD_CC
4467 if test -n "$BUILD_CC"; then
4468 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4469 echo "${ECHO_T}$BUILD_CC" >&6; }
4471 { echo "$as_me:$LINENO: result: no" >&5
4472 echo "${ECHO_T}no" >&6; }
4478 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4479 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4480 { (exit 1); exit 1; }; }
4481 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4483 echo 'int main () { return 0; }' > conftest.$ac_ext
4485 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4486 (eval $ac_build_link) 2>&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; then
4490 for file in conftest.*; do
4492 *.c | *.o | *.obj) ;;
4493 *) ac_cv_build_exeext=`echo $file |
sed -e s
/conftest
//` ;;
4497 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4498 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4499 { (exit 1); exit 1; }; }
4502 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4507 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4508 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4509 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4510 ac_build_exeext=$BUILD_EXEEXT
4513 LLVM_CROSS_COMPILING=0
4517 if test -d "CVS" -o -d "${srcdir}/CVS"; then
4528 # Check whether --enable-optimized was given.
4529 if test "${enable_optimized+set}" = set; then
4530 enableval=$enable_optimized;
4535 if test ${enableval} = "no" ; then
4539 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4543 # Check whether --enable-assertions was given.
4544 if test "${enable_assertions+set}" = set; then
4545 enableval=$enable_assertions;
4550 if test ${enableval} = "yes" ; then
4554 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4558 # Check whether --enable-debug-runtime was given.
4559 if test "${enable_debug_runtime+set}" = set; then
4560 enableval=$enable_debug_runtime;
4565 if test ${enableval} = "no" ; then
4569 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4573 # Check whether --enable-jit was given.
4574 if test "${enable_jit+set}" = set; then
4575 enableval=$enable_jit;
4580 if test ${enableval} = "no"
4585 case "$llvm_cv_target_arch" in
4586 x86) TARGET_HAS_JIT=1
4588 Sparc) TARGET_HAS_JIT=1
4590 PowerPC) TARGET_HAS_JIT=1
4592 x86_64) TARGET_HAS_JIT=0
4594 Alpha) TARGET_HAS_JIT=1
4596 IA64) TARGET_HAS_JIT=0
4603 # Check whether --enable-doxygen was given.
4604 if test "${enable_doxygen+set}" = set; then
4605 enableval=$enable_doxygen;
4610 case "$enableval" in
4611 yes) ENABLE_DOXYGEN=1
4613 no) ENABLE_DOXYGEN=0
4615 default) ENABLE_DOXYGEN=0
4617 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4618 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4619 { (exit 1); exit 1; }; } ;;
4622 # Check whether --enable-threads was given.
4623 if test "${enable_threads+set}" = set; then
4624 enableval=$enable_threads;
4629 case "$enableval" in
4630 yes) ENABLE_THREADS=1
4632 no) ENABLE_THREADS=0
4634 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4635 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4636 { (exit 1); exit 1; }; } ;;
4639 cat >>confdefs.h <<_ACEOF
4640 #define ENABLE_THREADS $ENABLE_THREADS
4645 # Check whether --enable-targets was given.
4646 if test "${enable_targets+set}" = set; then
4647 enableval=$enable_targets;
4652 case "$enableval" in
4653 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4655 case "$llvm_cv_target_arch" in
4656 x86) TARGETS_TO_BUILD="X86" ;;
4657 x86_64) TARGETS_TO_BUILD="X86" ;;
4658 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4659 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4660 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4661 IA64) TARGETS_TO_BUILD="IA64" ;;
4662 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4663 echo "$as_me: error: Can not set target to build" >&2;}
4664 { (exit 1); exit 1; }; } ;;
4667 *)for a_target in `echo $enableval|
sed -e 's/,/ /g' ` ; do
4669 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4670 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4671 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4672 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4673 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4674 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4675 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4676 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4677 { (exit 1); exit 1; }; } ;;
4682 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4683 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4687 # Check whether --with-llvmgccdir was given.
4688 if test "${with_llvmgccdir+set}" = set; then
4689 withval=$with_llvmgccdir;
4695 default) WITH_LLVMGCCDIR=default ;;
4696 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4697 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4698 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4699 { (exit 1); exit 1; }; } ;;
4703 # Check whether --with-extra-options was given.
4704 if test "${with_extra_options+set}" = set; then
4705 withval=$with_extra_options;
4711 default) EXTRA_OPTIONS= ;;
4712 *) EXTRA_OPTIONS=$withval ;;
4714 EXTRA_OPTIONS=$EXTRA_OPTIONS
4719 ac_cpp='$CPP $CPPFLAGS'
4720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4723 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4724 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4725 # On Suns, sometimes $CPP names a directory.
4726 if test -n "$CPP" && test -d "$CPP"; then
4729 if test -z "$CPP"; then
4730 if test "${ac_cv_prog_CPP+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4733 # Double quotes because CPP needs to be expanded
4734 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4737 for ac_c_preproc_warn_flag in '' yes
4739 # Use a header file that comes with gcc, so configuring glibc
4740 # with a fresh cross-compiler works.
4741 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4742 # <limits.h> exists even on freestanding compilers.
4743 # On the NeXT, cc -E runs the code through the compiler's parser,
4744 # not just through cpp. "Syntax error" is here to catch this case.
4745 cat >conftest.$ac_ext <<_ACEOF
4748 cat confdefs.h >>conftest.$ac_ext
4749 cat >>conftest.$ac_ext <<_ACEOF
4750 /* end confdefs.h. */
4752 # include <limits.h>
4754 # include <assert.h>
4758 if { (ac_try="$ac_cpp conftest.$ac_ext"
4760 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4761 *) ac_try_echo
=$ac_try;;
4763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4766 grep -v '^ *+' conftest.er1
>conftest.err
4768 cat conftest.err
>&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } >/dev
/null
; then
4771 if test -s conftest.err
; then
4772 ac_cpp_err
=$ac_c_preproc_warn_flag
4773 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4780 if test -z "$ac_cpp_err"; then
4783 echo "$as_me: failed program was:" >&5
4784 sed 's/^/| /' conftest.
$ac_ext >&5
4786 # Broken: fails on valid input.
4790 rm -f conftest.err conftest.
$ac_ext
4792 # OK, works on sane cases. Now check whether nonexistent headers
4793 # can be detected and how.
4794 cat >conftest.
$ac_ext <<_ACEOF
4797 cat confdefs.h
>>conftest.
$ac_ext
4798 cat >>conftest.
$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4800 #include <ac_nonexistent.h>
4802 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4805 *) ac_try_echo=$ac_try;;
4807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4810 grep -v '^ *+' conftest.er1 >conftest.err
4812 cat conftest.err >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } >/dev/null; then
4815 if test -s conftest.err; then
4816 ac_cpp_err=$ac_c_preproc_warn_flag
4817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4824 if test -z "$ac_cpp_err"; then
4825 # Broken: success on invalid input.
4828 echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.$ac_ext >&5
4831 # Passes both tests.
4836 rm -f conftest.err conftest.$ac_ext
4839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4840 rm -f conftest.err conftest.
$ac_ext
4841 if $ac_preproc_ok; then
4853 { echo "$as_me:$LINENO: result: $CPP" >&5
4854 echo "${ECHO_T}$CPP" >&6; }
4856 for ac_c_preproc_warn_flag
in '' yes
4858 # Use a header file that comes with gcc, so configuring glibc
4859 # with a fresh cross-compiler works.
4860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4861 # <limits.h> exists even on freestanding compilers.
4862 # On the NeXT, cc -E runs the code through the compiler's parser,
4863 # not just through cpp. "Syntax error" is here to catch this case.
4864 cat >conftest.
$ac_ext <<_ACEOF
4867 cat confdefs.h
>>conftest.
$ac_ext
4868 cat >>conftest.
$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4871 # include <limits.h>
4873 # include <assert.h>
4877 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4880 *) ac_try_echo=$ac_try;;
4882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4885 grep -v '^ *+' conftest.er1 >conftest.err
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } >/dev/null; then
4890 if test -s conftest.err; then
4891 ac_cpp_err=$ac_c_preproc_warn_flag
4892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4899 if test -z "$ac_cpp_err"; then
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4905 # Broken: fails on valid input.
4909 rm -f conftest.err conftest.$ac_ext
4911 # OK, works on sane cases. Now check whether nonexistent headers
4912 # can be detected and how.
4913 cat >conftest.$ac_ext <<_ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4919 #include <ac_nonexistent.h>
4921 if { (ac_try="$ac_cpp conftest.$ac_ext"
4923 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4924 *) ac_try_echo
=$ac_try;;
4926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4929 grep -v '^ *+' conftest.er1
>conftest.err
4931 cat conftest.err
>&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } >/dev
/null
; then
4934 if test -s conftest.err
; then
4935 ac_cpp_err
=$ac_c_preproc_warn_flag
4936 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4943 if test -z "$ac_cpp_err"; then
4944 # Broken: success on invalid input.
4947 echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.
$ac_ext >&5
4950 # Passes both tests.
4955 rm -f conftest.err conftest.
$ac_ext
4958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4959 rm -f conftest.err conftest.
$ac_ext
4960 if $ac_preproc_ok; then
4963 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4964 See \`config.log' for more details." >&5
4965 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4966 See \`config.log' for more details." >&2;}
4967 { (exit 1); exit 1; }; }
4971 ac_cpp
='$CPP $CPPFLAGS'
4972 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4977 ac_cpp
='$CPP $CPPFLAGS'
4978 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4981 if test -n "$ac_tool_prefix"; then
4984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4985 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4988 if test "${ac_cv_prog_CC+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 if test -n "$CC"; then
4992 ac_cv_prog_CC
="$CC" # Let the user override the test.
4994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4998 test -z "$as_dir" && as_dir
=.
4999 for ac_exec_ext
in '' $ac_executable_extensions; do
5000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5001 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5012 if test -n "$CC"; then
5013 { echo "$as_me:$LINENO: result: $CC" >&5
5014 echo "${ECHO_T}$CC" >&6; }
5016 { echo "$as_me:$LINENO: result: no" >&5
5017 echo "${ECHO_T}no" >&6; }
5021 test -n "$CC" && break
5024 if test -z "$CC"; then
5028 # Extract the first word of "$ac_prog", so it can be a program name with args.
5029 set dummy
$ac_prog; ac_word
=$2
5030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 if test -n "$ac_ct_CC"; then
5036 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5042 test -z "$as_dir" && as_dir
=.
5043 for ac_exec_ext
in '' $ac_executable_extensions; do
5044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5045 ac_cv_prog_ac_ct_CC
="$ac_prog"
5046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5056 if test -n "$ac_ct_CC"; then
5057 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5058 echo "${ECHO_T}$ac_ct_CC" >&6; }
5060 { echo "$as_me:$LINENO: result: no" >&5
5061 echo "${ECHO_T}no" >&6; }
5065 test -n "$ac_ct_CC" && break
5068 if test "x$ac_ct_CC" = x
; then
5071 case $cross_compiling:$ac_tool_warned in
5073 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5074 whose name does not start with the host triplet. If you think this
5075 configuration is useful to you, please write to autoconf@gnu.org." >&5
5076 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5077 whose name does not start with the host triplet. If you think this
5078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5079 ac_tool_warned
=yes ;;
5086 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5087 See \`config.log' for more details." >&5
5088 echo "$as_me: error: no acceptable C compiler found in \$PATH
5089 See \`config.log' for more details." >&2;}
5090 { (exit 1); exit 1; }; }
5092 # Provide some information about the compiler.
5093 echo "$as_me:$LINENO: checking for C compiler version" >&5
5094 ac_compiler
=`set X $ac_compile; echo $2`
5095 { (ac_try
="$ac_compiler --version >&5"
5097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5101 (eval "$ac_compiler --version >&5") 2>&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }
5105 { (ac_try="$ac_compiler -v >&5"
5107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5108 *) ac_try_echo
=$ac_try;;
5110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111 (eval "$ac_compiler -v >&5") 2>&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }
5115 { (ac_try
="$ac_compiler -V >&5"
5117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5121 (eval "$ac_compiler -V >&5") 2>&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }
5126 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5127 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5128 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 cat >conftest.$ac_ext <<_ACEOF
5134 cat confdefs.h >>conftest.$ac_ext
5135 cat >>conftest.$ac_ext <<_ACEOF
5136 /* end confdefs.h. */
5149 rm -f conftest.$ac_objext
5150 if { (ac_try="$ac_compile"
5152 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5153 *) ac_try_echo
=$ac_try;;
5155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156 (eval "$ac_compile") 2>conftest.er1
5158 grep -v '^ *+' conftest.er1
>conftest.err
5160 cat conftest.err
>&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } &&
5163 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5164 { (case "(($ac_try" in
5165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5166 *) ac_try_echo=$ac_try;;
5168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5169 (eval "$ac_try") 2>&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; } &&
5173 { ac_try='test -s conftest.$ac_objext'
5174 { (case "(($ac_try" in
5175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5176 *) ac_try_echo
=$ac_try;;
5178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5179 (eval "$ac_try") 2>&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); }; }; then
5185 echo "$as_me: failed program was:" >&5
5186 sed 's/^/| /' conftest.
$ac_ext >&5
5191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5192 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
5195 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5196 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5197 GCC
=`test $ac_compiler_gnu = yes && echo yes`
5198 ac_test_CFLAGS
=${CFLAGS+set}
5199 ac_save_CFLAGS
=$CFLAGS
5200 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5201 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5202 if test "${ac_cv_prog_cc_g+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 ac_save_c_werror_flag
=$ac_c_werror_flag
5206 ac_c_werror_flag
=yes
5209 cat >conftest.
$ac_ext <<_ACEOF
5212 cat confdefs.h
>>conftest.
$ac_ext
5213 cat >>conftest.
$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5224 rm -f conftest.
$ac_objext
5225 if { (ac_try
="$ac_compile"
5227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_compile") 2>conftest.er1
5233 grep -v '^ *+' conftest.er1 >conftest.err
5235 cat conftest.err >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } &&
5238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5239 { (case "(($ac_try" in
5240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5241 *) ac_try_echo
=$ac_try;;
5243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244 (eval "$ac_try") 2>&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try
='test -s conftest.$ac_objext'
5249 { (case "(($ac_try" in
5250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5251 *) ac_try_echo=$ac_try;;
5253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254 (eval "$ac_try") 2>&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; }; then
5260 echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5264 cat >conftest.$ac_ext <<_ACEOF
5267 cat confdefs.h >>conftest.$ac_ext
5268 cat >>conftest.$ac_ext <<_ACEOF
5269 /* end confdefs.h. */
5279 rm -f conftest.$ac_objext
5280 if { (ac_try="$ac_compile"
5282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5283 *) ac_try_echo
=$ac_try;;
5285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286 (eval "$ac_compile") 2>conftest.er1
5288 grep -v '^ *+' conftest.er1
>conftest.err
5290 cat conftest.err
>&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } &&
5293 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294 { (case "(($ac_try" in
5295 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299 (eval "$ac_try") 2>&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; } &&
5303 { ac_try='test -s conftest.$ac_objext'
5304 { (case "(($ac_try" in
5305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5306 *) ac_try_echo
=$ac_try;;
5308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5309 (eval "$ac_try") 2>&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.
$ac_ext >&5
5318 ac_c_werror_flag
=$ac_save_c_werror_flag
5320 cat >conftest.
$ac_ext <<_ACEOF
5323 cat confdefs.h
>>conftest.
$ac_ext
5324 cat >>conftest.
$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5335 rm -f conftest.
$ac_objext
5336 if { (ac_try
="$ac_compile"
5338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5339 *) ac_try_echo=$ac_try;;
5341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5342 (eval "$ac_compile") 2>conftest.er1
5344 grep -v '^ *+' conftest.er1 >conftest.err
5346 cat conftest.err >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } &&
5349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5350 { (case "(($ac_try" in
5351 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5352 *) ac_try_echo
=$ac_try;;
5354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5355 (eval "$ac_try") 2>&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; } &&
5359 { ac_try
='test -s conftest.$ac_objext'
5360 { (case "(($ac_try" in
5361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5362 *) ac_try_echo=$ac_try;;
5364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5365 (eval "$ac_try") 2>&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; }; then
5371 echo "$as_me: failed program was:" >&5
5372 sed 's/^/| /' conftest.$ac_ext >&5
5377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5384 ac_c_werror_flag=$ac_save_c_werror_flag
5386 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5387 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5388 if test "$ac_test_CFLAGS" = set; then
5389 CFLAGS=$ac_save_CFLAGS
5390 elif test $ac_cv_prog_cc_g = yes; then
5391 if test "$GCC" = yes; then
5397 if test "$GCC" = yes; then
5403 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5404 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5405 if test "${ac_cv_prog_cc_c89+set}" = set; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 ac_cv_prog_cc_c89=no
5410 cat >conftest.$ac_ext <<_ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5418 #include <sys/types.h>
5419 #include <sys/stat.h>
5420 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5421 struct buf { int x; };
5422 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5423 static char *e (p, i)
5429 static char *f (char * (*g) (char **, int), char **p, ...)
5434 s = g (p, va_arg (v,int));
5439 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5440 function prototypes and stuff, but not '\xHH' hex character constants.
5441 These don't provoke an error unfortunately, instead are silently treated
5442 as 'x'. The following induces an error, until -std is added to get
5443 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5444 array size at least. It's necessary to write '\x00'==0 to get something
5445 that's true only with -std. */
5446 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5448 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5449 inside strings and character constants. */
5451 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5453 int test (int i, double x);
5454 struct s1 {int (*f) (int a);};
5455 struct s2 {int (*f) (double a);};
5456 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5462 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5467 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5468 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5470 CC="$ac_save_CC $ac_arg"
5471 rm -f conftest.$ac_objext
5472 if { (ac_try="$ac_compile"
5474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5475 *) ac_try_echo
=$ac_try;;
5477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478 (eval "$ac_compile") 2>conftest.er1
5480 grep -v '^ *+' conftest.er1
>conftest.err
5482 cat conftest.err
>&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } &&
5485 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5486 { (case "(($ac_try" in
5487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_try") 2>&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; } &&
5495 { ac_try='test -s conftest.$ac_objext'
5496 { (case "(($ac_try" in
5497 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5498 *) ac_try_echo
=$ac_try;;
5500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501 (eval "$ac_try") 2>&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; }; then
5505 ac_cv_prog_cc_c89
=$ac_arg
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.
$ac_ext >&5
5513 rm -f core conftest.err conftest.
$ac_objext
5514 test "x$ac_cv_prog_cc_c89" != "xno" && break
5516 rm -f conftest.
$ac_ext
5521 case "x$ac_cv_prog_cc_c89" in
5523 { echo "$as_me:$LINENO: result: none needed" >&5
5524 echo "${ECHO_T}none needed" >&6; } ;;
5526 { echo "$as_me:$LINENO: result: unsupported" >&5
5527 echo "${ECHO_T}unsupported" >&6; } ;;
5529 CC
="$CC $ac_cv_prog_cc_c89"
5530 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5531 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5536 ac_cpp
='$CPP $CPPFLAGS'
5537 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5538 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5539 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5542 ac_cpp
='$CXXCPP $CPPFLAGS'
5543 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5544 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5545 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5546 if test -z "$CXX"; then
5547 if test -n "$CCC"; then
5550 if test -n "$ac_tool_prefix"; then
5553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5554 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5557 if test "${ac_cv_prog_CXX+set}" = set; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5560 if test -n "$CXX"; then
5561 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
5563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5567 test -z "$as_dir" && as_dir
=.
5568 for ac_exec_ext
in '' $ac_executable_extensions; do
5569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5570 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
5571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5581 if test -n "$CXX"; then
5582 { echo "$as_me:$LINENO: result: $CXX" >&5
5583 echo "${ECHO_T}$CXX" >&6; }
5585 { echo "$as_me:$LINENO: result: no" >&5
5586 echo "${ECHO_T}no" >&6; }
5590 test -n "$CXX" && break
5593 if test -z "$CXX"; then
5597 # Extract the first word of "$ac_prog", so it can be a program name with args.
5598 set dummy
$ac_prog; ac_word
=$2
5599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5601 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5604 if test -n "$ac_ct_CXX"; then
5605 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
5607 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5611 test -z "$as_dir" && as_dir
=.
5612 for ac_exec_ext
in '' $ac_executable_extensions; do
5613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5614 ac_cv_prog_ac_ct_CXX
="$ac_prog"
5615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
5625 if test -n "$ac_ct_CXX"; then
5626 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5627 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5629 { echo "$as_me:$LINENO: result: no" >&5
5630 echo "${ECHO_T}no" >&6; }
5634 test -n "$ac_ct_CXX" && break
5637 if test "x$ac_ct_CXX" = x
; then
5640 case $cross_compiling:$ac_tool_warned in
5642 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5643 whose name does not start with the host triplet. If you think this
5644 configuration is useful to you, please write to autoconf@gnu.org." >&5
5645 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5646 whose name does not start with the host triplet. If you think this
5647 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5648 ac_tool_warned
=yes ;;
5656 # Provide some information about the compiler.
5657 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5658 ac_compiler
=`set X $ac_compile; echo $2`
5659 { (ac_try
="$ac_compiler --version >&5"
5661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5662 *) ac_try_echo=$ac_try;;
5664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5665 (eval "$ac_compiler --version >&5") 2>&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }
5669 { (ac_try="$ac_compiler -v >&5"
5671 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5672 *) ac_try_echo
=$ac_try;;
5674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675 (eval "$ac_compiler -v >&5") 2>&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }
5679 { (ac_try
="$ac_compiler -V >&5"
5681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_compiler -V >&5") 2>&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }
5690 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5691 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5692 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 cat >conftest.$ac_ext <<_ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5713 rm -f conftest.$ac_objext
5714 if { (ac_try="$ac_compile"
5716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5717 *) ac_try_echo
=$ac_try;;
5719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_compile") 2>conftest.er1
5722 grep -v '^ *+' conftest.er1
>conftest.err
5724 cat conftest.err
>&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } &&
5727 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5728 { (case "(($ac_try" in
5729 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5730 *) ac_try_echo=$ac_try;;
5732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733 (eval "$ac_try") 2>&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; } &&
5737 { ac_try='test -s conftest.$ac_objext'
5738 { (case "(($ac_try" in
5739 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5740 *) ac_try_echo
=$ac_try;;
5742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743 (eval "$ac_try") 2>&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; }; then
5749 echo "$as_me: failed program was:" >&5
5750 sed 's/^/| /' conftest.
$ac_ext >&5
5755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5756 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5759 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5760 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5761 GXX
=`test $ac_compiler_gnu = yes && echo yes`
5762 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5763 ac_save_CXXFLAGS
=$CXXFLAGS
5764 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5765 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5766 if test "${ac_cv_prog_cxx_g+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5770 ac_cxx_werror_flag
=yes
5773 cat >conftest.
$ac_ext <<_ACEOF
5776 cat confdefs.h
>>conftest.
$ac_ext
5777 cat >>conftest.
$ac_ext <<_ACEOF
5778 /* end confdefs.h. */
5788 rm -f conftest.
$ac_objext
5789 if { (ac_try
="$ac_compile"
5791 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_compile") 2>conftest.er1
5797 grep -v '^ *+' conftest.er1 >conftest.err
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } &&
5802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5803 { (case "(($ac_try" in
5804 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5805 *) ac_try_echo
=$ac_try;;
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_try") 2>&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; } &&
5812 { ac_try
='test -s conftest.$ac_objext'
5813 { (case "(($ac_try" in
5814 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5815 *) ac_try_echo=$ac_try;;
5817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818 (eval "$ac_try") 2>&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; }; then
5822 ac_cv_prog_cxx_g=yes
5824 echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5828 cat >conftest.$ac_ext <<_ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5843 rm -f conftest.$ac_objext
5844 if { (ac_try="$ac_compile"
5846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5847 *) ac_try_echo
=$ac_try;;
5849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5850 (eval "$ac_compile") 2>conftest.er1
5852 grep -v '^ *+' conftest.er1
>conftest.err
5854 cat conftest.err
>&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } &&
5857 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5858 { (case "(($ac_try" in
5859 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5860 *) ac_try_echo=$ac_try;;
5862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5863 (eval "$ac_try") 2>&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); }; } &&
5867 { ac_try='test -s conftest.$ac_objext'
5868 { (case "(($ac_try" in
5869 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5870 *) ac_try_echo
=$ac_try;;
5872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873 (eval "$ac_try") 2>&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; }; then
5879 echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.
$ac_ext >&5
5882 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5884 cat >conftest.
$ac_ext <<_ACEOF
5887 cat confdefs.h
>>conftest.
$ac_ext
5888 cat >>conftest.
$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5899 rm -f conftest.
$ac_objext
5900 if { (ac_try
="$ac_compile"
5902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906 (eval "$ac_compile") 2>conftest.er1
5908 grep -v '^ *+' conftest.er1 >conftest.err
5910 cat conftest.err >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } &&
5913 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5914 { (case "(($ac_try" in
5915 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5916 *) ac_try_echo
=$ac_try;;
5918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5919 (eval "$ac_try") 2>&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; } &&
5923 { ac_try
='test -s conftest.$ac_objext'
5924 { (case "(($ac_try" in
5925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5926 *) ac_try_echo=$ac_try;;
5928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5929 (eval "$ac_try") 2>&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; }; then
5933 ac_cv_prog_cxx_g=yes
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5948 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5950 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5951 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5952 if test "$ac_test_CXXFLAGS" = set; then
5953 CXXFLAGS=$ac_save_CXXFLAGS
5954 elif test $ac_cv_prog_cxx_g = yes; then
5955 if test "$GXX" = yes; then
5961 if test "$GXX" = yes; then
5968 ac_cpp='$CPP $CPPFLAGS'
5969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5973 { echo "$as_me:$LINENO: checking " >&5
5974 echo $ECHO_N "checking ... $ECHO_C" >&6; }
5975 if test "${ac_cv_has_flex+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 for ac_prog in flex lex
5980 # Extract the first word of "$ac_prog", so it can be a program name with args.
5981 set dummy $ac_prog; ac_word=$2
5982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5984 if test "${ac_cv_prog_LEX+set}" = set; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 if test -n "$LEX"; then
5988 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 test -z "$as_dir" && as_dir=.
5995 for ac_exec_ext in '' $ac_executable_extensions; do
5996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5997 ac_cv_prog_LEX="$ac_prog"
5998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 if test -n "$LEX"; then
6009 { echo "$as_me:$LINENO: result: $LEX" >&5
6010 echo "${ECHO_T}$LEX" >&6; }
6012 { echo "$as_me:$LINENO: result: no" >&5
6013 echo "${ECHO_T}no" >&6; }
6017 test -n "$LEX" && break
6019 test -n "$LEX" || LEX=":"
6021 if test -z "$LEXLIB"
6023 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6024 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6025 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 ac_check_lib_save_LIBS=$LIBS
6030 cat >conftest.$ac_ext <<_ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h. */
6037 /* Override any GCC internal prototype to avoid an error.
6038 Use char because int might match the return type of a GCC
6039 builtin and then its argument prototype would still apply. */
6052 rm -f conftest.$ac_objext conftest$ac_exeext
6053 if { (ac_try="$ac_link"
6055 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6056 *) ac_try_echo
=$ac_try;;
6058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6059 (eval "$ac_link") 2>conftest.er1
6061 grep -v '^ *+' conftest.er1
>conftest.err
6063 cat conftest.err
>&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6067 { (case "(($ac_try" in
6068 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072 (eval "$ac_try") 2>&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; } &&
6076 { ac_try='test -s conftest$ac_exeext'
6077 { (case "(($ac_try" in
6078 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6079 *) ac_try_echo
=$ac_try;;
6081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6082 (eval "$ac_try") 2>&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); }; }; then
6086 ac_cv_lib_fl_yywrap
=yes
6088 echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.
$ac_ext >&5
6091 ac_cv_lib_fl_yywrap
=no
6094 rm -f core conftest.err conftest.
$ac_objext \
6095 conftest
$ac_exeext conftest.
$ac_ext
6096 LIBS
=$ac_check_lib_save_LIBS
6098 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6099 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6100 if test $ac_cv_lib_fl_yywrap = yes; then
6103 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6104 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6105 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 ac_check_lib_save_LIBS
=$LIBS
6110 cat >conftest.
$ac_ext <<_ACEOF
6113 cat confdefs.h
>>conftest.
$ac_ext
6114 cat >>conftest.
$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6117 /* Override any GCC internal prototype to avoid an error.
6118 Use char because int might match the return type of a GCC
6119 builtin and then its argument prototype would still apply. */
6132 rm -f conftest.
$ac_objext conftest
$ac_exeext
6133 if { (ac_try
="$ac_link"
6135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6136 *) ac_try_echo=$ac_try;;
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139 (eval "$ac_link") 2>conftest.er1
6141 grep -v '^ *+' conftest.er1 >conftest.err
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } &&
6146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6147 { (case "(($ac_try" in
6148 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6149 *) ac_try_echo
=$ac_try;;
6151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6152 (eval "$ac_try") 2>&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; } &&
6156 { ac_try
='test -s conftest$ac_exeext'
6157 { (case "(($ac_try" in
6158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6159 *) ac_try_echo=$ac_try;;
6161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6162 (eval "$ac_try") 2>&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; }; then
6166 ac_cv_lib_l_yywrap=yes
6168 echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6171 ac_cv_lib_l_yywrap=no
6174 rm -f core conftest.err conftest.$ac_objext \
6175 conftest$ac_exeext conftest.$ac_ext
6176 LIBS=$ac_check_lib_save_LIBS
6178 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6179 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6180 if test $ac_cv_lib_l_yywrap = yes; then
6188 if test "x$LEX" != "x:"; then
6189 { echo "$as_me:$LINENO: checking lex output file root" >&5
6190 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6191 if test "${ac_cv_prog_lex_root+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 # The minimal lex program is just a single line: %%. But some broken lexes
6195 # (Solaris, I think it was) want two %% lines, so accommodate them.
6196 cat >conftest.l <<_ACEOF
6200 { (ac_try="$LEX conftest.l"
6202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6203 *) ac_try_echo
=$ac_try;;
6205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6206 (eval "$LEX conftest.l") 2>&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }
6210 if test -f lex.yy.c
; then
6211 ac_cv_prog_lex_root
=lex.yy
6212 elif test -f lexyy.c
; then
6213 ac_cv_prog_lex_root
=lexyy
6215 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6216 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6217 { (exit 1); exit 1; }; }
6220 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6221 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6223 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
6225 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6226 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6227 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 # POSIX says lex can declare yytext either as a pointer or an array; the
6231 # default is implementation-dependent. Figure out which it is, since
6232 # not all implementations provide the %pointer and %array declarations.
6233 ac_cv_prog_lex_yytext_pointer
=no
6234 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6236 LIBS
="$LIBS $LEXLIB"
6237 cat >conftest.
$ac_ext <<_ACEOF
6238 `cat $LEX_OUTPUT_ROOT.c`
6240 rm -f conftest.
$ac_objext conftest
$ac_exeext
6241 if { (ac_try
="$ac_link"
6243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6244 *) ac_try_echo=$ac_try;;
6246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6247 (eval "$ac_link") 2>conftest.er1
6249 grep -v '^ *+' conftest.er1 >conftest.err
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6255 { (case "(($ac_try" in
6256 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6257 *) ac_try_echo
=$ac_try;;
6259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6260 (eval "$ac_try") 2>&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; } &&
6264 { ac_try
='test -s conftest$ac_exeext'
6265 { (case "(($ac_try" in
6266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6267 *) ac_try_echo=$ac_try;;
6269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6270 (eval "$ac_try") 2>&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; }; then
6274 ac_cv_prog_lex_yytext_pointer=yes
6276 echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6282 rm -f core conftest.err conftest.$ac_objext \
6283 conftest$ac_exeext conftest.$ac_ext
6285 rm -f "${LEX_OUTPUT_ROOT}.c"
6288 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6289 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6290 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6292 cat >>confdefs.h <<\_ACEOF
6293 #define YYTEXT_POINTER 1
6301 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6302 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6303 if test "$LEX" != "flex"; then
6304 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6305 echo "$as_me: error: flex not found but required" >&2;}
6306 { (exit 1); exit 1; }; }
6312 { echo "$as_me:$LINENO: checking " >&5
6313 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6314 if test "${llvm_cv_has_bison+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 for ac_prog in 'bison -y' byacc
6319 # Extract the first word of "$ac_prog", so it can be a program name with args.
6320 set dummy $ac_prog; ac_word=$2
6321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6323 if test "${ac_cv_prog_YACC+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 if test -n "$YACC"; then
6327 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6336 ac_cv_prog_YACC="$ac_prog"
6337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 YACC=$ac_cv_prog_YACC
6347 if test -n "$YACC"; then
6348 { echo "$as_me:$LINENO: result: $YACC" >&5
6349 echo "${ECHO_T}$YACC" >&6; }
6351 { echo "$as_me:$LINENO: result: no" >&5
6352 echo "${ECHO_T}no" >&6; }
6356 test -n "$YACC" && break
6358 test -n "$YACC" || YACC="yacc"
6361 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6362 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6363 if test "$YACC" != "bison -y"; then
6364 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
6365 echo "$as_me: error: bison not found but required" >&2;}
6366 { (exit 1); exit 1; }; }
6372 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6373 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6374 if test "${lt_cv_path_NM+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6377 if test -n "$NM"; then
6378 # Let the user override the test.
6381 lt_nm_to_check="${ac_tool_prefix}nm"
6382 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6383 lt_nm_to_check="$lt_nm_to_check nm"
6385 for lt_tmp_nm in $lt_nm_to_check; do
6386 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6387 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6389 test -z "$ac_dir" && ac_dir=.
6390 tmp_nm="$ac_dir/$lt_tmp_nm"
6391 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6392 # Check to see if the nm accepts a BSD-compat flag.
6393 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
6394 # nm: unknown option "B" ignored
6395 # Tru64's nm complains that
/dev
/null is an invalid object
file
6396 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6397 */dev
/null
* |
*'Invalid file or object type'*)
6398 lt_cv_path_NM
="$tmp_nm -B"
6402 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6404 lt_cv_path_NM
="$tmp_nm -p"
6408 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6409 continue # so that we can try to find one that supports BSD flags
6418 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
6421 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6422 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6427 { echo "$as_me:$LINENO: checking for GNU make" >&5
6428 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6429 if test "${llvm_cv_gnu_make_command+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6432 llvm_cv_gnu_make_command
=''
6433 for a
in "$MAKE" make gmake gnumake
; do
6434 if test -z "$a" ; then continue ; fi ;
6435 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
)
6437 llvm_cv_gnu_make_command
=$a ;
6442 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6443 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6444 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6448 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6449 echo "${ECHO_T}\"Not found\"" >&6; };
6453 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6454 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6456 if test "$LN_S" = "ln -s"; then
6457 { echo "$as_me:$LINENO: result: yes" >&5
6458 echo "${ECHO_T}yes" >&6; }
6460 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6461 echo "${ECHO_T}no, using $LN_S" >&6; }
6464 # Extract the first word of "cmp", so it can be a program name with args.
6465 set dummy
cmp; ac_word
=$2
6466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6468 if test "${ac_cv_path_CMP+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6473 ac_cv_path_CMP
="$CMP" # Let the user override the test with a path.
6476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6480 test -z "$as_dir" && as_dir
=.
6481 for ac_exec_ext
in '' $ac_executable_extensions; do
6482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6483 ac_cv_path_CMP
="$as_dir/$ac_word$ac_exec_ext"
6484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6491 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP
="cmp"
6496 if test -n "$CMP"; then
6497 { echo "$as_me:$LINENO: result: $CMP" >&5
6498 echo "${ECHO_T}$CMP" >&6; }
6500 { echo "$as_me:$LINENO: result: no" >&5
6501 echo "${ECHO_T}no" >&6; }
6505 # Extract the first word of "cp", so it can be a program name with args.
6506 set dummy
cp; ac_word
=$2
6507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6509 if test "${ac_cv_path_CP+set}" = set; then
6510 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
6517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6521 test -z "$as_dir" && as_dir
=.
6522 for ac_exec_ext
in '' $ac_executable_extensions; do
6523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6524 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
6525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6532 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
6537 if test -n "$CP"; then
6538 { echo "$as_me:$LINENO: result: $CP" >&5
6539 echo "${ECHO_T}$CP" >&6; }
6541 { echo "$as_me:$LINENO: result: no" >&5
6542 echo "${ECHO_T}no" >&6; }
6546 # Extract the first word of "date", so it can be a program name with args.
6547 set dummy
date; ac_word
=$2
6548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6550 if test "${ac_cv_path_DATE+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6555 ac_cv_path_DATE
="$DATE" # Let the user override the test with a path.
6558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6562 test -z "$as_dir" && as_dir
=.
6563 for ac_exec_ext
in '' $ac_executable_extensions; do
6564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6565 ac_cv_path_DATE
="$as_dir/$ac_word$ac_exec_ext"
6566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE
="date"
6577 DATE
=$ac_cv_path_DATE
6578 if test -n "$DATE"; then
6579 { echo "$as_me:$LINENO: result: $DATE" >&5
6580 echo "${ECHO_T}$DATE" >&6; }
6582 { echo "$as_me:$LINENO: result: no" >&5
6583 echo "${ECHO_T}no" >&6; }
6587 # Extract the first word of "find", so it can be a program name with args.
6588 set dummy
find; ac_word
=$2
6589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6591 if test "${ac_cv_path_FIND+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6596 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6603 test -z "$as_dir" && as_dir
=.
6604 for ac_exec_ext
in '' $ac_executable_extensions; do
6605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6606 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
="find"
6618 FIND
=$ac_cv_path_FIND
6619 if test -n "$FIND"; then
6620 { echo "$as_me:$LINENO: result: $FIND" >&5
6621 echo "${ECHO_T}$FIND" >&6; }
6623 { echo "$as_me:$LINENO: result: no" >&5
6624 echo "${ECHO_T}no" >&6; }
6628 # Extract the first word of "grep", so it can be a program name with args.
6629 set dummy
grep; ac_word
=$2
6630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6632 if test "${ac_cv_path_GREP+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6644 test -z "$as_dir" && as_dir
=.
6645 for ac_exec_ext
in '' $ac_executable_extensions; do
6646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6647 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
="grep"
6659 GREP
=$ac_cv_path_GREP
6660 if test -n "$GREP"; then
6661 { echo "$as_me:$LINENO: result: $GREP" >&5
6662 echo "${ECHO_T}$GREP" >&6; }
6664 { echo "$as_me:$LINENO: result: no" >&5
6665 echo "${ECHO_T}no" >&6; }
6669 # Extract the first word of "mkdir", so it can be a program name with args.
6670 set dummy mkdir
; ac_word
=$2
6671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6673 if test "${ac_cv_path_MKDIR+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
6681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6685 test -z "$as_dir" && as_dir
=.
6686 for ac_exec_ext
in '' $ac_executable_extensions; do
6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6688 ac_cv_path_MKDIR
="$as_dir/$ac_word$ac_exec_ext"
6689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="mkdir"
6700 MKDIR
=$ac_cv_path_MKDIR
6701 if test -n "$MKDIR"; then
6702 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6703 echo "${ECHO_T}$MKDIR" >&6; }
6705 { echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6; }
6710 # Extract the first word of "mv", so it can be a program name with args.
6711 set dummy
mv; ac_word
=$2
6712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6714 if test "${ac_cv_path_MV+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6719 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
6722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6726 test -z "$as_dir" && as_dir
=.
6727 for ac_exec_ext
in '' $ac_executable_extensions; do
6728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6729 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
6730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
6742 if test -n "$MV"; then
6743 { echo "$as_me:$LINENO: result: $MV" >&5
6744 echo "${ECHO_T}$MV" >&6; }
6746 { echo "$as_me:$LINENO: result: no" >&5
6747 echo "${ECHO_T}no" >&6; }
6751 if test -n "$ac_tool_prefix"; then
6752 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6753 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6756 if test "${ac_cv_prog_RANLIB+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6759 if test -n "$RANLIB"; then
6760 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6766 test -z "$as_dir" && as_dir
=.
6767 for ac_exec_ext
in '' $ac_executable_extensions; do
6768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6769 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6779 RANLIB
=$ac_cv_prog_RANLIB
6780 if test -n "$RANLIB"; then
6781 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6782 echo "${ECHO_T}$RANLIB" >&6; }
6784 { echo "$as_me:$LINENO: result: no" >&5
6785 echo "${ECHO_T}no" >&6; }
6790 if test -z "$ac_cv_prog_RANLIB"; then
6791 ac_ct_RANLIB
=$RANLIB
6792 # Extract the first word of "ranlib", so it can be a program name with args.
6793 set dummy ranlib
; ac_word
=$2
6794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6796 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 if test -n "$ac_ct_RANLIB"; then
6800 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6802 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6806 test -z "$as_dir" && as_dir
=.
6807 for ac_exec_ext
in '' $ac_executable_extensions; do
6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6809 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6820 if test -n "$ac_ct_RANLIB"; then
6821 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6822 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6824 { echo "$as_me:$LINENO: result: no" >&5
6825 echo "${ECHO_T}no" >&6; }
6828 if test "x$ac_ct_RANLIB" = x
; then
6831 case $cross_compiling:$ac_tool_warned in
6833 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6834 whose name does not start with the host triplet. If you think this
6835 configuration is useful to you, please write to autoconf@gnu.org." >&5
6836 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6837 whose name does not start with the host triplet. If you think this
6838 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6839 ac_tool_warned
=yes ;;
6841 RANLIB
=$ac_ct_RANLIB
6844 RANLIB
="$ac_cv_prog_RANLIB"
6847 # Extract the first word of "rm", so it can be a program name with args.
6848 set dummy
rm; ac_word
=$2
6849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851 if test "${ac_cv_path_RM+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
6859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6863 test -z "$as_dir" && as_dir
=.
6864 for ac_exec_ext
in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
6867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
6879 if test -n "$RM"; then
6880 { echo "$as_me:$LINENO: result: $RM" >&5
6881 echo "${ECHO_T}$RM" >&6; }
6883 { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6888 # Extract the first word of "sed", so it can be a program name with args.
6889 set dummy
sed; ac_word
=$2
6890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892 if test "${ac_cv_path_SED+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6897 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
6900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6904 test -z "$as_dir" && as_dir
=.
6905 for ac_exec_ext
in '' $ac_executable_extensions; do
6906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6907 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
6908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
6920 if test -n "$SED"; then
6921 { echo "$as_me:$LINENO: result: $SED" >&5
6922 echo "${ECHO_T}$SED" >&6; }
6924 { echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6; }
6929 # Extract the first word of "tar", so it can be a program name with args.
6930 set dummy
tar; ac_word
=$2
6931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933 if test "${ac_cv_path_TAR+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
6941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6945 test -z "$as_dir" && as_dir
=.
6946 for ac_exec_ext
in '' $ac_executable_extensions; do
6947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6948 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
6949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR
="gtar"
6961 if test -n "$TAR"; then
6962 { echo "$as_me:$LINENO: result: $TAR" >&5
6963 echo "${ECHO_T}$TAR" >&6; }
6965 { echo "$as_me:$LINENO: result: no" >&5
6966 echo "${ECHO_T}no" >&6; }
6970 # Extract the first word of "pwd", so it can be a program name with args.
6971 set dummy
pwd; ac_word
=$2
6972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6974 if test "${ac_cv_path_BINPWD+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6979 ac_cv_path_BINPWD
="$BINPWD" # Let the user override the test with a path.
6982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6986 test -z "$as_dir" && as_dir
=.
6987 for ac_exec_ext
in '' $ac_executable_extensions; do
6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6989 ac_cv_path_BINPWD
="$as_dir/$ac_word$ac_exec_ext"
6990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD
="pwd"
7001 BINPWD
=$ac_cv_path_BINPWD
7002 if test -n "$BINPWD"; then
7003 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7004 echo "${ECHO_T}$BINPWD" >&6; }
7006 { echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6; }
7012 # Extract the first word of "Graphviz", so it can be a program name with args.
7013 set dummy Graphviz
; ac_word
=$2
7014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7016 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 ac_cv_path_GRAPHVIZ
="$GRAPHVIZ" # Let the user override the test with a path.
7024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7028 test -z "$as_dir" && as_dir
=.
7029 for ac_exec_ext
in '' $ac_executable_extensions; do
7030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7031 ac_cv_path_GRAPHVIZ
="$as_dir/$ac_word$ac_exec_ext"
7032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7039 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ
="echo Graphviz"
7043 GRAPHVIZ
=$ac_cv_path_GRAPHVIZ
7044 if test -n "$GRAPHVIZ"; then
7045 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7046 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7048 { echo "$as_me:$LINENO: result: no" >&5
7049 echo "${ECHO_T}no" >&6; }
7053 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7055 cat >>confdefs.h
<<\_ACEOF
7056 #define HAVE_GRAPHVIZ 1
7059 if test "$llvm_cv_os_type" == "MingW" ; then
7060 GRAPHVIZ
=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7063 cat >>confdefs.h
<<_ACEOF
7064 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7068 # Extract the first word of "dot", so it can be a program name with args.
7069 set dummy dot
; ac_word
=$2
7070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7072 if test "${ac_cv_path_DOT+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7077 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7080 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7084 test -z "$as_dir" && as_dir
=.
7085 for ac_exec_ext
in '' $ac_executable_extensions; do
7086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7087 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
="echo dot"
7100 if test -n "$DOT"; then
7101 { echo "$as_me:$LINENO: result: $DOT" >&5
7102 echo "${ECHO_T}$DOT" >&6; }
7104 { echo "$as_me:$LINENO: result: no" >&5
7105 echo "${ECHO_T}no" >&6; }
7109 if test "$DOT" != "echo dot" ; then
7111 cat >>confdefs.h
<<\_ACEOF
7115 if test "$llvm_cv_os_type" == "MingW" ; then
7116 DOT
=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7119 cat >>confdefs.h
<<_ACEOF
7120 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7124 for ac_prog
in gv gsview32
7126 # Extract the first word of "$ac_prog", so it can be a program name with args.
7127 set dummy
$ac_prog; ac_word
=$2
7128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7130 if test "${ac_cv_path_GV+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 ac_cv_path_GV
="$GV" # Let the user override the test with a path.
7138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7142 test -z "$as_dir" && as_dir
=.
7143 for ac_exec_ext
in '' $ac_executable_extensions; do
7144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7145 ac_cv_path_GV
="$as_dir/$ac_word$ac_exec_ext"
7146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 if test -n "$GV"; then
7158 { echo "$as_me:$LINENO: result: $GV" >&5
7159 echo "${ECHO_T}$GV" >&6; }
7161 { echo "$as_me:$LINENO: result: no" >&5
7162 echo "${ECHO_T}no" >&6; }
7166 test -n "$GV" && break
7168 test -n "$GV" || GV
="echo gv"
7170 if test "$GV" != "echo gv" ; then
7172 cat >>confdefs.h
<<\_ACEOF
7176 if test "$llvm_cv_os_type" == "MingW" ; then
7177 GV
=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7180 cat >>confdefs.h
<<_ACEOF
7181 #define LLVM_PATH_GV "$GV${EXEEXT}"
7185 # Extract the first word of "dotty", so it can be a program name with args.
7186 set dummy dotty
; ac_word
=$2
7187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7189 if test "${ac_cv_path_DOTTY+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 ac_cv_path_DOTTY
="$DOTTY" # Let the user override the test with a path.
7197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7201 test -z "$as_dir" && as_dir
=.
7202 for ac_exec_ext
in '' $ac_executable_extensions; do
7203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7204 ac_cv_path_DOTTY
="$as_dir/$ac_word$ac_exec_ext"
7205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7212 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY
="echo dotty"
7216 DOTTY
=$ac_cv_path_DOTTY
7217 if test -n "$DOTTY"; then
7218 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7219 echo "${ECHO_T}$DOTTY" >&6; }
7221 { echo "$as_me:$LINENO: result: no" >&5
7222 echo "${ECHO_T}no" >&6; }
7226 if test "$DOTTY" != "echo dotty" ; then
7228 cat >>confdefs.h
<<\_ACEOF
7229 #define HAVE_DOTTY 1
7232 if test "$llvm_cv_os_type" == "MingW" ; then
7233 DOTTY
=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7236 cat >>confdefs.h
<<_ACEOF
7237 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7243 # Extract the first word of "perl", so it can be a program name with args.
7244 set dummy perl
; ac_word
=$2
7245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7247 if test "${ac_cv_path_PERL+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
7255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7259 test -z "$as_dir" && as_dir
=.
7260 for ac_exec_ext
in '' $ac_executable_extensions; do
7261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7262 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
7263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="none"
7274 PERL
=$ac_cv_path_PERL
7275 if test -n "$PERL"; then
7276 { echo "$as_me:$LINENO: result: $PERL" >&5
7277 echo "${ECHO_T}$PERL" >&6; }
7279 { echo "$as_me:$LINENO: result: no" >&5
7280 echo "${ECHO_T}no" >&6; }
7284 if test "$PERL" != "none"; then
7285 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7286 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7287 if $PERL -e 'use 5.006;' 2>&1 > /dev
/null
; then
7288 { echo "$as_me:$LINENO: result: yes" >&5
7289 echo "${ECHO_T}yes" >&6; }
7292 { echo "$as_me:$LINENO: result: not found" >&5
7293 echo "${ECHO_T}not found" >&6; }
7298 if test x
"$PERL" = xnone
; then
7306 # Find a good install program. We prefer a C program (faster),
7307 # so one script is as good as another. But avoid the broken or
7308 # incompatible versions:
7309 # SysV /etc/install, /usr/sbin/install
7310 # SunOS /usr/etc/install
7311 # IRIX /sbin/install
7313 # AmigaOS /C/install, which installs bootblocks on floppy discs
7314 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7315 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7316 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7317 # OS/2's system install, which has a completely different semantic
7318 # ./install, which can be erroneously created by make from ./install.sh.
7319 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7320 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7321 if test -z "$INSTALL"; then
7322 if test "${ac_cv_path_install+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7329 test -z "$as_dir" && as_dir
=.
7330 # Account for people who put trailing slashes in PATH elements.
7332 .
/ | .
// |
/cC
/* | \
7333 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7334 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
7337 # OSF1 and SCO ODT 3.0 have their own names for install.
7338 # Don't use installbsd from OSF since it installs stuff as root
7340 for ac_prog
in ginstall scoinst
install; do
7341 for ac_exec_ext
in '' $ac_executable_extensions; do
7342 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7343 if test $ac_prog = install &&
7344 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7345 # AIX install. It has an incompatible calling convention.
7347 elif test $ac_prog = install &&
7348 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7349 # program-specific install script used by HP pwplus--don't use.
7352 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7365 if test "${ac_cv_path_install+set}" = set; then
7366 INSTALL
=$ac_cv_path_install
7368 # As a last resort, use the slow shell script. Don't cache a
7369 # value for INSTALL within a source directory, because that will
7370 # break other packages using the cache if that directory is
7371 # removed, or if the value is a relative name.
7372 INSTALL
=$ac_install_sh
7375 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7376 echo "${ECHO_T}$INSTALL" >&6; }
7378 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7379 # It thinks the first close brace ends the variable substitution.
7380 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7382 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7384 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7387 # Extract the first word of "bzip2", so it can be a program name with args.
7388 set dummy
bzip2; ac_word
=$2
7389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7391 if test "${ac_cv_path_BZIP2+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
7399 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7403 test -z "$as_dir" && as_dir
=.
7404 for ac_exec_ext
in '' $ac_executable_extensions; do
7405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7406 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
7407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2
="echo "Skipped
: bzip2 not found
""
7418 BZIP2
=$ac_cv_path_BZIP2
7419 if test -n "$BZIP2"; then
7420 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7421 echo "${ECHO_T}$BZIP2" >&6; }
7423 { echo "$as_me:$LINENO: result: no" >&5
7424 echo "${ECHO_T}no" >&6; }
7428 # Extract the first word of "doxygen", so it can be a program name with args.
7429 set dummy doxygen
; ac_word
=$2
7430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7432 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
7440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7444 test -z "$as_dir" && as_dir
=.
7445 for ac_exec_ext
in '' $ac_executable_extensions; do
7446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7447 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
7448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7455 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN
="echo "Skipped
: doxygen not found
""
7459 DOXYGEN
=$ac_cv_path_DOXYGEN
7460 if test -n "$DOXYGEN"; then
7461 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7462 echo "${ECHO_T}$DOXYGEN" >&6; }
7464 { echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6; }
7469 # Extract the first word of "etags", so it can be a program name with args.
7470 set dummy etags
; ac_word
=$2
7471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7473 if test "${ac_cv_path_ETAGS+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 ac_cv_path_ETAGS
="$ETAGS" # Let the user override the test with a path.
7481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7485 test -z "$as_dir" && as_dir
=.
7486 for ac_exec_ext
in '' $ac_executable_extensions; do
7487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7488 ac_cv_path_ETAGS
="$as_dir/$ac_word$ac_exec_ext"
7489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7496 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS
="echo "Skipped
: etags not found
""
7500 ETAGS
=$ac_cv_path_ETAGS
7501 if test -n "$ETAGS"; then
7502 { echo "$as_me:$LINENO: result: $ETAGS" >&5
7503 echo "${ECHO_T}$ETAGS" >&6; }
7505 { echo "$as_me:$LINENO: result: no" >&5
7506 echo "${ECHO_T}no" >&6; }
7510 # Extract the first word of "groff", so it can be a program name with args.
7511 set dummy
groff; ac_word
=$2
7512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7514 if test "${ac_cv_path_GROFF+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 ac_cv_path_GROFF
="$GROFF" # Let the user override the test with a path.
7522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7526 test -z "$as_dir" && as_dir
=.
7527 for ac_exec_ext
in '' $ac_executable_extensions; do
7528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7529 ac_cv_path_GROFF
="$as_dir/$ac_word$ac_exec_ext"
7530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7537 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF
="echo "Skipped
: groff not found
""
7541 GROFF
=$ac_cv_path_GROFF
7542 if test -n "$GROFF"; then
7543 { echo "$as_me:$LINENO: result: $GROFF" >&5
7544 echo "${ECHO_T}$GROFF" >&6; }
7546 { echo "$as_me:$LINENO: result: no" >&5
7547 echo "${ECHO_T}no" >&6; }
7551 # Extract the first word of "gzip", so it can be a program name with args.
7552 set dummy
gzip; ac_word
=$2
7553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7555 if test "${ac_cv_path_GZIP+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 ac_cv_path_GZIP
="$GZIP" # Let the user override the test with a path.
7563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7567 test -z "$as_dir" && as_dir
=.
7568 for ac_exec_ext
in '' $ac_executable_extensions; do
7569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7570 ac_cv_path_GZIP
="$as_dir/$ac_word$ac_exec_ext"
7571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7578 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP
="echo "Skipped
: gzip not found
""
7582 GZIP
=$ac_cv_path_GZIP
7583 if test -n "$GZIP"; then
7584 { echo "$as_me:$LINENO: result: $GZIP" >&5
7585 echo "${ECHO_T}$GZIP" >&6; }
7587 { echo "$as_me:$LINENO: result: no" >&5
7588 echo "${ECHO_T}no" >&6; }
7592 # Extract the first word of "pod2html", so it can be a program name with args.
7593 set dummy pod2html
; ac_word
=$2
7594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7596 if test "${ac_cv_path_POD2HTML+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 ac_cv_path_POD2HTML
="$POD2HTML" # Let the user override the test with a path.
7604 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7608 test -z "$as_dir" && as_dir
=.
7609 for ac_exec_ext
in '' $ac_executable_extensions; do
7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7611 ac_cv_path_POD2HTML
="$as_dir/$ac_word$ac_exec_ext"
7612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML
="echo "Skipped
: pod2html not found
""
7623 POD2HTML
=$ac_cv_path_POD2HTML
7624 if test -n "$POD2HTML"; then
7625 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7626 echo "${ECHO_T}$POD2HTML" >&6; }
7628 { echo "$as_me:$LINENO: result: no" >&5
7629 echo "${ECHO_T}no" >&6; }
7633 # Extract the first word of "pod2man", so it can be a program name with args.
7634 set dummy pod2man
; ac_word
=$2
7635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7637 if test "${ac_cv_path_POD2MAN+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
7645 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7649 test -z "$as_dir" && as_dir
=.
7650 for ac_exec_ext
in '' $ac_executable_extensions; do
7651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7652 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
7653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN
="echo "Skipped
: pod2man not found
""
7664 POD2MAN
=$ac_cv_path_POD2MAN
7665 if test -n "$POD2MAN"; then
7666 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7667 echo "${ECHO_T}$POD2MAN" >&6; }
7669 { echo "$as_me:$LINENO: result: no" >&5
7670 echo "${ECHO_T}no" >&6; }
7674 # Extract the first word of "runtest", so it can be a program name with args.
7675 set dummy runtest
; ac_word
=$2
7676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7678 if test "${ac_cv_path_RUNTEST+set}" = set; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 ac_cv_path_RUNTEST
="$RUNTEST" # Let the user override the test with a path.
7686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7690 test -z "$as_dir" && as_dir
=.
7691 for ac_exec_ext
in '' $ac_executable_extensions; do
7692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7693 ac_cv_path_RUNTEST
="$as_dir/$ac_word$ac_exec_ext"
7694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7701 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST
="echo "Skipped
: runtest not found
""
7705 RUNTEST
=$ac_cv_path_RUNTEST
7706 if test -n "$RUNTEST"; then
7707 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7708 echo "${ECHO_T}$RUNTEST" >&6; }
7710 { echo "$as_me:$LINENO: result: no" >&5
7711 echo "${ECHO_T}no" >&6; }
7717 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7718 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7720 # Check whether --with-tclinclude was given.
7721 if test "${with_tclinclude+set}" = set; then
7722 withval
=$with_tclinclude; with_tclinclude
=${withval}
7727 if test "${ac_cv_path_tclsh+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7731 if test x
"${with_tclinclude}" != x
; then
7732 if test -f ${with_tclinclude}/tclsh
; then
7733 ac_cv_path_tclsh
=`(cd ${with_tclinclude}; pwd)`
7734 elif test -f ${with_tclinclude}/src
/tclsh
; then
7735 ac_cv_path_tclsh
=`(cd ${with_tclinclude}/src; pwd)`
7737 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7738 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7739 { (exit 1); exit 1; }; }
7743 if test x
"${ac_cv_path_tclsh}" = x
; then
7744 { echo "$as_me:$LINENO: result: none" >&5
7745 echo "${ECHO_T}none" >&6; }
7746 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
7748 # Extract the first word of "$ac_prog", so it can be a program name with args.
7749 set dummy
$ac_prog; ac_word
=$2
7750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7752 if test "${ac_cv_path_TCLSH+set}" = set; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7757 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
7760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7764 test -z "$as_dir" && as_dir
=.
7765 for ac_exec_ext
in '' $ac_executable_extensions; do
7766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7767 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
7768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7778 TCLSH
=$ac_cv_path_TCLSH
7779 if test -n "$TCLSH"; then
7780 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7781 echo "${ECHO_T}$TCLSH" >&6; }
7783 { echo "$as_me:$LINENO: result: no" >&5
7784 echo "${ECHO_T}no" >&6; }
7788 test -n "$TCLSH" && break
7791 if test x
"${TCLSH}" = x
; then
7792 ac_cv_path_tclsh
='';
7794 ac_cv_path_tclsh
="${TCLSH}";
7797 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7798 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7799 TCLSH="${ac_cv_path_tclsh}"
7805 # Extract the first word of "zip", so it can be a program name with args.
7806 set dummy zip; ac_word=$2
7807 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
7808 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
7809 if test "${ac_cv_path_ZIP+set}" = set; then
7810 echo $ECHO_N "(cached
) $ECHO_C" >&6
7814 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 test -z "$as_dir" && as_dir=.
7822 for ac_exec_ext in '' $ac_executable_extensions; do
7823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7824 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7825 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7832 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7837 if test -n "$ZIP"; then
7838 { echo "$as_me:$LINENO: result
: $ZIP" >&5
7839 echo "${ECHO_T}$ZIP" >&6; }
7841 { echo "$as_me:$LINENO: result
: no
" >&5
7842 echo "${ECHO_T}no
" >&6; }
7847 { echo "$as_me:$LINENO: checking
for compiler
-Wl,-R<path
> option
" >&5
7848 echo $ECHO_N "checking
for compiler
-Wl,-R<path
> option...
$ECHO_C" >&6; }
7849 if test "${llvm_cv_link_use_r+set}" = set; then
7850 echo $ECHO_N "(cached
) $ECHO_C" >&6
7853 ac_cpp='$CPP $CPPFLAGS'
7854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7859 CFLAGS="$CFLAGS -Wl,-R.
"
7860 cat >conftest.$ac_ext <<_ACEOF
7863 cat confdefs.h >>conftest.$ac_ext
7864 cat >>conftest.$ac_ext <<_ACEOF
7865 /* end confdefs.h. */
7870 int main() { return 0; }
7875 rm -f conftest.$ac_objext conftest$ac_exeext
7876 if { (ac_try="$ac_link"
7878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7881 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_link") 2>conftest.er1
7884 grep -v '^ *+' conftest.er1 >conftest.err
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7888 (exit $ac_status); } &&
7889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7890 { (case "(($ac_try" in
7891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7892 *) ac_try_echo=$ac_try;;
7894 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7895 (eval "$ac_try") 2>&5
7897 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7898 (exit $ac_status); }; } &&
7899 { ac_try='test -s conftest$ac_exeext'
7900 { (case "(($ac_try" in
7901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7902 *) ac_try_echo=$ac_try;;
7904 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7905 (eval "$ac_try") 2>&5
7907 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7908 (exit $ac_status); }; }; then
7909 llvm_cv_link_use_r=yes
7911 echo "$as_me: failed program was
:" >&5
7912 sed 's/^/| /' conftest.$ac_ext >&5
7914 llvm_cv_link_use_r=no
7917 rm -f core conftest.err conftest.$ac_objext \
7918 conftest$ac_exeext conftest.$ac_ext
7921 ac_cpp='$CPP $CPPFLAGS'
7922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7928 { echo "$as_me:$LINENO: result
: $llvm_cv_link_use_r" >&5
7929 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7930 if test "$llvm_cv_link_use_r" = yes ; then
7932 cat >>confdefs.h <<\_ACEOF
7933 #define HAVE_LINK_R 1
7941 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
7942 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
7943 if test "${ac_cv_c_const+set}" = set; then
7944 echo $ECHO_N "(cached
) $ECHO_C" >&6
7946 cat >conftest.$ac_ext <<_ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h. */
7956 /* FIXME: Include the comments suggested by Paul. */
7958 /* Ultrix mips cc rejects this. */
7959 typedef int charset[2];
7961 /* SunOS 4.1.1 cc rejects this. */
7962 char const *const *ccp;
7964 /* NEC SVR4.0.2 mips cc rejects this. */
7965 struct point {int x, y;};
7966 static struct point const zero = {0,0};
7967 /* AIX XL C 1.02.0.0 rejects this.
7968 It does not let you subtract one const X* pointer from another in
7969 an arm of an if-expression whose if-part is not a constant
7971 const char *g = "string
";
7972 ccp = &g + (g ? g-g : 0);
7973 /* HPUX 7.0 cc rejects these. */
7976 ccp = (char const *const *) p;
7977 { /* SCO 3.2v4 cc rejects this. */
7979 char const *s = 0 ? (char *) 0 : (char const *) 0;
7984 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7986 const int *foo = &x[0];
7989 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7990 typedef const int *iptr;
7994 { /* AIX XL C 1.02.0.0 rejects this saying
7995 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7996 struct s { int j; const int *ap[3]; };
7997 struct s *b; b->j = 5;
7999 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8003 return !x[0] && !zero.x;
8010 rm -f conftest.$ac_objext
8011 if { (ac_try="$ac_compile"
8013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014 *) ac_try_echo=$ac_try;;
8016 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8017 (eval "$ac_compile") 2>conftest.er1
8019 grep -v '^ *+' conftest.er1 >conftest.err
8021 cat conftest.err >&5
8022 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8023 (exit $ac_status); } &&
8024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8025 { (case "(($ac_try" in
8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027 *) ac_try_echo=$ac_try;;
8029 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8030 (eval "$ac_try") 2>&5
8032 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8033 (exit $ac_status); }; } &&
8034 { ac_try='test -s conftest.$ac_objext'
8035 { (case "(($ac_try" in
8036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037 *) ac_try_echo=$ac_try;;
8039 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8040 (eval "$ac_try") 2>&5
8042 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8043 (exit $ac_status); }; }; then
8046 echo "$as_me: failed program was
:" >&5
8047 sed 's/^/| /' conftest.$ac_ext >&5
8052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
8055 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8056 if test $ac_cv_c_const = no; then
8058 cat >>confdefs.h <<\_ACEOF
8070 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8071 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
8072 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
8073 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
8074 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8075 echo $ECHO_N "(cached
) $ECHO_C" >&6
8077 cat >conftest.$ac_ext <<_ACEOF
8080 cat confdefs.h >>conftest.$ac_ext
8081 cat >>conftest.$ac_ext <<_ACEOF
8082 /* end confdefs.h. */
8083 #include <sys/types.h>
8095 rm -f conftest.$ac_objext
8096 if { (ac_try="$ac_compile"
8098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8099 *) ac_try_echo=$ac_try;;
8101 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8102 (eval "$ac_compile") 2>conftest.er1
8104 grep -v '^ *+' conftest.er1 >conftest.err
8106 cat conftest.err >&5
8107 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8108 (exit $ac_status); } &&
8109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8110 { (case "(($ac_try" in
8111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8112 *) ac_try_echo=$ac_try;;
8114 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8115 (eval "$ac_try") 2>&5
8117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8118 (exit $ac_status); }; } &&
8119 { ac_try='test -s conftest.$ac_objext'
8120 { (case "(($ac_try" in
8121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8122 *) ac_try_echo=$ac_try;;
8124 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8125 (eval "$ac_try") 2>&5
8127 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8128 (exit $ac_status); }; }; then
8129 eval "$as_ac_Header=yes"
8131 echo "$as_me: failed program was
:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8134 eval "$as_ac_Header=no
"
8137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8139 ac_res=`eval echo '${'$as_ac_Header'}'`
8140 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8141 echo "${ECHO_T}$ac_res" >&6; }
8142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8143 cat >>confdefs.h <<_ACEOF
8144 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
8147 ac_header_dirent=$ac_hdr; break
8151 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8152 if test $ac_header_dirent = dirent.h; then
8153 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
8154 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
8155 if test "${ac_cv_search_opendir+set}" = set; then
8156 echo $ECHO_N "(cached
) $ECHO_C" >&6
8158 ac_func_search_save_LIBS=$LIBS
8159 cat >conftest.$ac_ext <<_ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8166 /* Override any GCC internal prototype to avoid an error.
8167 Use char because int might match the return type of a GCC
8168 builtin and then its argument prototype would still apply. */
8181 for ac_lib in '' dir; do
8182 if test -z "$ac_lib"; then
8183 ac_res="none required
"
8186 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8188 rm -f conftest.$ac_objext conftest$ac_exeext
8189 if { (ac_try="$ac_link"
8191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192 *) ac_try_echo=$ac_try;;
8194 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8195 (eval "$ac_link") 2>conftest.er1
8197 grep -v '^ *+' conftest.er1 >conftest.err
8199 cat conftest.err >&5
8200 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8201 (exit $ac_status); } &&
8202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8203 { (case "(($ac_try" in
8204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8205 *) ac_try_echo=$ac_try;;
8207 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8208 (eval "$ac_try") 2>&5
8210 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8211 (exit $ac_status); }; } &&
8212 { ac_try='test -s conftest$ac_exeext'
8213 { (case "(($ac_try" in
8214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215 *) ac_try_echo=$ac_try;;
8217 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8218 (eval "$ac_try") 2>&5
8220 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8221 (exit $ac_status); }; }; then
8222 ac_cv_search_opendir=$ac_res
8224 echo "$as_me: failed program was
:" >&5
8225 sed 's/^/| /' conftest.$ac_ext >&5
8230 rm -f core conftest.err conftest.$ac_objext \
8232 if test "${ac_cv_search_opendir+set}" = set; then
8236 if test "${ac_cv_search_opendir+set}" = set; then
8239 ac_cv_search_opendir=no
8242 LIBS=$ac_func_search_save_LIBS
8244 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
8245 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8246 ac_res=$ac_cv_search_opendir
8247 if test "$ac_res" != no; then
8248 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8253 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
8254 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
8255 if test "${ac_cv_search_opendir+set}" = set; then
8256 echo $ECHO_N "(cached
) $ECHO_C" >&6
8258 ac_func_search_save_LIBS=$LIBS
8259 cat >conftest.$ac_ext <<_ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8266 /* Override any GCC internal prototype to avoid an error.
8267 Use char because int might match the return type of a GCC
8268 builtin and then its argument prototype would still apply. */
8281 for ac_lib in '' x; do
8282 if test -z "$ac_lib"; then
8283 ac_res="none required
"
8286 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8288 rm -f conftest.$ac_objext conftest$ac_exeext
8289 if { (ac_try="$ac_link"
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8294 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_link") 2>conftest.er1
8297 grep -v '^ *+' conftest.er1 >conftest.err
8299 cat conftest.err >&5
8300 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8301 (exit $ac_status); } &&
8302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8303 { (case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8307 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_try") 2>&5
8310 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8311 (exit $ac_status); }; } &&
8312 { ac_try='test -s conftest$ac_exeext'
8313 { (case "(($ac_try" in
8314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315 *) ac_try_echo=$ac_try;;
8317 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8318 (eval "$ac_try") 2>&5
8320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8321 (exit $ac_status); }; }; then
8322 ac_cv_search_opendir=$ac_res
8324 echo "$as_me: failed program was
:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8330 rm -f core conftest.err conftest.$ac_objext \
8332 if test "${ac_cv_search_opendir+set}" = set; then
8336 if test "${ac_cv_search_opendir+set}" = set; then
8339 ac_cv_search_opendir=no
8342 LIBS=$ac_func_search_save_LIBS
8344 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
8345 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8346 ac_res=$ac_cv_search_opendir
8347 if test "$ac_res" != no; then
8348 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8355 for ac_header in dlfcn.h
8357 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
8358 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8359 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8360 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8361 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8362 echo $ECHO_N "(cached
) $ECHO_C" >&6
8364 ac_res=`eval echo '${'$as_ac_Header'}'`
8365 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8366 echo "${ECHO_T}$ac_res" >&6; }
8368 # Is the header compilable?
8369 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
8370 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
8371 cat >conftest.$ac_ext <<_ACEOF
8374 cat confdefs.h >>conftest.$ac_ext
8375 cat >>conftest.$ac_ext <<_ACEOF
8376 /* end confdefs.h. */
8377 $ac_includes_default
8378 #include <$ac_header>
8380 rm -f conftest.$ac_objext
8381 if { (ac_try="$ac_compile"
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8386 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8387 (eval "$ac_compile") 2>conftest.er1
8389 grep -v '^ *+' conftest.er1 >conftest.err
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8393 (exit $ac_status); } &&
8394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8395 { (case "(($ac_try" in
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8399 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_try") 2>&5
8402 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8403 (exit $ac_status); }; } &&
8404 { ac_try='test -s conftest.$ac_objext'
8405 { (case "(($ac_try" in
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8409 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_try") 2>&5
8412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8413 (exit $ac_status); }; }; then
8414 ac_header_compiler=yes
8416 echo "$as_me: failed program was
:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8419 ac_header_compiler=no
8422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
8424 echo "${ECHO_T}$ac_header_compiler" >&6; }
8426 # Is the header present?
8427 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
8428 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
8429 cat >conftest.$ac_ext <<_ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8435 #include <$ac_header>
8437 if { (ac_try="$ac_cpp conftest.
$ac_ext"
8439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440 *) ac_try_echo=$ac_try;;
8442 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8443 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
8445 grep -v '^ *+' conftest.er1 >conftest.err
8447 cat conftest.err >&5
8448 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8449 (exit $ac_status); } >/dev/null; then
8450 if test -s conftest.err; then
8451 ac_cpp_err=$ac_c_preproc_warn_flag
8452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8459 if test -z "$ac_cpp_err"; then
8460 ac_header_preproc=yes
8462 echo "$as_me: failed program was
:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8465 ac_header_preproc=no
8468 rm -f conftest.err conftest.$ac_ext
8469 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
8470 echo "${ECHO_T}$ac_header_preproc" >&6; }
8472 # So? What about this header?
8473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8475 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
8476 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
8477 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
8478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
8479 ac_header_preproc=yes
8482 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
8483 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
8484 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
8485 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
8486 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
8487 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
8488 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
8489 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
8490 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
8491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
8492 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
8493 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
8495 ## ----------------------------------- ##
8496 ## Report this to llvmbugs@cs.uiuc.edu ##
8497 ## ----------------------------------- ##
8499 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
8502 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8503 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8504 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8505 echo $ECHO_N "(cached
) $ECHO_C" >&6
8507 eval "$as_ac_Header=\
$ac_header_preproc"
8509 ac_res=`eval echo '${'$as_ac_Header'}'`
8510 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8511 echo "${ECHO_T}$ac_res" >&6; }
8514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8515 cat >>confdefs.h <<_ACEOF
8516 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
8523 # Check whether --enable-ltdl-install was given.
8524 if test "${enable_ltdl_install+set}" = set; then
8525 enableval=$enable_ltdl_install;
8531 if test x"${enable_ltdl_install-no}" != xno; then
8533 INSTALL_LTDL_FALSE='#'
8535 INSTALL_LTDL_TRUE='#'
8541 if test x"${enable_ltdl_convenience-no}" != xno; then
8542 CONVENIENCE_LTDL_TRUE=
8543 CONVENIENCE_LTDL_FALSE='#'
8545 CONVENIENCE_LTDL_TRUE='#'
8546 CONVENIENCE_LTDL_FALSE=
8550 { echo "$as_me:$LINENO: checking dynamic linker characteristics
" >&5
8551 echo $ECHO_N "checking dynamic linker characteristics...
$ECHO_C" >&6; }
8553 libname_spec='lib$name'
8561 shlibpath_overrides_runpath=unknown
8563 dynamic_linker="$host_os ld.so
"
8564 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
"
8565 if test "$GCC" = yes; then
8566 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
8567 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8568 # if the path contains ";" then we assume it to be the separator
8569 # otherwise default to the standard path separator (i.e. ":") - it is
8570 # assumed that no part of a normal pathname contains ";" but that should
8571 # okay in the real world where ";" in dirpaths is itself problematic.
8572 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8574 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
8577 sys_lib_search_path_spec="/lib
/usr
/lib
/usr
/local
/lib
"
8579 need_lib_prefix=unknown
8580 hardcode_into_libs=no
8582 # when you set need_version to no, make sure it does not cause -set_version
8583 # flags to be left without arguments
8584 need_version=unknown
8589 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8590 shlibpath_var=LIBPATH
8592 # AIX 3 has no versioning support, so we append a major version to the name.
8593 soname_spec='${libname}${release}${shared_ext}$major'
8600 hardcode_into_libs=yes
8601 if test "$host_cpu" = ia64; then
8602 # AIX 5 supports IA64
8603 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8604 shlibpath_var=LD_LIBRARY_PATH
8606 # With GCC up to 2.95.x, collect2 would create an import file
8607 # for dependence libraries. The import file would start with
8608 # the line `#! .'. This would cause the generated library to
8609 # depend on `.', always an invalid library. This was fixed in
8610 # development snapshots of GCC prior to 3.0.
8612 aix4 | aix4.[01] | aix4.[01].*)
8613 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8615 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8622 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8623 # soname into executable. Probably we can add versioning support to
8624 # collect2, so additional links can be useful in future.
8625 if test "$aix_use_runtimelinking" = yes; then
8626 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8627 # instead of lib<name>.a to let people know that these are not
8628 # typical AIX shared libraries.
8629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8631 # We preserve .a as extension for shared libraries through AIX4.2
8632 # and later when we are not doing run time linking.
8633 library_names_spec='${libname}${release}.a $libname.a'
8634 soname_spec='${libname}${release}${shared_ext}$major'
8636 shlibpath_var=LIBPATH
8641 library_names_spec='$libname.ixlibrary $libname.a'
8642 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8643 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'
8647 library_names_spec='${libname}${shared_ext}'
8648 dynamic_linker="$host_os ld.so
"
8649 shlibpath_var=LIBRARY_PATH
8655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8656 soname_spec='${libname}${release}${shared_ext}$major'
8657 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig $libdir'
8658 shlibpath_var=LD_LIBRARY_PATH
8659 sys_lib_search_path_spec="/shlib
/usr
/lib
/usr
/X11
/lib
/usr
/contrib
/lib
/lib
/usr
/local
/lib
"
8660 sys_lib_dlsearch_path_spec="/shlib
/usr
/lib
/usr
/local
/lib
"
8661 # the default ld.so.conf also contains /usr/contrib/lib and
8662 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8663 # libtool to hard-code these into programs
8666 cygwin* | mingw* | pw32*)
8667 version_type=windows
8672 case $GCC,$host_os in
8673 yes,cygwin* | yes,mingw* | yes,pw32*)
8674 library_names_spec='$libname.dll.a'
8675 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8676 postinstall_cmds='base_file=`basename \${file}`~
8677 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8678 dldir=$destdir/`dirname \$dlpath`~
8679 test -d \$dldir || mkdir -p \$dldir~
8680 $install_prog $dir/$dlname \$dldir/$dlname~
8681 chmod a+x \$dldir/$dlname'
8682 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8683 dlpath=$dir/\$dldll~
8685 shlibpath_overrides_runpath=yes
8689 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8690 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8691 sys_lib_search_path_spec="/usr
/lib
/lib
/w32api
/lib
/usr
/local
/lib
"
8694 # MinGW DLLs use traditional 'lib' prefix
8695 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8696 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
8697 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8698 # It is most probably a Windows format PATH printed by
8699 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8700 # path with ; separators, and with drive letters. We can handle the
8701 # drive letters (cygwin fileutils understands them), so leave them,
8702 # especially as we might pass files found there to a mingw objdump,
8703 # which wouldn't understand a cygwinified path. Ahh.
8704 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8706 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
8710 # pw32 DLLs use 'pw' prefix rather than 'lib'
8711 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8717 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8720 dynamic_linker='Win32 ld.exe'
8721 # FIXME: first we should search . and the directory the executable is in
8725 darwin* | rhapsody*)
8726 dynamic_linker="$host_os dyld
"
8730 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8731 soname_spec='${libname}${release}${major}$shared_ext'
8732 shlibpath_overrides_runpath=yes
8733 shlibpath_var=DYLD_LIBRARY_PATH
8734 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8735 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8736 if test "$GCC" = yes; then
8737 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
"`
8739 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8741 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8749 soname_spec='${libname}${release}${shared_ext}$major'
8750 shlibpath_var=LD_LIBRARY_PATH
8761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8762 soname_spec='${libname}${release}${shared_ext}$major'
8763 shlibpath_var=LD_LIBRARY_PATH
8764 shlibpath_overrides_runpath=no
8765 hardcode_into_libs=yes
8766 dynamic_linker='GNU ld.so'
8769 freebsd* | dragonfly*)
8770 # DragonFly does not have aout. When/if they implement a new
8771 # versioning mechanism, adjust this.
8772 if test -x /usr/bin/objformat; then
8773 objformat=`/usr/bin/objformat`
8776 freebsd[123]*) objformat=aout ;;
8780 version_type=freebsd-$objformat
8781 case $version_type in
8783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8788 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8792 shlibpath_var=LD_LIBRARY_PATH
8795 shlibpath_overrides_runpath=yes
8797 freebsd3.[01]* | freebsdelf3.[01]*)
8798 shlibpath_overrides_runpath=yes
8799 hardcode_into_libs=yes
8801 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8802 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8803 shlibpath_overrides_runpath=no
8804 hardcode_into_libs=yes
8806 freebsd*) # from 4.6 on
8807 shlibpath_overrides_runpath=yes
8808 hardcode_into_libs=yes
8817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8818 soname_spec='${libname}${release}${shared_ext}$major'
8819 shlibpath_var=LD_LIBRARY_PATH
8820 hardcode_into_libs=yes
8823 hpux9* | hpux10* | hpux11*)
8824 # Give a soname corresponding to the major version so that dld.sl refuses to
8825 # link against other versions.
8832 hardcode_into_libs=yes
8833 dynamic_linker="$host_os dld.so
"
8834 shlibpath_var=LD_LIBRARY_PATH
8835 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8837 soname_spec='${libname}${release}${shared_ext}$major'
8838 if test "X
$HPUX_IA64_MODE" = X32; then
8839 sys_lib_search_path_spec="/usr
/lib
/hpux32
/usr
/local
/lib
/hpux32
/usr
/local
/lib
"
8841 sys_lib_search_path_spec="/usr
/lib
/hpux64
/usr
/local
/lib
/hpux64
"
8843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8847 hardcode_into_libs=yes
8848 dynamic_linker="$host_os dld.sl
"
8849 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8850 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8852 soname_spec='${libname}${release}${shared_ext}$major'
8853 sys_lib_search_path_spec="/usr
/lib
/pa20_64
/usr
/ccs
/lib
/pa20_64
"
8854 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8858 dynamic_linker="$host_os dld.sl
"
8859 shlibpath_var=SHLIB_PATH
8860 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8862 soname_spec='${libname}${release}${shared_ext}$major'
8865 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8866 postinstall_cmds='chmod 555 $lib'
8873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8874 soname_spec='${libname}${release}${shared_ext}$major'
8875 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8876 shlibpath_var=LD_LIBRARY_PATH
8877 shlibpath_overrides_runpath=no
8878 hardcode_into_libs=yes
8881 irix5* | irix6* | nonstopux*)
8883 nonstopux*) version_type=nonstopux ;;
8885 if test "$lt_cv_prog_gnu_ld" = yes; then
8893 soname_spec='${libname}${release}${shared_ext}$major'
8894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8896 irix5* | nonstopux*)
8900 case $LD in # libtool.m4 will add one of these switches to LD
8901 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8902 libsuff= shlibsuff= libmagic=32-bit;;
8903 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8904 libsuff=32 shlibsuff=N32 libmagic=N32;;
8905 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8906 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8907 *) libsuff= shlibsuff= libmagic=never-match;;
8911 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8912 shlibpath_overrides_runpath=no
8913 sys_lib_search_path_spec="/usr
/lib
${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8914 sys_lib_dlsearch_path_spec="/usr
/lib
${libsuff} /lib
${libsuff}"
8915 hardcode_into_libs=yes
8918 # No shared lib support for Linux oldld, aout, or coff.
8919 linux*oldld* | linux*aout* | linux*coff*)
8923 # This must be Linux ELF.
8928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8929 soname_spec='${libname}${release}${shared_ext}$major'
8930 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -n $libdir'
8931 shlibpath_var=LD_LIBRARY_PATH
8932 shlibpath_overrides_runpath=no
8933 # This implies no fast_install, which is unacceptable.
8934 # Some rework will be needed to allow for fast_install
8935 # before this can be enabled.
8936 hardcode_into_libs=yes
8938 # Append ld.so.conf contents to the search path
8939 if test -f /etc/ld.so.conf; then
8940 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' ' '`
8941 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
$lt_ld_extra"
8944 # We used to test for /lib/ld.so.1 and disable shared libraries on
8945 # powerpc, because MkLinux only supported shared libraries with the
8946 # GNU dynamic linker. Since this was broken with cross compilers,
8947 # most powerpc-linux boxes support dynamic linking these days and
8948 # people can always --disable-shared, the test was removed, and we
8949 # assume the GNU/Linux dynamic linker is in use.
8950 dynamic_linker='GNU/Linux ld.so'
8957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8958 soname_spec='${libname}${release}${shared_ext}$major'
8959 shlibpath_var=LD_LIBRARY_PATH
8960 shlibpath_overrides_runpath=no
8961 hardcode_into_libs=yes
8962 dynamic_linker='GNU ld.so'
8969 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8971 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
8972 dynamic_linker='NetBSD (a.out) ld.so'
8974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8975 soname_spec='${libname}${release}${shared_ext}$major'
8976 dynamic_linker='NetBSD ld.elf_so'
8978 shlibpath_var=LD_LIBRARY_PATH
8979 shlibpath_overrides_runpath=yes
8980 hardcode_into_libs=yes
8985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8986 shlibpath_var=LD_LIBRARY_PATH
8987 shlibpath_overrides_runpath=yes
8994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8995 soname_spec='${libname}${release}${shared_ext}$major'
8996 shlibpath_var=LD_LIBRARY_PATH
8997 shlibpath_overrides_runpath=yes
9002 sys_lib_dlsearch_path_spec="/usr
/lib
"
9004 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9006 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9007 *) need_version=no ;;
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9010 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
9011 shlibpath_var=LD_LIBRARY_PATH
9012 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
9014 openbsd2.[89] | openbsd2.[89].*)
9015 shlibpath_overrides_runpath=no
9018 shlibpath_overrides_runpath=yes
9022 shlibpath_overrides_runpath=yes
9027 libname_spec='$name'
9030 library_names_spec='$libname${shared_ext} $libname.a'
9031 dynamic_linker='OS/2 ld.exe'
9032 shlibpath_var=LIBPATH
9035 osf3* | osf4* | osf5*)
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9041 shlibpath_var=LD_LIBRARY_PATH
9042 sys_lib_search_path_spec="/usr
/shlib
/usr
/ccs
/lib
/usr
/lib
/cmplrs
/cc
/usr
/lib
/usr
/local
/lib
/var
/shlib
"
9043 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9051 soname_spec='${libname}${release}${shared_ext}$major'
9052 shlibpath_var=LD_LIBRARY_PATH
9053 shlibpath_overrides_runpath=yes
9054 hardcode_into_libs=yes
9055 # ldd complains unless libraries are executable
9056 postinstall_cmds='chmod +x $lib'
9061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9062 finish_cmds='PATH="\
$PATH:/usr
/etc
" ldconfig $libdir'
9063 shlibpath_var=LD_LIBRARY_PATH
9064 shlibpath_overrides_runpath=yes
9065 if test "$with_gnu_ld" = yes; then
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9074 soname_spec='${libname}${release}${shared_ext}$major'
9075 shlibpath_var=LD_LIBRARY_PATH
9076 case $host_vendor in
9078 shlibpath_overrides_runpath=no
9080 export_dynamic_flag_spec='${wl}-Blargedynsym'
9081 runpath_var=LD_RUN_PATH
9089 shlibpath_overrides_runpath=no
9090 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9096 if test -d /usr/nec ;then
9098 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9099 soname_spec='$libname${shared_ext}.$major'
9100 shlibpath_var=LD_LIBRARY_PATH
9104 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9105 version_type=freebsd-elf
9108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9109 soname_spec='${libname}${release}${shared_ext}$major'
9110 shlibpath_var=LD_LIBRARY_PATH
9111 hardcode_into_libs=yes
9112 if test "$with_gnu_ld" = yes; then
9113 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9114 shlibpath_overrides_runpath=no
9116 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9117 shlibpath_overrides_runpath=yes
9120 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib
"
9124 sys_lib_dlsearch_path_spec='/usr/lib'
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9130 soname_spec='${libname}${release}${shared_ext}$major'
9131 shlibpath_var=LD_LIBRARY_PATH
9138 { echo "$as_me:$LINENO: result
: $dynamic_linker" >&5
9139 echo "${ECHO_T}$dynamic_linker" >&6; }
9140 test "$dynamic_linker" = no && can_build_shared=no
9142 variables_saved_for_relink="PATH
$shlibpath_var $runpath_var"
9143 if test "$GCC" = yes; then
9144 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH
"
9148 { echo "$as_me:$LINENO: checking
which extension is used
for loadable modules
" >&5
9149 echo $ECHO_N "checking
which extension is used
for loadable modules...
$ECHO_C" >&6; }
9150 if test "${libltdl_cv_shlibext+set}" = set; then
9151 echo $ECHO_N "(cached
) $ECHO_C" >&6
9155 eval libltdl_cv_shlibext=$shrext_cmds
9158 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibext" >&5
9159 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9160 if test -n "$libltdl_cv_shlibext"; then
9162 cat >>confdefs.h <<_ACEOF
9163 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9169 { echo "$as_me:$LINENO: checking
which variable specifies run-time library path
" >&5
9170 echo $ECHO_N "checking
which variable specifies run-time library path...
$ECHO_C" >&6; }
9171 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9172 echo $ECHO_N "(cached
) $ECHO_C" >&6
9174 libltdl_cv_shlibpath_var="$shlibpath_var"
9176 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibpath_var" >&5
9177 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9178 if test -n "$libltdl_cv_shlibpath_var"; then
9180 cat >>confdefs.h <<_ACEOF
9181 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9187 { echo "$as_me:$LINENO: checking
for the default library search path
" >&5
9188 echo $ECHO_N "checking
for the default library search path...
$ECHO_C" >&6; }
9189 if test "${libltdl_cv_sys_search_path+set}" = set; then
9190 echo $ECHO_N "(cached
) $ECHO_C" >&6
9192 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9194 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_search_path" >&5
9195 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9196 if test -n "$libltdl_cv_sys_search_path"; then
9198 for dir in $libltdl_cv_sys_search_path; do
9199 if test -z "$sys_search_path"; then
9200 sys_search_path="$dir"
9202 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9206 cat >>confdefs.h <<_ACEOF
9207 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9212 { echo "$as_me:$LINENO: checking
for objdir
" >&5
9213 echo $ECHO_N "checking
for objdir...
$ECHO_C" >&6; }
9214 if test "${libltdl_cv_objdir+set}" = set; then
9215 echo $ECHO_N "(cached
) $ECHO_C" >&6
9217 libltdl_cv_objdir="$objdir"
9218 if test -n "$objdir"; then
9221 rm -f .libs 2>/dev/null
9222 mkdir .libs 2>/dev/null
9223 if test -d .libs; then
9224 libltdl_cv_objdir=.libs
9226 # MS-DOS does not allow filenames that begin with a dot.
9227 libltdl_cv_objdir=_libs
9229 rmdir .libs 2>/dev/null
9233 { echo "$as_me:$LINENO: result
: $libltdl_cv_objdir" >&5
9234 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9236 cat >>confdefs.h <<_ACEOF
9237 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9245 # Check for command to grab the raw symbol name followed by C symbol from nm.
9246 { echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
9247 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6; }
9248 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9249 echo $ECHO_N "(cached
) $ECHO_C" >&6
9252 # These are sane defaults that work on at least a few old systems.
9253 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9255 # Character class describing NM global symbol codes.
9256 symcode='[BCDEGRST]'
9258 # Regexp to match symbols that can be accessed directly from C.
9259 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9261 # Transform an extracted symbol line into a proper C declaration
9262 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9264 # Transform an extracted symbol line into symbol name and symbol address
9265 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'"
9267 # Define system-specific variables.
9272 cygwin* | mingw* | pw32*)
9273 symcode='[ABCDGISTW]'
9275 hpux*) # Its linker distinguishes data from code symbols
9276 if test "$host_cpu" = ia64; then
9277 symcode='[ABCDEGRST]'
9279 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9280 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'"
9283 if test "$host_cpu" = ia64; then
9284 symcode='[ABCDGIRSTW]'
9285 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9286 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'"
9290 symcode='[BCDEGRST]'
9293 symcode='[BCDEGQRST]'
9304 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9312 # Handle CRLF in mingw tool chain
9316 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9320 # If we're using GNU nm, then use its standard symbol codes.
9321 case `$NM -V 2>&1` in
9322 *GNU* | *'with BFD'*)
9323 symcode='[ABCDGIRSTW]' ;;
9326 # Try without a prefix undercore, then with it.
9327 for ac_symprfx in "" "_
"; do
9329 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9330 symxfrm="\\1 $ac_symprfx\\2 \\2"
9332 # Write the raw and C identifiers.
9333 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9335 # Check to see that the pipe works correctly.
9339 cat > conftest.$ac_ext <<EOF
9344 void nm_test_func(){}
9348 int main(){nm_test_var='a';nm_test_func();return(0);}
9351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9352 (eval $ac_compile) 2>&5
9354 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9355 (exit $ac_status); }; then
9356 # Now try to grab the symbols.
9358 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
9359 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9362 (exit $ac_status); } && test -s "$nlist"; then
9363 # Try sorting and uniquifying the output.
9364 if sort "$nlist" | uniq > "$nlist"T; then
9365 mv -f "$nlist"T "$nlist"
9370 # Make sure that we snagged all the symbols we need.
9371 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9372 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9373 cat <<EOF > conftest.$ac_ext
9379 # Now generate the symbol file.
9380 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9382 cat <<EOF >> conftest.$ac_ext
9383 #if defined (__STDC__) && __STDC__
9384 # define lt_ptr_t void *
9386 # define lt_ptr_t char *
9390 /* The mapping between symbol names and symbols. */
9395 lt_preloaded_symbols[] =
9398 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (lt_ptr_t
) \
&\
2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9399 cat <<\EOF >> conftest.$ac_ext
9407 # Now try linking the two files.
9408 mv conftest.$ac_objext conftstm.$ac_objext
9409 lt_save_LIBS="$LIBS"
9410 lt_save_CFLAGS="$CFLAGS"
9411 LIBS="conftstm.
$ac_objext"
9412 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9414 (eval $ac_link) 2>&5
9416 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9417 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9420 LIBS="$lt_save_LIBS"
9421 CFLAGS="$lt_save_CFLAGS"
9423 echo "cannot
find nm_test_func
in $nlist" >&5
9426 echo "cannot
find nm_test_var
in $nlist" >&5
9429 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
9432 echo "$progname: failed program was
:" >&5
9433 cat conftest.$ac_ext >&5
9435 rm -f conftest* conftst*
9437 # Do not use the global_symbol_pipe unless it works.
9438 if test "$pipe_works" = yes; then
9441 lt_cv_sys_global_symbol_pipe=
9447 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9448 lt_cv_sys_global_symbol_to_cdecl=
9450 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9451 { echo "$as_me:$LINENO: result
: failed
" >&5
9452 echo "${ECHO_T}failed
" >&6; }
9454 { echo "$as_me:$LINENO: result
: ok
" >&5
9455 echo "${ECHO_T}ok
" >&6; }
9459 { echo "$as_me:$LINENO: checking whether libtool supports
-dlopen/-dlpreopen" >&5
9460 echo $ECHO_N "checking whether libtool supports
-dlopen/-dlpreopen...
$ECHO_C" >&6; }
9461 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9462 echo $ECHO_N "(cached
) $ECHO_C" >&6
9464 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9465 libltdl_cv_preloaded_symbols=yes
9467 libltdl_cv_preloaded_symbols=no
9471 { echo "$as_me:$LINENO: result
: $libltdl_cv_preloaded_symbols" >&5
9472 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9473 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9475 cat >>confdefs.h <<\_ACEOF
9476 #define HAVE_PRELOADED_SYMBOLS 1
9484 ac_cpp='$CPP $CPPFLAGS'
9485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9490 { echo "$as_me:$LINENO: checking
for shl_load
" >&5
9491 echo $ECHO_N "checking
for shl_load...
$ECHO_C" >&6; }
9492 if test "${ac_cv_func_shl_load+set}" = set; then
9493 echo $ECHO_N "(cached
) $ECHO_C" >&6
9495 cat >conftest.$ac_ext <<_ACEOF
9498 cat confdefs.h >>conftest.$ac_ext
9499 cat >>conftest.$ac_ext <<_ACEOF
9500 /* end confdefs.h. */
9501 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9503 #define shl_load innocuous_shl_load
9505 /* System header to define __stub macros and hopefully few prototypes,
9506 which can conflict with char shl_load (); below.
9507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9508 <limits.h> exists even on freestanding compilers. */
9511 # include <limits.h>
9513 # include <assert.h>
9518 /* Override any GCC internal prototype to avoid an error.
9519 Use char because int might match the return type of a GCC
9520 builtin and then its argument prototype would still apply. */
9525 /* The GNU C library defines this for functions which it implements
9526 to always fail with ENOSYS. Some functions are actually named
9527 something starting with __ and the normal name is an alias. */
9528 #if defined __stub_shl_load || defined __stub___shl_load
9540 rm -f conftest.$ac_objext conftest$ac_exeext
9541 if { (ac_try="$ac_link"
9543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9544 *) ac_try_echo=$ac_try;;
9546 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9547 (eval "$ac_link") 2>conftest.er1
9549 grep -v '^ *+' conftest.er1 >conftest.err
9551 cat conftest.err >&5
9552 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9553 (exit $ac_status); } &&
9554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9555 { (case "(($ac_try" in
9556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9557 *) ac_try_echo=$ac_try;;
9559 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9560 (eval "$ac_try") 2>&5
9562 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9563 (exit $ac_status); }; } &&
9564 { ac_try='test -s conftest$ac_exeext'
9565 { (case "(($ac_try" in
9566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9567 *) ac_try_echo=$ac_try;;
9569 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9570 (eval "$ac_try") 2>&5
9572 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9573 (exit $ac_status); }; }; then
9574 ac_cv_func_shl_load=yes
9576 echo "$as_me: failed program was
:" >&5
9577 sed 's/^/| /' conftest.$ac_ext >&5
9579 ac_cv_func_shl_load=no
9582 rm -f core conftest.err conftest.$ac_objext \
9583 conftest$ac_exeext conftest.$ac_ext
9585 { echo "$as_me:$LINENO: result
: $ac_cv_func_shl_load" >&5
9586 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9587 if test $ac_cv_func_shl_load = yes; then
9589 cat >>confdefs.h <<\_ACEOF
9590 #define HAVE_SHL_LOAD 1
9594 { echo "$as_me:$LINENO: checking
for shl_load
in -ldld" >&5
9595 echo $ECHO_N "checking
for shl_load
in -ldld...
$ECHO_C" >&6; }
9596 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9597 echo $ECHO_N "(cached
) $ECHO_C" >&6
9599 ac_check_lib_save_LIBS=$LIBS
9601 cat >conftest.$ac_ext <<_ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9608 /* Override any GCC internal prototype to avoid an error.
9609 Use char because int might match the return type of a GCC
9610 builtin and then its argument prototype would still apply. */
9623 rm -f conftest.$ac_objext conftest$ac_exeext
9624 if { (ac_try="$ac_link"
9626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9627 *) ac_try_echo=$ac_try;;
9629 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9630 (eval "$ac_link") 2>conftest.er1
9632 grep -v '^ *+' conftest.er1 >conftest.err
9634 cat conftest.err >&5
9635 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9636 (exit $ac_status); } &&
9637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9638 { (case "(($ac_try" in
9639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9640 *) ac_try_echo=$ac_try;;
9642 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9643 (eval "$ac_try") 2>&5
9645 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9646 (exit $ac_status); }; } &&
9647 { ac_try='test -s conftest$ac_exeext'
9648 { (case "(($ac_try" in
9649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650 *) ac_try_echo=$ac_try;;
9652 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9653 (eval "$ac_try") 2>&5
9655 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9656 (exit $ac_status); }; }; then
9657 ac_cv_lib_dld_shl_load=yes
9659 echo "$as_me: failed program was
:" >&5
9660 sed 's/^/| /' conftest.$ac_ext >&5
9662 ac_cv_lib_dld_shl_load=no
9665 rm -f core conftest.err conftest.$ac_objext \
9666 conftest$ac_exeext conftest.$ac_ext
9667 LIBS=$ac_check_lib_save_LIBS
9669 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_shl_load" >&5
9670 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9671 if test $ac_cv_lib_dld_shl_load = yes; then
9673 cat >>confdefs.h <<\_ACEOF
9674 #define HAVE_SHL_LOAD 1
9677 LIBADD_DL="$LIBADD_DL -ldld"
9679 { echo "$as_me:$LINENO: checking
for dlopen
in -ldl" >&5
9680 echo $ECHO_N "checking
for dlopen
in -ldl...
$ECHO_C" >&6; }
9681 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9682 echo $ECHO_N "(cached
) $ECHO_C" >&6
9684 ac_check_lib_save_LIBS=$LIBS
9686 cat >conftest.$ac_ext <<_ACEOF
9689 cat confdefs.h >>conftest.$ac_ext
9690 cat >>conftest.$ac_ext <<_ACEOF
9691 /* end confdefs.h. */
9693 /* Override any GCC internal prototype to avoid an error.
9694 Use char because int might match the return type of a GCC
9695 builtin and then its argument prototype would still apply. */
9708 rm -f conftest.$ac_objext conftest$ac_exeext
9709 if { (ac_try="$ac_link"
9711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712 *) ac_try_echo=$ac_try;;
9714 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9715 (eval "$ac_link") 2>conftest.er1
9717 grep -v '^ *+' conftest.er1 >conftest.err
9719 cat conftest.err >&5
9720 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9721 (exit $ac_status); } &&
9722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9723 { (case "(($ac_try" in
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9727 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_try") 2>&5
9730 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9731 (exit $ac_status); }; } &&
9732 { ac_try='test -s conftest$ac_exeext'
9733 { (case "(($ac_try" in
9734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9735 *) ac_try_echo=$ac_try;;
9737 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9738 (eval "$ac_try") 2>&5
9740 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9741 (exit $ac_status); }; }; then
9742 ac_cv_lib_dl_dlopen=yes
9744 echo "$as_me: failed program was
:" >&5
9745 sed 's/^/| /' conftest.$ac_ext >&5
9747 ac_cv_lib_dl_dlopen=no
9750 rm -f core conftest.err conftest.$ac_objext \
9751 conftest$ac_exeext conftest.$ac_ext
9752 LIBS=$ac_check_lib_save_LIBS
9754 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dl_dlopen" >&5
9755 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9756 if test $ac_cv_lib_dl_dlopen = yes; then
9758 cat >>confdefs.h <<\_ACEOF
9759 #define HAVE_LIBDL 1
9762 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9764 cat >conftest.$ac_ext <<_ACEOF
9767 cat confdefs.h >>conftest.$ac_ext
9768 cat >>conftest.$ac_ext <<_ACEOF
9769 /* end confdefs.h. */
9782 rm -f conftest.$ac_objext conftest$ac_exeext
9783 if { (ac_try="$ac_link"
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9788 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_link") 2>conftest.er1
9791 grep -v '^ *+' conftest.er1 >conftest.err
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9797 { (case "(($ac_try" in
9798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799 *) ac_try_echo=$ac_try;;
9801 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9802 (eval "$ac_try") 2>&5
9804 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9805 (exit $ac_status); }; } &&
9806 { ac_try='test -s conftest$ac_exeext'
9807 { (case "(($ac_try" in
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9811 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_try") 2>&5
9814 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9815 (exit $ac_status); }; }; then
9817 cat >>confdefs.h <<\_ACEOF
9818 #define HAVE_LIBDL 1
9820 libltdl_cv_func_dlopen="yes"
9822 echo "$as_me: failed program was
:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9825 { echo "$as_me:$LINENO: checking
for dlopen
in -lsvld" >&5
9826 echo $ECHO_N "checking
for dlopen
in -lsvld...
$ECHO_C" >&6; }
9827 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9828 echo $ECHO_N "(cached
) $ECHO_C" >&6
9830 ac_check_lib_save_LIBS=$LIBS
9832 cat >conftest.$ac_ext <<_ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9839 /* Override any GCC internal prototype to avoid an error.
9840 Use char because int might match the return type of a GCC
9841 builtin and then its argument prototype would still apply. */
9854 rm -f conftest.$ac_objext conftest$ac_exeext
9855 if { (ac_try="$ac_link"
9857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858 *) ac_try_echo=$ac_try;;
9860 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9861 (eval "$ac_link") 2>conftest.er1
9863 grep -v '^ *+' conftest.er1 >conftest.err
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9867 (exit $ac_status); } &&
9868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9869 { (case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9873 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_try") 2>&5
9876 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9877 (exit $ac_status); }; } &&
9878 { ac_try='test -s conftest$ac_exeext'
9879 { (case "(($ac_try" in
9880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881 *) ac_try_echo=$ac_try;;
9883 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9884 (eval "$ac_try") 2>&5
9886 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9887 (exit $ac_status); }; }; then
9888 ac_cv_lib_svld_dlopen=yes
9890 echo "$as_me: failed program was
:" >&5
9891 sed 's/^/| /' conftest.$ac_ext >&5
9893 ac_cv_lib_svld_dlopen=no
9896 rm -f core conftest.err conftest.$ac_objext \
9897 conftest$ac_exeext conftest.$ac_ext
9898 LIBS=$ac_check_lib_save_LIBS
9900 { echo "$as_me:$LINENO: result
: $ac_cv_lib_svld_dlopen" >&5
9901 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9902 if test $ac_cv_lib_svld_dlopen = yes; then
9904 cat >>confdefs.h <<\_ACEOF
9905 #define HAVE_LIBDL 1
9908 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9910 { echo "$as_me:$LINENO: checking
for dld_link
in -ldld" >&5
9911 echo $ECHO_N "checking
for dld_link
in -ldld...
$ECHO_C" >&6; }
9912 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9913 echo $ECHO_N "(cached
) $ECHO_C" >&6
9915 ac_check_lib_save_LIBS=$LIBS
9917 cat >conftest.$ac_ext <<_ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9924 /* Override any GCC internal prototype to avoid an error.
9925 Use char because int might match the return type of a GCC
9926 builtin and then its argument prototype would still apply. */
9939 rm -f conftest.$ac_objext conftest$ac_exeext
9940 if { (ac_try="$ac_link"
9942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9943 *) ac_try_echo=$ac_try;;
9945 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9946 (eval "$ac_link") 2>conftest.er1
9948 grep -v '^ *+' conftest.er1 >conftest.err
9950 cat conftest.err >&5
9951 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9952 (exit $ac_status); } &&
9953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9954 { (case "(($ac_try" in
9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9958 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9959 (eval "$ac_try") 2>&5
9961 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9962 (exit $ac_status); }; } &&
9963 { ac_try='test -s conftest$ac_exeext'
9964 { (case "(($ac_try" in
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9968 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9969 (eval "$ac_try") 2>&5
9971 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9972 (exit $ac_status); }; }; then
9973 ac_cv_lib_dld_dld_link=yes
9975 echo "$as_me: failed program was
:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9978 ac_cv_lib_dld_dld_link=no
9981 rm -f core conftest.err conftest.$ac_objext \
9982 conftest$ac_exeext conftest.$ac_ext
9983 LIBS=$ac_check_lib_save_LIBS
9985 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_dld_link" >&5
9986 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9987 if test $ac_cv_lib_dld_dld_link = yes; then
9989 cat >>confdefs.h <<\_ACEOF
9993 LIBADD_DL="$LIBADD_DL -ldld"
9995 { echo "$as_me:$LINENO: checking
for _dyld_func_lookup
" >&5
9996 echo $ECHO_N "checking
for _dyld_func_lookup...
$ECHO_C" >&6; }
9997 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9998 echo $ECHO_N "(cached
) $ECHO_C" >&6
10000 cat >conftest.$ac_ext <<_ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h. */
10006 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10008 #define _dyld_func_lookup innocuous__dyld_func_lookup
10010 /* System header to define __stub macros and hopefully few prototypes,
10011 which can conflict with char _dyld_func_lookup (); below.
10012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10013 <limits.h> exists even on freestanding compilers. */
10016 # include <limits.h>
10018 # include <assert.h>
10021 #undef _dyld_func_lookup
10023 /* Override any GCC internal prototype to avoid an error.
10024 Use char because int might match the return type of a GCC
10025 builtin and then its argument prototype would still apply. */
10029 char _dyld_func_lookup ();
10030 /* The GNU C library defines this for functions which it implements
10031 to always fail with ENOSYS. Some functions are actually named
10032 something starting with __ and the normal name is an alias. */
10033 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10040 return _dyld_func_lookup ();
10045 rm -f conftest.$ac_objext conftest$ac_exeext
10046 if { (ac_try="$ac_link"
10047 case "(($ac_try" in
10048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049 *) ac_try_echo=$ac_try;;
10051 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10052 (eval "$ac_link") 2>conftest.er1
10054 grep -v '^ *+' conftest.er1 >conftest.err
10056 cat conftest.err >&5
10057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10058 (exit $ac_status); } &&
10059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10060 { (case "(($ac_try" in
10061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10062 *) ac_try_echo=$ac_try;;
10064 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10065 (eval "$ac_try") 2>&5
10067 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10068 (exit $ac_status); }; } &&
10069 { ac_try='test -s conftest$ac_exeext'
10070 { (case "(($ac_try" in
10071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10072 *) ac_try_echo=$ac_try;;
10074 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10075 (eval "$ac_try") 2>&5
10077 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10078 (exit $ac_status); }; }; then
10079 ac_cv_func__dyld_func_lookup=yes
10081 echo "$as_me: failed program was
:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10084 ac_cv_func__dyld_func_lookup=no
10087 rm -f core conftest.err conftest.$ac_objext \
10088 conftest$ac_exeext conftest.$ac_ext
10090 { echo "$as_me:$LINENO: result
: $ac_cv_func__dyld_func_lookup" >&5
10091 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10092 if test $ac_cv_func__dyld_func_lookup = yes; then
10094 cat >>confdefs.h <<\_ACEOF
10095 #define HAVE_DYLD 1
10109 rm -f core conftest.err conftest.$ac_objext \
10110 conftest$ac_exeext conftest.$ac_ext
10121 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10123 lt_save_LIBS="$LIBS"
10124 LIBS="$LIBS $LIBADD_DL"
10126 for ac_func in dlerror
10128 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10129 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
10130 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
10131 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10132 echo $ECHO_N "(cached
) $ECHO_C" >&6
10134 cat >conftest.$ac_ext <<_ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h. */
10140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10142 #define $ac_func innocuous_$ac_func
10144 /* System header to define __stub macros and hopefully few prototypes,
10145 which can conflict with char $ac_func (); below.
10146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10147 <limits.h> exists even on freestanding compilers. */
10150 # include <limits.h>
10152 # include <assert.h>
10157 /* Override any GCC internal prototype to avoid an error.
10158 Use char because int might match the return type of a GCC
10159 builtin and then its argument prototype would still apply. */
10164 /* The GNU C library defines this for functions which it implements
10165 to always fail with ENOSYS. Some functions are actually named
10166 something starting with __ and the normal name is an alias. */
10167 #if defined __stub_$ac_func || defined __stub___$ac_func
10174 return $ac_func ();
10179 rm -f conftest.$ac_objext conftest$ac_exeext
10180 if { (ac_try="$ac_link"
10181 case "(($ac_try" in
10182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183 *) ac_try_echo=$ac_try;;
10185 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10186 (eval "$ac_link") 2>conftest.er1
10188 grep -v '^ *+' conftest.er1 >conftest.err
10190 cat conftest.err >&5
10191 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10192 (exit $ac_status); } &&
10193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10194 { (case "(($ac_try" in
10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10198 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10199 (eval "$ac_try") 2>&5
10201 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10202 (exit $ac_status); }; } &&
10203 { ac_try='test -s conftest$ac_exeext'
10204 { (case "(($ac_try" in
10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10208 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_try") 2>&5
10211 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10212 (exit $ac_status); }; }; then
10213 eval "$as_ac_var=yes"
10215 echo "$as_me: failed program was
:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10218 eval "$as_ac_var=no
"
10221 rm -f core conftest.err conftest.$ac_objext \
10222 conftest$ac_exeext conftest.$ac_ext
10224 ac_res=`eval echo '${'$as_ac_var'}'`
10225 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10226 echo "${ECHO_T}$ac_res" >&6; }
10227 if test `eval echo '${'$as_ac_var'}'` = yes; then
10228 cat >>confdefs.h <<_ACEOF
10229 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10235 LIBS="$lt_save_LIBS"
10238 ac_cpp='$CPP $CPPFLAGS'
10239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10245 { echo "$as_me:$LINENO: checking
for _ prefix
in compiled symbols
" >&5
10246 echo $ECHO_N "checking
for _ prefix
in compiled symbols...
$ECHO_C" >&6; }
10247 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10248 echo $ECHO_N "(cached
) $ECHO_C" >&6
10250 ac_cv_sys_symbol_underscore=no
10251 cat > conftest.$ac_ext <<EOF
10252 void nm_test_func(){}
10253 int main(){nm_test_func;return 0;}
10255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10256 (eval $ac_compile) 2>&5
10258 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10259 (exit $ac_status); }; then
10260 # Now try to grab the symbols.
10261 ac_nlist=conftest.nm
10262 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist\"") >&5
10263 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10265 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10266 (exit $ac_status); } && test -s "$ac_nlist"; then
10267 # See whether the symbols have a leading underscore.
10268 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10269 ac_cv_sys_symbol_underscore=yes
10271 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10274 echo "configure
: cannot
find nm_test_func
in $ac_nlist" >&5
10278 echo "configure
: cannot run
$lt_cv_sys_global_symbol_pipe" >&5
10281 echo "configure
: failed program was
:" >&5
10287 { echo "$as_me:$LINENO: result
: $ac_cv_sys_symbol_underscore" >&5
10288 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10291 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10292 if test x"$libltdl_cv_func_dlopen" = xyes ||
10293 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10294 { echo "$as_me:$LINENO: checking whether we have to add an underscore
for dlsym
" >&5
10295 echo $ECHO_N "checking whether we have to add an underscore
for dlsym...
$ECHO_C" >&6; }
10296 if test "${libltdl_cv_need_uscore+set}" = set; then
10297 echo $ECHO_N "(cached
) $ECHO_C" >&6
10299 libltdl_cv_need_uscore=unknown
10301 LIBS="$LIBS $LIBADD_DL"
10302 if test "$cross_compiling" = yes; then :
10303 libltdl_cv_need_uscore=cross
10305 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10306 lt_status=$lt_dlunknown
10307 cat > conftest.$ac_ext <<EOF
10308 #line 10308 "configure
"
10309 #include "confdefs.h
"
10318 # define LT_DLGLOBAL RTLD_GLOBAL
10321 # define LT_DLGLOBAL DL_GLOBAL
10323 # define LT_DLGLOBAL 0
10327 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10328 find out it does not work in some platform. */
10329 #ifndef LT_DLLAZY_OR_NOW
10331 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10334 # define LT_DLLAZY_OR_NOW DL_LAZY
10337 # define LT_DLLAZY_OR_NOW RTLD_NOW
10340 # define LT_DLLAZY_OR_NOW DL_NOW
10342 # define LT_DLLAZY_OR_NOW 0
10350 extern "C
" void exit (int);
10353 void fnord() { int i=42;}
10356 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10357 int status = $lt_dlunknown;
10361 if (dlsym (self,"fnord
")) status = $lt_dlno_uscore;
10362 else if (dlsym( self,"_fnord
")) status = $lt_dlneed_uscore;
10363 /* dlclose (self); */
10371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10372 (eval $ac_link) 2>&5
10374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10375 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10376 (./conftest; exit; ) >&5 2>/dev/null
10378 case x$lt_status in
10379 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10380 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10381 x$lt_dlunknown|x*) ;;
10384 # compilation failed
10393 { echo "$as_me:$LINENO: result
: $libltdl_cv_need_uscore" >&5
10394 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10398 if test x"$libltdl_cv_need_uscore" = xyes; then
10400 cat >>confdefs.h <<\_ACEOF
10401 #define NEED_USCORE 1
10407 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen
" >&5
10408 echo $ECHO_N "checking whether deplibs are loaded by dlopen...
$ECHO_C" >&6; }
10409 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10410 echo $ECHO_N "(cached
) $ECHO_C" >&6
10412 # PORTME does your system automatically load deplibs for dlopen?
10413 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10414 # For now, we just catch OSes we know something about -- in the
10415 # future, we'll try test this programmatically.
10416 libltdl_cv_sys_dlopen_deplibs=unknown
10418 aix3*|aix4.1.*|aix4.2.*)
10419 # Unknown whether this is true for these versions of AIX, but
10420 # we want this `case' here to explicitly catch those versions.
10421 libltdl_cv_sys_dlopen_deplibs=unknown
10424 libltdl_cv_sys_dlopen_deplibs=yes
10427 # Assuming the user has installed a libdl from somewhere, this is true
10428 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10429 libltdl_cv_sys_dlopen_deplibs=yes
10431 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10432 # GNU and its variants, using gnu ld.so (Glibc)
10433 libltdl_cv_sys_dlopen_deplibs=yes
10436 libltdl_cv_sys_dlopen_deplibs=yes
10439 libltdl_cv_sys_dlopen_deplibs=yes
10441 irix[12345]*|irix6.[01]*)
10442 # Catch all versions of IRIX before 6.2, and indicate that we don't
10443 # know how it worked for any of those versions.
10444 libltdl_cv_sys_dlopen_deplibs=unknown
10447 # The case above catches anything before 6.2, and it's known that
10448 # at 6.2 and later dlopen does load deplibs.
10449 libltdl_cv_sys_dlopen_deplibs=yes
10452 libltdl_cv_sys_dlopen_deplibs=yes
10455 libltdl_cv_sys_dlopen_deplibs=yes
10458 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10459 # it did *not* use an RPATH in a shared library to find objects the
10460 # library depends on, so we explictly say `no'.
10461 libltdl_cv_sys_dlopen_deplibs=no
10463 osf5.0|osf5.0a|osf5.1)
10464 # dlopen *does* load deplibs and with the right loader patch applied
10465 # it even uses RPATH in a shared library to search for shared objects
10466 # that the library depends on, but there's no easy way to know if that
10467 # patch is installed. Since this is the case, all we can really
10468 # say is unknown -- it depends on the patch being installed. If
10469 # it is, this changes to `yes'. Without it, it would be `no'.
10470 libltdl_cv_sys_dlopen_deplibs=unknown
10473 # the two cases above should catch all versions of osf <= 5.1. Read
10474 # the comments above for what we know about them.
10475 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10476 # is used to find them so we can finally say `yes'.
10477 libltdl_cv_sys_dlopen_deplibs=yes
10480 libltdl_cv_sys_dlopen_deplibs=yes
10482 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10483 libltdl_cv_sys_dlopen_deplibs=yes
10488 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_dlopen_deplibs" >&5
10489 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10490 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10492 cat >>confdefs.h <<\_ACEOF
10493 #define LTDL_DLOPEN_DEPLIBS 1
10499 for ac_header in argz.h
10501 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10502 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10503 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10504 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10505 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10506 echo $ECHO_N "(cached
) $ECHO_C" >&6
10508 ac_res=`eval echo '${'$as_ac_Header'}'`
10509 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10510 echo "${ECHO_T}$ac_res" >&6; }
10512 # Is the header compilable?
10513 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
10514 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
10515 cat >conftest.$ac_ext <<_ACEOF
10518 cat confdefs.h >>conftest.$ac_ext
10519 cat >>conftest.$ac_ext <<_ACEOF
10520 /* end confdefs.h. */
10521 $ac_includes_default
10522 #include <$ac_header>
10524 rm -f conftest.$ac_objext
10525 if { (ac_try="$ac_compile"
10526 case "(($ac_try" in
10527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10528 *) ac_try_echo=$ac_try;;
10530 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10531 (eval "$ac_compile") 2>conftest.er1
10533 grep -v '^ *+' conftest.er1 >conftest.err
10535 cat conftest.err >&5
10536 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10537 (exit $ac_status); } &&
10538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10539 { (case "(($ac_try" in
10540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10541 *) ac_try_echo=$ac_try;;
10543 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10544 (eval "$ac_try") 2>&5
10546 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10547 (exit $ac_status); }; } &&
10548 { ac_try='test -s conftest.$ac_objext'
10549 { (case "(($ac_try" in
10550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551 *) ac_try_echo=$ac_try;;
10553 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10554 (eval "$ac_try") 2>&5
10556 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10557 (exit $ac_status); }; }; then
10558 ac_header_compiler=yes
10560 echo "$as_me: failed program was
:" >&5
10561 sed 's/^/| /' conftest.$ac_ext >&5
10563 ac_header_compiler=no
10566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10567 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
10568 echo "${ECHO_T}$ac_header_compiler" >&6; }
10570 # Is the header present?
10571 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
10572 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
10573 cat >conftest.$ac_ext <<_ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h. */
10579 #include <$ac_header>
10581 if { (ac_try="$ac_cpp conftest.
$ac_ext"
10582 case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
10586 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10587 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
10589 grep -v '^ *+' conftest.er1 >conftest.err
10591 cat conftest.err >&5
10592 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10593 (exit $ac_status); } >/dev/null; then
10594 if test -s conftest.err; then
10595 ac_cpp_err=$ac_c_preproc_warn_flag
10596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10603 if test -z "$ac_cpp_err"; then
10604 ac_header_preproc=yes
10606 echo "$as_me: failed program was
:" >&5
10607 sed 's/^/| /' conftest.$ac_ext >&5
10609 ac_header_preproc=no
10612 rm -f conftest.err conftest.$ac_ext
10613 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
10614 echo "${ECHO_T}$ac_header_preproc" >&6; }
10616 # So? What about this header?
10617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10619 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
10620 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
10621 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
10622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
10623 ac_header_preproc=yes
10626 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
10627 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
10628 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
10629 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
10630 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
10631 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
10632 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
10633 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
10634 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
10635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
10636 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
10637 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
10639 ## ----------------------------------- ##
10640 ## Report this to llvmbugs@cs.uiuc.edu ##
10641 ## ----------------------------------- ##
10643 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
10646 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10647 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10648 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10649 echo $ECHO_N "(cached
) $ECHO_C" >&6
10651 eval "$as_ac_Header=\
$ac_header_preproc"
10653 ac_res=`eval echo '${'$as_ac_Header'}'`
10654 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10655 echo "${ECHO_T}$ac_res" >&6; }
10658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10659 cat >>confdefs.h <<_ACEOF
10660 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
10668 { echo "$as_me:$LINENO: checking
for error_t
" >&5
10669 echo $ECHO_N "checking
for error_t...
$ECHO_C" >&6; }
10670 if test "${ac_cv_type_error_t+set}" = set; then
10671 echo $ECHO_N "(cached
) $ECHO_C" >&6
10673 cat >conftest.$ac_ext <<_ACEOF
10676 cat confdefs.h >>conftest.$ac_ext
10677 cat >>conftest.$ac_ext <<_ACEOF
10678 /* end confdefs.h. */
10683 typedef error_t ac__type_new_;
10687 if ((ac__type_new_ *) 0)
10689 if (sizeof (ac__type_new_))
10695 rm -f conftest.$ac_objext
10696 if { (ac_try="$ac_compile"
10697 case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10701 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_compile") 2>conftest.er1
10704 grep -v '^ *+' conftest.er1 >conftest.err
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10708 (exit $ac_status); } &&
10709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10710 { (case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10714 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10715 (eval "$ac_try") 2>&5
10717 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10718 (exit $ac_status); }; } &&
10719 { ac_try='test -s conftest.$ac_objext'
10720 { (case "(($ac_try" in
10721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722 *) ac_try_echo=$ac_try;;
10724 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10725 (eval "$ac_try") 2>&5
10727 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10728 (exit $ac_status); }; }; then
10729 ac_cv_type_error_t=yes
10731 echo "$as_me: failed program was
:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10734 ac_cv_type_error_t=no
10737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10739 { echo "$as_me:$LINENO: result
: $ac_cv_type_error_t" >&5
10740 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10741 if test $ac_cv_type_error_t = yes; then
10743 cat >>confdefs.h <<_ACEOF
10744 #define HAVE_ERROR_T 1
10750 cat >>confdefs.h <<\_ACEOF
10751 #define error_t int
10762 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10764 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10765 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
10766 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
10767 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10768 echo $ECHO_N "(cached
) $ECHO_C" >&6
10770 cat >conftest.$ac_ext <<_ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10778 #define $ac_func innocuous_$ac_func
10780 /* System header to define __stub macros and hopefully few prototypes,
10781 which can conflict with char $ac_func (); below.
10782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10783 <limits.h> exists even on freestanding compilers. */
10786 # include <limits.h>
10788 # include <assert.h>
10793 /* Override any GCC internal prototype to avoid an error.
10794 Use char because int might match the return type of a GCC
10795 builtin and then its argument prototype would still apply. */
10800 /* The GNU C library defines this for functions which it implements
10801 to always fail with ENOSYS. Some functions are actually named
10802 something starting with __ and the normal name is an alias. */
10803 #if defined __stub_$ac_func || defined __stub___$ac_func
10810 return $ac_func ();
10815 rm -f conftest.$ac_objext conftest$ac_exeext
10816 if { (ac_try="$ac_link"
10817 case "(($ac_try" in
10818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10821 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10822 (eval "$ac_link") 2>conftest.er1
10824 grep -v '^ *+' conftest.er1 >conftest.err
10826 cat conftest.err >&5
10827 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10828 (exit $ac_status); } &&
10829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10830 { (case "(($ac_try" in
10831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832 *) ac_try_echo=$ac_try;;
10834 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10835 (eval "$ac_try") 2>&5
10837 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10838 (exit $ac_status); }; } &&
10839 { ac_try='test -s conftest$ac_exeext'
10840 { (case "(($ac_try" in
10841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10842 *) ac_try_echo=$ac_try;;
10844 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10845 (eval "$ac_try") 2>&5
10847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10848 (exit $ac_status); }; }; then
10849 eval "$as_ac_var=yes"
10851 echo "$as_me: failed program was
:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10854 eval "$as_ac_var=no
"
10857 rm -f core conftest.err conftest.$ac_objext \
10858 conftest$ac_exeext conftest.$ac_ext
10860 ac_res=`eval echo '${'$as_ac_var'}'`
10861 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10862 echo "${ECHO_T}$ac_res" >&6; }
10863 if test `eval echo '${'$as_ac_var'}'` = yes; then
10864 cat >>confdefs.h <<_ACEOF
10865 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10898 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10901 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10902 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10903 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10904 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10905 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10906 echo $ECHO_N "(cached
) $ECHO_C" >&6
10908 ac_res=`eval echo '${'$as_ac_Header'}'`
10909 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10910 echo "${ECHO_T}$ac_res" >&6; }
10912 # Is the header compilable?
10913 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
10914 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
10915 cat >conftest.$ac_ext <<_ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h. */
10921 $ac_includes_default
10922 #include <$ac_header>
10924 rm -f conftest.$ac_objext
10925 if { (ac_try="$ac_compile"
10926 case "(($ac_try" in
10927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928 *) ac_try_echo=$ac_try;;
10930 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10931 (eval "$ac_compile") 2>conftest.er1
10933 grep -v '^ *+' conftest.er1 >conftest.err
10935 cat conftest.err >&5
10936 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10937 (exit $ac_status); } &&
10938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10939 { (case "(($ac_try" in
10940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10941 *) ac_try_echo=$ac_try;;
10943 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10944 (eval "$ac_try") 2>&5
10946 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10947 (exit $ac_status); }; } &&
10948 { ac_try='test -s conftest.$ac_objext'
10949 { (case "(($ac_try" in
10950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951 *) ac_try_echo=$ac_try;;
10953 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10954 (eval "$ac_try") 2>&5
10956 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10957 (exit $ac_status); }; }; then
10958 ac_header_compiler=yes
10960 echo "$as_me: failed program was
:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10963 ac_header_compiler=no
10966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10967 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
10968 echo "${ECHO_T}$ac_header_compiler" >&6; }
10970 # Is the header present?
10971 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
10972 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
10973 cat >conftest.$ac_ext <<_ACEOF
10976 cat confdefs.h >>conftest.$ac_ext
10977 cat >>conftest.$ac_ext <<_ACEOF
10978 /* end confdefs.h. */
10979 #include <$ac_header>
10981 if { (ac_try="$ac_cpp conftest.
$ac_ext"
10982 case "(($ac_try" in
10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10986 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10987 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
10989 grep -v '^ *+' conftest.er1 >conftest.err
10991 cat conftest.err >&5
10992 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10993 (exit $ac_status); } >/dev/null; then
10994 if test -s conftest.err; then
10995 ac_cpp_err=$ac_c_preproc_warn_flag
10996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11003 if test -z "$ac_cpp_err"; then
11004 ac_header_preproc=yes
11006 echo "$as_me: failed program was
:" >&5
11007 sed 's/^/| /' conftest.$ac_ext >&5
11009 ac_header_preproc=no
11012 rm -f conftest.err conftest.$ac_ext
11013 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11014 echo "${ECHO_T}$ac_header_preproc" >&6; }
11016 # So? What about this header?
11017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11019 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11020 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11021 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11023 ac_header_preproc=yes
11026 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11027 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11028 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11029 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11030 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11031 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11032 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11033 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11034 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11036 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11037 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11039 ## ----------------------------------- ##
11040 ## Report this to llvmbugs@cs.uiuc.edu ##
11041 ## ----------------------------------- ##
11043 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11046 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11047 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11048 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11049 echo $ECHO_N "(cached
) $ECHO_C" >&6
11051 eval "$as_ac_Header=\
$ac_header_preproc"
11053 ac_res=`eval echo '${'$as_ac_Header'}'`
11054 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11055 echo "${ECHO_T}$ac_res" >&6; }
11058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11059 cat >>confdefs.h <<_ACEOF
11060 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11071 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11073 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11074 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11075 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11076 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11077 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11078 echo $ECHO_N "(cached
) $ECHO_C" >&6
11080 ac_res=`eval echo '${'$as_ac_Header'}'`
11081 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11082 echo "${ECHO_T}$ac_res" >&6; }
11084 # Is the header compilable?
11085 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11086 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11087 cat >conftest.$ac_ext <<_ACEOF
11090 cat confdefs.h >>conftest.$ac_ext
11091 cat >>conftest.$ac_ext <<_ACEOF
11092 /* end confdefs.h. */
11093 $ac_includes_default
11094 #include <$ac_header>
11096 rm -f conftest.$ac_objext
11097 if { (ac_try="$ac_compile"
11098 case "(($ac_try" in
11099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11102 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11103 (eval "$ac_compile") 2>conftest.er1
11105 grep -v '^ *+' conftest.er1 >conftest.err
11107 cat conftest.err >&5
11108 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11109 (exit $ac_status); } &&
11110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11111 { (case "(($ac_try" in
11112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11113 *) ac_try_echo=$ac_try;;
11115 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11116 (eval "$ac_try") 2>&5
11118 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11119 (exit $ac_status); }; } &&
11120 { ac_try='test -s conftest.$ac_objext'
11121 { (case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11125 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_try") 2>&5
11128 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11129 (exit $ac_status); }; }; then
11130 ac_header_compiler=yes
11132 echo "$as_me: failed program was
:" >&5
11133 sed 's/^/| /' conftest.$ac_ext >&5
11135 ac_header_compiler=no
11138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11139 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11140 echo "${ECHO_T}$ac_header_compiler" >&6; }
11142 # Is the header present?
11143 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11144 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11145 cat >conftest.$ac_ext <<_ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h. */
11151 #include <$ac_header>
11153 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11154 case "(($ac_try" in
11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156 *) ac_try_echo=$ac_try;;
11158 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11159 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11161 grep -v '^ *+' conftest.er1 >conftest.err
11163 cat conftest.err >&5
11164 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11165 (exit $ac_status); } >/dev/null; then
11166 if test -s conftest.err; then
11167 ac_cpp_err=$ac_c_preproc_warn_flag
11168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11175 if test -z "$ac_cpp_err"; then
11176 ac_header_preproc=yes
11178 echo "$as_me: failed program was
:" >&5
11179 sed 's/^/| /' conftest.$ac_ext >&5
11181 ac_header_preproc=no
11184 rm -f conftest.err conftest.$ac_ext
11185 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11186 echo "${ECHO_T}$ac_header_preproc" >&6; }
11188 # So? What about this header?
11189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11191 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11192 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11193 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11195 ac_header_preproc=yes
11198 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11199 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11200 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11201 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11202 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11203 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11204 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11205 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11206 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11208 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11209 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11211 ## ----------------------------------- ##
11212 ## Report this to llvmbugs@cs.uiuc.edu ##
11213 ## ----------------------------------- ##
11215 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11218 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11219 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11220 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11221 echo $ECHO_N "(cached
) $ECHO_C" >&6
11223 eval "$as_ac_Header=\
$ac_header_preproc"
11225 ac_res=`eval echo '${'$as_ac_Header'}'`
11226 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11227 echo "${ECHO_T}$ac_res" >&6; }
11230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11231 cat >>confdefs.h <<_ACEOF
11232 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11241 for ac_header in string.h strings.h
11243 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11244 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11245 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11246 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11247 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11248 echo $ECHO_N "(cached
) $ECHO_C" >&6
11250 ac_res=`eval echo '${'$as_ac_Header'}'`
11251 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11252 echo "${ECHO_T}$ac_res" >&6; }
11254 # Is the header compilable?
11255 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11256 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11257 cat >conftest.$ac_ext <<_ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263 $ac_includes_default
11264 #include <$ac_header>
11266 rm -f conftest.$ac_objext
11267 if { (ac_try="$ac_compile"
11268 case "(($ac_try" in
11269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11270 *) ac_try_echo=$ac_try;;
11272 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11273 (eval "$ac_compile") 2>conftest.er1
11275 grep -v '^ *+' conftest.er1 >conftest.err
11277 cat conftest.err >&5
11278 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11279 (exit $ac_status); } &&
11280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11281 { (case "(($ac_try" in
11282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283 *) ac_try_echo=$ac_try;;
11285 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11286 (eval "$ac_try") 2>&5
11288 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11289 (exit $ac_status); }; } &&
11290 { ac_try='test -s conftest.$ac_objext'
11291 { (case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11295 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_try") 2>&5
11298 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11299 (exit $ac_status); }; }; then
11300 ac_header_compiler=yes
11302 echo "$as_me: failed program was
:" >&5
11303 sed 's/^/| /' conftest.$ac_ext >&5
11305 ac_header_compiler=no
11308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11309 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11310 echo "${ECHO_T}$ac_header_compiler" >&6; }
11312 # Is the header present?
11313 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11314 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11315 cat >conftest.$ac_ext <<_ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11321 #include <$ac_header>
11323 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11324 case "(($ac_try" in
11325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11326 *) ac_try_echo=$ac_try;;
11328 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11329 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11331 grep -v '^ *+' conftest.er1 >conftest.err
11333 cat conftest.err >&5
11334 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11335 (exit $ac_status); } >/dev/null; then
11336 if test -s conftest.err; then
11337 ac_cpp_err=$ac_c_preproc_warn_flag
11338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11345 if test -z "$ac_cpp_err"; then
11346 ac_header_preproc=yes
11348 echo "$as_me: failed program was
:" >&5
11349 sed 's/^/| /' conftest.$ac_ext >&5
11351 ac_header_preproc=no
11354 rm -f conftest.err conftest.$ac_ext
11355 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11356 echo "${ECHO_T}$ac_header_preproc" >&6; }
11358 # So? What about this header?
11359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11361 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11362 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11363 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11365 ac_header_preproc=yes
11368 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11369 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11370 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11371 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11372 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11373 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11374 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11375 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11376 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11378 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11379 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11381 ## ----------------------------------- ##
11382 ## Report this to llvmbugs@cs.uiuc.edu ##
11383 ## ----------------------------------- ##
11385 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11388 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11389 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11390 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11391 echo $ECHO_N "(cached
) $ECHO_C" >&6
11393 eval "$as_ac_Header=\
$ac_header_preproc"
11395 ac_res=`eval echo '${'$as_ac_Header'}'`
11396 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11397 echo "${ECHO_T}$ac_res" >&6; }
11400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11401 cat >>confdefs.h <<_ACEOF
11402 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11412 for ac_func in strchr index
11414 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11415 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11416 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11417 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11418 echo $ECHO_N "(cached
) $ECHO_C" >&6
11420 cat >conftest.$ac_ext <<_ACEOF
11423 cat confdefs.h >>conftest.$ac_ext
11424 cat >>conftest.$ac_ext <<_ACEOF
11425 /* end confdefs.h. */
11426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11428 #define $ac_func innocuous_$ac_func
11430 /* System header to define __stub macros and hopefully few prototypes,
11431 which can conflict with char $ac_func (); below.
11432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11433 <limits.h> exists even on freestanding compilers. */
11436 # include <limits.h>
11438 # include <assert.h>
11443 /* Override any GCC internal prototype to avoid an error.
11444 Use char because int might match the return type of a GCC
11445 builtin and then its argument prototype would still apply. */
11450 /* The GNU C library defines this for functions which it implements
11451 to always fail with ENOSYS. Some functions are actually named
11452 something starting with __ and the normal name is an alias. */
11453 #if defined __stub_$ac_func || defined __stub___$ac_func
11460 return $ac_func ();
11465 rm -f conftest.$ac_objext conftest$ac_exeext
11466 if { (ac_try="$ac_link"
11467 case "(($ac_try" in
11468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11469 *) ac_try_echo=$ac_try;;
11471 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11472 (eval "$ac_link") 2>conftest.er1
11474 grep -v '^ *+' conftest.er1 >conftest.err
11476 cat conftest.err >&5
11477 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11478 (exit $ac_status); } &&
11479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11480 { (case "(($ac_try" in
11481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11482 *) ac_try_echo=$ac_try;;
11484 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11485 (eval "$ac_try") 2>&5
11487 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11488 (exit $ac_status); }; } &&
11489 { ac_try='test -s conftest$ac_exeext'
11490 { (case "(($ac_try" in
11491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492 *) ac_try_echo=$ac_try;;
11494 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11495 (eval "$ac_try") 2>&5
11497 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11498 (exit $ac_status); }; }; then
11499 eval "$as_ac_var=yes"
11501 echo "$as_me: failed program was
:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11504 eval "$as_ac_var=no
"
11507 rm -f core conftest.err conftest.$ac_objext \
11508 conftest$ac_exeext conftest.$ac_ext
11510 ac_res=`eval echo '${'$as_ac_var'}'`
11511 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11512 echo "${ECHO_T}$ac_res" >&6; }
11513 if test `eval echo '${'$as_ac_var'}'` = yes; then
11514 cat >>confdefs.h <<_ACEOF
11515 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11523 for ac_func in strrchr rindex
11525 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11526 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11527 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11528 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11529 echo $ECHO_N "(cached
) $ECHO_C" >&6
11531 cat >conftest.$ac_ext <<_ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h. */
11537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11539 #define $ac_func innocuous_$ac_func
11541 /* System header to define __stub macros and hopefully few prototypes,
11542 which can conflict with char $ac_func (); below.
11543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11544 <limits.h> exists even on freestanding compilers. */
11547 # include <limits.h>
11549 # include <assert.h>
11554 /* Override any GCC internal prototype to avoid an error.
11555 Use char because int might match the return type of a GCC
11556 builtin and then its argument prototype would still apply. */
11561 /* The GNU C library defines this for functions which it implements
11562 to always fail with ENOSYS. Some functions are actually named
11563 something starting with __ and the normal name is an alias. */
11564 #if defined __stub_$ac_func || defined __stub___$ac_func
11571 return $ac_func ();
11576 rm -f conftest.$ac_objext conftest$ac_exeext
11577 if { (ac_try="$ac_link"
11578 case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11582 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11583 (eval "$ac_link") 2>conftest.er1
11585 grep -v '^ *+' conftest.er1 >conftest.err
11587 cat conftest.err >&5
11588 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11589 (exit $ac_status); } &&
11590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11591 { (case "(($ac_try" in
11592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11593 *) ac_try_echo=$ac_try;;
11595 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11596 (eval "$ac_try") 2>&5
11598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11599 (exit $ac_status); }; } &&
11600 { ac_try='test -s conftest$ac_exeext'
11601 { (case "(($ac_try" in
11602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11603 *) ac_try_echo=$ac_try;;
11605 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11606 (eval "$ac_try") 2>&5
11608 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11609 (exit $ac_status); }; }; then
11610 eval "$as_ac_var=yes"
11612 echo "$as_me: failed program was
:" >&5
11613 sed 's/^/| /' conftest.$ac_ext >&5
11615 eval "$as_ac_var=no
"
11618 rm -f core conftest.err conftest.$ac_objext \
11619 conftest$ac_exeext conftest.$ac_ext
11621 ac_res=`eval echo '${'$as_ac_var'}'`
11622 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11623 echo "${ECHO_T}$ac_res" >&6; }
11624 if test `eval echo '${'$as_ac_var'}'` = yes; then
11625 cat >>confdefs.h <<_ACEOF
11626 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11634 for ac_func in memcpy bcopy
11636 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11637 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11638 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11639 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11640 echo $ECHO_N "(cached
) $ECHO_C" >&6
11642 cat >conftest.$ac_ext <<_ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11650 #define $ac_func innocuous_$ac_func
11652 /* System header to define __stub macros and hopefully few prototypes,
11653 which can conflict with char $ac_func (); below.
11654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11655 <limits.h> exists even on freestanding compilers. */
11658 # include <limits.h>
11660 # include <assert.h>
11665 /* Override any GCC internal prototype to avoid an error.
11666 Use char because int might match the return type of a GCC
11667 builtin and then its argument prototype would still apply. */
11672 /* The GNU C library defines this for functions which it implements
11673 to always fail with ENOSYS. Some functions are actually named
11674 something starting with __ and the normal name is an alias. */
11675 #if defined __stub_$ac_func || defined __stub___$ac_func
11682 return $ac_func ();
11687 rm -f conftest.$ac_objext conftest$ac_exeext
11688 if { (ac_try="$ac_link"
11689 case "(($ac_try" in
11690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691 *) ac_try_echo=$ac_try;;
11693 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11694 (eval "$ac_link") 2>conftest.er1
11696 grep -v '^ *+' conftest.er1 >conftest.err
11698 cat conftest.err >&5
11699 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11700 (exit $ac_status); } &&
11701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11702 { (case "(($ac_try" in
11703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704 *) ac_try_echo=$ac_try;;
11706 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11707 (eval "$ac_try") 2>&5
11709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11710 (exit $ac_status); }; } &&
11711 { ac_try='test -s conftest$ac_exeext'
11712 { (case "(($ac_try" in
11713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714 *) ac_try_echo=$ac_try;;
11716 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11717 (eval "$ac_try") 2>&5
11719 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11720 (exit $ac_status); }; }; then
11721 eval "$as_ac_var=yes"
11723 echo "$as_me: failed program was
:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11726 eval "$as_ac_var=no
"
11729 rm -f core conftest.err conftest.$ac_objext \
11730 conftest$ac_exeext conftest.$ac_ext
11732 ac_res=`eval echo '${'$as_ac_var'}'`
11733 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11734 echo "${ECHO_T}$ac_res" >&6; }
11735 if test `eval echo '${'$as_ac_var'}'` = yes; then
11736 cat >>confdefs.h <<_ACEOF
11737 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11745 for ac_func in memmove strcmp
11747 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11748 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11749 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11750 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11751 echo $ECHO_N "(cached
) $ECHO_C" >&6
11753 cat >conftest.$ac_ext <<_ACEOF
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h. */
11759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11761 #define $ac_func innocuous_$ac_func
11763 /* System header to define __stub macros and hopefully few prototypes,
11764 which can conflict with char $ac_func (); below.
11765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11766 <limits.h> exists even on freestanding compilers. */
11769 # include <limits.h>
11771 # include <assert.h>
11776 /* Override any GCC internal prototype to avoid an error.
11777 Use char because int might match the return type of a GCC
11778 builtin and then its argument prototype would still apply. */
11783 /* The GNU C library defines this for functions which it implements
11784 to always fail with ENOSYS. Some functions are actually named
11785 something starting with __ and the normal name is an alias. */
11786 #if defined __stub_$ac_func || defined __stub___$ac_func
11793 return $ac_func ();
11798 rm -f conftest.$ac_objext conftest$ac_exeext
11799 if { (ac_try="$ac_link"
11800 case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11804 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_link") 2>conftest.er1
11807 grep -v '^ *+' conftest.er1 >conftest.err
11809 cat conftest.err >&5
11810 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11811 (exit $ac_status); } &&
11812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11813 { (case "(($ac_try" in
11814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815 *) ac_try_echo=$ac_try;;
11817 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11818 (eval "$ac_try") 2>&5
11820 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11821 (exit $ac_status); }; } &&
11822 { ac_try='test -s conftest$ac_exeext'
11823 { (case "(($ac_try" in
11824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825 *) ac_try_echo=$ac_try;;
11827 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11828 (eval "$ac_try") 2>&5
11830 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11831 (exit $ac_status); }; }; then
11832 eval "$as_ac_var=yes"
11834 echo "$as_me: failed program was
:" >&5
11835 sed 's/^/| /' conftest.$ac_ext >&5
11837 eval "$as_ac_var=no
"
11840 rm -f core conftest.err conftest.$ac_objext \
11841 conftest$ac_exeext conftest.$ac_ext
11843 ac_res=`eval echo '${'$as_ac_var'}'`
11844 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11845 echo "${ECHO_T}$ac_res" >&6; }
11846 if test `eval echo '${'$as_ac_var'}'` = yes; then
11847 cat >>confdefs.h <<_ACEOF
11848 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11857 for ac_func in closedir opendir readdir
11859 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11860 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11861 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11862 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11863 echo $ECHO_N "(cached
) $ECHO_C" >&6
11865 cat >conftest.$ac_ext <<_ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h. */
11871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11873 #define $ac_func innocuous_$ac_func
11875 /* System header to define __stub macros and hopefully few prototypes,
11876 which can conflict with char $ac_func (); below.
11877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11878 <limits.h> exists even on freestanding compilers. */
11881 # include <limits.h>
11883 # include <assert.h>
11888 /* Override any GCC internal prototype to avoid an error.
11889 Use char because int might match the return type of a GCC
11890 builtin and then its argument prototype would still apply. */
11895 /* The GNU C library defines this for functions which it implements
11896 to always fail with ENOSYS. Some functions are actually named
11897 something starting with __ and the normal name is an alias. */
11898 #if defined __stub_$ac_func || defined __stub___$ac_func
11905 return $ac_func ();
11910 rm -f conftest.$ac_objext conftest$ac_exeext
11911 if { (ac_try="$ac_link"
11912 case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11916 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_link") 2>conftest.er1
11919 grep -v '^ *+' conftest.er1 >conftest.err
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11923 (exit $ac_status); } &&
11924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11925 { (case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11929 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11930 (eval "$ac_try") 2>&5
11932 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11933 (exit $ac_status); }; } &&
11934 { ac_try='test -s conftest$ac_exeext'
11935 { (case "(($ac_try" in
11936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937 *) ac_try_echo=$ac_try;;
11939 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11940 (eval "$ac_try") 2>&5
11942 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11943 (exit $ac_status); }; }; then
11944 eval "$as_ac_var=yes"
11946 echo "$as_me: failed program was
:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11949 eval "$as_ac_var=no
"
11952 rm -f core conftest.err conftest.$ac_objext \
11953 conftest$ac_exeext conftest.$ac_ext
11955 ac_res=`eval echo '${'$as_ac_var'}'`
11956 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11957 echo "${ECHO_T}$ac_res" >&6; }
11958 if test `eval echo '${'$as_ac_var'}'` = yes; then
11959 cat >>confdefs.h <<_ACEOF
11960 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11967 # Check whether --enable-shared was given.
11968 if test "${enable_shared+set}" = set; then
11969 enableval=$enable_shared; p=${PACKAGE-default}
11971 yes) enable_shared=yes ;;
11972 no) enable_shared=no ;;
11975 # Look at the argument we got. We use all the common list separators.
11976 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11977 for pkg in $enableval; do
11979 if test "X
$pkg" = "X
$p"; then
11991 # Check whether --enable-static was given.
11992 if test "${enable_static+set}" = set; then
11993 enableval=$enable_static; p=${PACKAGE-default}
11995 yes) enable_static=yes ;;
11996 no) enable_static=no ;;
11999 # Look at the argument we got. We use all the common list separators.
12000 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12001 for pkg in $enableval; do
12003 if test "X
$pkg" = "X
$p"; then
12015 # Check whether --enable-fast-install was given.
12016 if test "${enable_fast_install+set}" = set; then
12017 enableval=$enable_fast_install; p=${PACKAGE-default}
12019 yes) enable_fast_install=yes ;;
12020 no) enable_fast_install=no ;;
12022 enable_fast_install=no
12023 # Look at the argument we got. We use all the common list separators.
12024 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12025 for pkg in $enableval; do
12027 if test "X
$pkg" = "X
$p"; then
12028 enable_fast_install=yes
12035 enable_fast_install=yes
12039 { echo "$as_me:$LINENO: checking
for a
sed that does not truncate output
" >&5
12040 echo $ECHO_N "checking
for a
sed that does not truncate output...
$ECHO_C" >&6; }
12041 if test "${lt_cv_path_SED+set}" = set; then
12042 echo $ECHO_N "(cached
) $ECHO_C" >&6
12044 # Loop through the user's path and test for sed and gsed.
12045 # Then use that list of sed's as ones to test for truncation.
12046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12047 for as_dir in $PATH
12050 test -z "$as_dir" && as_dir=.
12051 for lt_ac_prog in sed gsed; do
12052 for ac_exec_ext in '' $ac_executable_extensions; do
12053 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12054 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12061 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12062 # along with /bin/sed that truncates output.
12063 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12064 test ! -f $lt_ac_sed && continue
12065 cat /dev/null > conftest.in
12067 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12068 # Check for GNU sed and select it if it is found.
12069 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12070 lt_cv_path_SED=$lt_ac_sed
12074 cat conftest.in conftest.in >conftest.tmp
12075 mv conftest.tmp conftest.in
12076 cp conftest.in conftest.nl
12078 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12079 cmp -s conftest.out conftest.nl || break
12080 # 10000 chars as input seems more than enough
12081 test $lt_ac_count -gt 10 && break
12082 lt_ac_count=`expr $lt_ac_count + 1`
12083 if test $lt_ac_count -gt $lt_ac_max; then
12084 lt_ac_max=$lt_ac_count
12085 lt_cv_path_SED=$lt_ac_sed
12092 SED=$lt_cv_path_SED
12093 { echo "$as_me:$LINENO: result
: $SED" >&5
12094 echo "${ECHO_T}$SED" >&6; }
12097 # Check whether --with-gnu-ld was given.
12098 if test "${with_gnu_ld+set}" = set; then
12099 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12105 if test "$GCC" = yes; then
12106 # Check if gcc -print-prog-name=ld gives a path.
12107 { echo "$as_me:$LINENO: checking
for ld used by
$CC" >&5
12108 echo $ECHO_N "checking
for ld used by
$CC...
$ECHO_C" >&6; }
12111 # gcc leaves a trailing carriage return which upsets mingw
12112 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12114 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12117 # Accept absolute paths.
12119 re_direlt='/[^/][^/]*/\.\./'
12120 # Canonicalize the pathname of ld
12121 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12122 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12123 ac_prog=`echo $ac_prog| $SED "s
%$re_direlt%/%"`
12125 test -z "$LD" && LD="$ac_prog"
12128 # If it fails, then pretend we aren't using GCC.
12132 # If it is relative, then search for the first ld in PATH.
12133 with_gnu_ld=unknown
12136 elif test "$with_gnu_ld" = yes; then
12137 { echo "$as_me:$LINENO: checking
for GNU ld
" >&5
12138 echo $ECHO_N "checking
for GNU ld...
$ECHO_C" >&6; }
12140 { echo "$as_me:$LINENO: checking
for non-GNU ld
" >&5
12141 echo $ECHO_N "checking
for non-GNU ld...
$ECHO_C" >&6; }
12143 if test "${lt_cv_path_LD+set}" = set; then
12144 echo $ECHO_N "(cached
) $ECHO_C" >&6
12146 if test -z "$LD"; then
12147 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12148 for ac_dir in $PATH; do
12150 test -z "$ac_dir" && ac_dir=.
12151 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12152 lt_cv_path_LD="$ac_dir/$ac_prog"
12153 # Check to see if the program is GNU ld. I'd rather use --version,
12154 # but apparently some variants of GNU ld only accept -v.
12155 # Break only if it was the GNU/non-GNU ld that we prefer.
12156 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12157 *GNU* | *'with BFD'*)
12158 test "$with_gnu_ld" != no && break
12161 test "$with_gnu_ld" != yes && break
12168 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12172 LD="$lt_cv_path_LD"
12173 if test -n "$LD"; then
12174 { echo "$as_me:$LINENO: result
: $LD" >&5
12175 echo "${ECHO_T}$LD" >&6; }
12177 { echo "$as_me:$LINENO: result
: no
" >&5
12178 echo "${ECHO_T}no
" >&6; }
12180 test -z "$LD" && { { echo "$as_me:$LINENO: error
: no acceptable ld found
in \
$PATH" >&5
12181 echo "$as_me: error
: no acceptable ld found
in \
$PATH" >&2;}
12182 { (exit 1); exit 1; }; }
12183 { echo "$as_me:$LINENO: checking
if the linker
($LD) is GNU ld
" >&5
12184 echo $ECHO_N "checking
if the linker
($LD) is GNU ld...
$ECHO_C" >&6; }
12185 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12186 echo $ECHO_N "(cached
) $ECHO_C" >&6
12188 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12189 case `$LD -v 2>&1 </dev/null` in
12190 *GNU* | *'with BFD'*)
12191 lt_cv_prog_gnu_ld=yes
12194 lt_cv_prog_gnu_ld=no
12198 { echo "$as_me:$LINENO: result
: $lt_cv_prog_gnu_ld" >&5
12199 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12200 with_gnu_ld=$lt_cv_prog_gnu_ld
12203 { echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
12204 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6; }
12205 if test "${lt_cv_ld_reload_flag+set}" = set; then
12206 echo $ECHO_N "(cached
) $ECHO_C" >&6
12208 lt_cv_ld_reload_flag='-r'
12210 { echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
12211 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12212 reload_flag=$lt_cv_ld_reload_flag
12213 case $reload_flag in
12215 *) reload_flag=" $reload_flag" ;;
12217 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12220 if test "$GCC" = yes; then
12221 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12223 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12228 { echo "$as_me:$LINENO: checking how to recognise dependent libraries
" >&5
12229 echo $ECHO_N "checking how to recognise dependent libraries...
$ECHO_C" >&6; }
12230 if test "${lt_cv_deplibs_check_method+set}" = set; then
12231 echo $ECHO_N "(cached
) $ECHO_C" >&6
12233 lt_cv_file_magic_cmd='$MAGIC_CMD'
12234 lt_cv_file_magic_test_file=
12235 lt_cv_deplibs_check_method='unknown'
12236 # Need to set the preceding variable on all platforms that support
12237 # interlibrary dependencies.
12238 # 'none' -- dependencies not supported.
12239 # `unknown' -- same as none, but documents that we really don't know.
12240 # 'pass_all' -- all dependencies passed with no checks.
12241 # 'test_compile' -- check by making test program.
12242 # 'file_magic [[regex]]' -- check by looking for files in library path
12243 # which responds to the $file_magic_cmd with a given extended regex.
12244 # If you have `file' or equivalent on your system and you're not sure
12245 # whether `pass_all' will *always* work, you probably want this one.
12249 lt_cv_deplibs_check_method=pass_all
12253 lt_cv_deplibs_check_method=pass_all
12257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12258 lt_cv_file_magic_cmd='/usr/bin/file -L'
12259 lt_cv_file_magic_test_file=/shlib/libc.so
12263 # func_win32_libid is a shell function defined in ltmain.sh
12264 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12265 lt_cv_file_magic_cmd='func_win32_libid'
12269 # Base MSYS/MinGW do not provide the 'file' command needed by
12270 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12271 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12272 lt_cv_file_magic_cmd='$OBJDUMP -f'
12275 darwin* | rhapsody*)
12276 lt_cv_deplibs_check_method=pass_all
12279 freebsd* | kfreebsd*-gnu | dragonfly*)
12280 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12283 # Not sure whether the presence of OpenBSD here was a mistake.
12284 # Let's accept both of them until this is cleared up.
12285 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12286 lt_cv_file_magic_cmd=/usr/bin/file
12287 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12291 lt_cv_deplibs_check_method=pass_all
12296 lt_cv_deplibs_check_method=pass_all
12299 hpux10.20* | hpux11*)
12300 lt_cv_file_magic_cmd=/usr/bin/file
12303 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12304 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12307 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]'
12308 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12311 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12312 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12318 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12322 irix5* | irix6* | nonstopux*)
12324 *-32|*"-32 ") libmagic=32-bit;;
12325 *-n32|*"-n32 ") libmagic=N32;;
12326 *-64|*"-64 ") libmagic=64-bit;;
12327 *) libmagic=never-match;;
12329 lt_cv_deplibs_check_method=pass_all
12332 # This must be Linux ELF.
12334 lt_cv_deplibs_check_method=pass_all
12338 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12346 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12347 lt_cv_file_magic_cmd=/usr/bin/file
12348 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12352 lt_cv_deplibs_check_method=unknown
12356 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12357 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12359 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12363 osf3* | osf4* | osf5*)
12364 lt_cv_deplibs_check_method=pass_all
12368 lt_cv_deplibs_check_method=pass_all
12372 case $host_vendor in
12374 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]'
12375 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12378 lt_cv_deplibs_check_method=pass_all
12381 lt_cv_file_magic_cmd='/bin/file'
12382 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12385 lt_cv_file_magic_cmd='/bin/file'
12386 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12387 lt_cv_file_magic_test_file=/lib/libc.so
12390 lt_cv_deplibs_check_method=pass_all
12393 lt_cv_deplibs_check_method=pass_all
12398 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12399 lt_cv_deplibs_check_method=pass_all
12404 { echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
12405 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12406 file_magic_cmd=$lt_cv_file_magic_cmd
12407 deplibs_check_method=$lt_cv_deplibs_check_method
12408 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12412 # If no C compiler was specified, use CC.
12415 # If no C compiler flags were specified, use CFLAGS.
12416 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12418 # Allow CC to be a program name with arguments.
12421 # Check whether --enable-libtool-lock was given.
12422 if test "${enable_libtool_lock+set}" = set; then
12423 enableval=$enable_libtool_lock;
12426 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
12428 # Some flags need to be propagated to the compiler or linker for good
12432 # Find out which ABI we are using.
12433 echo 'int i;' > conftest.$ac_ext
12434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12435 (eval $ac_compile) 2>&5
12437 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12438 (exit $ac_status); }; then
12439 case `/usr/bin/file conftest.$ac_objext` in
12441 HPUX_IA64_MODE="32"
12444 HPUX_IA64_MODE="64"
12451 # Find out which ABI we are using.
12452 echo '#line 12452 "configure
"' > conftest.$ac_ext
12453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12454 (eval $ac_compile) 2>&5
12456 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12457 (exit $ac_status); }; then
12458 if test "$lt_cv_prog_gnu_ld" = yes; then
12459 case `/usr/bin/file conftest.$ac_objext` in
12461 LD="${LD-ld} -melf32bsmip"
12464 LD="${LD-ld} -melf32bmipn32"
12467 LD="${LD-ld} -melf64bmip"
12471 case `/usr/bin/file conftest.$ac_objext` in
12487 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12488 # Find out which ABI we are using.
12489 echo 'int i;' > conftest.$ac_ext
12490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12491 (eval $ac_compile) 2>&5
12493 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12494 (exit $ac_status); }; then
12495 case `/usr/bin/file conftest.o` in
12499 LD="${LD-ld} -m elf_i386
"
12501 ppc64-*linux*|powerpc64-*linux*)
12502 LD="${LD-ld} -m elf32ppclinux
"
12505 LD="${LD-ld} -m elf_s390
"
12508 LD="${LD-ld} -m elf32_sparc
"
12515 LD="${LD-ld} -m elf_x86_64
"
12517 ppc*-*linux*|powerpc*-*linux*)
12518 LD="${LD-ld} -m elf64ppc
"
12521 LD="${LD-ld} -m elf64_s390
"
12524 LD="${LD-ld} -m elf64_sparc
"
12534 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12535 SAVE_CFLAGS="$CFLAGS"
12536 CFLAGS="$CFLAGS -belf"
12537 { echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
12538 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6; }
12539 if test "${lt_cv_cc_needs_belf+set}" = set; then
12540 echo $ECHO_N "(cached
) $ECHO_C" >&6
12543 ac_cpp='$CPP $CPPFLAGS'
12544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12548 cat >conftest.$ac_ext <<_ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h. */
12563 rm -f conftest.$ac_objext conftest$ac_exeext
12564 if { (ac_try="$ac_link"
12565 case "(($ac_try" in
12566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567 *) ac_try_echo=$ac_try;;
12569 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12570 (eval "$ac_link") 2>conftest.er1
12572 grep -v '^ *+' conftest.er1 >conftest.err
12574 cat conftest.err >&5
12575 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12576 (exit $ac_status); } &&
12577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12578 { (case "(($ac_try" in
12579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580 *) ac_try_echo=$ac_try;;
12582 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12583 (eval "$ac_try") 2>&5
12585 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12586 (exit $ac_status); }; } &&
12587 { ac_try='test -s conftest$ac_exeext'
12588 { (case "(($ac_try" in
12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590 *) ac_try_echo=$ac_try;;
12592 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12593 (eval "$ac_try") 2>&5
12595 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12596 (exit $ac_status); }; }; then
12597 lt_cv_cc_needs_belf=yes
12599 echo "$as_me: failed program was
:" >&5
12600 sed 's/^/| /' conftest.$ac_ext >&5
12602 lt_cv_cc_needs_belf=no
12605 rm -f core conftest.err conftest.$ac_objext \
12606 conftest$ac_exeext conftest.$ac_ext
12608 ac_cpp='$CPP $CPPFLAGS'
12609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12614 { echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
12615 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12616 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12617 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12618 CFLAGS="$SAVE_CFLAGS"
12622 # Find out which ABI we are using.
12623 echo 'int i;' > conftest.$ac_ext
12624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12625 (eval $ac_compile) 2>&5
12627 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12628 (exit $ac_status); }; then
12629 case `/usr/bin/file conftest.o` in
12631 case $lt_cv_prog_gnu_ld in
12632 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
12633 *) LD="${LD-ld} -64" ;;
12644 need_locks="$enable_libtool_lock"
12649 if test -n "$CXX" && ( test "X
$CXX" != "Xno
" &&
12650 ( (test "X
$CXX" = "Xg
++" && `g++ -v >/dev/null 2>&1` ) ||
12651 (test "X
$CXX" != "Xg
++"))) ; then
12653 ac_cpp='$CXXCPP $CPPFLAGS'
12654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12657 { echo "$as_me:$LINENO: checking how to run the C
++ preprocessor
" >&5
12658 echo $ECHO_N "checking how to run the C
++ preprocessor...
$ECHO_C" >&6; }
12659 if test -z "$CXXCPP"; then
12660 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12661 echo $ECHO_N "(cached
) $ECHO_C" >&6
12663 # Double quotes because CXXCPP needs to be expanded
12664 for CXXCPP in "$CXX -E" "/lib
/cpp
"
12666 ac_preproc_ok=false
12667 for ac_cxx_preproc_warn_flag in '' yes
12669 # Use a header file that comes with gcc, so configuring glibc
12670 # with a fresh cross-compiler works.
12671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12672 # <limits.h> exists even on freestanding compilers.
12673 # On the NeXT, cc -E runs the code through the compiler's parser,
12674 # not just through cpp. "Syntax error
" is here to catch this case.
12675 cat >conftest.$ac_ext <<_ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h. */
12682 # include <limits.h>
12684 # include <assert.h>
12688 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12689 case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12693 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12696 grep -v '^ *+' conftest.er1 >conftest.err
12698 cat conftest.err >&5
12699 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12700 (exit $ac_status); } >/dev/null; then
12701 if test -s conftest.err; then
12702 ac_cpp_err=$ac_cxx_preproc_warn_flag
12703 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12710 if test -z "$ac_cpp_err"; then
12713 echo "$as_me: failed program was
:" >&5
12714 sed 's/^/| /' conftest.$ac_ext >&5
12716 # Broken: fails on valid input.
12720 rm -f conftest.err conftest.$ac_ext
12722 # OK, works on sane cases. Now check whether nonexistent headers
12723 # can be detected and how.
12724 cat >conftest.$ac_ext <<_ACEOF
12727 cat confdefs.h >>conftest.$ac_ext
12728 cat >>conftest.$ac_ext <<_ACEOF
12729 /* end confdefs.h. */
12730 #include <ac_nonexistent.h>
12732 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12733 case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12737 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12740 grep -v '^ *+' conftest.er1 >conftest.err
12742 cat conftest.err >&5
12743 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12744 (exit $ac_status); } >/dev/null; then
12745 if test -s conftest.err; then
12746 ac_cpp_err=$ac_cxx_preproc_warn_flag
12747 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12754 if test -z "$ac_cpp_err"; then
12755 # Broken: success on invalid input.
12758 echo "$as_me: failed program was
:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12761 # Passes both tests.
12766 rm -f conftest.err conftest.$ac_ext
12769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12770 rm -f conftest.err conftest.$ac_ext
12771 if $ac_preproc_ok; then
12776 ac_cv_prog_CXXCPP=$CXXCPP
12779 CXXCPP=$ac_cv_prog_CXXCPP
12781 ac_cv_prog_CXXCPP=$CXXCPP
12783 { echo "$as_me:$LINENO: result
: $CXXCPP" >&5
12784 echo "${ECHO_T}$CXXCPP" >&6; }
12785 ac_preproc_ok=false
12786 for ac_cxx_preproc_warn_flag in '' yes
12788 # Use a header file that comes with gcc, so configuring glibc
12789 # with a fresh cross-compiler works.
12790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12791 # <limits.h> exists even on freestanding compilers.
12792 # On the NeXT, cc -E runs the code through the compiler's parser,
12793 # not just through cpp. "Syntax error
" is here to catch this case.
12794 cat >conftest.$ac_ext <<_ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h. */
12801 # include <limits.h>
12803 # include <assert.h>
12807 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12808 case "(($ac_try" in
12809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810 *) ac_try_echo=$ac_try;;
12812 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12813 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12815 grep -v '^ *+' conftest.er1 >conftest.err
12817 cat conftest.err >&5
12818 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12819 (exit $ac_status); } >/dev/null; then
12820 if test -s conftest.err; then
12821 ac_cpp_err=$ac_cxx_preproc_warn_flag
12822 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12829 if test -z "$ac_cpp_err"; then
12832 echo "$as_me: failed program was
:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12835 # Broken: fails on valid input.
12839 rm -f conftest.err conftest.$ac_ext
12841 # OK, works on sane cases. Now check whether nonexistent headers
12842 # can be detected and how.
12843 cat >conftest.$ac_ext <<_ACEOF
12846 cat confdefs.h >>conftest.$ac_ext
12847 cat >>conftest.$ac_ext <<_ACEOF
12848 /* end confdefs.h. */
12849 #include <ac_nonexistent.h>
12851 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12852 case "(($ac_try" in
12853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854 *) ac_try_echo=$ac_try;;
12856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12857 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12859 grep -v '^ *+' conftest.er1 >conftest.err
12861 cat conftest.err >&5
12862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12863 (exit $ac_status); } >/dev/null; then
12864 if test -s conftest.err; then
12865 ac_cpp_err=$ac_cxx_preproc_warn_flag
12866 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12873 if test -z "$ac_cpp_err"; then
12874 # Broken: success on invalid input.
12877 echo "$as_me: failed program was
:" >&5
12878 sed 's/^/| /' conftest.$ac_ext >&5
12880 # Passes both tests.
12885 rm -f conftest.err conftest.$ac_ext
12888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12889 rm -f conftest.err conftest.$ac_ext
12890 if $ac_preproc_ok; then
12893 { { echo "$as_me:$LINENO: error
: C
++ preprocessor
\"$CXXCPP\" fails sanity check
12894 See \
`config.log' for more details." >&5
12895 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12896 See \`config.log
' for more details." >&2;}
12897 { (exit 1); exit 1; }; }
12901 ac_cpp='$CXXCPP $CPPFLAGS'
12902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
12903 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
12904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12910 ac_compile='$F77 -c $FFLAGS conftest.
$ac_ext >&5'
12911 ac_link='$F77 -o conftest
$ac_exeext $FFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
12912 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12913 if test -n "$ac_tool_prefix"; then
12914 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
12916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12917 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12920 if test "${ac_cv_prog_F77+set}" = set; then
12921 echo $ECHO_N "(cached) $ECHO_C" >&6
12923 if test -n "$F77"; then
12924 ac_cv_prog_F77="$F77" # Let the user override the test.
12926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927 for as_dir in $PATH
12930 test -z "$as_dir" && as_dir=.
12931 for ac_exec_ext in '' $ac_executable_extensions; do
12932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12933 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12943 F77=$ac_cv_prog_F77
12944 if test -n "$F77"; then
12945 { echo "$as_me:$LINENO: result: $F77" >&5
12946 echo "${ECHO_T}$F77" >&6; }
12948 { echo "$as_me:$LINENO: result: no" >&5
12949 echo "${ECHO_T}no" >&6; }
12953 test -n "$F77" && break
12956 if test -z "$F77"; then
12958 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
12960 # Extract the first word of "$ac_prog", so it can be a program name with args.
12961 set dummy $ac_prog; ac_word=$2
12962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12964 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12965 echo $ECHO_N "(cached) $ECHO_C" >&6
12967 if test -n "$ac_ct_F77"; then
12968 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12971 for as_dir in $PATH
12974 test -z "$as_dir" && as_dir=.
12975 for ac_exec_ext in '' $ac_executable_extensions; do
12976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12977 ac_cv_prog_ac_ct_F77="$ac_prog"
12978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12987 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12988 if test -n "$ac_ct_F77"; then
12989 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12990 echo "${ECHO_T}$ac_ct_F77" >&6; }
12992 { echo "$as_me:$LINENO: result: no" >&5
12993 echo "${ECHO_T}no" >&6; }
12997 test -n "$ac_ct_F77" && break
13000 if test "x$ac_ct_F77" = x; then
13003 case $cross_compiling:$ac_tool_warned in
13005 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13006 whose name does not start with the host triplet. If you think this
13007 configuration is useful to you, please write to autoconf@gnu.org." >&5
13008 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13009 whose name does not start with the host triplet. If you think this
13010 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13011 ac_tool_warned=yes ;;
13018 # Provide some information about the compiler.
13019 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13020 ac_compiler=`set X $ac_compile; echo $2`
13021 { (ac_try="$ac_compiler --version >&5"
13022 case "(($ac_try" in
13023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13024 *) ac_try_echo=$ac_try;;
13026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13027 (eval "$ac_compiler --version >&5") 2>&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }
13031 { (ac_try="$ac_compiler -v >&5"
13032 case "(($ac_try" in
13033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13034 *) ac_try_echo=$ac_try;;
13036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13037 (eval "$ac_compiler -v >&5") 2>&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }
13041 { (ac_try="$ac_compiler -V >&5"
13042 case "(($ac_try" in
13043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13044 *) ac_try_echo=$ac_try;;
13046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13047 (eval "$ac_compiler -V >&5") 2>&5
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }
13053 # If we don't use
`.F' as extension, the preprocessor is not run on the
13054 # input file. (Note that this only needs to work for GNU compilers.)
13055 ac_save_ext=$ac_ext
13057 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13058 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13059 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13060 echo $ECHO_N "(cached) $ECHO_C" >&6
13062 cat >conftest.$ac_ext <<_ACEOF
13070 rm -f conftest.$ac_objext
13071 if { (ac_try="$ac_compile"
13072 case "(($ac_try" in
13073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13074 *) ac_try_echo
=$ac_try;;
13076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13077 (eval "$ac_compile") 2>conftest.er1
13079 grep -v '^ *+' conftest.er1
>conftest.err
13081 cat conftest.err
>&5
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); } &&
13084 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13085 { (case "(($ac_try" in
13086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13087 *) ac_try_echo=$ac_try;;
13089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090 (eval "$ac_try") 2>&5
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); }; } &&
13094 { ac_try='test -s conftest.$ac_objext'
13095 { (case "(($ac_try" in
13096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13097 *) ac_try_echo
=$ac_try;;
13099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13100 (eval "$ac_try") 2>&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); }; }; then
13104 ac_compiler_gnu
=yes
13106 echo "$as_me: failed program was:" >&5
13107 sed 's/^/| /' conftest.
$ac_ext >&5
13112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13113 ac_cv_f77_compiler_gnu
=$ac_compiler_gnu
13116 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13117 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13118 ac_ext
=$ac_save_ext
13119 ac_test_FFLAGS
=${FFLAGS+set}
13120 ac_save_FFLAGS
=$FFLAGS
13122 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13123 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13124 if test "${ac_cv_prog_f77_g+set}" = set; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13128 cat >conftest.
$ac_ext <<_ACEOF
13133 rm -f conftest.
$ac_objext
13134 if { (ac_try
="$ac_compile"
13135 case "(($ac_try" in
13136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13137 *) ac_try_echo=$ac_try;;
13139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140 (eval "$ac_compile") 2>conftest.er1
13142 grep -v '^ *+' conftest.er1 >conftest.err
13144 cat conftest.err >&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } &&
13147 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13148 { (case "(($ac_try" in
13149 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13150 *) ac_try_echo
=$ac_try;;
13152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153 (eval "$ac_try") 2>&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; } &&
13157 { ac_try
='test -s conftest.$ac_objext'
13158 { (case "(($ac_try" in
13159 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13160 *) ac_try_echo=$ac_try;;
13162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13163 (eval "$ac_try") 2>&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; }; then
13167 ac_cv_prog_f77_g=yes
13169 echo "$as_me: failed program was:" >&5
13170 sed 's/^/| /' conftest.$ac_ext >&5
13172 ac_cv_prog_f77_g=no
13175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13178 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13179 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13180 if test "$ac_test_FFLAGS" = set; then
13181 FFLAGS=$ac_save_FFLAGS
13182 elif test $ac_cv_prog_f77_g = yes; then
13183 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13189 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13196 G77=`test $ac_compiler_gnu = yes && echo yes`
13198 ac_cpp='$CPP $CPPFLAGS'
13199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13205 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13207 # find the maximum length of command line arguments
13208 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13209 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13210 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13218 # On DJGPP, this test can blow up pretty badly due to problems in libc
13219 # (any single argument exceeding 2000 bytes causes a buffer overrun
13220 # during glob expansion). Even if it were fixed, the result of this
13221 # check would be larger than it should be.
13222 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13226 # Under GNU Hurd, this test is not required because there is
13227 # no limit to the length of command line arguments.
13228 # Libtool will interpret -1 as no limit whatsoever
13229 lt_cv_sys_max_cmd_len=-1;
13233 # On Win9x/ME, this test blows up -- it succeeds, but takes
13234 # about 5 minutes as the teststring grows exponentially.
13235 # Worse, since 9x/ME are not pre-emptively multitasking,
13236 # you end up with a "frozen" computer, even though with patience
13237 # the test eventually succeeds (with a max line length of 256k).
13238 # Instead, let's just punt: use the minimum linelength reported by
13239 # all of the supported platforms: 8192 (on NT/2K/XP).
13240 lt_cv_sys_max_cmd_len=8192;
13244 # On AmigaOS with pdksh, this test takes hours, literally.
13245 # So we just punt and use a minimum line length of 8192.
13246 lt_cv_sys_max_cmd_len=8192;
13249 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13250 # This has been around since 386BSD, at least. Likely further.
13251 if test -x /sbin/sysctl; then
13252 lt_cv_sys_max_cmd_len=`/sbin
/sysctl
-n kern.argmax
`
13253 elif test -x /usr/sbin/sysctl; then
13254 lt_cv_sys_max_cmd_len=`/usr
/sbin
/sysctl
-n kern.argmax
`
13256 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13258 # And add a safety zone
13259 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 4`
13260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
* 3`
13264 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13265 lt_cv_sys_max_cmd_len=196608
13269 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13270 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13271 # nice to cause kernel panics so lets avoid the loop below.
13272 # First set a reasonable default.
13273 lt_cv_sys_max_cmd_len=16384
13275 if test -x /sbin/sysconfig; then
13276 case `/sbin
/sysconfig
-q proc exec_disable_arg_limit
` in
13277 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13282 lt_cv_sys_max_cmd_len=102400
13284 sysv5* | sco5v6* | sysv4.2uw2*)
13285 kargmax=`grep ARG_MAX
/etc
/conf
/cf.d
/stune
2>/dev
/null
`
13286 if test -n "$kargmax"; then
13287 lt_cv_sys_max_cmd_len=`echo $kargmax |
sed 's/.*[ ]//'`
13289 lt_cv_sys_max_cmd_len=32768
13293 # If test is not a shell built-in, we'll probably end up computing a
13294 # maximum length that is only half of the actual maximum length, but
13296 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13297 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev
/null
` \
13298 = "XX$teststring") >/dev/null 2>&1 &&
13299 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13300 lt_cv_sys_max_cmd_len=$new_result &&
13301 test $i != 17 # 1/2 MB should be enough
13304 teststring=$teststring$teststring
13307 # Add a significant safety factor because C++ compilers can tack on massive
13308 # amounts of additional arguments before passing them to the linker.
13309 # It appears as though 1/2 is a usable value.
13310 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 2`
13316 if test -n $lt_cv_sys_max_cmd_len ; then
13317 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13318 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13320 { echo "$as_me:$LINENO: result: none" >&5
13321 echo "${ECHO_T}none" >&6; }
13327 # Check for command to grab the raw symbol name followed by C symbol from nm.
13328 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13329 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13330 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13334 # These are sane defaults that work on at least a few old systems.
13335 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13337 # Character class describing NM global symbol codes.
13338 symcode='[BCDEGRST]'
13340 # Regexp to match symbols that can be accessed directly from C.
13341 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13343 # Transform an extracted symbol line into a proper C declaration
13344 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13346 # Transform an extracted symbol line into symbol name and symbol address
13347 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'"
13349 # Define system-specific variables.
13354 cygwin* | mingw* | pw32*)
13355 symcode='[ABCDGISTW]'
13357 hpux*) # Its linker distinguishes data from code symbols
13358 if test "$host_cpu" = ia64; then
13359 symcode='[ABCDEGRST]'
13361 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13362 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'"
13365 if test "$host_cpu" = ia64; then
13366 symcode='[ABCDGIRSTW]'
13367 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13368 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'"
13371 irix* | nonstopux*)
13372 symcode='[BCDEGRST]'
13375 symcode='[BCDEGQRST]'
13386 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13394 # Handle CRLF in mingw tool chain
13398 opt_cr=`echo 'x\{0,1\}' |
tr x
'\015'` # option cr in regexp
13402 # If we're using GNU nm, then use its standard symbol codes.
13403 case `$NM -V 2>&1` in
13404 *GNU* | *'with BFD'*)
13405 symcode='[ABCDGIRSTW]' ;;
13408 # Try without a prefix undercore, then with it.
13409 for ac_symprfx in "" "_"; do
13411 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13412 symxfrm="\\1 $ac_symprfx\\2 \\2"
13414 # Write the raw and C identifiers.
13415 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13417 # Check to see that the pipe works correctly.
13421 cat > conftest.$ac_ext <<EOF
13426 void nm_test_func(){}
13430 int main(){nm_test_var='a';nm_test_func();return(0);}
13433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13434 (eval $ac_compile) 2>&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; then
13438 # Now try to grab the symbols.
13440 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13441 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); } && test -s "$nlist"; then
13445 # Try sorting and uniquifying the output.
13446 if sort "$nlist" | uniq > "$nlist"T; then
13447 mv -f "$nlist"T "$nlist"
13452 # Make sure that we snagged all the symbols we need.
13453 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13454 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13455 cat <<EOF > conftest.$ac_ext
13461 # Now generate the symbol file.
13462 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13464 cat <<EOF >> conftest.$ac_ext
13465 #if defined (__STDC__) && __STDC__
13466 # define lt_ptr_t void *
13468 # define lt_ptr_t char *
13472 /* The mapping between symbol names and symbols. */
13477 lt_preloaded_symbols[] =
13480 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13481 cat <<\EOF >> conftest.$ac_ext
13489 # Now try linking the two files.
13490 mv conftest.$ac_objext conftstm.$ac_objext
13491 lt_save_LIBS="$LIBS"
13492 lt_save_CFLAGS="$CFLAGS"
13493 LIBS="conftstm.$ac_objext"
13494 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13496 (eval $ac_link) 2>&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13502 LIBS="$lt_save_LIBS"
13503 CFLAGS="$lt_save_CFLAGS"
13505 echo "cannot find nm_test_func in $nlist" >&5
13508 echo "cannot find nm_test_var in $nlist" >&5
13511 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13514 echo "$progname: failed program was:" >&5
13515 cat conftest.$ac_ext >&5
13517 rm -f conftest* conftst*
13519 # Do not use the global_symbol_pipe unless it works.
13520 if test "$pipe_works" = yes; then
13523 lt_cv_sys_global_symbol_pipe=
13529 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13530 lt_cv_sys_global_symbol_to_cdecl=
13532 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13533 { echo "$as_me:$LINENO: result: failed" >&5
13534 echo "${ECHO_T}failed" >&6; }
13536 { echo "$as_me:$LINENO: result: ok" >&5
13537 echo "${ECHO_T}ok" >&6; }
13540 { echo "$as_me:$LINENO: checking for objdir" >&5
13541 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13542 if test "${lt_cv_objdir+set}" = set; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
13545 rm -f .libs 2>/dev/null
13546 mkdir .libs 2>/dev/null
13547 if test -d .libs; then
13550 # MS-DOS does not allow filenames that begin with a dot.
13553 rmdir .libs 2>/dev/null
13555 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13556 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13557 objdir=$lt_cv_objdir
13565 # AIX sometimes has problems with the GCC collect2 program. For some
13566 # reason, if we set the COLLECT_NAMES environment variable, the problems
13567 # vanish in a puff of smoke.
13568 if test "X${COLLECT_NAMES+set}" != Xset; then
13570 export COLLECT_NAMES
13575 # Sed substitution that helps us do robust quoting. It backslashifies
13576 # metacharacters that are still active within double-quoted strings.
13577 Xsed='sed -e 1s/^X//'
13578 sed_quote_subst='s/\([\\"\\`$
\\\\]\
)/\\\
1/g
'
13580 # Same as above, but do not quote variable references.
13581 double_quote_subst='s
/\
([\\"\\`\\\\]\)/\\\1/g'
13583 # Sed substitution to delay expansion of an escaped shell variable in a
13584 # double_quote_subst'ed string.
13585 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13587 # Sed substitution to avoid accidental globbing in evaled expressions
13588 no_glob_subst='s/\*/\\\*/g'
13593 # Global variables:
13594 default_ofile=mklib
13595 can_build_shared=yes
13597 # All known linkers require a `.a' archive for static linking (except MSVC,
13598 # which needs '.lib').
13600 ltmain="$ac_aux_dir/ltmain.sh
"
13601 ofile="$default_ofile"
13602 with_gnu_ld="$lt_cv_prog_gnu_ld"
13604 if test -n "$ac_tool_prefix"; then
13605 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13606 set dummy ${ac_tool_prefix}ar; ac_word=$2
13607 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13608 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13609 if test "${ac_cv_prog_AR+set}" = set; then
13610 echo $ECHO_N "(cached
) $ECHO_C" >&6
13612 if test -n "$AR"; then
13613 ac_cv_prog_AR="$AR" # Let the user override the test.
13615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13616 for as_dir in $PATH
13619 test -z "$as_dir" && as_dir=.
13620 for ac_exec_ext in '' $ac_executable_extensions; do
13621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13622 ac_cv_prog_AR="${ac_tool_prefix}ar"
13623 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13633 if test -n "$AR"; then
13634 { echo "$as_me:$LINENO: result
: $AR" >&5
13635 echo "${ECHO_T}$AR" >&6; }
13637 { echo "$as_me:$LINENO: result
: no
" >&5
13638 echo "${ECHO_T}no
" >&6; }
13643 if test -z "$ac_cv_prog_AR"; then
13645 # Extract the first word of "ar", so it can be a program name with args.
13646 set dummy ar; ac_word=$2
13647 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13648 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13649 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13650 echo $ECHO_N "(cached
) $ECHO_C" >&6
13652 if test -n "$ac_ct_AR"; then
13653 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13656 for as_dir in $PATH
13659 test -z "$as_dir" && as_dir=.
13660 for ac_exec_ext in '' $ac_executable_extensions; do
13661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13662 ac_cv_prog_ac_ct_AR="ar"
13663 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13672 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13673 if test -n "$ac_ct_AR"; then
13674 { echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
13675 echo "${ECHO_T}$ac_ct_AR" >&6; }
13677 { echo "$as_me:$LINENO: result
: no
" >&5
13678 echo "${ECHO_T}no
" >&6; }
13681 if test "x
$ac_ct_AR" = x; then
13684 case $cross_compiling:$ac_tool_warned in
13686 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
13687 whose name does not start with the
host triplet. If you think this
13688 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
13689 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
13690 whose name does not start with the
host triplet. If you think this
13691 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
13692 ac_tool_warned=yes ;;
13697 AR="$ac_cv_prog_AR"
13700 if test -n "$ac_tool_prefix"; then
13701 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13702 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13703 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13704 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13705 if test "${ac_cv_prog_RANLIB+set}" = set; then
13706 echo $ECHO_N "(cached
) $ECHO_C" >&6
13708 if test -n "$RANLIB"; then
13709 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13712 for as_dir in $PATH
13715 test -z "$as_dir" && as_dir=.
13716 for ac_exec_ext in '' $ac_executable_extensions; do
13717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13718 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13719 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13728 RANLIB=$ac_cv_prog_RANLIB
13729 if test -n "$RANLIB"; then
13730 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
13731 echo "${ECHO_T}$RANLIB" >&6; }
13733 { echo "$as_me:$LINENO: result
: no
" >&5
13734 echo "${ECHO_T}no
" >&6; }
13739 if test -z "$ac_cv_prog_RANLIB"; then
13740 ac_ct_RANLIB=$RANLIB
13741 # Extract the first word of "ranlib
", so it can be a program name with args.
13742 set dummy ranlib; ac_word=$2
13743 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13744 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13745 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13746 echo $ECHO_N "(cached
) $ECHO_C" >&6
13748 if test -n "$ac_ct_RANLIB"; then
13749 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13752 for as_dir in $PATH
13755 test -z "$as_dir" && as_dir=.
13756 for ac_exec_ext in '' $ac_executable_extensions; do
13757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13758 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13759 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13768 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13769 if test -n "$ac_ct_RANLIB"; then
13770 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
13771 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13773 { echo "$as_me:$LINENO: result
: no
" >&5
13774 echo "${ECHO_T}no
" >&6; }
13777 if test "x
$ac_ct_RANLIB" = x; then
13780 case $cross_compiling:$ac_tool_warned in
13782 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
13783 whose name does not start with the
host triplet. If you think this
13784 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
13785 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
13786 whose name does not start with the
host triplet. If you think this
13787 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
13788 ac_tool_warned=yes ;;
13790 RANLIB=$ac_ct_RANLIB
13793 RANLIB="$ac_cv_prog_RANLIB"
13796 if test -n "$ac_tool_prefix"; then
13797 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13798 set dummy ${ac_tool_prefix}strip; ac_word=$2
13799 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13800 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13801 if test "${ac_cv_prog_STRIP+set}" = set; then
13802 echo $ECHO_N "(cached
) $ECHO_C" >&6
13804 if test -n "$STRIP"; then
13805 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13808 for as_dir in $PATH
13811 test -z "$as_dir" && as_dir=.
13812 for ac_exec_ext in '' $ac_executable_extensions; do
13813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13814 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13815 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13824 STRIP=$ac_cv_prog_STRIP
13825 if test -n "$STRIP"; then
13826 { echo "$as_me:$LINENO: result
: $STRIP" >&5
13827 echo "${ECHO_T}$STRIP" >&6; }
13829 { echo "$as_me:$LINENO: result
: no
" >&5
13830 echo "${ECHO_T}no
" >&6; }
13835 if test -z "$ac_cv_prog_STRIP"; then
13837 # Extract the first word of "strip
", so it can be a program name with args.
13838 set dummy strip; ac_word=$2
13839 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13840 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13841 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13842 echo $ECHO_N "(cached
) $ECHO_C" >&6
13844 if test -n "$ac_ct_STRIP"; then
13845 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13848 for as_dir in $PATH
13851 test -z "$as_dir" && as_dir=.
13852 for ac_exec_ext in '' $ac_executable_extensions; do
13853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13854 ac_cv_prog_ac_ct_STRIP="strip
"
13855 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13864 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13865 if test -n "$ac_ct_STRIP"; then
13866 { echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
13867 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13869 { echo "$as_me:$LINENO: result
: no
" >&5
13870 echo "${ECHO_T}no
" >&6; }
13873 if test "x
$ac_ct_STRIP" = x; then
13876 case $cross_compiling:$ac_tool_warned in
13878 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
13879 whose name does not start with the
host triplet. If you think this
13880 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
13881 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
13882 whose name does not start with the
host triplet. If you think this
13883 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
13884 ac_tool_warned=yes ;;
13889 STRIP="$ac_cv_prog_STRIP"
13894 old_CFLAGS="$CFLAGS"
13896 # Set sane defaults for various variables
13897 test -z "$AR" && AR=ar
13898 test -z "$AR_FLAGS" && AR_FLAGS=cru
13899 test -z "$AS" && AS=as
13900 test -z "$CC" && CC=cc
13901 test -z "$LTCC" && LTCC=$CC
13902 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13903 test -z "$DLLTOOL" && DLLTOOL=dlltool
13904 test -z "$LD" && LD=ld
13905 test -z "$LN_S" && LN_S="ln -s"
13906 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13907 test -z "$NM" && NM=nm
13908 test -z "$SED" && SED=sed
13909 test -z "$OBJDUMP" && OBJDUMP=objdump
13910 test -z "$RANLIB" && RANLIB=:
13911 test -z "$STRIP" && STRIP=:
13912 test -z "$ac_objext" && ac_objext=o
13914 # Determine commands to create old-style static archives.
13915 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13916 old_postinstall_cmds='chmod 644 $oldlib'
13917 old_postuninstall_cmds=
13919 if test -n "$RANLIB"; then
13922 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13925 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13928 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13931 for cc_temp in $compiler""; do
13933 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13934 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13939 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
13942 # Only perform the check for file, if the check method requires it
13943 case $deplibs_check_method in
13945 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13946 { echo "$as_me:$LINENO: checking
for ${ac_tool_prefix}file" >&5
13947 echo $ECHO_N "checking
for ${ac_tool_prefix}file...
$ECHO_C" >&6; }
13948 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13949 echo $ECHO_N "(cached
) $ECHO_C" >&6
13953 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13956 lt_save_MAGIC_CMD="$MAGIC_CMD"
13957 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13958 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
13959 for ac_dir in $ac_dummy; do
13961 test -z "$ac_dir" && ac_dir=.
13962 if test -f $ac_dir/${ac_tool_prefix}file; then
13963 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13964 if test -n "$file_magic_test_file"; then
13965 case $deplibs_check_method in
13967 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
13968 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13969 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13970 $EGREP "$file_magic_regex" > /dev/null; then
13975 *** Warning: the command libtool uses to detect shared libraries,
13976 *** $file_magic_cmd, produces output that libtool cannot recognize.
13977 *** The result is that libtool may fail to recognize shared libraries
13978 *** as such. This will affect the creation of libtool libraries that
13979 *** depend on shared libraries, but programs linked with such libtool
13980 *** libraries will work regardless of this problem. Nevertheless, you
13981 *** may want to report the problem to your system manager and/or to
13982 *** bug-libtool@gnu.org
13992 MAGIC_CMD="$lt_save_MAGIC_CMD"
13997 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13998 if test -n "$MAGIC_CMD"; then
13999 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
14000 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14002 { echo "$as_me:$LINENO: result
: no
" >&5
14003 echo "${ECHO_T}no
" >&6; }
14006 if test -z "$lt_cv_path_MAGIC_CMD"; then
14007 if test -n "$ac_tool_prefix"; then
14008 { echo "$as_me:$LINENO: checking
for file" >&5
14009 echo $ECHO_N "checking
for file...
$ECHO_C" >&6; }
14010 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14011 echo $ECHO_N "(cached
) $ECHO_C" >&6
14015 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14018 lt_save_MAGIC_CMD="$MAGIC_CMD"
14019 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14020 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14021 for ac_dir in $ac_dummy; do
14023 test -z "$ac_dir" && ac_dir=.
14024 if test -f $ac_dir/file; then
14025 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14026 if test -n "$file_magic_test_file"; then
14027 case $deplibs_check_method in
14029 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14030 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14031 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14032 $EGREP "$file_magic_regex" > /dev/null; then
14037 *** Warning: the command libtool uses to detect shared libraries,
14038 *** $file_magic_cmd, produces output that libtool cannot recognize.
14039 *** The result is that libtool may fail to recognize shared libraries
14040 *** as such. This will affect the creation of libtool libraries that
14041 *** depend on shared libraries, but programs linked with such libtool
14042 *** libraries will work regardless of this problem. Nevertheless, you
14043 *** may want to report the problem to your system manager and/or to
14044 *** bug-libtool@gnu.org
14054 MAGIC_CMD="$lt_save_MAGIC_CMD"
14059 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14060 if test -n "$MAGIC_CMD"; then
14061 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
14062 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14064 { echo "$as_me:$LINENO: result
: no
" >&5
14065 echo "${ECHO_T}no
" >&6; }
14078 enable_win32_dll=no
14080 # Check whether --enable-libtool-lock was given.
14081 if test "${enable_libtool_lock+set}" = set; then
14082 enableval=$enable_libtool_lock;
14085 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14088 # Check whether --with-pic was given.
14089 if test "${with_pic+set}" = set; then
14090 withval=$with_pic; pic_mode="$withval"
14095 test -z "$pic_mode" && pic_mode=default
14097 # Use C for the default configuration in the libtool script
14101 ac_cpp='$CPP $CPPFLAGS'
14102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14107 # Source file extension for C test sources.
14110 # Object file extension for compiled C test sources.
14114 # Code to be used in simple compile tests
14115 lt_simple_compile_test_code="int some_variable
= 0;\n"
14117 # Code to be used in simple link tests
14118 lt_simple_link_test_code='int main(){return(0);}\n'
14121 # If no C compiler was specified, use CC.
14124 # If no C compiler flags were specified, use CFLAGS.
14125 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14127 # Allow CC to be a program name with arguments.
14131 # save warnings/boilerplate of simple test code
14132 ac_outfile=conftest.$ac_objext
14133 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14134 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14135 _lt_compiler_boilerplate=`cat conftest.err`
14138 ac_outfile=conftest.$ac_objext
14139 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14140 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14141 _lt_linker_boilerplate=`cat conftest.err`
14146 lt_prog_compiler_no_builtin_flag=
14148 if test "$GCC" = yes; then
14149 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14152 { echo "$as_me:$LINENO: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14153 echo $ECHO_N "checking
if $compiler supports
-fno-rtti -fno-exceptions...
$ECHO_C" >&6; }
14154 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14155 echo $ECHO_N "(cached
) $ECHO_C" >&6
14157 lt_cv_prog_compiler_rtti_exceptions=no
14158 ac_outfile=conftest.$ac_objext
14159 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14160 lt_compiler_flag="-fno-rtti -fno-exceptions"
14161 # Insert the option either (1) after the last *FLAGS variable, or
14162 # (2) before a word containing "conftest.
", or (3) at the end.
14163 # Note that $ac_compile itself does not contain backslashes and begins
14164 # with a dollar sign (not a hyphen), so the echo should work correctly.
14165 # The option is referenced via a variable to avoid confusing sed.
14166 lt_compile=`echo "$ac_compile" | $SED \
14167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14169 -e 's:$: $lt_compiler_flag:'`
14170 (eval echo "\"\
$as_me:14170: $lt_compile\"" >&5)
14171 (eval "$lt_compile" 2>conftest.err)
14173 cat conftest.err >&5
14174 echo "$as_me:14174: \$?
= $ac_status" >&5
14175 if (exit $ac_status) && test -s "$ac_outfile"; then
14176 # The compiler can only warn and ignore the option if not recognized
14177 # So say no if there are warnings other than the usual output.
14178 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14179 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14180 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14181 lt_cv_prog_compiler_rtti_exceptions=yes
14187 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14188 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14190 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14191 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14198 lt_prog_compiler_wl=
14199 lt_prog_compiler_pic=
14200 lt_prog_compiler_static=
14202 { echo "$as_me:$LINENO: checking
for $compiler option to produce PIC
" >&5
14203 echo $ECHO_N "checking
for $compiler option to produce PIC...
$ECHO_C" >&6; }
14205 if test "$GCC" = yes; then
14206 lt_prog_compiler_wl='-Wl,'
14207 lt_prog_compiler_static='-static'
14211 # All AIX code is PIC.
14212 if test "$host_cpu" = ia64; then
14213 # AIX 5 now supports IA64 processor
14214 lt_prog_compiler_static='-Bstatic'
14219 # FIXME: we need at least 68020 code to build shared libraries, but
14220 # adding the `-m68020' flag to GCC prevents building anything better,
14222 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14225 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14226 # PIC is the default for these OSes.
14229 mingw* | pw32* | os2*)
14230 # This hack is so that the source file can tell whether it is being
14231 # built for inclusion in a dll (and should export symbols for example).
14232 lt_prog_compiler_pic='-DDLL_EXPORT'
14235 darwin* | rhapsody*)
14236 # PIC is the default on this platform
14237 # Common symbols not allowed in MH_DYLIB files
14238 lt_prog_compiler_pic='-fno-common'
14242 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14243 # Instead, we relocate shared libraries at runtime.
14247 # Just because we use GCC doesn't mean we suddenly get shared libraries
14248 # on systems that don't support them.
14249 lt_prog_compiler_can_build_shared=no
14254 if test -d /usr/nec; then
14255 lt_prog_compiler_pic=-Kconform_pic
14260 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14261 # not for PA HP-UX.
14267 lt_prog_compiler_pic='-fPIC'
14273 lt_prog_compiler_pic='-fPIC'
14277 # PORTME Check for flag to pass linker flags through the system compiler.
14280 lt_prog_compiler_wl='-Wl,'
14281 if test "$host_cpu" = ia64; then
14282 # AIX 5 now supports IA64 processor
14283 lt_prog_compiler_static='-Bstatic'
14285 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14289 # PIC is the default on this platform
14290 # Common symbols not allowed in MH_DYLIB files
14291 case $cc_basename in
14293 lt_prog_compiler_pic='-qnocommon'
14294 lt_prog_compiler_wl='-Wl,'
14299 mingw* | pw32* | os2*)
14300 # This hack is so that the source file can tell whether it is being
14301 # built for inclusion in a dll (and should export symbols for example).
14302 lt_prog_compiler_pic='-DDLL_EXPORT'
14305 hpux9* | hpux10* | hpux11*)
14306 lt_prog_compiler_wl='-Wl,'
14307 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14308 # not for PA HP-UX.
14314 lt_prog_compiler_pic='+Z'
14317 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14318 lt_prog_compiler_static='${wl}-a ${wl}archive'
14321 irix5* | irix6* | nonstopux*)
14322 lt_prog_compiler_wl='-Wl,'
14323 # PIC (with -KPIC) is the default.
14324 lt_prog_compiler_static='-non_shared'
14328 lt_prog_compiler_pic='-KPIC'
14329 lt_prog_compiler_static='-Bstatic'
14333 case $cc_basename in
14335 lt_prog_compiler_wl='-Wl,'
14336 lt_prog_compiler_pic='-KPIC'
14337 lt_prog_compiler_static='-static'
14339 pgcc* | pgf77* | pgf90* | pgf95*)
14340 # Portland Group compilers (*not* the Pentium gcc compiler,
14341 # which looks to be a dead project)
14342 lt_prog_compiler_wl='-Wl,'
14343 lt_prog_compiler_pic='-fpic'
14344 lt_prog_compiler_static='-Bstatic'
14347 lt_prog_compiler_wl='-Wl,'
14348 # All Alpha code is PIC.
14349 lt_prog_compiler_static='-non_shared'
14354 osf3* | osf4* | osf5*)
14355 lt_prog_compiler_wl='-Wl,'
14356 # All OSF/1 code is PIC.
14357 lt_prog_compiler_static='-non_shared'
14361 lt_prog_compiler_pic='-KPIC'
14362 lt_prog_compiler_static='-Bstatic'
14363 case $cc_basename in
14364 f77* | f90* | f95*)
14365 lt_prog_compiler_wl='-Qoption ld ';;
14367 lt_prog_compiler_wl='-Wl,';;
14372 lt_prog_compiler_wl='-Qoption ld '
14373 lt_prog_compiler_pic='-PIC'
14374 lt_prog_compiler_static='-Bstatic'
14377 sysv4 | sysv4.2uw2* | sysv4.3*)
14378 lt_prog_compiler_wl='-Wl,'
14379 lt_prog_compiler_pic='-KPIC'
14380 lt_prog_compiler_static='-Bstatic'
14384 if test -d /usr/nec ;then
14385 lt_prog_compiler_pic='-Kconform_pic'
14386 lt_prog_compiler_static='-Bstatic'
14390 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14391 lt_prog_compiler_wl='-Wl,'
14392 lt_prog_compiler_pic='-KPIC'
14393 lt_prog_compiler_static='-Bstatic'
14397 lt_prog_compiler_wl='-Wl,'
14398 lt_prog_compiler_can_build_shared=no
14402 lt_prog_compiler_pic='-pic'
14403 lt_prog_compiler_static='-Bstatic'
14407 lt_prog_compiler_can_build_shared=no
14412 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic" >&5
14413 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14416 # Check to make sure the PIC flag actually works.
14418 if test -n "$lt_prog_compiler_pic"; then
14420 { echo "$as_me:$LINENO: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
14421 echo $ECHO_N "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
$ECHO_C" >&6; }
14422 if test "${lt_prog_compiler_pic_works+set}" = set; then
14423 echo $ECHO_N "(cached
) $ECHO_C" >&6
14425 lt_prog_compiler_pic_works=no
14426 ac_outfile=conftest.$ac_objext
14427 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14428 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14429 # Insert the option either (1) after the last *FLAGS variable, or
14430 # (2) before a word containing "conftest.
", or (3) at the end.
14431 # Note that $ac_compile itself does not contain backslashes and begins
14432 # with a dollar sign (not a hyphen), so the echo should work correctly.
14433 # The option is referenced via a variable to avoid confusing sed.
14434 lt_compile=`echo "$ac_compile" | $SED \
14435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14437 -e 's:$: $lt_compiler_flag:'`
14438 (eval echo "\"\
$as_me:14438: $lt_compile\"" >&5)
14439 (eval "$lt_compile" 2>conftest.err)
14441 cat conftest.err >&5
14442 echo "$as_me:14442: \$?
= $ac_status" >&5
14443 if (exit $ac_status) && test -s "$ac_outfile"; then
14444 # The compiler can only warn and ignore the option if not recognized
14445 # So say no if there are warnings other than the usual output.
14446 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14448 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14449 lt_prog_compiler_pic_works=yes
14455 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic_works" >&5
14456 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14458 if test x"$lt_prog_compiler_pic_works" = xyes; then
14459 case $lt_prog_compiler_pic in
14461 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14464 lt_prog_compiler_pic=
14465 lt_prog_compiler_can_build_shared=no
14470 # For platforms which do not support PIC, -DPIC is meaningless:
14472 lt_prog_compiler_pic=
14475 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14480 # Check to make sure the static flag actually works.
14482 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14483 { echo "$as_me:$LINENO: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
14484 echo $ECHO_N "checking
if $compiler static flag
$lt_tmp_static_flag works...
$ECHO_C" >&6; }
14485 if test "${lt_prog_compiler_static_works+set}" = set; then
14486 echo $ECHO_N "(cached
) $ECHO_C" >&6
14488 lt_prog_compiler_static_works=no
14489 save_LDFLAGS="$LDFLAGS"
14490 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14491 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14492 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14493 # The linker can only warn and ignore the option if not recognized
14494 # So say no if there are warnings
14495 if test -s conftest.err; then
14496 # Append any errors to the config.log.
14497 cat conftest.err 1>&5
14498 $echo "X
$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14500 if diff conftest.exp conftest.er2 >/dev/null; then
14501 lt_prog_compiler_static_works=yes
14504 lt_prog_compiler_static_works=yes
14508 LDFLAGS="$save_LDFLAGS"
14511 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_static_works" >&5
14512 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14514 if test x"$lt_prog_compiler_static_works" = xyes; then
14517 lt_prog_compiler_static=
14521 { echo "$as_me:$LINENO: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
14522 echo $ECHO_N "checking
if $compiler supports
-c -o file.
$ac_objext...
$ECHO_C" >&6; }
14523 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14524 echo $ECHO_N "(cached
) $ECHO_C" >&6
14526 lt_cv_prog_compiler_c_o=no
14527 $rm -r conftest 2>/dev/null
14531 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14533 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
14534 # Insert the option either (1) after the last *FLAGS variable, or
14535 # (2) before a word containing "conftest.
", or (3) at the end.
14536 # Note that $ac_compile itself does not contain backslashes and begins
14537 # with a dollar sign (not a hyphen), so the echo should work correctly.
14538 lt_compile=`echo "$ac_compile" | $SED \
14539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14541 -e 's:$: $lt_compiler_flag:'`
14542 (eval echo "\"\
$as_me:14542: $lt_compile\"" >&5)
14543 (eval "$lt_compile" 2>out/conftest.err)
14545 cat out/conftest.err >&5
14546 echo "$as_me:14546: \$?
= $ac_status" >&5
14547 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14549 # The compiler can only warn and ignore the option if not recognized
14550 # So say no if there are warnings
14551 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14552 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14553 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14554 lt_cv_prog_compiler_c_o=yes
14559 # SGI C++ compiler will create directory out/ii_files/ for
14560 # template instantiation
14561 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14562 $rm out/* && rmdir out
14568 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_c_o" >&5
14569 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14572 hard_links="nottested
"
14573 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14574 # do not overwrite the value of need_locks provided by the user
14575 { echo "$as_me:$LINENO: checking
if we can lock with hard links
" >&5
14576 echo $ECHO_N "checking
if we can lock with hard links...
$ECHO_C" >&6; }
14579 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14581 ln conftest.a conftest.b 2>&5 || hard_links=no
14582 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14583 { echo "$as_me:$LINENO: result
: $hard_links" >&5
14584 echo "${ECHO_T}$hard_links" >&6; }
14585 if test "$hard_links" = no; then
14586 { echo "$as_me:$LINENO: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
14587 echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
14594 { echo "$as_me:$LINENO: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
14595 echo $ECHO_N "checking whether the
$compiler linker
($LD) supports shared libraries...
$ECHO_C" >&6; }
14598 allow_undefined_flag=
14599 enable_shared_with_static_runtimes=no
14601 archive_expsym_cmds=
14602 old_archive_From_new_cmds=
14603 old_archive_from_expsyms_cmds=
14604 export_dynamic_flag_spec=
14605 whole_archive_flag_spec=
14606 thread_safe_flag_spec=
14607 hardcode_libdir_flag_spec=
14608 hardcode_libdir_flag_spec_ld=
14609 hardcode_libdir_separator=
14611 hardcode_minus_L=no
14612 hardcode_shlibpath_var=unsupported
14613 link_all_deplibs=unknown
14614 hardcode_automatic=no
14616 module_expsym_cmds=
14617 always_export_symbols=no
14618 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14619 # include_expsyms should be a list of space-separated symbols to be *always*
14620 # included in the symbol list
14622 # exclude_expsyms can be an extended regexp of symbols to exclude
14623 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14624 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14625 # as well as any symbol that contains `d'.
14626 exclude_expsyms="_GLOBAL_OFFSET_TABLE_
"
14627 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14628 # platforms (ab)use it in PIC code, but their linkers get confused if
14629 # the symbol is explicitly referenced. Since portable code cannot
14630 # rely on this symbol name, it's probably fine to never include it in
14631 # preloaded symbol tables.
14632 extract_expsyms_cmds=
14633 # Just being paranoid about ensuring that cc_basename is set.
14634 for cc_temp in $compiler""; do
14636 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14637 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14642 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
14645 cygwin* | mingw* | pw32*)
14646 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14647 # When not using gcc, we currently assume that we are using
14648 # Microsoft Visual C++.
14649 if test "$GCC" != yes; then
14654 # we just hope/assume this is gcc and not c89 (= MSVC++)
14663 if test "$with_gnu_ld" = yes; then
14664 # If archive_cmds runs LD, not CC, wlarc should be empty
14667 # Set some defaults for GNU ld with shared library support. These
14668 # are reset later if shared libraries are not supported. Putting them
14669 # here allows them to be overridden if necessary.
14670 runpath_var=LD_RUN_PATH
14671 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14672 export_dynamic_flag_spec='${wl}--export-dynamic'
14673 # ancient GNU ld didn't support --whole-archive et. al.
14674 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14675 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14677 whole_archive_flag_spec=
14679 supports_anon_versioning=no
14680 case `$LD -v 2>/dev/null` in
14681 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14682 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14683 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14684 *\ 2.11.*) ;; # other 2.11 versions
14685 *) supports_anon_versioning=yes ;;
14688 # See if GNU ld supports shared libraries.
14690 aix3* | aix4* | aix5*)
14691 # On AIX/PPC, the GNU linker is very broken
14692 if test "$host_cpu" != ia64; then
14696 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14697 *** to be unable to reliably create shared libraries on AIX.
14698 *** Therefore, libtool is disabling shared libraries support. If you
14699 *** really care for shared libraries, you may want to modify your PATH
14700 *** so that a non-GNU linker is found, and then restart.
14707 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)'
14708 hardcode_libdir_flag_spec
='-L$libdir'
14709 hardcode_minus_L
=yes
14711 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14712 # that the semantics of dynamic libraries on AmigaOS, at least up
14713 # to version 4, is to share data among multiple programs linked
14714 # with the same dynamic library. Since this doesn't match the
14715 # behavior of shared libraries on other platforms, we can't use
14721 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14722 allow_undefined_flag
=unsupported
14723 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14724 # support --undefined. This deserves some investigation. FIXME
14725 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14731 cygwin
* | mingw
* | pw32
*)
14732 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14733 # as there is no search path for DLLs.
14734 hardcode_libdir_flag_spec
='-L$libdir'
14735 allow_undefined_flag
=unsupported
14736 always_export_symbols
=no
14737 enable_shared_with_static_runtimes
=yes
14738 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14740 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
14741 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14742 # If the export-symbols file already is a .def file (1st line
14743 # is EXPORTS), use it as is; otherwise, prepend...
14744 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14745 cp $export_symbols $output_objdir/$soname.def;
14747 echo EXPORTS > $output_objdir/$soname.def;
14748 cat $export_symbols >> $output_objdir/$soname.def;
14750 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14758 hardcode_shlibpath_var
=no
14759 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
14760 export_dynamic_flag_spec
='${wl}-E'
14761 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14762 # Instead, shared libraries are loaded at an image base (0x10000000 by
14763 # default) and relocated if they conflict, which is a slow very memory
14764 # consuming and fragmenting process. To avoid this, we pick a random,
14765 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14766 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14767 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14768 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'
14772 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14774 case $cc_basename,$host_cpu in
14775 pgcc
*) # Portland Group C compiler
14776 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'
14777 tmp_addflag
=' $pic_flag'
14779 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
14780 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'
14781 tmp_addflag
=' $pic_flag -Mnomain' ;;
14782 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14783 tmp_addflag
=' -i_dynamic' ;;
14784 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14785 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14786 ifc
* | ifort
*) # Intel Fortran compiler
14787 tmp_addflag
=' -nofor_main' ;;
14789 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14791 if test $supports_anon_versioning = yes; then
14792 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
14793 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14794 $echo "local: *; };" >> $output_objdir/$libname.ver~
14795 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14803 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14804 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14807 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14808 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14813 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
14817 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14818 *** create shared libraries on Solaris systems. Therefore, libtool
14819 *** is disabling shared libraries support. We urge you to upgrade GNU
14820 *** binutils to release 2.9.1 or newer. Another option is to modify
14821 *** your PATH or compiler configuration so that the native linker is
14822 *** used, and then restart.
14825 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14826 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14827 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14833 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14834 case `$LD -v 2>&1` in
14835 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
14839 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14840 *** reliably create shared libraries on SCO systems. Therefore, libtool
14841 *** is disabling shared libraries support. We urge you to upgrade GNU
14842 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14843 *** your PATH or compiler configuration so that the native linker is
14844 *** used, and then restart.
14849 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14850 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14851 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14852 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14861 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14863 hardcode_direct
=yes
14864 hardcode_shlibpath_var
=no
14868 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14869 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14870 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14877 if test "$ld_shlibs" = no
; then
14879 hardcode_libdir_flag_spec
=
14880 export_dynamic_flag_spec
=
14881 whole_archive_flag_spec
=
14884 # PORTME fill in a description of your system's linker (not GNU ld)
14887 allow_undefined_flag
=unsupported
14888 always_export_symbols
=yes
14889 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'
14890 # Note: this linker hardcodes the directories in LIBPATH if there
14891 # are no directories specified by -L.
14892 hardcode_minus_L
=yes
14893 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14894 # Neither direct hardcoding nor static linking is supported with a
14896 hardcode_direct
=unsupported
14901 if test "$host_cpu" = ia64
; then
14902 # On IA64, the linker does run time linking by default, so we don't
14903 # have to do anything special.
14904 aix_use_runtimelinking
=no
14905 exp_sym_flag
='-Bexport'
14908 # If we're using GNU nm, then we don't want the "-C" option.
14909 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14910 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
14911 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'
14913 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'
14915 aix_use_runtimelinking
=no
14917 # Test if we are trying to use run time linking or normal
14918 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14919 # need to do runtime linking.
14920 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
14921 for ld_flag
in $LDFLAGS; do
14922 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
14923 aix_use_runtimelinking
=yes
14930 exp_sym_flag
='-bexport'
14931 no_entry_flag
='-bnoentry'
14934 # When large executables or shared objects are built, AIX ld can
14935 # have problems creating the table of contents. If linking a library
14936 # or program results in "error TOC overflow" add -mminimal-toc to
14937 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14938 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14941 hardcode_direct
=yes
14942 hardcode_libdir_separator
=':'
14943 link_all_deplibs
=yes
14945 if test "$GCC" = yes; then
14946 case $host_os in aix4.
[012]|aix4.
[012].
*)
14947 # We only want to do this on AIX 4.2 and lower, the check
14948 # below for broken collect2 doesn't work under 4.3+
14949 collect2name
=`${CC} -print-prog-name=collect2`
14950 if test -f "$collect2name" && \
14951 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
14953 # We have reworked collect2
14954 hardcode_direct
=yes
14956 # We have old collect2
14957 hardcode_direct
=unsupported
14958 # It fails to find uninstalled libraries when the uninstalled
14959 # path is not listed in the libpath. Setting hardcode_minus_L
14960 # to unsupported forces relinking
14961 hardcode_minus_L
=yes
14962 hardcode_libdir_flag_spec
='-L$libdir'
14963 hardcode_libdir_separator
=
14967 shared_flag
='-shared'
14968 if test "$aix_use_runtimelinking" = yes; then
14969 shared_flag
="$shared_flag "'${wl}-G'
14973 if test "$host_cpu" = ia64
; then
14974 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14975 # chokes on -Wl,-G. The following line is correct:
14978 if test "$aix_use_runtimelinking" = yes; then
14979 shared_flag
='${wl}-G'
14981 shared_flag
='${wl}-bM:SRE'
14986 # It seems that -bexpall does not export symbols beginning with
14987 # underscore (_), so it is better to generate a list of symbols to export.
14988 always_export_symbols
=yes
14989 if test "$aix_use_runtimelinking" = yes; then
14990 # Warning - without using the other runtime loading flags (-brtl),
14991 # -berok will link without error, but may produce a broken library.
14992 allow_undefined_flag
='-berok'
14993 # Determine the default libpath from the value encoded in an empty executable.
14994 cat >conftest.
$ac_ext <<_ACEOF
14997 cat confdefs.h
>>conftest.
$ac_ext
14998 cat >>conftest.
$ac_ext <<_ACEOF
14999 /* end confdefs.h. */
15009 rm -f conftest.
$ac_objext conftest
$ac_exeext
15010 if { (ac_try
="$ac_link"
15011 case "(($ac_try" in
15012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15013 *) ac_try_echo=$ac_try;;
15015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15016 (eval "$ac_link") 2>conftest.er1
15018 grep -v '^ *+' conftest.er1 >conftest.err
15020 cat conftest.err >&5
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); } &&
15023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15024 { (case "(($ac_try" in
15025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15026 *) ac_try_echo
=$ac_try;;
15028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15029 (eval "$ac_try") 2>&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; } &&
15033 { ac_try
='test -s conftest$ac_exeext'
15034 { (case "(($ac_try" in
15035 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15036 *) ac_try_echo=$ac_try;;
15038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039 (eval "$ac_try") 2>&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; }; then
15044 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15046 # Check for a 64-bit object if we didn't find anything.
15047 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; }
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15056 rm -f core conftest.err conftest.$ac_objext \
15057 conftest$ac_exeext conftest.$ac_ext
15058 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15060 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15061 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"
15063 if test "$host_cpu" = ia64; then
15064 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15065 allow_undefined_flag="-z nodefs"
15066 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"
15068 # Determine the default libpath from the value encoded in an empty executable.
15069 cat >conftest.$ac_ext <<_ACEOF
15072 cat confdefs.h >>conftest.$ac_ext
15073 cat >>conftest.$ac_ext <<_ACEOF
15074 /* end confdefs.h. */
15084 rm -f conftest.$ac_objext conftest$ac_exeext
15085 if { (ac_try="$ac_link"
15086 case "(($ac_try" in
15087 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15088 *) ac_try_echo
=$ac_try;;
15090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091 (eval "$ac_link") 2>conftest.er1
15093 grep -v '^ *+' conftest.er1
>conftest.err
15095 cat conftest.err
>&5
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); } &&
15098 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15099 { (case "(($ac_try" in
15100 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15101 *) ac_try_echo=$ac_try;;
15103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15104 (eval "$ac_try") 2>&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; } &&
15108 { ac_try='test -s conftest$ac_exeext'
15109 { (case "(($ac_try" in
15110 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15111 *) ac_try_echo
=$ac_try;;
15113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15114 (eval "$ac_try") 2>&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); }; }; then
15119 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15121 # Check for a 64-bit object if we didn't find anything.
15122 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; }
15125 echo "$as_me: failed program was:" >&5
15126 sed 's/^/| /' conftest.
$ac_ext >&5
15131 rm -f core conftest.err conftest.
$ac_objext \
15132 conftest
$ac_exeext conftest.
$ac_ext
15133 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15135 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15136 # Warning - without using the other run time loading flags,
15137 # -berok will link without error, but may produce a broken library.
15138 no_undefined_flag
=' ${wl}-bernotok'
15139 allow_undefined_flag
=' ${wl}-berok'
15140 # Exported symbols can be pulled into shared objects from archives
15141 whole_archive_flag_spec
='$convenience'
15142 archive_cmds_need_lc
=yes
15143 # This is similar to how AIX traditionally builds its shared libraries.
15144 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'
15150 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)'
15151 hardcode_libdir_flag_spec
='-L$libdir'
15152 hardcode_minus_L
=yes
15153 # see comment about different semantics on the GNU ld section
15158 export_dynamic_flag_spec
=-rdynamic
15161 cygwin
* | mingw
* | pw32
*)
15162 # When not using gcc, we currently assume that we are using
15163 # Microsoft Visual C++.
15164 # hardcode_libdir_flag_spec is actually meaningless, as there is
15165 # no search path for DLLs.
15166 hardcode_libdir_flag_spec
=' '
15167 allow_undefined_flag
=unsupported
15168 # Tell ltmain to make .lib files, not .a files.
15170 # Tell ltmain to make .dll files, not .so files.
15172 # FIXME: Setting linknames here is a bad hack.
15173 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15174 # The linker will automatically build a .lib file if we build a DLL.
15175 old_archive_From_new_cmds
='true'
15176 # FIXME: Should let the user specify the lib program.
15177 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
15178 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15179 enable_shared_with_static_runtimes
=yes
15182 darwin
* | rhapsody
*)
15184 rhapsody
* | darwin1.
[012])
15185 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
15188 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15189 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15191 case ${MACOSX_DEPLOYMENT_TARGET} in
15193 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15196 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
15202 archive_cmds_need_lc
=no
15204 hardcode_automatic
=yes
15205 hardcode_shlibpath_var
=unsupported
15206 whole_archive_flag_spec
=''
15207 link_all_deplibs
=yes
15208 if test "$GCC" = yes ; then
15209 output_verbose_link_cmd
='echo'
15210 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15211 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15212 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15213 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}'
15214 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}'
15216 case $cc_basename in
15218 output_verbose_link_cmd
='echo'
15219 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15220 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15221 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15222 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}'
15223 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}'
15233 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15234 hardcode_libdir_flag_spec
='-L$libdir'
15235 hardcode_shlibpath_var
=no
15242 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15243 # support. Future versions do this automatically, but an explicit c++rt0.o
15244 # does not break anything, and helps significantly (at the cost of a little
15247 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15248 hardcode_libdir_flag_spec
='-R$libdir'
15249 hardcode_direct
=yes
15250 hardcode_shlibpath_var
=no
15253 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15255 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15256 hardcode_direct
=yes
15257 hardcode_minus_L
=yes
15258 hardcode_shlibpath_var
=no
15261 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15262 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
15263 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15264 hardcode_libdir_flag_spec
='-R$libdir'
15265 hardcode_direct
=yes
15266 hardcode_shlibpath_var
=no
15270 if test "$GCC" = yes; then
15271 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'
15273 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'
15275 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15276 hardcode_libdir_separator
=:
15277 hardcode_direct
=yes
15279 # hardcode_minus_L: Not really in the search PATH,
15280 # but as the default location of the library.
15281 hardcode_minus_L
=yes
15282 export_dynamic_flag_spec
='${wl}-E'
15286 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15287 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15289 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15291 if test "$with_gnu_ld" = no
; then
15292 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15293 hardcode_libdir_separator
=:
15295 hardcode_direct
=yes
15296 export_dynamic_flag_spec
='${wl}-E'
15298 # hardcode_minus_L: Not really in the search PATH,
15299 # but as the default location of the library.
15300 hardcode_minus_L
=yes
15305 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15308 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15311 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15314 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15320 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15323 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15326 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15330 if test "$with_gnu_ld" = no
; then
15331 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15332 hardcode_libdir_separator
=:
15336 hardcode_libdir_flag_spec_ld
='+b $libdir'
15338 hardcode_shlibpath_var
=no
15341 hardcode_direct
=yes
15342 export_dynamic_flag_spec
='${wl}-E'
15344 # hardcode_minus_L: Not really in the search PATH,
15345 # but as the default location of the library.
15346 hardcode_minus_L
=yes
15352 irix5
* | irix6
* | nonstopux
*)
15353 if test "$GCC" = yes; then
15354 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'
15356 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'
15357 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15359 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15360 hardcode_libdir_separator
=:
15361 link_all_deplibs
=yes
15365 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15366 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15368 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15370 hardcode_libdir_flag_spec
='-R$libdir'
15371 hardcode_direct
=yes
15372 hardcode_shlibpath_var
=no
15376 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15377 hardcode_direct
=yes
15378 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15379 hardcode_libdir_separator
=:
15380 hardcode_shlibpath_var
=no
15384 hardcode_direct
=yes
15385 hardcode_shlibpath_var
=no
15386 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15387 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15388 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15389 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15390 export_dynamic_flag_spec
='${wl}-E'
15393 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15394 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15395 hardcode_libdir_flag_spec
='-R$libdir'
15398 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15399 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15406 hardcode_libdir_flag_spec
='-L$libdir'
15407 hardcode_minus_L
=yes
15408 allow_undefined_flag
=unsupported
15409 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'
15410 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15414 if test "$GCC" = yes; then
15415 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15416 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'
15418 allow_undefined_flag
=' -expect_unresolved \*'
15419 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'
15421 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15422 hardcode_libdir_separator
=:
15425 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15426 if test "$GCC" = yes; then
15427 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15428 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'
15429 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15431 allow_undefined_flag
=' -expect_unresolved \*'
15432 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'
15433 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15434 $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'
15436 # Both c and cxx compiler support -rpath directly
15437 hardcode_libdir_flag_spec
='-rpath $libdir'
15439 hardcode_libdir_separator
=:
15443 no_undefined_flag
=' -z text'
15444 if test "$GCC" = yes; then
15446 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15447 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15448 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15451 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15452 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15453 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15455 hardcode_libdir_flag_spec
='-R$libdir'
15456 hardcode_shlibpath_var
=no
15458 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15460 # The compiler driver will combine linker options so we
15461 # cannot just pass the convience library names through
15462 # without $wl, iff we do not link with $LD.
15463 # Luckily, gcc supports the same syntax we need for Sun Studio.
15464 # Supported since Solaris 2.6 (maybe 2.5.1?)
15467 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
15469 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' ;;
15472 link_all_deplibs
=yes
15476 if test "x$host_vendor" = xsequent
; then
15477 # Use $CC to link under sequent, because it throws in some extra .o
15478 # files that make .init and .fini sections work.
15479 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15481 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15483 hardcode_libdir_flag_spec
='-L$libdir'
15484 hardcode_direct
=yes
15485 hardcode_minus_L
=yes
15486 hardcode_shlibpath_var
=no
15490 case $host_vendor in
15492 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15493 hardcode_direct
=yes # is this really true???
15496 ## LD is ld it makes a PLAMLIB
15497 ## CC just makes a GrossModule.
15498 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15499 reload_cmds
='$CC -r -o $output$reload_objs'
15503 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15504 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
15507 runpath_var
='LD_RUN_PATH'
15508 hardcode_shlibpath_var
=no
15512 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15513 hardcode_shlibpath_var
=no
15514 export_dynamic_flag_spec
='-Bexport'
15518 if test -d /usr
/nec
; then
15519 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15520 hardcode_shlibpath_var
=no
15521 runpath_var
=LD_RUN_PATH
15522 hardcode_runpath_var
=yes
15527 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
15528 no_undefined_flag
='${wl}-z,text'
15529 archive_cmds_need_lc
=no
15530 hardcode_shlibpath_var
=no
15531 runpath_var
='LD_RUN_PATH'
15533 if test "$GCC" = yes; then
15534 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15535 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15537 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15538 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15542 sysv5
* | sco3.2v5
* | sco5v6
*)
15543 # Note: We can NOT use -z defs as we might desire, because we do not
15544 # link with -lc, and that would cause any symbols used from libc to
15545 # always be unresolved, which means just about no library would
15546 # ever link correctly. If we're not using GNU ld we use -z text
15547 # though, which does catch some bad symbols but isn't as heavy-handed
15549 no_undefined_flag
='${wl}-z,text'
15550 allow_undefined_flag
='${wl}-z,nodefs'
15551 archive_cmds_need_lc
=no
15552 hardcode_shlibpath_var
=no
15553 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15554 hardcode_libdir_separator
=':'
15555 link_all_deplibs
=yes
15556 export_dynamic_flag_spec
='${wl}-Bexport'
15557 runpath_var
='LD_RUN_PATH'
15559 if test "$GCC" = yes; then
15560 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15561 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15563 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15564 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15569 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15570 hardcode_libdir_flag_spec
='-L$libdir'
15571 hardcode_shlibpath_var
=no
15580 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15581 echo "${ECHO_T}$ld_shlibs" >&6; }
15582 test "$ld_shlibs" = no
&& can_build_shared
=no
15585 # Do we need to explicitly link libc?
15587 case "x$archive_cmds_need_lc" in
15589 # Assume -lc should be added
15590 archive_cmds_need_lc
=yes
15592 if test "$enable_shared" = yes && test "$GCC" = yes; then
15593 case $archive_cmds in
15595 # FIXME: we may have to deal with multi-command sequences.
15598 # Test whether the compiler implicitly links with -lc since on some
15599 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15600 # to ld, don't add -lc before -lgcc.
15601 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15602 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15604 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15607 (eval $ac_compile) 2>&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); } 2>conftest.err
; then
15613 libobjs
=conftest.
$ac_objext
15615 wl
=$lt_prog_compiler_wl
15616 pic_flag
=$lt_prog_compiler_pic
15622 lt_save_allow_undefined_flag
=$allow_undefined_flag
15623 allow_undefined_flag
=
15624 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15625 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }
15630 archive_cmds_need_lc
=no
15632 archive_cmds_need_lc
=yes
15634 allow_undefined_flag
=$lt_save_allow_undefined_flag
15636 cat conftest.err
1>&5
15639 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15640 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15647 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15648 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15649 library_names_spec
=
15650 libname_spec
='lib$name'
15654 postuninstall_cmds
=
15658 shlibpath_overrides_runpath
=unknown
15660 dynamic_linker
="$host_os ld.so"
15661 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
15662 if test "$GCC" = yes; then
15663 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15664 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
15665 # if the path contains ";" then we assume it to be the separator
15666 # otherwise default to the standard path separator (i.e. ":") - it is
15667 # assumed that no part of a normal pathname contains ";" but that should
15668 # okay in the real world where ";" in dirpaths is itself problematic.
15669 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15671 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15674 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
15676 need_lib_prefix
=unknown
15677 hardcode_into_libs
=no
15679 # when you set need_version to no, make sure it does not cause -set_version
15680 # flags to be left without arguments
15681 need_version
=unknown
15686 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
15687 shlibpath_var
=LIBPATH
15689 # AIX 3 has no versioning support, so we append a major version to the name.
15690 soname_spec
='${libname}${release}${shared_ext}$major'
15697 hardcode_into_libs
=yes
15698 if test "$host_cpu" = ia64
; then
15699 # AIX 5 supports IA64
15700 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15701 shlibpath_var
=LD_LIBRARY_PATH
15703 # With GCC up to 2.95.x, collect2 would create an import file
15704 # for dependence libraries. The import file would start with
15705 # the line `#! .'. This would cause the generated library to
15706 # depend on `.', always an invalid library. This was fixed in
15707 # development snapshots of GCC prior to 3.0.
15709 aix4 | aix4.
[01] | aix4.
[01].
*)
15710 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15712 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
15715 can_build_shared
=no
15719 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15720 # soname into executable. Probably we can add versioning support to
15721 # collect2, so additional links can be useful in future.
15722 if test "$aix_use_runtimelinking" = yes; then
15723 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15724 # instead of lib<name>.a to let people know that these are not
15725 # typical AIX shared libraries.
15726 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15728 # We preserve .a as extension for shared libraries through AIX4.2
15729 # and later when we are not doing run time linking.
15730 library_names_spec
='${libname}${release}.a $libname.a'
15731 soname_spec
='${libname}${release}${shared_ext}$major'
15733 shlibpath_var
=LIBPATH
15738 library_names_spec
='$libname.ixlibrary $libname.a'
15739 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15740 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'
15744 library_names_spec
='${libname}${shared_ext}'
15745 dynamic_linker
="$host_os ld.so"
15746 shlibpath_var
=LIBRARY_PATH
15752 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15753 soname_spec
='${libname}${release}${shared_ext}$major'
15754 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
15755 shlibpath_var
=LD_LIBRARY_PATH
15756 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15757 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
15758 # the default ld.so.conf also contains /usr/contrib/lib and
15759 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15760 # libtool to hard-code these into programs
15763 cygwin
* | mingw
* | pw32
*)
15764 version_type
=windows
15769 case $GCC,$host_os in
15770 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
15771 library_names_spec
='$libname.dll.a'
15772 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15773 postinstall_cmds
='base_file=`basename \${file}`~
15774 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15775 dldir=$destdir/`dirname \$dlpath`~
15776 test -d \$dldir || mkdir -p \$dldir~
15777 $install_prog $dir/$dlname \$dldir/$dlname~
15778 chmod a+x \$dldir/$dlname'
15779 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15780 dlpath=$dir/\$dldll~
15782 shlibpath_overrides_runpath
=yes
15786 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15787 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15788 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
15791 # MinGW DLLs use traditional 'lib' prefix
15792 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15793 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15794 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
15795 # It is most probably a Windows format PATH printed by
15796 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15797 # path with ; separators, and with drive letters. We can handle the
15798 # drive letters (cygwin fileutils understands them), so leave them,
15799 # especially as we might pass files found there to a mingw objdump,
15800 # which wouldn't understand a cygwinified path. Ahh.
15801 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15803 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15807 # pw32 DLLs use 'pw' prefix rather than 'lib'
15808 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15814 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15817 dynamic_linker
='Win32 ld.exe'
15818 # FIXME: first we should search . and the directory the executable is in
15822 darwin
* | rhapsody
*)
15823 dynamic_linker
="$host_os dyld"
15824 version_type
=darwin
15827 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15828 soname_spec
='${libname}${release}${major}$shared_ext'
15829 shlibpath_overrides_runpath
=yes
15830 shlibpath_var
=DYLD_LIBRARY_PATH
15831 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
15832 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15833 if test "$GCC" = yes; then
15834 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"`
15836 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
15838 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
15845 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15846 soname_spec
='${libname}${release}${shared_ext}$major'
15847 shlibpath_var
=LD_LIBRARY_PATH
15858 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15859 soname_spec
='${libname}${release}${shared_ext}$major'
15860 shlibpath_var
=LD_LIBRARY_PATH
15861 shlibpath_overrides_runpath
=no
15862 hardcode_into_libs
=yes
15863 dynamic_linker
='GNU ld.so'
15866 freebsd
* | dragonfly
*)
15867 # DragonFly does not have aout. When/if they implement a new
15868 # versioning mechanism, adjust this.
15869 if test -x /usr
/bin
/objformat
; then
15870 objformat
=`/usr/bin/objformat`
15873 freebsd
[123]*) objformat
=aout
;;
15874 *) objformat
=elf
;;
15877 version_type
=freebsd-
$objformat
15878 case $version_type in
15880 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15885 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15889 shlibpath_var
=LD_LIBRARY_PATH
15892 shlibpath_overrides_runpath
=yes
15894 freebsd3.
[01]* | freebsdelf3.
[01]*)
15895 shlibpath_overrides_runpath
=yes
15896 hardcode_into_libs
=yes
15898 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
15899 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
15900 shlibpath_overrides_runpath
=no
15901 hardcode_into_libs
=yes
15903 freebsd
*) # from 4.6 on
15904 shlibpath_overrides_runpath
=yes
15905 hardcode_into_libs
=yes
15914 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15915 soname_spec
='${libname}${release}${shared_ext}$major'
15916 shlibpath_var
=LD_LIBRARY_PATH
15917 hardcode_into_libs
=yes
15920 hpux9
* | hpux10
* | hpux11
*)
15921 # Give a soname corresponding to the major version so that dld.sl refuses to
15922 # link against other versions.
15929 hardcode_into_libs
=yes
15930 dynamic_linker
="$host_os dld.so"
15931 shlibpath_var
=LD_LIBRARY_PATH
15932 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15933 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15934 soname_spec
='${libname}${release}${shared_ext}$major'
15935 if test "X$HPUX_IA64_MODE" = X32
; then
15936 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15938 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15940 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15944 hardcode_into_libs
=yes
15945 dynamic_linker
="$host_os dld.sl"
15946 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15947 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15948 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15949 soname_spec
='${libname}${release}${shared_ext}$major'
15950 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15951 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15955 dynamic_linker
="$host_os dld.sl"
15956 shlibpath_var
=SHLIB_PATH
15957 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15958 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15959 soname_spec
='${libname}${release}${shared_ext}$major'
15962 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15963 postinstall_cmds
='chmod 555 $lib'
15970 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15971 soname_spec
='${libname}${release}${shared_ext}$major'
15972 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
15973 shlibpath_var
=LD_LIBRARY_PATH
15974 shlibpath_overrides_runpath
=no
15975 hardcode_into_libs
=yes
15978 irix5
* | irix6
* | nonstopux
*)
15980 nonstopux
*) version_type
=nonstopux
;;
15982 if test "$lt_cv_prog_gnu_ld" = yes; then
15990 soname_spec
='${libname}${release}${shared_ext}$major'
15991 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15993 irix5
* | nonstopux
*)
15994 libsuff
= shlibsuff
=
15997 case $LD in # libtool.m4 will add one of these switches to LD
15998 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
15999 libsuff
= shlibsuff
= libmagic
=32-bit;;
16000 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16001 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16002 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16003 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16004 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16008 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16009 shlibpath_overrides_runpath
=no
16010 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16011 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16012 hardcode_into_libs
=yes
16015 # No shared lib support for Linux oldld, aout, or coff.
16016 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16020 # This must be Linux ELF.
16025 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16026 soname_spec
='${libname}${release}${shared_ext}$major'
16027 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16028 shlibpath_var
=LD_LIBRARY_PATH
16029 shlibpath_overrides_runpath
=no
16030 # This implies no fast_install, which is unacceptable.
16031 # Some rework will be needed to allow for fast_install
16032 # before this can be enabled.
16033 hardcode_into_libs
=yes
16035 # Append ld.so.conf contents to the search path
16036 if test -f /etc
/ld.so.conf
; then
16037 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' ' '`
16038 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16041 # We used to test for /lib/ld.so.1 and disable shared libraries on
16042 # powerpc, because MkLinux only supported shared libraries with the
16043 # GNU dynamic linker. Since this was broken with cross compilers,
16044 # most powerpc-linux boxes support dynamic linking these days and
16045 # people can always --disable-shared, the test was removed, and we
16046 # assume the GNU/Linux dynamic linker is in use.
16047 dynamic_linker
='GNU/Linux ld.so'
16054 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16055 soname_spec
='${libname}${release}${shared_ext}$major'
16056 shlibpath_var
=LD_LIBRARY_PATH
16057 shlibpath_overrides_runpath
=no
16058 hardcode_into_libs
=yes
16059 dynamic_linker
='GNU ld.so'
16066 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16067 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16068 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16069 dynamic_linker
='NetBSD (a.out) ld.so'
16071 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16072 soname_spec
='${libname}${release}${shared_ext}$major'
16073 dynamic_linker
='NetBSD ld.elf_so'
16075 shlibpath_var
=LD_LIBRARY_PATH
16076 shlibpath_overrides_runpath
=yes
16077 hardcode_into_libs
=yes
16082 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16083 shlibpath_var
=LD_LIBRARY_PATH
16084 shlibpath_overrides_runpath
=yes
16091 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16092 soname_spec
='${libname}${release}${shared_ext}$major'
16093 shlibpath_var
=LD_LIBRARY_PATH
16094 shlibpath_overrides_runpath
=yes
16099 sys_lib_dlsearch_path_spec
="/usr/lib"
16101 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16103 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16104 *) need_version
=no
;;
16106 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16107 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16108 shlibpath_var
=LD_LIBRARY_PATH
16109 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16111 openbsd2.
[89] | openbsd2.
[89].
*)
16112 shlibpath_overrides_runpath
=no
16115 shlibpath_overrides_runpath
=yes
16119 shlibpath_overrides_runpath
=yes
16124 libname_spec
='$name'
16127 library_names_spec
='$libname${shared_ext} $libname.a'
16128 dynamic_linker
='OS/2 ld.exe'
16129 shlibpath_var
=LIBPATH
16132 osf3
* | osf4
* | osf5
*)
16136 soname_spec
='${libname}${release}${shared_ext}$major'
16137 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16138 shlibpath_var
=LD_LIBRARY_PATH
16139 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16140 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16147 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16148 soname_spec
='${libname}${release}${shared_ext}$major'
16149 shlibpath_var
=LD_LIBRARY_PATH
16150 shlibpath_overrides_runpath
=yes
16151 hardcode_into_libs
=yes
16152 # ldd complains unless libraries are executable
16153 postinstall_cmds
='chmod +x $lib'
16158 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16159 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16160 shlibpath_var
=LD_LIBRARY_PATH
16161 shlibpath_overrides_runpath
=yes
16162 if test "$with_gnu_ld" = yes; then
16170 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16171 soname_spec
='${libname}${release}${shared_ext}$major'
16172 shlibpath_var
=LD_LIBRARY_PATH
16173 case $host_vendor in
16175 shlibpath_overrides_runpath
=no
16177 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16178 runpath_var
=LD_RUN_PATH
16186 shlibpath_overrides_runpath
=no
16187 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16193 if test -d /usr
/nec
;then
16195 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16196 soname_spec
='$libname${shared_ext}.$major'
16197 shlibpath_var
=LD_LIBRARY_PATH
16201 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16202 version_type
=freebsd-elf
16205 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16206 soname_spec
='${libname}${release}${shared_ext}$major'
16207 shlibpath_var
=LD_LIBRARY_PATH
16208 hardcode_into_libs
=yes
16209 if test "$with_gnu_ld" = yes; then
16210 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16211 shlibpath_overrides_runpath
=no
16213 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16214 shlibpath_overrides_runpath
=yes
16217 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16221 sys_lib_dlsearch_path_spec
='/usr/lib'
16226 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16227 soname_spec
='${libname}${release}${shared_ext}$major'
16228 shlibpath_var
=LD_LIBRARY_PATH
16235 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16236 echo "${ECHO_T}$dynamic_linker" >&6; }
16237 test "$dynamic_linker" = no
&& can_build_shared
=no
16239 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16240 if test "$GCC" = yes; then
16241 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16244 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16245 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16247 if test -n "$hardcode_libdir_flag_spec" || \
16248 test -n "$runpath_var" || \
16249 test "X$hardcode_automatic" = "Xyes" ; then
16251 # We can hardcode non-existant directories.
16252 if test "$hardcode_direct" != no
&&
16253 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16254 # have to relink, otherwise we might link with an installed library
16255 # when we should be linking with a yet-to-be-installed one
16256 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16257 test "$hardcode_minus_L" != no
; then
16258 # Linking always hardcodes the temporary library directory.
16259 hardcode_action
=relink
16261 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16262 hardcode_action
=immediate
16265 # We cannot hardcode anything, or else we can only hardcode existing
16267 hardcode_action
=unsupported
16269 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16270 echo "${ECHO_T}$hardcode_action" >&6; }
16272 if test "$hardcode_action" = relink
; then
16273 # Fast installation is not supported
16274 enable_fast_install
=no
16275 elif test "$shlibpath_overrides_runpath" = yes ||
16276 test "$enable_shared" = no
; then
16277 # Fast installation is not necessary
16278 enable_fast_install
=needless
16283 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16284 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16285 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
16286 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
16287 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
16288 { echo "$as_me:$LINENO: result: yes" >&5
16289 echo "${ECHO_T}yes" >&6; }
16291 # FIXME - insert some real tests, host_os isn't really good enough
16294 if test -n "$STRIP" ; then
16295 striplib
="$STRIP -x"
16296 { echo "$as_me:$LINENO: result: yes" >&5
16297 echo "${ECHO_T}yes" >&6; }
16299 { echo "$as_me:$LINENO: result: no" >&5
16300 echo "${ECHO_T}no" >&6; }
16304 { echo "$as_me:$LINENO: result: no" >&5
16305 echo "${ECHO_T}no" >&6; }
16310 if test "x$enable_dlopen" != xyes
; then
16311 enable_dlopen
=unknown
16312 enable_dlopen_self
=unknown
16313 enable_dlopen_self_static
=unknown
16320 lt_cv_dlopen
="load_add_on"
16322 lt_cv_dlopen_self
=yes
16326 lt_cv_dlopen
="LoadLibrary"
16331 lt_cv_dlopen
="dlopen"
16336 # if libdl is installed we need to link against it
16337 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16338 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16339 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16340 echo $ECHO_N "(cached) $ECHO_C" >&6
16342 ac_check_lib_save_LIBS
=$LIBS
16344 cat >conftest.
$ac_ext <<_ACEOF
16347 cat confdefs.h
>>conftest.
$ac_ext
16348 cat >>conftest.
$ac_ext <<_ACEOF
16349 /* end confdefs.h. */
16351 /* Override any GCC internal prototype to avoid an error.
16352 Use char because int might match the return type of a GCC
16353 builtin and then its argument prototype would still apply. */
16366 rm -f conftest.
$ac_objext conftest
$ac_exeext
16367 if { (ac_try
="$ac_link"
16368 case "(($ac_try" in
16369 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16370 *) ac_try_echo=$ac_try;;
16372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16373 (eval "$ac_link") 2>conftest.er1
16375 grep -v '^ *+' conftest.er1 >conftest.err
16377 cat conftest.err >&5
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); } &&
16380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16381 { (case "(($ac_try" in
16382 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16383 *) ac_try_echo
=$ac_try;;
16385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16386 (eval "$ac_try") 2>&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; } &&
16390 { ac_try
='test -s conftest$ac_exeext'
16391 { (case "(($ac_try" in
16392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16393 *) ac_try_echo=$ac_try;;
16395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16396 (eval "$ac_try") 2>&5
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); }; }; then
16400 ac_cv_lib_dl_dlopen=yes
16402 echo "$as_me: failed program was:" >&5
16403 sed 's/^/| /' conftest.$ac_ext >&5
16405 ac_cv_lib_dl_dlopen=no
16408 rm -f core conftest.err conftest.$ac_objext \
16409 conftest$ac_exeext conftest.$ac_ext
16410 LIBS=$ac_check_lib_save_LIBS
16412 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16413 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16414 if test $ac_cv_lib_dl_dlopen = yes; then
16415 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16418 lt_cv_dlopen="dyld"
16420 lt_cv_dlopen_self=yes
16427 { echo "$as_me:$LINENO: checking for shl_load" >&5
16428 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16429 if test "${ac_cv_func_shl_load+set}" = set; then
16430 echo $ECHO_N "(cached) $ECHO_C" >&6
16432 cat >conftest.$ac_ext <<_ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h. */
16438 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16440 #define shl_load innocuous_shl_load
16442 /* System header to define __stub macros and hopefully few prototypes,
16443 which can conflict with char shl_load (); below.
16444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16445 <limits.h> exists even on freestanding compilers. */
16448 # include <limits.h>
16450 # include <assert.h>
16455 /* Override any GCC internal prototype to avoid an error.
16456 Use char because int might match the return type of a GCC
16457 builtin and then its argument prototype would still apply. */
16462 /* The GNU C library defines this for functions which it implements
16463 to always fail with ENOSYS. Some functions are actually named
16464 something starting with __ and the normal name is an alias. */
16465 #if defined __stub_shl_load || defined __stub___shl_load
16472 return shl_load ();
16477 rm -f conftest.$ac_objext conftest$ac_exeext
16478 if { (ac_try="$ac_link"
16479 case "(($ac_try" in
16480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16481 *) ac_try_echo
=$ac_try;;
16483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484 (eval "$ac_link") 2>conftest.er1
16486 grep -v '^ *+' conftest.er1
>conftest.err
16488 cat conftest.err
>&5
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } &&
16491 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16492 { (case "(($ac_try" in
16493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16494 *) ac_try_echo=$ac_try;;
16496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497 (eval "$ac_try") 2>&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; } &&
16501 { ac_try='test -s conftest$ac_exeext'
16502 { (case "(($ac_try" in
16503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16504 *) ac_try_echo
=$ac_try;;
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_try") 2>&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 ac_cv_func_shl_load
=yes
16513 echo "$as_me: failed program was:" >&5
16514 sed 's/^/| /' conftest.
$ac_ext >&5
16516 ac_cv_func_shl_load
=no
16519 rm -f core conftest.err conftest.
$ac_objext \
16520 conftest
$ac_exeext conftest.
$ac_ext
16522 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16523 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16524 if test $ac_cv_func_shl_load = yes; then
16525 lt_cv_dlopen
="shl_load"
16527 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16528 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16529 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16530 echo $ECHO_N "(cached) $ECHO_C" >&6
16532 ac_check_lib_save_LIBS
=$LIBS
16534 cat >conftest.
$ac_ext <<_ACEOF
16537 cat confdefs.h
>>conftest.
$ac_ext
16538 cat >>conftest.
$ac_ext <<_ACEOF
16539 /* end confdefs.h. */
16541 /* Override any GCC internal prototype to avoid an error.
16542 Use char because int might match the return type of a GCC
16543 builtin and then its argument prototype would still apply. */
16551 return shl_load ();
16556 rm -f conftest.
$ac_objext conftest
$ac_exeext
16557 if { (ac_try
="$ac_link"
16558 case "(($ac_try" in
16559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16560 *) ac_try_echo=$ac_try;;
16562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16563 (eval "$ac_link") 2>conftest.er1
16565 grep -v '^ *+' conftest.er1 >conftest.err
16567 cat conftest.err >&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); } &&
16570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16571 { (case "(($ac_try" in
16572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16573 *) ac_try_echo
=$ac_try;;
16575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576 (eval "$ac_try") 2>&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; } &&
16580 { ac_try
='test -s conftest$ac_exeext'
16581 { (case "(($ac_try" in
16582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16583 *) ac_try_echo=$ac_try;;
16585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16586 (eval "$ac_try") 2>&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; }; then
16590 ac_cv_lib_dld_shl_load=yes
16592 echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16595 ac_cv_lib_dld_shl_load=no
16598 rm -f core conftest.err conftest.$ac_objext \
16599 conftest$ac_exeext conftest.$ac_ext
16600 LIBS=$ac_check_lib_save_LIBS
16602 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16603 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16604 if test $ac_cv_lib_dld_shl_load = yes; then
16605 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16607 { echo "$as_me:$LINENO: checking for dlopen" >&5
16608 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16609 if test "${ac_cv_func_dlopen+set}" = set; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16612 cat >conftest.$ac_ext <<_ACEOF
16615 cat confdefs.h >>conftest.$ac_ext
16616 cat >>conftest.$ac_ext <<_ACEOF
16617 /* end confdefs.h. */
16618 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16620 #define dlopen innocuous_dlopen
16622 /* System header to define __stub macros and hopefully few prototypes,
16623 which can conflict with char dlopen (); below.
16624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16625 <limits.h> exists even on freestanding compilers. */
16628 # include <limits.h>
16630 # include <assert.h>
16635 /* Override any GCC internal prototype to avoid an error.
16636 Use char because int might match the return type of a GCC
16637 builtin and then its argument prototype would still apply. */
16642 /* The GNU C library defines this for functions which it implements
16643 to always fail with ENOSYS. Some functions are actually named
16644 something starting with __ and the normal name is an alias. */
16645 #if defined __stub_dlopen || defined __stub___dlopen
16657 rm -f conftest.$ac_objext conftest$ac_exeext
16658 if { (ac_try="$ac_link"
16659 case "(($ac_try" in
16660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16661 *) ac_try_echo
=$ac_try;;
16663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664 (eval "$ac_link") 2>conftest.er1
16666 grep -v '^ *+' conftest.er1
>conftest.err
16668 cat conftest.err
>&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } &&
16671 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16672 { (case "(($ac_try" in
16673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16674 *) ac_try_echo=$ac_try;;
16676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16677 (eval "$ac_try") 2>&5
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); }; } &&
16681 { ac_try='test -s conftest$ac_exeext'
16682 { (case "(($ac_try" in
16683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16684 *) ac_try_echo
=$ac_try;;
16686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687 (eval "$ac_try") 2>&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; }; then
16691 ac_cv_func_dlopen
=yes
16693 echo "$as_me: failed program was:" >&5
16694 sed 's/^/| /' conftest.
$ac_ext >&5
16696 ac_cv_func_dlopen
=no
16699 rm -f core conftest.err conftest.
$ac_objext \
16700 conftest
$ac_exeext conftest.
$ac_ext
16702 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16703 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16704 if test $ac_cv_func_dlopen = yes; then
16705 lt_cv_dlopen
="dlopen"
16707 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16708 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16709 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16710 echo $ECHO_N "(cached) $ECHO_C" >&6
16712 ac_check_lib_save_LIBS
=$LIBS
16714 cat >conftest.
$ac_ext <<_ACEOF
16717 cat confdefs.h
>>conftest.
$ac_ext
16718 cat >>conftest.
$ac_ext <<_ACEOF
16719 /* end confdefs.h. */
16721 /* Override any GCC internal prototype to avoid an error.
16722 Use char because int might match the return type of a GCC
16723 builtin and then its argument prototype would still apply. */
16736 rm -f conftest.
$ac_objext conftest
$ac_exeext
16737 if { (ac_try
="$ac_link"
16738 case "(($ac_try" in
16739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743 (eval "$ac_link") 2>conftest.er1
16745 grep -v '^ *+' conftest.er1 >conftest.err
16747 cat conftest.err >&5
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); } &&
16750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16751 { (case "(($ac_try" in
16752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16753 *) ac_try_echo
=$ac_try;;
16755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16756 (eval "$ac_try") 2>&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }; } &&
16760 { ac_try
='test -s conftest$ac_exeext'
16761 { (case "(($ac_try" in
16762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16763 *) ac_try_echo=$ac_try;;
16765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16766 (eval "$ac_try") 2>&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; }; then
16770 ac_cv_lib_dl_dlopen=yes
16772 echo "$as_me: failed program was:" >&5
16773 sed 's/^/| /' conftest.$ac_ext >&5
16775 ac_cv_lib_dl_dlopen=no
16778 rm -f core conftest.err conftest.$ac_objext \
16779 conftest$ac_exeext conftest.$ac_ext
16780 LIBS=$ac_check_lib_save_LIBS
16782 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16783 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16784 if test $ac_cv_lib_dl_dlopen = yes; then
16785 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16787 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16788 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16789 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16790 echo $ECHO_N "(cached) $ECHO_C" >&6
16792 ac_check_lib_save_LIBS=$LIBS
16793 LIBS="-lsvld $LIBS"
16794 cat >conftest.$ac_ext <<_ACEOF
16797 cat confdefs.h >>conftest.$ac_ext
16798 cat >>conftest.$ac_ext <<_ACEOF
16799 /* end confdefs.h. */
16801 /* Override any GCC internal prototype to avoid an error.
16802 Use char because int might match the return type of a GCC
16803 builtin and then its argument prototype would still apply. */
16816 rm -f conftest.$ac_objext conftest$ac_exeext
16817 if { (ac_try="$ac_link"
16818 case "(($ac_try" in
16819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16820 *) ac_try_echo
=$ac_try;;
16822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823 (eval "$ac_link") 2>conftest.er1
16825 grep -v '^ *+' conftest.er1
>conftest.err
16827 cat conftest.err
>&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } &&
16830 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16831 { (case "(($ac_try" in
16832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16833 *) ac_try_echo=$ac_try;;
16835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16836 (eval "$ac_try") 2>&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); }; } &&
16840 { ac_try='test -s conftest$ac_exeext'
16841 { (case "(($ac_try" in
16842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16843 *) ac_try_echo
=$ac_try;;
16845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846 (eval "$ac_try") 2>&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; }; then
16850 ac_cv_lib_svld_dlopen
=yes
16852 echo "$as_me: failed program was:" >&5
16853 sed 's/^/| /' conftest.
$ac_ext >&5
16855 ac_cv_lib_svld_dlopen
=no
16858 rm -f core conftest.err conftest.
$ac_objext \
16859 conftest
$ac_exeext conftest.
$ac_ext
16860 LIBS
=$ac_check_lib_save_LIBS
16862 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16863 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16864 if test $ac_cv_lib_svld_dlopen = yes; then
16865 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
16867 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16868 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16869 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16870 echo $ECHO_N "(cached) $ECHO_C" >&6
16872 ac_check_lib_save_LIBS
=$LIBS
16874 cat >conftest.
$ac_ext <<_ACEOF
16877 cat confdefs.h
>>conftest.
$ac_ext
16878 cat >>conftest.
$ac_ext <<_ACEOF
16879 /* end confdefs.h. */
16881 /* Override any GCC internal prototype to avoid an error.
16882 Use char because int might match the return type of a GCC
16883 builtin and then its argument prototype would still apply. */
16891 return dld_link ();
16896 rm -f conftest.
$ac_objext conftest
$ac_exeext
16897 if { (ac_try
="$ac_link"
16898 case "(($ac_try" in
16899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16900 *) ac_try_echo=$ac_try;;
16902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903 (eval "$ac_link") 2>conftest.er1
16905 grep -v '^ *+' conftest.er1 >conftest.err
16907 cat conftest.err >&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } &&
16910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16911 { (case "(($ac_try" in
16912 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16913 *) ac_try_echo
=$ac_try;;
16915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16916 (eval "$ac_try") 2>&5
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; } &&
16920 { ac_try
='test -s conftest$ac_exeext'
16921 { (case "(($ac_try" in
16922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16923 *) ac_try_echo=$ac_try;;
16925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926 (eval "$ac_try") 2>&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
16930 ac_cv_lib_dld_dld_link=yes
16932 echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16935 ac_cv_lib_dld_dld_link=no
16938 rm -f core conftest.err conftest.$ac_objext \
16939 conftest$ac_exeext conftest.$ac_ext
16940 LIBS=$ac_check_lib_save_LIBS
16942 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16943 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16944 if test $ac_cv_lib_dld_dld_link = yes; then
16945 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16966 if test "x$lt_cv_dlopen" != xno; then
16972 case $lt_cv_dlopen in
16974 save_CPPFLAGS="$CPPFLAGS"
16975 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16977 save_LDFLAGS="$LDFLAGS"
16978 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16981 LIBS="$lt_cv_dlopen_libs $LIBS"
16983 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16984 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16985 if test "${lt_cv_dlopen_self+set}" = set; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16988 if test "$cross_compiling" = yes; then :
16989 lt_cv_dlopen_self=cross
16991 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16992 lt_status=$lt_dlunknown
16993 cat > conftest.$ac_ext <<EOF
16994 #line 16994 "configure"
16995 #include "confdefs.h"
17004 # define LT_DLGLOBAL RTLD_GLOBAL
17007 # define LT_DLGLOBAL DL_GLOBAL
17009 # define LT_DLGLOBAL 0
17013 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17014 find out it does not work in some platform. */
17015 #ifndef LT_DLLAZY_OR_NOW
17017 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17020 # define LT_DLLAZY_OR_NOW DL_LAZY
17023 # define LT_DLLAZY_OR_NOW RTLD_NOW
17026 # define LT_DLLAZY_OR_NOW DL_NOW
17028 # define LT_DLLAZY_OR_NOW 0
17036 extern "C" void exit (int);
17039 void fnord() { int i=42;}
17042 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17043 int status = $lt_dlunknown;
17047 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17048 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17049 /* dlclose (self); */
17057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17058 (eval $ac_link) 2>&5
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17062 (./conftest; exit; ) >&5 2>/dev/null
17064 case x$lt_status in
17065 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17066 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17067 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17070 # compilation failed
17071 lt_cv_dlopen_self=no
17078 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17079 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17081 if test "x$lt_cv_dlopen_self" = xyes; then
17082 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17083 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17084 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17085 if test "${lt_cv_dlopen_self_static+set}" = set; then
17086 echo $ECHO_N "(cached) $ECHO_C" >&6
17088 if test "$cross_compiling" = yes; then :
17089 lt_cv_dlopen_self_static=cross
17091 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17092 lt_status=$lt_dlunknown
17093 cat > conftest.$ac_ext <<EOF
17094 #line 17094 "configure"
17095 #include "confdefs.h"
17104 # define LT_DLGLOBAL RTLD_GLOBAL
17107 # define LT_DLGLOBAL DL_GLOBAL
17109 # define LT_DLGLOBAL 0
17113 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17114 find out it does not work in some platform. */
17115 #ifndef LT_DLLAZY_OR_NOW
17117 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17120 # define LT_DLLAZY_OR_NOW DL_LAZY
17123 # define LT_DLLAZY_OR_NOW RTLD_NOW
17126 # define LT_DLLAZY_OR_NOW DL_NOW
17128 # define LT_DLLAZY_OR_NOW 0
17136 extern "C" void exit (int);
17139 void fnord() { int i=42;}
17142 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17143 int status = $lt_dlunknown;
17147 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17148 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17149 /* dlclose (self); */
17157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17158 (eval $ac_link) 2>&5
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17162 (./conftest; exit; ) >&5 2>/dev/null
17164 case x$lt_status in
17165 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17166 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17167 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17170 # compilation failed
17171 lt_cv_dlopen_self_static=no
17178 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17179 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17182 CPPFLAGS="$save_CPPFLAGS"
17183 LDFLAGS="$save_LDFLAGS"
17188 case $lt_cv_dlopen_self in
17189 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17190 *) enable_dlopen_self=unknown ;;
17193 case $lt_cv_dlopen_self_static in
17194 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17195 *) enable_dlopen_self_static=unknown ;;
17200 # Report which library types will actually be built
17201 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17202 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17203 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17204 echo "${ECHO_T}$can_build_shared" >&6; }
17206 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17207 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17208 test "$can_build_shared" = "no" && enable_shared=no
17210 # On AIX, shared libraries and static libraries use the same namespace, and
17211 # are all built from PIC.
17214 test "$enable_shared" = yes && enable_static=no
17215 if test -n "$RANLIB"; then
17216 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17217 postinstall_cmds='$RANLIB $lib'
17222 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17223 test "$enable_shared" = yes && enable_static=no
17227 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17228 echo "${ECHO_T}$enable_shared" >&6; }
17230 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17231 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17232 # Make sure either enable_shared or enable_static is yes.
17233 test "$enable_shared" = yes || enable_static=yes
17234 { echo "$as_me:$LINENO: result: $enable_static" >&5
17235 echo "${ECHO_T}$enable_static" >&6; }
17237 # The else clause should only fire when bootstrapping the
17238 # libtool distribution, otherwise you forgot to ship ltmain.sh
17239 # with your package, and you will get complaints that there are
17240 # no rules to generate ltmain.sh.
17241 if test -f "$ltmain"; then
17242 # See if we are running on zsh, and set the options which allow our commands through
17243 # without removal of \ escapes.
17244 if test -n "${ZSH_VERSION+set}" ; then
17245 setopt NO_GLOB_SUBST
17247 # Now quote all the things that may contain metacharacters while being
17248 # careful not to overquote the AC_SUBSTed values. We take copies of the
17249 # variables and quote the copies for generation of the libtool script.
17250 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17252 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17253 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17254 deplibs_check_method reload_flag reload_cmds need_locks \
17255 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17256 lt_cv_sys_global_symbol_to_c_name_address \
17257 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17258 old_postinstall_cmds old_postuninstall_cmds \
17262 lt_prog_compiler_wl \
17263 lt_prog_compiler_pic \
17264 lt_prog_compiler_static \
17265 lt_prog_compiler_no_builtin_flag \
17266 export_dynamic_flag_spec \
17267 thread_safe_flag_spec \
17268 whole_archive_flag_spec \
17269 enable_shared_with_static_runtimes \
17271 old_archive_from_new_cmds \
17276 compiler_lib_search_path \
17278 archive_expsym_cmds \
17280 postuninstall_cmds \
17281 old_archive_from_expsyms_cmds \
17282 allow_undefined_flag \
17283 no_undefined_flag \
17284 export_symbols_cmds \
17285 hardcode_libdir_flag_spec \
17286 hardcode_libdir_flag_spec_ld \
17287 hardcode_libdir_separator \
17288 hardcode_automatic \
17290 module_expsym_cmds \
17291 lt_cv_prog_compiler_c_o \
17293 include_expsyms; do
17296 old_archive_cmds | \
17297 old_archive_from_new_cmds | \
17299 archive_expsym_cmds | \
17301 module_expsym_cmds | \
17302 old_archive_from_expsyms_cmds | \
17303 export_symbols_cmds | \
17304 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17305 postinstall_cmds | postuninstall_cmds | \
17306 old_postinstall_cmds | old_postuninstall_cmds | \
17307 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17308 # Double-quote double-evaled strings.
17309 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
17312 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
17318 *'\$0 --fallback-echo"')
17319 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17323 cfgfile="${ofile}T"
17324 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17326 { echo "$as_me:$LINENO: creating $ofile" >&5
17327 echo "$as_me: creating $ofile" >&6;}
17329 cat <<__EOF__ >> "$cfgfile"
17332 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
17333 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17334 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17336 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17337 # Free Software Foundation, Inc.
17339 # This file is part of GNU Libtool:
17340 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17342 # This program is free software; you can redistribute it and/or modify
17343 # it under the terms of the GNU General Public License as published by
17344 # the Free Software Foundation; either version 2 of the License, or
17345 # (at your option) any later version.
17347 # This program is distributed in the hope that it will be useful, but
17348 # WITHOUT ANY WARRANTY; without even the implied warranty of
17349 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17350 # General Public License for more details.
17352 # You should have received a copy of the GNU General Public License
17353 # along with this program; if not, write to the Free Software
17354 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17356 # As a special exception to the GNU General Public License, if you
17357 # distribute this file as part of a program that contains a
17358 # configuration script generated by Autoconf, you may include it under
17359 # the same distribution terms that you use for the rest of that program.
17361 # A sed program that does not truncate output.
17364 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17365 Xsed="$SED -e 1s/^X//"
17367 # The HP-UX ksh and POSIX shell print the target directory to stdout
17368 # if CDPATH is set.
17369 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17371 # The names of the tagged configurations supported by this script.
17374 # ### BEGIN LIBTOOL CONFIG
17376 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
17378 # Shell to use when invoking shell scripts.
17381 # Whether or not to build shared libraries.
17382 build_libtool_libs=$enable_shared
17384 # Whether or not to build static libraries.
17385 build_old_libs=$enable_static
17387 # Whether or not to add -lc for building shared libraries.
17388 build_libtool_need_lc=$archive_cmds_need_lc
17390 # Whether or not to disallow shared libs when runtime libs are static
17391 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17393 # Whether or not to optimize for fast installation.
17394 fast_install=$enable_fast_install
17397 host_alias=$host_alias
17401 # The build system.
17402 build_alias=$build_alias
17406 # An echo program that does not interpret backslashes.
17411 AR_FLAGS=$lt_AR_FLAGS
17416 # LTCC compiler flags.
17417 LTCFLAGS=$lt_LTCFLAGS
17419 # A language-specific compiler.
17422 # Is the compiler the GNU C compiler?
17428 # The linker used to build libraries.
17431 # Whether we need hard or soft links.
17434 # A BSD-compatible nm program.
17437 # A symbol stripping program
17440 # Used to examine libraries when file_magic_cmd begins "file"
17441 MAGIC_CMD=$MAGIC_CMD
17443 # Used on cygwin: DLL creation program.
17446 # Used on cygwin: object dumper.
17449 # Used on cygwin: assembler.
17452 # The name of the directory that contains temporary libtool files.
17455 # How to create reloadable object files.
17456 reload_flag=$lt_reload_flag
17457 reload_cmds=$lt_reload_cmds
17459 # How to pass a linker flag through the compiler.
17460 wl=$lt_lt_prog_compiler_wl
17462 # Object file suffix (normally "o").
17463 objext="$ac_objext"
17465 # Old archive suffix (normally "a").
17468 # Shared library suffix (normally ".so").
17469 shrext_cmds='$shrext_cmds'
17471 # Executable file suffix (normally "").
17474 # Additional compiler flags for building library objects.
17475 pic_flag=$lt_lt_prog_compiler_pic
17478 # What is the maximum length of a command?
17479 max_cmd_len=$lt_cv_sys_max_cmd_len
17481 # Does compiler simultaneously support -c and -o options?
17482 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17484 # Must we lock files when doing compilation?
17485 need_locks=$lt_need_locks
17487 # Do we need the lib prefix for modules?
17488 need_lib_prefix=$need_lib_prefix
17490 # Do we need a version for libraries?
17491 need_version=$need_version
17493 # Whether dlopen is supported.
17494 dlopen_support=$enable_dlopen
17496 # Whether dlopen of programs is supported.
17497 dlopen_self=$enable_dlopen_self
17499 # Whether dlopen of statically linked programs is supported.
17500 dlopen_self_static=$enable_dlopen_self_static
17502 # Compiler flag to prevent dynamic linking.
17503 link_static_flag=$lt_lt_prog_compiler_static
17505 # Compiler flag to turn off builtin functions.
17506 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17508 # Compiler flag to allow reflexive dlopens.
17509 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17511 # Compiler flag to generate shared objects directly from archives.
17512 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17514 # Compiler flag to generate thread-safe objects.
17515 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17517 # Library versioning type.
17518 version_type=$version_type
17520 # Format of library name prefix.
17521 libname_spec=$lt_libname_spec
17523 # List of archive names. First name is the real one, the rest are links.
17524 # The last name is the one that the linker finds with -lNAME.
17525 library_names_spec=$lt_library_names_spec
17527 # The coded name of the library, if different from the real name.
17528 soname_spec=$lt_soname_spec
17530 # Commands used to build and install an old-style archive.
17532 old_archive_cmds=$lt_old_archive_cmds
17533 old_postinstall_cmds=$lt_old_postinstall_cmds
17534 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17536 # Create an old-style archive from a shared archive.
17537 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17539 # Create a temporary old-style archive to link instead of a shared archive.
17540 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17542 # Commands used to build and install a shared archive.
17543 archive_cmds=$lt_archive_cmds
17544 archive_expsym_cmds=$lt_archive_expsym_cmds
17545 postinstall_cmds=$lt_postinstall_cmds
17546 postuninstall_cmds=$lt_postuninstall_cmds
17548 # Commands used to build a loadable module (assumed same as above if empty)
17549 module_cmds=$lt_module_cmds
17550 module_expsym_cmds=$lt_module_expsym_cmds
17552 # Commands to strip libraries.
17553 old_striplib=$lt_old_striplib
17554 striplib=$lt_striplib
17556 # Dependencies to place before the objects being linked to create a
17558 predep_objects=$lt_predep_objects
17560 # Dependencies to place after the objects being linked to create a
17562 postdep_objects=$lt_postdep_objects
17564 # Dependencies to place before the objects being linked to create a
17566 predeps=$lt_predeps
17568 # Dependencies to place after the objects being linked to create a
17570 postdeps=$lt_postdeps
17572 # The library search path used internally by the compiler when linking
17573 # a shared library.
17574 compiler_lib_search_path=$lt_compiler_lib_search_path
17576 # Method to check whether dependent libraries are shared objects.
17577 deplibs_check_method=$lt_deplibs_check_method
17579 # Command to use when deplibs_check_method == file_magic.
17580 file_magic_cmd=$lt_file_magic_cmd
17582 # Flag that allows shared libraries with undefined symbols to be built.
17583 allow_undefined_flag=$lt_allow_undefined_flag
17585 # Flag that forces no undefined symbols.
17586 no_undefined_flag=$lt_no_undefined_flag
17588 # Commands used to finish a libtool library installation in a directory.
17589 finish_cmds=$lt_finish_cmds
17591 # Same as above, but a single script fragment to be evaled but not shown.
17592 finish_eval=$lt_finish_eval
17594 # Take the output of nm and produce a listing of raw symbols and C names.
17595 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17597 # Transform the output of nm in a proper C declaration
17598 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17600 # Transform the output of nm in a C name address pair
17601 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17603 # This is the shared library runtime path variable.
17604 runpath_var=$runpath_var
17606 # This is the shared library path variable.
17607 shlibpath_var=$shlibpath_var
17609 # Is shlibpath searched before the hard-coded library search path?
17610 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17612 # How to hardcode a shared library path into an executable.
17613 hardcode_action=$hardcode_action
17615 # Whether we should hardcode library paths into libraries.
17616 hardcode_into_libs=$hardcode_into_libs
17618 # Flag to hardcode \$libdir into a binary during linking.
17619 # This must work even if \$libdir does not exist.
17620 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17622 # If ld is used when linking, flag to hardcode \$libdir into
17623 # a binary during linking. This must work even if \$libdir does
17625 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17627 # Whether we need a single -rpath flag with a separated argument.
17628 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17630 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17631 # resulting binary.
17632 hardcode_direct=$hardcode_direct
17634 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17635 # resulting binary.
17636 hardcode_minus_L=$hardcode_minus_L
17638 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17639 # the resulting binary.
17640 hardcode_shlibpath_var=$hardcode_shlibpath_var
17642 # Set to yes if building a shared library automatically hardcodes DIR into the library
17643 # and all subsequent libraries and executables linked against it.
17644 hardcode_automatic=$hardcode_automatic
17646 # Variables whose values should be saved in libtool wrapper scripts and
17647 # restored at relink time.
17648 variables_saved_for_relink="$variables_saved_for_relink"
17650 # Whether libtool must link a program against all its dependency libraries.
17651 link_all_deplibs=$link_all_deplibs
17653 # Compile-time system search path for libraries
17654 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17656 # Run-time system search path for libraries
17657 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17659 # Fix the shell variable \$srcfile for the compiler.
17660 fix_srcfile_path="$fix_srcfile_path"
17662 # Set to yes if exported symbols are required.
17663 always_export_symbols=$always_export_symbols
17665 # The commands to list exported symbols.
17666 export_symbols_cmds=$lt_export_symbols_cmds
17668 # The commands to extract the exported symbol list from a shared archive.
17669 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17671 # Symbols that should not be listed in the preloaded symbols.
17672 exclude_expsyms=$lt_exclude_expsyms
17674 # Symbols that must always be exported.
17675 include_expsyms=$lt_include_expsyms
17677 # ### END LIBTOOL CONFIG
17684 cat <<\EOF >> "$cfgfile"
17686 # AIX sometimes has problems with the GCC collect2 program. For some
17687 # reason, if we set the COLLECT_NAMES environment variable, the problems
17688 # vanish in a puff of smoke.
17689 if test "X${COLLECT_NAMES+set}" != Xset; then
17691 export COLLECT_NAMES
17697 # We use sed instead of cat because bash on DJGPP gets confused if
17698 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17699 # text mode, it properly converts lines to CR/LF. This bash problem
17700 # is reportedly fixed, but why not run on old versions too?
17701 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17703 mv -f "$cfgfile" "$ofile" || \
17704 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17708 # If there is no Makefile yet, we rely on a make rule to execute
17709 # `config.status
--recheck' to rerun these tests and create the
17710 # libtool script then.
17711 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
17712 if test -f "$ltmain_in"; then
17713 test -f Makefile && make "$ltmain"
17719 ac_cpp='$CPP $CPPFLAGS'
17720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
17721 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
17722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17727 # Check whether --with-tags was given.
17728 if test "${with_tags+set}" = set; then
17729 withval=$with_tags; tagnames="$withval"
17733 if test -f "$ltmain" && test -n "$tagnames"; then
17734 if test ! -f "${ofile}"; then
17735 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
17736 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
17739 if test -z "$LTCC"; then
17740 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
17741 if test -z "$LTCC"; then
17742 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17743 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
17745 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
17746 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
17749 if test -z "$LTCFLAGS"; then
17750 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
17753 # Extract list of available tagged configurations in $ofile.
17754 # Note that this assumes the entire list is on one line.
17755 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17757 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17758 for tagname in $tagnames; do
17760 # Check whether tagname contains only valid characters
17761 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17763 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17764 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17765 { (exit 1); exit 1; }; }
17769 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17771 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17772 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17773 { (exit 1); exit 1; }; }
17776 # Update the list of available tags.
17777 if test -n "$tagname"; then
17778 echo appending configuration tag \"$tagname\" to $ofile
17782 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17783 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
17784 (test "X$CXX" != "Xg++"))) ; then
17786 ac_cpp='$CXXCPP $CPPFLAGS'
17787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17794 archive_cmds_need_lc_CXX=no
17795 allow_undefined_flag_CXX=
17796 always_export_symbols_CXX=no
17797 archive_expsym_cmds_CXX=
17798 export_dynamic_flag_spec_CXX=
17799 hardcode_direct_CXX=no
17800 hardcode_libdir_flag_spec_CXX=
17801 hardcode_libdir_flag_spec_ld_CXX=
17802 hardcode_libdir_separator_CXX=
17803 hardcode_minus_L_CXX=no
17804 hardcode_shlibpath_var_CXX=unsupported
17805 hardcode_automatic_CXX=no
17807 module_expsym_cmds_CXX=
17808 link_all_deplibs_CXX=unknown
17809 old_archive_cmds_CXX=$old_archive_cmds
17810 no_undefined_flag_CXX=
17811 whole_archive_flag_spec_CXX=
17812 enable_shared_with_static_runtimes_CXX=no
17814 # Dependencies to place before and after the object being linked:
17815 predep_objects_CXX=
17816 postdep_objects_CXX=
17819 compiler_lib_search_path_CXX=
17821 # Source file extension for C++ test sources.
17824 # Object file extension for compiled C++ test sources.
17828 # Code to be used in simple compile tests
17829 lt_simple_compile_test_code="int some_variable = 0;\n"
17831 # Code to be used in simple link tests
17832 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17834 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17836 # If no C compiler was specified, use CC.
17839 # If no C compiler flags were specified, use CFLAGS.
17840 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17842 # Allow CC to be a program name with arguments.
17846 # save warnings/boilerplate of simple test code
17847 ac_outfile=conftest.$ac_objext
17848 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17849 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17850 _lt_compiler_boilerplate=`cat conftest.err
`
17853 ac_outfile=conftest.$ac_objext
17854 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17855 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17856 _lt_linker_boilerplate=`cat conftest.err
`
17860 # Allow CC to be a program name with arguments.
17865 lt_save_with_gnu_ld=$with_gnu_ld
17866 lt_save_path_LD=$lt_cv_path_LD
17867 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17868 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17870 $as_unset lt_cv_prog_gnu_ld
17872 if test -n "${lt_cv_path_LDCXX+set}"; then
17873 lt_cv_path_LD=$lt_cv_path_LDCXX
17875 $as_unset lt_cv_path_LD
17877 test -z "${LDCXX+set}" || LD=$LDCXX
17881 for cc_temp in $compiler""; do
17883 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17884 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17889 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17892 # We don't want -fno-exception wen compiling C++ code, so set the
17893 # no_builtin_flag separately
17894 if test "$GXX" = yes; then
17895 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17897 lt_prog_compiler_no_builtin_flag_CXX=
17900 if test "$GXX" = yes; then
17901 # Set up default GNU C++ configuration
17904 # Check whether --with-gnu-ld was given.
17905 if test "${with_gnu_ld+set}" = set; then
17906 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17912 if test "$GCC" = yes; then
17913 # Check if gcc -print-prog-name=ld gives a path.
17914 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17915 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17918 # gcc leaves a trailing carriage return which upsets mingw
17919 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
17921 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
17924 # Accept absolute paths.
17926 re_direlt='/[^/][^/]*/\.\./'
17927 # Canonicalize the pathname of ld
17928 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
17929 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17930 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
17932 test -z "$LD" && LD="$ac_prog"
17935 # If it fails, then pretend we aren't using GCC.
17939 # If it is relative, then search for the first ld in PATH.
17940 with_gnu_ld=unknown
17943 elif test "$with_gnu_ld" = yes; then
17944 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17945 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17947 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17948 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17950 if test "${lt_cv_path_LD+set}" = set; then
17951 echo $ECHO_N "(cached) $ECHO_C" >&6
17953 if test -z "$LD"; then
17954 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17955 for ac_dir in $PATH; do
17957 test -z "$ac_dir" && ac_dir=.
17958 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17959 lt_cv_path_LD="$ac_dir/$ac_prog"
17960 # Check to see if the program is GNU ld. I'd rather use --version,
17961 # but apparently some variants of GNU ld only accept -v.
17962 # Break only if it was the GNU/non-GNU ld that we prefer.
17963 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
17964 *GNU* | *'with BFD'*)
17965 test "$with_gnu_ld" != no && break
17968 test "$with_gnu_ld" != yes && break
17975 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17979 LD="$lt_cv_path_LD"
17980 if test -n "$LD"; then
17981 { echo "$as_me:$LINENO: result: $LD" >&5
17982 echo "${ECHO_T}$LD" >&6; }
17984 { echo "$as_me:$LINENO: result: no" >&5
17985 echo "${ECHO_T}no" >&6; }
17987 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17988 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17989 { (exit 1); exit 1; }; }
17990 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17991 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17992 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17995 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17996 case `$LD -v 2>&1 </dev
/null
` in
17997 *GNU* | *'with BFD'*)
17998 lt_cv_prog_gnu_ld=yes
18001 lt_cv_prog_gnu_ld=no
18005 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18006 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18007 with_gnu_ld=$lt_cv_prog_gnu_ld
18011 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18012 # archiving commands below assume that GNU ld is being used.
18013 if test "$with_gnu_ld" = yes; then
18014 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18015 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'
18017 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18018 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18020 # If archive_cmds runs LD, not CC, wlarc should be empty
18021 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18022 # investigate it a little bit more. (MM)
18025 # ancient GNU ld didn't support --whole-archive et. al.
18026 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
18027 grep 'no-whole-archive' > /dev/null; then
18028 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18030 whole_archive_flag_spec_CXX=
18036 # A generic and very simple default shared library creation
18037 # command for GNU C++ for the case where it uses the native
18038 # linker, instead of GNU ld. If possible, this setting should
18039 # overridden to take advantage of the native linker features on
18040 # the platform it is being used on.
18041 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18044 # Commands to make compiler produce verbose output that lists
18045 # what "hidden" libraries, object files and flags are used when
18046 # linking a shared library.
18047 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18055 # PORTME: fill in a description of your system's C++ link characteristics
18056 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18057 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18061 # FIXME: insert proper C++ library support
18065 if test "$host_cpu" = ia64; then
18066 # On IA64, the linker does run time linking by default, so we don't
18067 # have to do anything special.
18068 aix_use_runtimelinking=no
18069 exp_sym_flag='-Bexport'
18072 aix_use_runtimelinking=no
18074 # Test if we are trying to use run time linking or normal
18075 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18076 # need to do runtime linking.
18077 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18078 for ld_flag in $LDFLAGS; do
18081 aix_use_runtimelinking=yes
18089 exp_sym_flag='-bexport'
18090 no_entry_flag='-bnoentry'
18093 # When large executables or shared objects are built, AIX ld can
18094 # have problems creating the table of contents. If linking a library
18095 # or program results in "error TOC overflow" add -mminimal-toc to
18096 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18097 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18099 archive_cmds_CXX=''
18100 hardcode_direct_CXX=yes
18101 hardcode_libdir_separator_CXX=':'
18102 link_all_deplibs_CXX=yes
18104 if test "$GXX" = yes; then
18105 case $host_os in aix4.[012]|aix4.[012].*)
18106 # We only want to do this on AIX 4.2 and lower, the check
18107 # below for broken collect2 doesn't work under 4.3+
18108 collect2name=`${CC} -print-prog-name=collect2
`
18109 if test -f "$collect2name" && \
18110 strings "$collect2name" | grep resolve_lib_name >/dev/null
18112 # We have reworked collect2
18113 hardcode_direct_CXX=yes
18115 # We have old collect2
18116 hardcode_direct_CXX=unsupported
18117 # It fails to find uninstalled libraries when the uninstalled
18118 # path is not listed in the libpath. Setting hardcode_minus_L
18119 # to unsupported forces relinking
18120 hardcode_minus_L_CXX=yes
18121 hardcode_libdir_flag_spec_CXX='-L$libdir'
18122 hardcode_libdir_separator_CXX=
18126 shared_flag='-shared'
18127 if test "$aix_use_runtimelinking" = yes; then
18128 shared_flag="$shared_flag "'${wl}-G'
18132 if test "$host_cpu" = ia64; then
18133 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18134 # chokes on -Wl,-G. The following line is correct:
18137 if test "$aix_use_runtimelinking" = yes; then
18138 shared_flag='${wl}-G'
18140 shared_flag='${wl}-bM:SRE'
18145 # It seems that -bexpall does not export symbols beginning with
18146 # underscore (_), so it is better to generate a list of symbols to export.
18147 always_export_symbols_CXX=yes
18148 if test "$aix_use_runtimelinking" = yes; then
18149 # Warning - without using the other runtime loading flags (-brtl),
18150 # -berok will link without error, but may produce a broken library.
18151 allow_undefined_flag_CXX='-berok'
18152 # Determine the default libpath from the value encoded in an empty executable.
18153 cat >conftest.$ac_ext <<_ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h. */
18168 rm -f conftest.$ac_objext conftest$ac_exeext
18169 if { (ac_try="$ac_link"
18170 case "(($ac_try" in
18171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18172 *) ac_try_echo
=$ac_try;;
18174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18175 (eval "$ac_link") 2>conftest.er1
18177 grep -v '^ *+' conftest.er1
>conftest.err
18179 cat conftest.err
>&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } &&
18182 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18183 { (case "(($ac_try" in
18184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18185 *) ac_try_echo=$ac_try;;
18187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18188 (eval "$ac_try") 2>&5
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); }; } &&
18192 { ac_try='test -s conftest$ac_exeext'
18193 { (case "(($ac_try" in
18194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18195 *) ac_try_echo
=$ac_try;;
18197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198 (eval "$ac_try") 2>&5
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); }; }; then
18203 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18205 # Check for a 64-bit object if we didn't find anything.
18206 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; }
18209 echo "$as_me: failed program was:" >&5
18210 sed 's/^/| /' conftest.
$ac_ext >&5
18215 rm -f core conftest.err conftest.
$ac_objext \
18216 conftest
$ac_exeext conftest.
$ac_ext
18217 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18219 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18221 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"
18223 if test "$host_cpu" = ia64
; then
18224 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18225 allow_undefined_flag_CXX
="-z nodefs"
18226 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"
18228 # Determine the default libpath from the value encoded in an empty executable.
18229 cat >conftest.
$ac_ext <<_ACEOF
18232 cat confdefs.h
>>conftest.
$ac_ext
18233 cat >>conftest.
$ac_ext <<_ACEOF
18234 /* end confdefs.h. */
18244 rm -f conftest.
$ac_objext conftest
$ac_exeext
18245 if { (ac_try
="$ac_link"
18246 case "(($ac_try" in
18247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251 (eval "$ac_link") 2>conftest.er1
18253 grep -v '^ *+' conftest.er1 >conftest.err
18255 cat conftest.err >&5
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); } &&
18258 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18259 { (case "(($ac_try" in
18260 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18261 *) ac_try_echo
=$ac_try;;
18263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18264 (eval "$ac_try") 2>&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; } &&
18268 { ac_try
='test -s conftest$ac_exeext'
18269 { (case "(($ac_try" in
18270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18271 *) ac_try_echo=$ac_try;;
18273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18274 (eval "$ac_try") 2>&5
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); }; }; then
18279 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18281 # Check for a 64-bit object if we didn't find anything.
18282 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; }
18285 echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18291 rm -f core conftest.err conftest.$ac_objext \
18292 conftest$ac_exeext conftest.$ac_ext
18293 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18295 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18296 # Warning - without using the other run time loading flags,
18297 # -berok will link without error, but may produce a broken library.
18298 no_undefined_flag_CXX=' ${wl}-bernotok'
18299 allow_undefined_flag_CXX=' ${wl}-berok'
18300 # Exported symbols can be pulled into shared objects from archives
18301 whole_archive_flag_spec_CXX='$convenience'
18302 archive_cmds_need_lc_CXX=yes
18303 # This is similar to how AIX traditionally builds its shared libraries.
18304 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'
18310 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18311 allow_undefined_flag_CXX=unsupported
18312 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18313 # support --undefined. This deserves some investigation. FIXME
18314 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18321 case $cc_basename in
18323 # FIXME: insert proper C++ library support
18329 cygwin* | mingw* | pw32*)
18330 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18331 # as there is no search path for DLLs.
18332 hardcode_libdir_flag_spec_CXX='-L$libdir'
18333 allow_undefined_flag_CXX=unsupported
18334 always_export_symbols_CXX=no
18335 enable_shared_with_static_runtimes_CXX=yes
18337 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18338 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'
18339 # If the export-symbols file already is a .def file (1st line
18340 # is EXPORTS), use it as is; otherwise, prepend...
18341 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
18342 cp $export_symbols $output_objdir/$soname.def;
18344 echo EXPORTS > $output_objdir/$soname.def;
18345 cat $export_symbols >> $output_objdir/$soname.def;
18347 $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'
18352 darwin* | rhapsody*)
18354 rhapsody* | darwin1.[012])
18355 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18358 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18359 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18361 case ${MACOSX_DEPLOYMENT_TARGET} in
18363 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18366 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18372 archive_cmds_need_lc_CXX=no
18373 hardcode_direct_CXX=no
18374 hardcode_automatic_CXX=yes
18375 hardcode_shlibpath_var_CXX=unsupported
18376 whole_archive_flag_spec_CXX=''
18377 link_all_deplibs_CXX=yes
18379 if test "$GXX" = yes ; then
18380 lt_int_apple_cc_single_mod=no
18381 output_verbose_link_cmd='echo'
18382 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18383 lt_int_apple_cc_single_mod=yes
18385 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18386 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18388 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'
18390 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18391 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18392 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18393 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}'
18395 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}'
18397 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}'
18399 case $cc_basename in
18401 output_verbose_link_cmd='echo'
18402 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'
18403 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18404 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18405 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}'
18406 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}'
18416 case $cc_basename in
18418 # FIXME: insert proper C++ library support
18422 # Green Hills C++ Compiler
18423 # FIXME: insert proper C++ library support
18427 # FIXME: insert proper C++ library support
18433 # C++ shared libraries reported to be fairly broken before switch to ELF
18437 archive_cmds_need_lc_CXX=no
18439 freebsd* | kfreebsd*-gnu | dragonfly*)
18440 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18447 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18448 hardcode_libdir_separator_CXX=:
18449 export_dynamic_flag_spec_CXX='${wl}-E'
18450 hardcode_direct_CXX=yes
18451 hardcode_minus_L_CXX=yes # Not in the search PATH,
18452 # but as the default
18453 # location of the library.
18455 case $cc_basename in
18457 # FIXME: insert proper C++ library support
18461 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'
18462 # Commands to make compiler produce verbose output that lists
18463 # what "hidden" libraries, object files and flags are used when
18464 # linking a shared library.
18466 # There doesn't appear to be a way to prevent this compiler from
18467 # explicitly linking system object files so we need to strip them
18468 # from the output so that they don't get included in the library
18470 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'
18473 if test "$GXX" = yes; then
18474 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'
18476 # FIXME: insert proper C++ library support
18483 if test $with_gnu_ld = no; then
18484 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18485 hardcode_libdir_separator_CXX=:
18489 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18492 export_dynamic_flag_spec_CXX='${wl}-E'
18498 hardcode_direct_CXX=no
18499 hardcode_shlibpath_var_CXX=no
18502 hardcode_direct_CXX=yes
18503 hardcode_minus_L_CXX=yes # Not in the search PATH,
18504 # but as the default
18505 # location of the library.
18509 case $cc_basename in
18511 # FIXME: insert proper C++ library support
18517 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18520 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18523 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18526 # Commands to make compiler produce verbose output that lists
18527 # what "hidden" libraries, object files and flags are used when
18528 # linking a shared library.
18530 # There doesn't appear to be a way to prevent this compiler from
18531 # explicitly linking system object files so we need to strip them
18532 # from the output so that they don't get included in the library
18534 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'
18537 if test "$GXX" = yes; then
18538 if test $with_gnu_ld = no; then
18541 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18544 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18547 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'
18552 # FIXME: insert proper C++ library support
18559 hardcode_direct_CXX=no
18560 hardcode_shlibpath_var_CXX=no
18561 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18562 export_dynamic_flag_spec_CXX='${wl}-E'
18563 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18564 # Instead, shared libraries are loaded at an image base (0x10000000 by
18565 # default) and relocated if they conflict, which is a slow very memory
18566 # consuming and fragmenting process. To avoid this, we pick a random,
18567 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18568 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18569 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'
18570 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'
18573 case $cc_basename in
18576 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'
18578 # Archives containing C++ object files must be created using
18579 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18580 # necessary to make sure instantiated templates are included
18582 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18585 if test "$GXX" = yes; then
18586 if test "$with_gnu_ld" = no; then
18587 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'
18589 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'
18592 link_all_deplibs_CXX=yes
18595 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18596 hardcode_libdir_separator_CXX=:
18599 case $cc_basename in
18601 # Kuck and Associates, Inc. (KAI) C++ Compiler
18603 # KCC will only create a shared library if the output file
18604 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18605 # to its proper name (with version) after linking.
18606 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'
18607 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'
18608 # Commands to make compiler produce verbose output that lists
18609 # what "hidden" libraries, object files and flags are used when
18610 # linking a shared library.
18612 # There doesn't appear to be a way to prevent this compiler from
18613 # explicitly linking system object files so we need to strip them
18614 # from the output so that they don't get included in the library
18616 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'
18618 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
18619 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18621 # Archives containing C++ object files must be created using
18622 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18623 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
18628 # version 8.0 and above of icpc choke on multiply defined symbols
18629 # if we add $predep_objects and $postdep_objects, however 7.1 and
18630 # earlier do not add the objects themselves.
18631 case `$CC -V 2>&1` in
18633 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18634 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'
18636 *) # Version 8.0 or newer
18639 ia64
*) tmp_idyn
=' -i_dynamic';;
18641 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18642 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'
18645 archive_cmds_need_lc_CXX
=no
18646 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18647 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18648 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18651 # Portland Group C++ compiler
18652 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18653 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'
18655 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
18656 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18657 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'
18661 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18662 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'
18664 runpath_var
=LD_RUN_PATH
18665 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18666 hardcode_libdir_separator_CXX
=:
18668 # Commands to make compiler produce verbose output that lists
18669 # what "hidden" libraries, object files and flags are used when
18670 # linking a shared library.
18672 # There doesn't appear to be a way to prevent this compiler from
18673 # explicitly linking system object files so we need to strip them
18674 # from the output so that they don't get included in the library
18676 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'
18681 # FIXME: insert proper C++ library support
18685 # FIXME: insert proper C++ library support
18689 case $cc_basename in
18691 # FIXME: insert proper C++ library support
18695 # FIXME: insert proper C++ library support
18701 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18702 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18704 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18705 hardcode_direct_CXX
=yes
18706 hardcode_shlibpath_var_CXX
=no
18708 # Workaround some broken pre-1.5 toolchains
18709 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18712 # C++ shared libraries are fairly broken
18716 hardcode_direct_CXX
=yes
18717 hardcode_shlibpath_var_CXX
=no
18718 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18719 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18720 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18721 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18722 export_dynamic_flag_spec_CXX
='${wl}-E'
18723 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18725 output_verbose_link_cmd
='echo'
18728 case $cc_basename in
18730 # Kuck and Associates, Inc. (KAI) C++ Compiler
18732 # KCC will only create a shared library if the output file
18733 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18734 # to its proper name (with version) after linking.
18735 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'
18737 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18738 hardcode_libdir_separator_CXX
=:
18740 # Archives containing C++ object files must be created using
18741 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18742 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
18746 # Rational C++ 2.4.1
18747 # FIXME: insert proper C++ library support
18751 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18752 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'
18754 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18755 hardcode_libdir_separator_CXX
=:
18757 # Commands to make compiler produce verbose output that lists
18758 # what "hidden" libraries, object files and flags are used when
18759 # linking a shared library.
18761 # There doesn't appear to be a way to prevent this compiler from
18762 # explicitly linking system object files so we need to strip them
18763 # from the output so that they don't get included in the library
18765 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'
18768 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18769 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18770 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'
18772 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18773 hardcode_libdir_separator_CXX
=:
18775 # Commands to make compiler produce verbose output that lists
18776 # what "hidden" libraries, object files and flags are used when
18777 # linking a shared library.
18778 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18781 # FIXME: insert proper C++ library support
18788 case $cc_basename in
18790 # Kuck and Associates, Inc. (KAI) C++ Compiler
18792 # KCC will only create a shared library if the output file
18793 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18794 # to its proper name (with version) after linking.
18795 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'
18797 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18798 hardcode_libdir_separator_CXX
=:
18800 # Archives containing C++ object files must be created using
18801 # the KAI C++ compiler.
18802 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
18805 # Rational C++ 2.4.1
18806 # FIXME: insert proper C++ library support
18810 allow_undefined_flag_CXX
=' -expect_unresolved \*'
18811 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'
18812 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18813 echo "-hidden">> $lib.exp~
18814 $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~
18817 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18818 hardcode_libdir_separator_CXX
=:
18820 # Commands to make compiler produce verbose output that lists
18821 # what "hidden" libraries, object files and flags are used when
18822 # linking a shared library.
18824 # There doesn't appear to be a way to prevent this compiler from
18825 # explicitly linking system object files so we need to strip them
18826 # from the output so that they don't get included in the library
18828 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'
18831 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18832 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18833 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'
18835 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18836 hardcode_libdir_separator_CXX
=:
18838 # Commands to make compiler produce verbose output that lists
18839 # what "hidden" libraries, object files and flags are used when
18840 # linking a shared library.
18841 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18844 # FIXME: insert proper C++ library support
18851 # FIXME: insert proper C++ library support
18855 case $cc_basename in
18858 # FIXME: insert proper C++ library support
18863 # FIXME: insert proper C++ library support
18867 # FIXME: insert proper C++ library support
18873 case $cc_basename in
18875 # Sun C++ 4.2, 5.x and Centerline C++
18876 archive_cmds_need_lc_CXX
=yes
18877 no_undefined_flag_CXX
=' -zdefs'
18878 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18879 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18880 $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'
18882 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18883 hardcode_shlibpath_var_CXX
=no
18885 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18887 # The C++ compiler is used as linker so we must use $wl
18888 # flag to pass the commands to the underlying system
18889 # linker. We must also pass each convience library through
18890 # to the system linker between allextract/defaultextract.
18891 # The C++ compiler will combine linker options so we
18892 # cannot just pass the convience library names through
18894 # Supported since Solaris 2.6 (maybe 2.5.1?)
18895 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'
18898 link_all_deplibs_CXX
=yes
18900 output_verbose_link_cmd
='echo'
18902 # Archives containing C++ object files must be created using
18903 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18904 # necessary to make sure instantiated templates are included
18906 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
18909 # Green Hills C++ Compiler
18910 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18912 # The C++ compiler must be used to create the archive.
18913 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18916 # GNU C++ compiler with Solaris linker
18917 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18918 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
18919 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
18920 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18921 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18922 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18924 # Commands to make compiler produce verbose output that lists
18925 # what "hidden" libraries, object files and flags are used when
18926 # linking a shared library.
18927 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18929 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18931 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18932 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18933 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18935 # Commands to make compiler produce verbose output that lists
18936 # what "hidden" libraries, object files and flags are used when
18937 # linking a shared library.
18938 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18941 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
18946 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18947 no_undefined_flag_CXX
='${wl}-z,text'
18948 archive_cmds_need_lc_CXX
=no
18949 hardcode_shlibpath_var_CXX
=no
18950 runpath_var
='LD_RUN_PATH'
18952 case $cc_basename in
18954 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18955 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18958 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18959 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18963 sysv5
* | sco3.2v5
* | sco5v6
*)
18964 # Note: We can NOT use -z defs as we might desire, because we do not
18965 # link with -lc, and that would cause any symbols used from libc to
18966 # always be unresolved, which means just about no library would
18967 # ever link correctly. If we're not using GNU ld we use -z text
18968 # though, which does catch some bad symbols but isn't as heavy-handed
18970 # For security reasons, it is highly recommended that you always
18971 # use absolute paths for naming shared libraries, and exclude the
18972 # DT_RUNPATH tag from executables and libraries. But doing so
18973 # requires that you compile everything twice, which is a pain.
18974 # So that behaviour is only enabled if SCOABSPATH is set to a
18975 # non-empty value in the environment. Most likely only useful for
18976 # creating official distributions of packages.
18977 # This is a hack until libtool officially supports absolute path
18978 # names for shared libraries.
18979 no_undefined_flag_CXX
='${wl}-z,text'
18980 allow_undefined_flag_CXX
='${wl}-z,nodefs'
18981 archive_cmds_need_lc_CXX
=no
18982 hardcode_shlibpath_var_CXX
=no
18983 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18984 hardcode_libdir_separator_CXX
=':'
18985 link_all_deplibs_CXX
=yes
18986 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
18987 runpath_var
='LD_RUN_PATH'
18989 case $cc_basename in
18991 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18992 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18995 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18996 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19001 case $cc_basename in
19003 # NonStop-UX NCC 3.20
19004 # FIXME: insert proper C++ library support
19008 # FIXME: insert proper C++ library support
19014 # FIXME: insert proper C++ library support
19018 # FIXME: insert proper C++ library support
19022 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19023 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19024 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19030 cat > conftest.
$ac_ext <<EOF
19034 Foo (void) { a = 0; }
19040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19041 (eval $ac_compile) 2>&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; then
19045 # Parse the compiler output and extract the necessary
19046 # objects, libraries and library flags.
19048 # Sentinel used to keep track of whether or not we are before
19049 # the conftest object file.
19050 pre_test_object_deps_done
=no
19052 # The `*' in the case matches for architectures that use `case' in
19053 # $output_verbose_cmd can trigger glob expansion during the loop
19054 # eval without this substitution.
19055 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19057 for p
in `eval $output_verbose_link_cmd`; do
19061 # Some compilers place space between "-{L,R}" and the path.
19062 # Remove the space.
19063 if test $p = "-L" \
19064 ||
test $p = "-R"; then
19071 if test "$pre_test_object_deps_done" = no
; then
19074 # Internal compiler library paths should come after those
19075 # provided the user. The postdeps already come after the
19076 # user supplied libs so there is no need to process them.
19077 if test -z "$compiler_lib_search_path_CXX"; then
19078 compiler_lib_search_path_CXX
="${prev}${p}"
19080 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19083 # The "-l" case would never come before the object being
19084 # linked, so don't bother handling this case.
19087 if test -z "$postdeps_CXX"; then
19088 postdeps_CXX
="${prev}${p}"
19090 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19096 # This assumes that the test object file only shows up
19097 # once in the compiler output.
19098 if test "$p" = "conftest.$objext"; then
19099 pre_test_object_deps_done
=yes
19103 if test "$pre_test_object_deps_done" = no
; then
19104 if test -z "$predep_objects_CXX"; then
19105 predep_objects_CXX
="$p"
19107 predep_objects_CXX
="$predep_objects_CXX $p"
19110 if test -z "$postdep_objects_CXX"; then
19111 postdep_objects_CXX
="$p"
19113 postdep_objects_CXX
="$postdep_objects_CXX $p"
19118 *) ;; # Ignore the rest.
19126 echo "libtool.m4: error: problem compiling CXX test program"
19129 $rm -f confest.
$objext
19131 # PORTME: override above test on systems where it is broken
19134 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19135 # hack all around it, let's just trust "g++" to DTRT.
19136 predep_objects_CXX
=
19137 postdep_objects_CXX
=
19142 case $cc_basename in
19144 # Adding this requires a known-good setup of shared libraries for
19145 # Sun compiler versions before 5.6, else PIC objects from an old
19146 # archive will be linked into the output, leading to subtle bugs.
19147 postdeps_CXX
='-lCstd -lCrun'
19154 case " $postdeps_CXX " in
19155 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19158 lt_prog_compiler_wl_CXX
=
19159 lt_prog_compiler_pic_CXX
=
19160 lt_prog_compiler_static_CXX
=
19162 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19163 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19165 # C++ specific cases for pic, static, wl, etc.
19166 if test "$GXX" = yes; then
19167 lt_prog_compiler_wl_CXX
='-Wl,'
19168 lt_prog_compiler_static_CXX
='-static'
19172 # All AIX code is PIC.
19173 if test "$host_cpu" = ia64
; then
19174 # AIX 5 now supports IA64 processor
19175 lt_prog_compiler_static_CXX
='-Bstatic'
19179 # FIXME: we need at least 68020 code to build shared libraries, but
19180 # adding the `-m68020' flag to GCC prevents building anything better,
19182 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19184 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19185 # PIC is the default for these OSes.
19187 mingw
* | os2
* | pw32
*)
19188 # This hack is so that the source file can tell whether it is being
19189 # built for inclusion in a dll (and should export symbols for example).
19190 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19192 darwin
* | rhapsody
*)
19193 # PIC is the default on this platform
19194 # Common symbols not allowed in MH_DYLIB files
19195 lt_prog_compiler_pic_CXX
='-fno-common'
19198 # DJGPP does not support shared libraries at all
19199 lt_prog_compiler_pic_CXX
=
19202 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19203 # Instead, we relocate shared libraries at runtime.
19206 if test -d /usr
/nec
; then
19207 lt_prog_compiler_pic_CXX
=-Kconform_pic
19211 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19212 # not for PA HP-UX.
19217 lt_prog_compiler_pic_CXX
='-fPIC'
19222 lt_prog_compiler_pic_CXX
='-fPIC'
19228 # All AIX code is PIC.
19229 if test "$host_cpu" = ia64
; then
19230 # AIX 5 now supports IA64 processor
19231 lt_prog_compiler_static_CXX
='-Bstatic'
19233 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19237 case $cc_basename in
19239 # Green Hills C++ Compiler
19240 # _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"
19245 # PIC is the default on this platform
19246 # Common symbols not allowed in MH_DYLIB files
19247 case $cc_basename in
19249 lt_prog_compiler_pic_CXX
='-qnocommon'
19250 lt_prog_compiler_wl_CXX
='-Wl,'
19255 case $cc_basename in
19257 lt_prog_compiler_pic_CXX
='-KPIC'
19260 # Green Hills C++ Compiler
19261 lt_prog_compiler_pic_CXX
='-pic'
19267 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
19268 # FreeBSD uses GNU C++
19270 hpux9
* | hpux10
* | hpux11
*)
19271 case $cc_basename in
19273 lt_prog_compiler_wl_CXX
='-Wl,'
19274 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19275 if test "$host_cpu" != ia64
; then
19276 lt_prog_compiler_pic_CXX
='+Z'
19280 lt_prog_compiler_wl_CXX
='-Wl,'
19281 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19287 lt_prog_compiler_pic_CXX
='+Z'
19296 # This is c89, which is MS Visual C++ (no shared libs)
19297 # Anyone wants to do a port?
19299 irix5
* | irix6
* | nonstopux
*)
19300 case $cc_basename in
19302 lt_prog_compiler_wl_CXX
='-Wl,'
19303 lt_prog_compiler_static_CXX
='-non_shared'
19304 # CC pic flag -KPIC is the default.
19311 case $cc_basename in
19314 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19315 lt_prog_compiler_pic_CXX
='-fPIC'
19319 lt_prog_compiler_wl_CXX
='-Wl,'
19320 lt_prog_compiler_pic_CXX
='-KPIC'
19321 lt_prog_compiler_static_CXX
='-static'
19324 # Portland Group C++ compiler.
19325 lt_prog_compiler_wl_CXX
='-Wl,'
19326 lt_prog_compiler_pic_CXX
='-fpic'
19327 lt_prog_compiler_static_CXX
='-Bstatic'
19331 # Make sure the PIC flag is empty. It appears that all Alpha
19332 # Linux and Compaq Tru64 Unix objects are PIC.
19333 lt_prog_compiler_pic_CXX
=
19334 lt_prog_compiler_static_CXX
='-non_shared'
19345 case $cc_basename in
19347 lt_prog_compiler_pic_CXX
='-W c,exportall'
19355 osf3
* | osf4
* | osf5
*)
19356 case $cc_basename in
19358 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19361 # Rational C++ 2.4.1
19362 lt_prog_compiler_pic_CXX
='-pic'
19365 # Digital/Compaq C++
19366 lt_prog_compiler_wl_CXX
='-Wl,'
19367 # Make sure the PIC flag is empty. It appears that all Alpha
19368 # Linux and Compaq Tru64 Unix objects are PIC.
19369 lt_prog_compiler_pic_CXX
=
19370 lt_prog_compiler_static_CXX
='-non_shared'
19379 case $cc_basename in
19381 # Sun C++ 4.2, 5.x and Centerline C++
19382 lt_prog_compiler_pic_CXX
='-KPIC'
19383 lt_prog_compiler_static_CXX
='-Bstatic'
19384 lt_prog_compiler_wl_CXX
='-Qoption ld '
19387 # Green Hills C++ Compiler
19388 lt_prog_compiler_pic_CXX
='-PIC'
19395 case $cc_basename in
19398 lt_prog_compiler_pic_CXX
='-pic'
19399 lt_prog_compiler_static_CXX
='-Bstatic'
19403 lt_prog_compiler_pic_CXX
='-pic'
19410 case $cc_basename in
19412 # NonStop-UX NCC 3.20
19413 lt_prog_compiler_pic_CXX
='-KPIC'
19419 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
19420 case $cc_basename in
19422 lt_prog_compiler_wl_CXX
='-Wl,'
19423 lt_prog_compiler_pic_CXX
='-KPIC'
19424 lt_prog_compiler_static_CXX
='-Bstatic'
19431 lt_prog_compiler_can_build_shared_CXX
=no
19436 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19437 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19440 # Check to make sure the PIC flag actually works.
19442 if test -n "$lt_prog_compiler_pic_CXX"; then
19444 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19445 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19446 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19447 echo $ECHO_N "(cached) $ECHO_C" >&6
19449 lt_prog_compiler_pic_works_CXX
=no
19450 ac_outfile
=conftest.
$ac_objext
19451 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
19452 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
19453 # Insert the option either (1) after the last *FLAGS variable, or
19454 # (2) before a word containing "conftest.", or (3) at the end.
19455 # Note that $ac_compile itself does not contain backslashes and begins
19456 # with a dollar sign (not a hyphen), so the echo should work correctly.
19457 # The option is referenced via a variable to avoid confusing sed.
19458 lt_compile
=`echo "$ac_compile" | $SED \
19459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19461 -e 's:$: $lt_compiler_flag:'`
19462 (eval echo "\"\$as_me:19462: $lt_compile\"" >&5)
19463 (eval "$lt_compile" 2>conftest.err
)
19465 cat conftest.err
>&5
19466 echo "$as_me:19466: \$? = $ac_status" >&5
19467 if (exit $ac_status) && test -s "$ac_outfile"; then
19468 # The compiler can only warn and ignore the option if not recognized
19469 # So say no if there are warnings other than the usual output.
19470 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
19471 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19472 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
19473 lt_prog_compiler_pic_works_CXX
=yes
19479 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19480 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19482 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
19483 case $lt_prog_compiler_pic_CXX in
19485 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
19488 lt_prog_compiler_pic_CXX
=
19489 lt_prog_compiler_can_build_shared_CXX
=no
19494 # For platforms which do not support PIC, -DPIC is meaningless:
19496 lt_prog_compiler_pic_CXX
=
19499 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
19504 # Check to make sure the static flag actually works.
19506 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
19507 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19508 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19509 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19510 echo $ECHO_N "(cached) $ECHO_C" >&6
19512 lt_prog_compiler_static_works_CXX
=no
19513 save_LDFLAGS
="$LDFLAGS"
19514 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
19515 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
19516 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
19517 # The linker can only warn and ignore the option if not recognized
19518 # So say no if there are warnings
19519 if test -s conftest.err
; then
19520 # Append any errors to the config.log.
19521 cat conftest.err
1>&5
19522 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
19523 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19524 if diff conftest.exp conftest.er2
>/dev
/null
; then
19525 lt_prog_compiler_static_works_CXX
=yes
19528 lt_prog_compiler_static_works_CXX
=yes
19532 LDFLAGS
="$save_LDFLAGS"
19535 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19536 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19538 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
19541 lt_prog_compiler_static_CXX
=
19545 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19546 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19547 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19550 lt_cv_prog_compiler_c_o_CXX
=no
19551 $rm -r conftest
2>/dev
/null
19555 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
19557 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19558 # Insert the option either (1) after the last *FLAGS variable, or
19559 # (2) before a word containing "conftest.", or (3) at the end.
19560 # Note that $ac_compile itself does not contain backslashes and begins
19561 # with a dollar sign (not a hyphen), so the echo should work correctly.
19562 lt_compile
=`echo "$ac_compile" | $SED \
19563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19565 -e 's:$: $lt_compiler_flag:'`
19566 (eval echo "\"\$as_me:19566: $lt_compile\"" >&5)
19567 (eval "$lt_compile" 2>out
/conftest.err
)
19569 cat out
/conftest.err
>&5
19570 echo "$as_me:19570: \$? = $ac_status" >&5
19571 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19573 # The compiler can only warn and ignore the option if not recognized
19574 # So say no if there are warnings
19575 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
19576 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19577 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19578 lt_cv_prog_compiler_c_o_CXX
=yes
19583 # SGI C++ compiler will create directory out/ii_files/ for
19584 # template instantiation
19585 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
19586 $rm out
/* && rmdir out
19592 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19593 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19596 hard_links
="nottested"
19597 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
19598 # do not overwrite the value of need_locks provided by the user
19599 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19600 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19603 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19605 ln conftest.a conftest.b
2>&5 || hard_links
=no
19606 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19607 { echo "$as_me:$LINENO: result: $hard_links" >&5
19608 echo "${ECHO_T}$hard_links" >&6; }
19609 if test "$hard_links" = no
; then
19610 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19611 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19618 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19619 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19621 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19624 # If we're using GNU nm, then we don't want the "-C" option.
19625 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19626 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
19627 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'
19629 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'
19633 export_symbols_cmds_CXX
="$ltdll_cmds"
19636 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'
19639 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19643 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19644 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19645 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19648 # Do we need to explicitly link libc?
19650 case "x$archive_cmds_need_lc_CXX" in
19652 # Assume -lc should be added
19653 archive_cmds_need_lc_CXX
=yes
19655 if test "$enable_shared" = yes && test "$GCC" = yes; then
19656 case $archive_cmds_CXX in
19658 # FIXME: we may have to deal with multi-command sequences.
19661 # Test whether the compiler implicitly links with -lc since on some
19662 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19663 # to ld, don't add -lc before -lgcc.
19664 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19665 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19667 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
19669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19670 (eval $ac_compile) 2>&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } 2>conftest.err
; then
19676 libobjs
=conftest.
$ac_objext
19678 wl
=$lt_prog_compiler_wl_CXX
19679 pic_flag
=$lt_prog_compiler_pic_CXX
19685 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
19686 allow_undefined_flag_CXX
=
19687 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19688 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }
19693 archive_cmds_need_lc_CXX
=no
19695 archive_cmds_need_lc_CXX
=yes
19697 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
19699 cat conftest.err
1>&5
19702 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19703 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19710 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19711 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19712 library_names_spec
=
19713 libname_spec
='lib$name'
19717 postuninstall_cmds
=
19721 shlibpath_overrides_runpath
=unknown
19723 dynamic_linker
="$host_os ld.so"
19724 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
19725 if test "$GCC" = yes; then
19726 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19727 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
19728 # if the path contains ";" then we assume it to be the separator
19729 # otherwise default to the standard path separator (i.e. ":") - it is
19730 # assumed that no part of a normal pathname contains ";" but that should
19731 # okay in the real world where ";" in dirpaths is itself problematic.
19732 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19734 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19737 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
19739 need_lib_prefix
=unknown
19740 hardcode_into_libs
=no
19742 # when you set need_version to no, make sure it does not cause -set_version
19743 # flags to be left without arguments
19744 need_version
=unknown
19749 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
19750 shlibpath_var
=LIBPATH
19752 # AIX 3 has no versioning support, so we append a major version to the name.
19753 soname_spec
='${libname}${release}${shared_ext}$major'
19760 hardcode_into_libs
=yes
19761 if test "$host_cpu" = ia64
; then
19762 # AIX 5 supports IA64
19763 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19764 shlibpath_var
=LD_LIBRARY_PATH
19766 # With GCC up to 2.95.x, collect2 would create an import file
19767 # for dependence libraries. The import file would start with
19768 # the line `#! .'. This would cause the generated library to
19769 # depend on `.', always an invalid library. This was fixed in
19770 # development snapshots of GCC prior to 3.0.
19772 aix4 | aix4.
[01] | aix4.
[01].
*)
19773 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19775 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
19778 can_build_shared
=no
19782 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19783 # soname into executable. Probably we can add versioning support to
19784 # collect2, so additional links can be useful in future.
19785 if test "$aix_use_runtimelinking" = yes; then
19786 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19787 # instead of lib<name>.a to let people know that these are not
19788 # typical AIX shared libraries.
19789 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19791 # We preserve .a as extension for shared libraries through AIX4.2
19792 # and later when we are not doing run time linking.
19793 library_names_spec
='${libname}${release}.a $libname.a'
19794 soname_spec
='${libname}${release}${shared_ext}$major'
19796 shlibpath_var
=LIBPATH
19801 library_names_spec
='$libname.ixlibrary $libname.a'
19802 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19803 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'
19807 library_names_spec
='${libname}${shared_ext}'
19808 dynamic_linker
="$host_os ld.so"
19809 shlibpath_var
=LIBRARY_PATH
19815 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19816 soname_spec
='${libname}${release}${shared_ext}$major'
19817 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
19818 shlibpath_var
=LD_LIBRARY_PATH
19819 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19820 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
19821 # the default ld.so.conf also contains /usr/contrib/lib and
19822 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19823 # libtool to hard-code these into programs
19826 cygwin
* | mingw
* | pw32
*)
19827 version_type
=windows
19832 case $GCC,$host_os in
19833 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
19834 library_names_spec
='$libname.dll.a'
19835 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19836 postinstall_cmds
='base_file=`basename \${file}`~
19837 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19838 dldir=$destdir/`dirname \$dlpath`~
19839 test -d \$dldir || mkdir -p \$dldir~
19840 $install_prog $dir/$dlname \$dldir/$dlname~
19841 chmod a+x \$dldir/$dlname'
19842 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19843 dlpath=$dir/\$dldll~
19845 shlibpath_overrides_runpath
=yes
19849 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19850 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19851 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
19854 # MinGW DLLs use traditional 'lib' prefix
19855 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19856 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19857 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
19858 # It is most probably a Windows format PATH printed by
19859 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19860 # path with ; separators, and with drive letters. We can handle the
19861 # drive letters (cygwin fileutils understands them), so leave them,
19862 # especially as we might pass files found there to a mingw objdump,
19863 # which wouldn't understand a cygwinified path. Ahh.
19864 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19866 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19870 # pw32 DLLs use 'pw' prefix rather than 'lib'
19871 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19877 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19880 dynamic_linker
='Win32 ld.exe'
19881 # FIXME: first we should search . and the directory the executable is in
19885 darwin
* | rhapsody
*)
19886 dynamic_linker
="$host_os dyld"
19887 version_type
=darwin
19890 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19891 soname_spec
='${libname}${release}${major}$shared_ext'
19892 shlibpath_overrides_runpath
=yes
19893 shlibpath_var
=DYLD_LIBRARY_PATH
19894 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
19895 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19896 if test "$GCC" = yes; then
19897 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"`
19899 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
19901 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
19908 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19909 soname_spec
='${libname}${release}${shared_ext}$major'
19910 shlibpath_var
=LD_LIBRARY_PATH
19921 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19922 soname_spec
='${libname}${release}${shared_ext}$major'
19923 shlibpath_var
=LD_LIBRARY_PATH
19924 shlibpath_overrides_runpath
=no
19925 hardcode_into_libs
=yes
19926 dynamic_linker
='GNU ld.so'
19929 freebsd
* | dragonfly
*)
19930 # DragonFly does not have aout. When/if they implement a new
19931 # versioning mechanism, adjust this.
19932 if test -x /usr
/bin
/objformat
; then
19933 objformat
=`/usr/bin/objformat`
19936 freebsd
[123]*) objformat
=aout
;;
19937 *) objformat
=elf
;;
19940 version_type
=freebsd-
$objformat
19941 case $version_type in
19943 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19948 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19952 shlibpath_var
=LD_LIBRARY_PATH
19955 shlibpath_overrides_runpath
=yes
19957 freebsd3.
[01]* | freebsdelf3.
[01]*)
19958 shlibpath_overrides_runpath
=yes
19959 hardcode_into_libs
=yes
19961 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
19962 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
19963 shlibpath_overrides_runpath
=no
19964 hardcode_into_libs
=yes
19966 freebsd
*) # from 4.6 on
19967 shlibpath_overrides_runpath
=yes
19968 hardcode_into_libs
=yes
19977 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19978 soname_spec
='${libname}${release}${shared_ext}$major'
19979 shlibpath_var
=LD_LIBRARY_PATH
19980 hardcode_into_libs
=yes
19983 hpux9
* | hpux10
* | hpux11
*)
19984 # Give a soname corresponding to the major version so that dld.sl refuses to
19985 # link against other versions.
19992 hardcode_into_libs
=yes
19993 dynamic_linker
="$host_os dld.so"
19994 shlibpath_var
=LD_LIBRARY_PATH
19995 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19996 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19997 soname_spec
='${libname}${release}${shared_ext}$major'
19998 if test "X$HPUX_IA64_MODE" = X32
; then
19999 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20001 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20003 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20007 hardcode_into_libs
=yes
20008 dynamic_linker
="$host_os dld.sl"
20009 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20010 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20011 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20012 soname_spec
='${libname}${release}${shared_ext}$major'
20013 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20014 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20018 dynamic_linker
="$host_os dld.sl"
20019 shlibpath_var
=SHLIB_PATH
20020 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20021 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20022 soname_spec
='${libname}${release}${shared_ext}$major'
20025 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20026 postinstall_cmds
='chmod 555 $lib'
20033 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20034 soname_spec
='${libname}${release}${shared_ext}$major'
20035 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20036 shlibpath_var
=LD_LIBRARY_PATH
20037 shlibpath_overrides_runpath
=no
20038 hardcode_into_libs
=yes
20041 irix5
* | irix6
* | nonstopux
*)
20043 nonstopux
*) version_type
=nonstopux
;;
20045 if test "$lt_cv_prog_gnu_ld" = yes; then
20053 soname_spec
='${libname}${release}${shared_ext}$major'
20054 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20056 irix5
* | nonstopux
*)
20057 libsuff
= shlibsuff
=
20060 case $LD in # libtool.m4 will add one of these switches to LD
20061 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20062 libsuff
= shlibsuff
= libmagic
=32-bit;;
20063 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20064 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20065 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20066 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20067 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20071 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20072 shlibpath_overrides_runpath
=no
20073 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20074 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20075 hardcode_into_libs
=yes
20078 # No shared lib support for Linux oldld, aout, or coff.
20079 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20083 # This must be Linux ELF.
20088 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20089 soname_spec
='${libname}${release}${shared_ext}$major'
20090 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20091 shlibpath_var
=LD_LIBRARY_PATH
20092 shlibpath_overrides_runpath
=no
20093 # This implies no fast_install, which is unacceptable.
20094 # Some rework will be needed to allow for fast_install
20095 # before this can be enabled.
20096 hardcode_into_libs
=yes
20098 # Append ld.so.conf contents to the search path
20099 if test -f /etc
/ld.so.conf
; then
20100 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' ' '`
20101 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20104 # We used to test for /lib/ld.so.1 and disable shared libraries on
20105 # powerpc, because MkLinux only supported shared libraries with the
20106 # GNU dynamic linker. Since this was broken with cross compilers,
20107 # most powerpc-linux boxes support dynamic linking these days and
20108 # people can always --disable-shared, the test was removed, and we
20109 # assume the GNU/Linux dynamic linker is in use.
20110 dynamic_linker
='GNU/Linux ld.so'
20117 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20118 soname_spec
='${libname}${release}${shared_ext}$major'
20119 shlibpath_var
=LD_LIBRARY_PATH
20120 shlibpath_overrides_runpath
=no
20121 hardcode_into_libs
=yes
20122 dynamic_linker
='GNU ld.so'
20129 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
20130 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20131 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20132 dynamic_linker
='NetBSD (a.out) ld.so'
20134 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20135 soname_spec
='${libname}${release}${shared_ext}$major'
20136 dynamic_linker
='NetBSD ld.elf_so'
20138 shlibpath_var
=LD_LIBRARY_PATH
20139 shlibpath_overrides_runpath
=yes
20140 hardcode_into_libs
=yes
20145 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20146 shlibpath_var
=LD_LIBRARY_PATH
20147 shlibpath_overrides_runpath
=yes
20154 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20155 soname_spec
='${libname}${release}${shared_ext}$major'
20156 shlibpath_var
=LD_LIBRARY_PATH
20157 shlibpath_overrides_runpath
=yes
20162 sys_lib_dlsearch_path_spec
="/usr/lib"
20164 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20166 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20167 *) need_version
=no
;;
20169 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20170 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20171 shlibpath_var
=LD_LIBRARY_PATH
20172 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20174 openbsd2.
[89] | openbsd2.
[89].
*)
20175 shlibpath_overrides_runpath
=no
20178 shlibpath_overrides_runpath
=yes
20182 shlibpath_overrides_runpath
=yes
20187 libname_spec
='$name'
20190 library_names_spec
='$libname${shared_ext} $libname.a'
20191 dynamic_linker
='OS/2 ld.exe'
20192 shlibpath_var
=LIBPATH
20195 osf3
* | osf4
* | osf5
*)
20199 soname_spec
='${libname}${release}${shared_ext}$major'
20200 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20201 shlibpath_var
=LD_LIBRARY_PATH
20202 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20203 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20210 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20211 soname_spec
='${libname}${release}${shared_ext}$major'
20212 shlibpath_var
=LD_LIBRARY_PATH
20213 shlibpath_overrides_runpath
=yes
20214 hardcode_into_libs
=yes
20215 # ldd complains unless libraries are executable
20216 postinstall_cmds
='chmod +x $lib'
20221 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20222 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20223 shlibpath_var
=LD_LIBRARY_PATH
20224 shlibpath_overrides_runpath
=yes
20225 if test "$with_gnu_ld" = yes; then
20233 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20234 soname_spec
='${libname}${release}${shared_ext}$major'
20235 shlibpath_var
=LD_LIBRARY_PATH
20236 case $host_vendor in
20238 shlibpath_overrides_runpath
=no
20240 export_dynamic_flag_spec
='${wl}-Blargedynsym'
20241 runpath_var
=LD_RUN_PATH
20249 shlibpath_overrides_runpath
=no
20250 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20256 if test -d /usr
/nec
;then
20258 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20259 soname_spec
='$libname${shared_ext}.$major'
20260 shlibpath_var
=LD_LIBRARY_PATH
20264 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20265 version_type
=freebsd-elf
20268 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20269 soname_spec
='${libname}${release}${shared_ext}$major'
20270 shlibpath_var
=LD_LIBRARY_PATH
20271 hardcode_into_libs
=yes
20272 if test "$with_gnu_ld" = yes; then
20273 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20274 shlibpath_overrides_runpath
=no
20276 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20277 shlibpath_overrides_runpath
=yes
20280 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20284 sys_lib_dlsearch_path_spec
='/usr/lib'
20289 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20290 soname_spec
='${libname}${release}${shared_ext}$major'
20291 shlibpath_var
=LD_LIBRARY_PATH
20298 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20299 echo "${ECHO_T}$dynamic_linker" >&6; }
20300 test "$dynamic_linker" = no
&& can_build_shared
=no
20302 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20303 if test "$GCC" = yes; then
20304 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20307 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20308 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20309 hardcode_action_CXX
=
20310 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20311 test -n "$runpath_var_CXX" || \
20312 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20314 # We can hardcode non-existant directories.
20315 if test "$hardcode_direct_CXX" != no
&&
20316 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20317 # have to relink, otherwise we might link with an installed library
20318 # when we should be linking with a yet-to-be-installed one
20319 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20320 test "$hardcode_minus_L_CXX" != no
; then
20321 # Linking always hardcodes the temporary library directory.
20322 hardcode_action_CXX
=relink
20324 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20325 hardcode_action_CXX
=immediate
20328 # We cannot hardcode anything, or else we can only hardcode existing
20330 hardcode_action_CXX
=unsupported
20332 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20333 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20335 if test "$hardcode_action_CXX" = relink
; then
20336 # Fast installation is not supported
20337 enable_fast_install
=no
20338 elif test "$shlibpath_overrides_runpath" = yes ||
20339 test "$enable_shared" = no
; then
20340 # Fast installation is not necessary
20341 enable_fast_install
=needless
20345 # The else clause should only fire when bootstrapping the
20346 # libtool distribution, otherwise you forgot to ship ltmain.sh
20347 # with your package, and you will get complaints that there are
20348 # no rules to generate ltmain.sh.
20349 if test -f "$ltmain"; then
20350 # See if we are running on zsh, and set the options which allow our commands through
20351 # without removal of \ escapes.
20352 if test -n "${ZSH_VERSION+set}" ; then
20353 setopt NO_GLOB_SUBST
20355 # Now quote all the things that may contain metacharacters while being
20356 # careful not to overquote the AC_SUBSTed values. We take copies of the
20357 # variables and quote the copies for generation of the libtool script.
20358 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20360 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20361 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20362 deplibs_check_method reload_flag reload_cmds need_locks \
20363 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20364 lt_cv_sys_global_symbol_to_c_name_address \
20365 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20366 old_postinstall_cmds old_postuninstall_cmds \
20370 lt_prog_compiler_wl_CXX \
20371 lt_prog_compiler_pic_CXX \
20372 lt_prog_compiler_static_CXX \
20373 lt_prog_compiler_no_builtin_flag_CXX \
20374 export_dynamic_flag_spec_CXX \
20375 thread_safe_flag_spec_CXX \
20376 whole_archive_flag_spec_CXX \
20377 enable_shared_with_static_runtimes_CXX \
20378 old_archive_cmds_CXX \
20379 old_archive_from_new_cmds_CXX \
20380 predep_objects_CXX \
20381 postdep_objects_CXX \
20384 compiler_lib_search_path_CXX \
20386 archive_expsym_cmds_CXX \
20387 postinstall_cmds_CXX \
20388 postuninstall_cmds_CXX \
20389 old_archive_from_expsyms_cmds_CXX \
20390 allow_undefined_flag_CXX \
20391 no_undefined_flag_CXX \
20392 export_symbols_cmds_CXX \
20393 hardcode_libdir_flag_spec_CXX \
20394 hardcode_libdir_flag_spec_ld_CXX \
20395 hardcode_libdir_separator_CXX \
20396 hardcode_automatic_CXX \
20398 module_expsym_cmds_CXX \
20399 lt_cv_prog_compiler_c_o_CXX \
20400 exclude_expsyms_CXX \
20401 include_expsyms_CXX
; do
20404 old_archive_cmds_CXX | \
20405 old_archive_from_new_cmds_CXX | \
20406 archive_cmds_CXX | \
20407 archive_expsym_cmds_CXX | \
20408 module_cmds_CXX | \
20409 module_expsym_cmds_CXX | \
20410 old_archive_from_expsyms_cmds_CXX | \
20411 export_symbols_cmds_CXX | \
20412 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20413 postinstall_cmds | postuninstall_cmds | \
20414 old_postinstall_cmds | old_postuninstall_cmds | \
20415 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
20416 # Double-quote double-evaled strings.
20417 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20420 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20426 *'\$0 --fallback-echo"')
20427 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20433 cat <<__EOF__ >> "$cfgfile"
20434 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20436 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20438 # Shell to use when invoking shell scripts.
20441 # Whether or not to build shared libraries.
20442 build_libtool_libs=$enable_shared
20444 # Whether or not to build static libraries.
20445 build_old_libs=$enable_static
20447 # Whether or not to add -lc for building shared libraries.
20448 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20450 # Whether or not to disallow shared libs when runtime libs are static
20451 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20453 # Whether or not to optimize for fast installation.
20454 fast_install=$enable_fast_install
20457 host_alias=$host_alias
20461 # The build system.
20462 build_alias=$build_alias
20466 # An echo program that does not interpret backslashes.
20471 AR_FLAGS=$lt_AR_FLAGS
20476 # LTCC compiler flags.
20477 LTCFLAGS=$lt_LTCFLAGS
20479 # A language-specific compiler.
20480 CC=$lt_compiler_CXX
20482 # Is the compiler the GNU C compiler?
20488 # The linker used to build libraries.
20491 # Whether we need hard or soft links.
20494 # A BSD-compatible nm program.
20497 # A symbol stripping program
20500 # Used to examine libraries when file_magic_cmd begins "file"
20501 MAGIC_CMD=$MAGIC_CMD
20503 # Used on cygwin: DLL creation program.
20506 # Used on cygwin: object dumper.
20509 # Used on cygwin: assembler.
20512 # The name of the directory that contains temporary libtool files.
20515 # How to create reloadable object files.
20516 reload_flag=$lt_reload_flag
20517 reload_cmds=$lt_reload_cmds
20519 # How to pass a linker flag through the compiler.
20520 wl=$lt_lt_prog_compiler_wl_CXX
20522 # Object file suffix (normally "o").
20523 objext="$ac_objext"
20525 # Old archive suffix (normally "a").
20528 # Shared library suffix (normally ".so").
20529 shrext_cmds='$shrext_cmds'
20531 # Executable file suffix (normally "").
20534 # Additional compiler flags for building library objects.
20535 pic_flag=$lt_lt_prog_compiler_pic_CXX
20538 # What is the maximum length of a command?
20539 max_cmd_len=$lt_cv_sys_max_cmd_len
20541 # Does compiler simultaneously support -c and -o options?
20542 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20544 # Must we lock files when doing compilation?
20545 need_locks=$lt_need_locks
20547 # Do we need the lib prefix for modules?
20548 need_lib_prefix=$need_lib_prefix
20550 # Do we need a version for libraries?
20551 need_version=$need_version
20553 # Whether dlopen is supported.
20554 dlopen_support=$enable_dlopen
20556 # Whether dlopen of programs is supported.
20557 dlopen_self=$enable_dlopen_self
20559 # Whether dlopen of statically linked programs is supported.
20560 dlopen_self_static=$enable_dlopen_self_static
20562 # Compiler flag to prevent dynamic linking.
20563 link_static_flag=$lt_lt_prog_compiler_static_CXX
20565 # Compiler flag to turn off builtin functions.
20566 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20568 # Compiler flag to allow reflexive dlopens.
20569 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20571 # Compiler flag to generate shared objects directly from archives.
20572 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20574 # Compiler flag to generate thread-safe objects.
20575 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20577 # Library versioning type.
20578 version_type=$version_type
20580 # Format of library name prefix.
20581 libname_spec=$lt_libname_spec
20583 # List of archive names. First name is the real one, the rest are links.
20584 # The last name is the one that the linker finds with -lNAME.
20585 library_names_spec=$lt_library_names_spec
20587 # The coded name of the library, if different from the real name.
20588 soname_spec=$lt_soname_spec
20590 # Commands used to build and install an old-style archive.
20592 old_archive_cmds=$lt_old_archive_cmds_CXX
20593 old_postinstall_cmds=$lt_old_postinstall_cmds
20594 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20596 # Create an old-style archive from a shared archive.
20597 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20599 # Create a temporary old-style archive to link instead of a shared archive.
20600 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20602 # Commands used to build and install a shared archive.
20603 archive_cmds=$lt_archive_cmds_CXX
20604 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20605 postinstall_cmds=$lt_postinstall_cmds
20606 postuninstall_cmds=$lt_postuninstall_cmds
20608 # Commands used to build a loadable module (assumed same as above if empty)
20609 module_cmds=$lt_module_cmds_CXX
20610 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20612 # Commands to strip libraries.
20613 old_striplib=$lt_old_striplib
20614 striplib=$lt_striplib
20616 # Dependencies to place before the objects being linked to create a
20618 predep_objects=$lt_predep_objects_CXX
20620 # Dependencies to place after the objects being linked to create a
20622 postdep_objects=$lt_postdep_objects_CXX
20624 # Dependencies to place before the objects being linked to create a
20626 predeps=$lt_predeps_CXX
20628 # Dependencies to place after the objects being linked to create a
20630 postdeps=$lt_postdeps_CXX
20632 # The library search path used internally by the compiler when linking
20633 # a shared library.
20634 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20636 # Method to check whether dependent libraries are shared objects.
20637 deplibs_check_method=$lt_deplibs_check_method
20639 # Command to use when deplibs_check_method == file_magic.
20640 file_magic_cmd=$lt_file_magic_cmd
20642 # Flag that allows shared libraries with undefined symbols to be built.
20643 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20645 # Flag that forces no undefined symbols.
20646 no_undefined_flag=$lt_no_undefined_flag_CXX
20648 # Commands used to finish a libtool library installation in a directory.
20649 finish_cmds=$lt_finish_cmds
20651 # Same as above, but a single script fragment to be evaled but not shown.
20652 finish_eval=$lt_finish_eval
20654 # Take the output of nm and produce a listing of raw symbols and C names.
20655 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20657 # Transform the output of nm in a proper C declaration
20658 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20660 # Transform the output of nm in a C name address pair
20661 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20663 # This is the shared library runtime path variable.
20664 runpath_var=$runpath_var
20666 # This is the shared library path variable.
20667 shlibpath_var=$shlibpath_var
20669 # Is shlibpath searched before the hard-coded library search path?
20670 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20672 # How to hardcode a shared library path into an executable.
20673 hardcode_action=$hardcode_action_CXX
20675 # Whether we should hardcode library paths into libraries.
20676 hardcode_into_libs=$hardcode_into_libs
20678 # Flag to hardcode \$libdir into a binary during linking.
20679 # This must work even if \$libdir does not exist.
20680 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20682 # If ld is used when linking, flag to hardcode \$libdir into
20683 # a binary during linking. This must work even if \$libdir does
20685 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20687 # Whether we need a single -rpath flag with a separated argument.
20688 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20690 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20691 # resulting binary.
20692 hardcode_direct=$hardcode_direct_CXX
20694 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20695 # resulting binary.
20696 hardcode_minus_L=$hardcode_minus_L_CXX
20698 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20699 # the resulting binary.
20700 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20702 # Set to yes if building a shared library automatically hardcodes DIR into the library
20703 # and all subsequent libraries and executables linked against it.
20704 hardcode_automatic=$hardcode_automatic_CXX
20706 # Variables whose values should be saved in libtool wrapper scripts and
20707 # restored at relink time.
20708 variables_saved_for_relink="$variables_saved_for_relink"
20710 # Whether libtool must link a program against all its dependency libraries.
20711 link_all_deplibs=$link_all_deplibs_CXX
20713 # Compile-time system search path for libraries
20714 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20716 # Run-time system search path for libraries
20717 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20719 # Fix the shell variable \$srcfile for the compiler.
20720 fix_srcfile_path="$fix_srcfile_path_CXX"
20722 # Set to yes if exported symbols are required.
20723 always_export_symbols=$always_export_symbols_CXX
20725 # The commands to list exported symbols.
20726 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20728 # The commands to extract the exported symbol list from a shared archive.
20729 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20731 # Symbols that should not be listed in the preloaded symbols.
20732 exclude_expsyms=$lt_exclude_expsyms_CXX
20734 # Symbols that must always be exported.
20735 include_expsyms=$lt_include_expsyms_CXX
20737 # ### END LIBTOOL TAG CONFIG: $tagname
20743 # If there is no Makefile yet, we rely on a make rule to execute
20744 # `config.status --recheck' to rerun these tests and create the
20745 # libtool script then.
20746 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20747 if test -f "$ltmain_in"; then
20748 test -f Makefile
&& make "$ltmain"
20754 ac_cpp
='$CPP $CPPFLAGS'
20755 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20756 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20757 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20763 with_gnu_ldcxx
=$with_gnu_ld
20764 with_gnu_ld
=$lt_save_with_gnu_ld
20765 lt_cv_path_LDCXX
=$lt_cv_path_LD
20766 lt_cv_path_LD
=$lt_save_path_LD
20767 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
20768 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
20776 if test -n "$F77" && test "X$F77" != "Xno"; then
20779 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20780 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20781 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
20784 archive_cmds_need_lc_F77
=no
20785 allow_undefined_flag_F77
=
20786 always_export_symbols_F77
=no
20787 archive_expsym_cmds_F77
=
20788 export_dynamic_flag_spec_F77
=
20789 hardcode_direct_F77
=no
20790 hardcode_libdir_flag_spec_F77
=
20791 hardcode_libdir_flag_spec_ld_F77
=
20792 hardcode_libdir_separator_F77
=
20793 hardcode_minus_L_F77
=no
20794 hardcode_automatic_F77
=no
20796 module_expsym_cmds_F77
=
20797 link_all_deplibs_F77
=unknown
20798 old_archive_cmds_F77
=$old_archive_cmds
20799 no_undefined_flag_F77
=
20800 whole_archive_flag_spec_F77
=
20801 enable_shared_with_static_runtimes_F77
=no
20803 # Source file extension for f77 test sources.
20806 # Object file extension for compiled f77 test sources.
20810 # Code to be used in simple compile tests
20811 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
20813 # Code to be used in simple link tests
20814 lt_simple_link_test_code
=" program t\n end\n"
20816 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20818 # If no C compiler was specified, use CC.
20821 # If no C compiler flags were specified, use CFLAGS.
20822 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
20824 # Allow CC to be a program name with arguments.
20828 # save warnings/boilerplate of simple test code
20829 ac_outfile
=conftest.
$ac_objext
20830 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
20831 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20832 _lt_compiler_boilerplate
=`cat conftest.err`
20835 ac_outfile
=conftest.
$ac_objext
20836 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
20837 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20838 _lt_linker_boilerplate
=`cat conftest.err`
20842 # Allow CC to be a program name with arguments.
20847 for cc_temp
in $compiler""; do
20849 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
20850 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
20855 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20858 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20859 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20860 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20861 echo "${ECHO_T}$can_build_shared" >&6; }
20863 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20864 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20865 test "$can_build_shared" = "no" && enable_shared
=no
20867 # On AIX, shared libraries and static libraries use the same namespace, and
20868 # are all built from PIC.
20871 test "$enable_shared" = yes && enable_static
=no
20872 if test -n "$RANLIB"; then
20873 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
20874 postinstall_cmds
='$RANLIB $lib'
20878 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
20879 test "$enable_shared" = yes && enable_static
=no
20883 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20884 echo "${ECHO_T}$enable_shared" >&6; }
20886 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20887 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20888 # Make sure either enable_shared or enable_static is yes.
20889 test "$enable_shared" = yes || enable_static
=yes
20890 { echo "$as_me:$LINENO: result: $enable_static" >&5
20891 echo "${ECHO_T}$enable_static" >&6; }
20896 lt_prog_compiler_wl_F77
=
20897 lt_prog_compiler_pic_F77
=
20898 lt_prog_compiler_static_F77
=
20900 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20901 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20903 if test "$GCC" = yes; then
20904 lt_prog_compiler_wl_F77
='-Wl,'
20905 lt_prog_compiler_static_F77
='-static'
20909 # All AIX code is PIC.
20910 if test "$host_cpu" = ia64
; then
20911 # AIX 5 now supports IA64 processor
20912 lt_prog_compiler_static_F77
='-Bstatic'
20917 # FIXME: we need at least 68020 code to build shared libraries, but
20918 # adding the `-m68020' flag to GCC prevents building anything better,
20920 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
20923 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20924 # PIC is the default for these OSes.
20927 mingw
* | pw32
* | os2
*)
20928 # This hack is so that the source file can tell whether it is being
20929 # built for inclusion in a dll (and should export symbols for example).
20930 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
20933 darwin
* | rhapsody
*)
20934 # PIC is the default on this platform
20935 # Common symbols not allowed in MH_DYLIB files
20936 lt_prog_compiler_pic_F77
='-fno-common'
20940 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20941 # Instead, we relocate shared libraries at runtime.
20945 # Just because we use GCC doesn't mean we suddenly get shared libraries
20946 # on systems that don't support them.
20947 lt_prog_compiler_can_build_shared_F77
=no
20952 if test -d /usr
/nec
; then
20953 lt_prog_compiler_pic_F77
=-Kconform_pic
20958 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20959 # not for PA HP-UX.
20965 lt_prog_compiler_pic_F77
='-fPIC'
20971 lt_prog_compiler_pic_F77
='-fPIC'
20975 # PORTME Check for flag to pass linker flags through the system compiler.
20978 lt_prog_compiler_wl_F77
='-Wl,'
20979 if test "$host_cpu" = ia64
; then
20980 # AIX 5 now supports IA64 processor
20981 lt_prog_compiler_static_F77
='-Bstatic'
20983 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
20987 # PIC is the default on this platform
20988 # Common symbols not allowed in MH_DYLIB files
20989 case $cc_basename in
20991 lt_prog_compiler_pic_F77
='-qnocommon'
20992 lt_prog_compiler_wl_F77
='-Wl,'
20997 mingw
* | pw32
* | os2
*)
20998 # This hack is so that the source file can tell whether it is being
20999 # built for inclusion in a dll (and should export symbols for example).
21000 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
21003 hpux9
* | hpux10
* | hpux11
*)
21004 lt_prog_compiler_wl_F77
='-Wl,'
21005 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21006 # not for PA HP-UX.
21012 lt_prog_compiler_pic_F77
='+Z'
21015 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21016 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
21019 irix5
* | irix6
* | nonstopux
*)
21020 lt_prog_compiler_wl_F77
='-Wl,'
21021 # PIC (with -KPIC) is the default.
21022 lt_prog_compiler_static_F77
='-non_shared'
21026 lt_prog_compiler_pic_F77
='-KPIC'
21027 lt_prog_compiler_static_F77
='-Bstatic'
21031 case $cc_basename in
21033 lt_prog_compiler_wl_F77
='-Wl,'
21034 lt_prog_compiler_pic_F77
='-KPIC'
21035 lt_prog_compiler_static_F77
='-static'
21037 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
21038 # Portland Group compilers (*not* the Pentium gcc compiler,
21039 # which looks to be a dead project)
21040 lt_prog_compiler_wl_F77
='-Wl,'
21041 lt_prog_compiler_pic_F77
='-fpic'
21042 lt_prog_compiler_static_F77
='-Bstatic'
21045 lt_prog_compiler_wl_F77
='-Wl,'
21046 # All Alpha code is PIC.
21047 lt_prog_compiler_static_F77
='-non_shared'
21052 osf3
* | osf4
* | osf5
*)
21053 lt_prog_compiler_wl_F77
='-Wl,'
21054 # All OSF/1 code is PIC.
21055 lt_prog_compiler_static_F77
='-non_shared'
21059 lt_prog_compiler_pic_F77
='-KPIC'
21060 lt_prog_compiler_static_F77
='-Bstatic'
21061 case $cc_basename in
21062 f77
* | f90
* | f95
*)
21063 lt_prog_compiler_wl_F77
='-Qoption ld ';;
21065 lt_prog_compiler_wl_F77
='-Wl,';;
21070 lt_prog_compiler_wl_F77
='-Qoption ld '
21071 lt_prog_compiler_pic_F77
='-PIC'
21072 lt_prog_compiler_static_F77
='-Bstatic'
21075 sysv4 | sysv4.2uw2
* | sysv4.3
*)
21076 lt_prog_compiler_wl_F77
='-Wl,'
21077 lt_prog_compiler_pic_F77
='-KPIC'
21078 lt_prog_compiler_static_F77
='-Bstatic'
21082 if test -d /usr
/nec
;then
21083 lt_prog_compiler_pic_F77
='-Kconform_pic'
21084 lt_prog_compiler_static_F77
='-Bstatic'
21088 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21089 lt_prog_compiler_wl_F77
='-Wl,'
21090 lt_prog_compiler_pic_F77
='-KPIC'
21091 lt_prog_compiler_static_F77
='-Bstatic'
21095 lt_prog_compiler_wl_F77
='-Wl,'
21096 lt_prog_compiler_can_build_shared_F77
=no
21100 lt_prog_compiler_pic_F77
='-pic'
21101 lt_prog_compiler_static_F77
='-Bstatic'
21105 lt_prog_compiler_can_build_shared_F77
=no
21110 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21111 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21114 # Check to make sure the PIC flag actually works.
21116 if test -n "$lt_prog_compiler_pic_F77"; then
21118 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21119 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21120 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21121 echo $ECHO_N "(cached) $ECHO_C" >&6
21123 lt_prog_compiler_pic_works_F77
=no
21124 ac_outfile
=conftest.
$ac_objext
21125 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
21126 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
21127 # Insert the option either (1) after the last *FLAGS variable, or
21128 # (2) before a word containing "conftest.", or (3) at the end.
21129 # Note that $ac_compile itself does not contain backslashes and begins
21130 # with a dollar sign (not a hyphen), so the echo should work correctly.
21131 # The option is referenced via a variable to avoid confusing sed.
21132 lt_compile
=`echo "$ac_compile" | $SED \
21133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21135 -e 's:$: $lt_compiler_flag:'`
21136 (eval echo "\"\$as_me:21136: $lt_compile\"" >&5)
21137 (eval "$lt_compile" 2>conftest.err
)
21139 cat conftest.err
>&5
21140 echo "$as_me:21140: \$? = $ac_status" >&5
21141 if (exit $ac_status) && test -s "$ac_outfile"; then
21142 # The compiler can only warn and ignore the option if not recognized
21143 # So say no if there are warnings other than the usual output.
21144 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
21145 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21146 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21147 lt_prog_compiler_pic_works_F77
=yes
21153 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21154 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21156 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
21157 case $lt_prog_compiler_pic_F77 in
21159 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
21162 lt_prog_compiler_pic_F77
=
21163 lt_prog_compiler_can_build_shared_F77
=no
21168 # For platforms which do not support PIC, -DPIC is meaningless:
21170 lt_prog_compiler_pic_F77
=
21173 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
21178 # Check to make sure the static flag actually works.
21180 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
21181 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21182 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21183 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21184 echo $ECHO_N "(cached) $ECHO_C" >&6
21186 lt_prog_compiler_static_works_F77
=no
21187 save_LDFLAGS
="$LDFLAGS"
21188 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21189 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
21190 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21191 # The linker can only warn and ignore the option if not recognized
21192 # So say no if there are warnings
21193 if test -s conftest.err
; then
21194 # Append any errors to the config.log.
21195 cat conftest.err
1>&5
21196 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
21197 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21198 if diff conftest.exp conftest.er2
>/dev
/null
; then
21199 lt_prog_compiler_static_works_F77
=yes
21202 lt_prog_compiler_static_works_F77
=yes
21206 LDFLAGS
="$save_LDFLAGS"
21209 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21210 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21212 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
21215 lt_prog_compiler_static_F77
=
21219 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21220 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21221 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21222 echo $ECHO_N "(cached) $ECHO_C" >&6
21224 lt_cv_prog_compiler_c_o_F77
=no
21225 $rm -r conftest
2>/dev
/null
21229 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
21231 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21232 # Insert the option either (1) after the last *FLAGS variable, or
21233 # (2) before a word containing "conftest.", or (3) at the end.
21234 # Note that $ac_compile itself does not contain backslashes and begins
21235 # with a dollar sign (not a hyphen), so the echo should work correctly.
21236 lt_compile
=`echo "$ac_compile" | $SED \
21237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21239 -e 's:$: $lt_compiler_flag:'`
21240 (eval echo "\"\$as_me:21240: $lt_compile\"" >&5)
21241 (eval "$lt_compile" 2>out
/conftest.err
)
21243 cat out
/conftest.err
>&5
21244 echo "$as_me:21244: \$? = $ac_status" >&5
21245 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21247 # The compiler can only warn and ignore the option if not recognized
21248 # So say no if there are warnings
21249 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
21250 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21251 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21252 lt_cv_prog_compiler_c_o_F77
=yes
21257 # SGI C++ compiler will create directory out/ii_files/ for
21258 # template instantiation
21259 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
21260 $rm out
/* && rmdir out
21266 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21267 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21270 hard_links
="nottested"
21271 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
21272 # do not overwrite the value of need_locks provided by the user
21273 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21274 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21277 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21279 ln conftest.a conftest.b
2>&5 || hard_links
=no
21280 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21281 { echo "$as_me:$LINENO: result: $hard_links" >&5
21282 echo "${ECHO_T}$hard_links" >&6; }
21283 if test "$hard_links" = no
; then
21284 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21285 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21292 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21293 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21296 allow_undefined_flag_F77
=
21297 enable_shared_with_static_runtimes_F77
=no
21299 archive_expsym_cmds_F77
=
21300 old_archive_From_new_cmds_F77
=
21301 old_archive_from_expsyms_cmds_F77
=
21302 export_dynamic_flag_spec_F77
=
21303 whole_archive_flag_spec_F77
=
21304 thread_safe_flag_spec_F77
=
21305 hardcode_libdir_flag_spec_F77
=
21306 hardcode_libdir_flag_spec_ld_F77
=
21307 hardcode_libdir_separator_F77
=
21308 hardcode_direct_F77
=no
21309 hardcode_minus_L_F77
=no
21310 hardcode_shlibpath_var_F77
=unsupported
21311 link_all_deplibs_F77
=unknown
21312 hardcode_automatic_F77
=no
21314 module_expsym_cmds_F77
=
21315 always_export_symbols_F77
=no
21316 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21317 # include_expsyms should be a list of space-separated symbols to be *always*
21318 # included in the symbol list
21319 include_expsyms_F77
=
21320 # exclude_expsyms can be an extended regexp of symbols to exclude
21321 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21322 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21323 # as well as any symbol that contains `d'.
21324 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
21325 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21326 # platforms (ab)use it in PIC code, but their linkers get confused if
21327 # the symbol is explicitly referenced. Since portable code cannot
21328 # rely on this symbol name, it's probably fine to never include it in
21329 # preloaded symbol tables.
21330 extract_expsyms_cmds
=
21331 # Just being paranoid about ensuring that cc_basename is set.
21332 for cc_temp
in $compiler""; do
21334 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
21335 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
21340 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21343 cygwin
* | mingw
* | pw32
*)
21344 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21345 # When not using gcc, we currently assume that we are using
21346 # Microsoft Visual C++.
21347 if test "$GCC" != yes; then
21352 # we just hope/assume this is gcc and not c89 (= MSVC++)
21361 if test "$with_gnu_ld" = yes; then
21362 # If archive_cmds runs LD, not CC, wlarc should be empty
21365 # Set some defaults for GNU ld with shared library support. These
21366 # are reset later if shared libraries are not supported. Putting them
21367 # here allows them to be overridden if necessary.
21368 runpath_var
=LD_RUN_PATH
21369 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
21370 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
21371 # ancient GNU ld didn't support --whole-archive et. al.
21372 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
21373 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21375 whole_archive_flag_spec_F77
=
21377 supports_anon_versioning
=no
21378 case `$LD -v 2>/dev/null` in
21379 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
21380 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
21381 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
21382 *\
2.11.
*) ;; # other 2.11 versions
21383 *) supports_anon_versioning
=yes ;;
21386 # See if GNU ld supports shared libraries.
21388 aix3
* | aix4
* | aix5
*)
21389 # On AIX/PPC, the GNU linker is very broken
21390 if test "$host_cpu" != ia64
; then
21394 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21395 *** to be unable to reliably create shared libraries on AIX.
21396 *** Therefore, libtool is disabling shared libraries support. If you
21397 *** really care for shared libraries, you may want to modify your PATH
21398 *** so that a non-GNU linker is found, and then restart.
21405 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)'
21406 hardcode_libdir_flag_spec_F77
='-L$libdir'
21407 hardcode_minus_L_F77
=yes
21409 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21410 # that the semantics of dynamic libraries on AmigaOS, at least up
21411 # to version 4, is to share data among multiple programs linked
21412 # with the same dynamic library. Since this doesn't match the
21413 # behavior of shared libraries on other platforms, we can't use
21419 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
21420 allow_undefined_flag_F77
=unsupported
21421 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21422 # support --undefined. This deserves some investigation. FIXME
21423 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21429 cygwin
* | mingw
* | pw32
*)
21430 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21431 # as there is no search path for DLLs.
21432 hardcode_libdir_flag_spec_F77
='-L$libdir'
21433 allow_undefined_flag_F77
=unsupported
21434 always_export_symbols_F77
=no
21435 enable_shared_with_static_runtimes_F77
=yes
21436 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21438 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
21439 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21440 # If the export-symbols file already is a .def file (1st line
21441 # is EXPORTS), use it as is; otherwise, prepend...
21442 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21443 cp $export_symbols $output_objdir/$soname.def;
21445 echo EXPORTS > $output_objdir/$soname.def;
21446 cat $export_symbols >> $output_objdir/$soname.def;
21448 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21455 hardcode_direct_F77
=no
21456 hardcode_shlibpath_var_F77
=no
21457 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
21458 export_dynamic_flag_spec_F77
='${wl}-E'
21459 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21460 # Instead, shared libraries are loaded at an image base (0x10000000 by
21461 # default) and relocated if they conflict, which is a slow very memory
21462 # consuming and fragmenting process. To avoid this, we pick a random,
21463 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21464 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21465 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'
21466 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'
21470 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
21472 case $cc_basename,$host_cpu in
21473 pgcc
*) # Portland Group C compiler
21474 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'
21475 tmp_addflag
=' $pic_flag'
21477 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
21478 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'
21479 tmp_addflag
=' $pic_flag -Mnomain' ;;
21480 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
21481 tmp_addflag
=' -i_dynamic' ;;
21482 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
21483 tmp_addflag
=' -i_dynamic -nofor_main' ;;
21484 ifc
* | ifort
*) # Intel Fortran compiler
21485 tmp_addflag
=' -nofor_main' ;;
21487 archive_cmds_F77
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21489 if test $supports_anon_versioning = yes; then
21490 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
21491 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21492 $echo "local: *; };" >> $output_objdir/$libname.ver~
21493 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21501 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
21502 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21505 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21506 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21511 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
21515 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21516 *** create shared libraries on Solaris systems. Therefore, libtool
21517 *** is disabling shared libraries support. We urge you to upgrade GNU
21518 *** binutils to release 2.9.1 or newer. Another option is to modify
21519 *** your PATH or compiler configuration so that the native linker is
21520 *** used, and then restart.
21523 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
21524 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21525 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21531 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
21532 case `$LD -v 2>&1` in
21533 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
21537 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21538 *** reliably create shared libraries on SCO systems. Therefore, libtool
21539 *** is disabling shared libraries support. We urge you to upgrade GNU
21540 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21541 *** your PATH or compiler configuration so that the native linker is
21542 *** used, and then restart.
21547 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
21548 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21549 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21550 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21559 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21561 hardcode_direct_F77
=yes
21562 hardcode_shlibpath_var_F77
=no
21566 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
21567 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21568 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21575 if test "$ld_shlibs_F77" = no
; then
21577 hardcode_libdir_flag_spec_F77
=
21578 export_dynamic_flag_spec_F77
=
21579 whole_archive_flag_spec_F77
=
21582 # PORTME fill in a description of your system's linker (not GNU ld)
21585 allow_undefined_flag_F77
=unsupported
21586 always_export_symbols_F77
=yes
21587 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'
21588 # Note: this linker hardcodes the directories in LIBPATH if there
21589 # are no directories specified by -L.
21590 hardcode_minus_L_F77
=yes
21591 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21592 # Neither direct hardcoding nor static linking is supported with a
21594 hardcode_direct_F77
=unsupported
21599 if test "$host_cpu" = ia64
; then
21600 # On IA64, the linker does run time linking by default, so we don't
21601 # have to do anything special.
21602 aix_use_runtimelinking
=no
21603 exp_sym_flag
='-Bexport'
21606 # If we're using GNU nm, then we don't want the "-C" option.
21607 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21608 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
21609 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'
21611 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'
21613 aix_use_runtimelinking
=no
21615 # Test if we are trying to use run time linking or normal
21616 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21617 # need to do runtime linking.
21618 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
21619 for ld_flag
in $LDFLAGS; do
21620 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
21621 aix_use_runtimelinking
=yes
21628 exp_sym_flag
='-bexport'
21629 no_entry_flag
='-bnoentry'
21632 # When large executables or shared objects are built, AIX ld can
21633 # have problems creating the table of contents. If linking a library
21634 # or program results in "error TOC overflow" add -mminimal-toc to
21635 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21636 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21638 archive_cmds_F77
=''
21639 hardcode_direct_F77
=yes
21640 hardcode_libdir_separator_F77
=':'
21641 link_all_deplibs_F77
=yes
21643 if test "$GCC" = yes; then
21644 case $host_os in aix4.
[012]|aix4.
[012].
*)
21645 # We only want to do this on AIX 4.2 and lower, the check
21646 # below for broken collect2 doesn't work under 4.3+
21647 collect2name
=`${CC} -print-prog-name=collect2`
21648 if test -f "$collect2name" && \
21649 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
21651 # We have reworked collect2
21652 hardcode_direct_F77
=yes
21654 # We have old collect2
21655 hardcode_direct_F77
=unsupported
21656 # It fails to find uninstalled libraries when the uninstalled
21657 # path is not listed in the libpath. Setting hardcode_minus_L
21658 # to unsupported forces relinking
21659 hardcode_minus_L_F77
=yes
21660 hardcode_libdir_flag_spec_F77
='-L$libdir'
21661 hardcode_libdir_separator_F77
=
21665 shared_flag
='-shared'
21666 if test "$aix_use_runtimelinking" = yes; then
21667 shared_flag
="$shared_flag "'${wl}-G'
21671 if test "$host_cpu" = ia64
; then
21672 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21673 # chokes on -Wl,-G. The following line is correct:
21676 if test "$aix_use_runtimelinking" = yes; then
21677 shared_flag
='${wl}-G'
21679 shared_flag
='${wl}-bM:SRE'
21684 # It seems that -bexpall does not export symbols beginning with
21685 # underscore (_), so it is better to generate a list of symbols to export.
21686 always_export_symbols_F77
=yes
21687 if test "$aix_use_runtimelinking" = yes; then
21688 # Warning - without using the other runtime loading flags (-brtl),
21689 # -berok will link without error, but may produce a broken library.
21690 allow_undefined_flag_F77
='-berok'
21691 # Determine the default libpath from the value encoded in an empty executable.
21692 cat >conftest.
$ac_ext <<_ACEOF
21697 rm -f conftest.
$ac_objext conftest
$ac_exeext
21698 if { (ac_try
="$ac_link"
21699 case "(($ac_try" in
21700 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21701 *) ac_try_echo=$ac_try;;
21703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21704 (eval "$ac_link") 2>conftest.er1
21706 grep -v '^ *+' conftest.er1 >conftest.err
21708 cat conftest.err >&5
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); } &&
21711 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21712 { (case "(($ac_try" in
21713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21714 *) ac_try_echo
=$ac_try;;
21716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21717 (eval "$ac_try") 2>&5
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); }; } &&
21721 { ac_try
='test -s conftest$ac_exeext'
21722 { (case "(($ac_try" in
21723 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21724 *) ac_try_echo=$ac_try;;
21726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21727 (eval "$ac_try") 2>&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); }; }; then
21732 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21734 # Check for a 64-bit object if we didn't find anything.
21735 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; }
21738 echo "$as_me: failed program was:" >&5
21739 sed 's/^/| /' conftest.$ac_ext >&5
21744 rm -f core conftest.err conftest.$ac_objext \
21745 conftest$ac_exeext conftest.$ac_ext
21746 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21748 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21749 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"
21751 if test "$host_cpu" = ia64; then
21752 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21753 allow_undefined_flag_F77="-z nodefs"
21754 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"
21756 # Determine the default libpath from the value encoded in an empty executable.
21757 cat >conftest.$ac_ext <<_ACEOF
21762 rm -f conftest.$ac_objext conftest$ac_exeext
21763 if { (ac_try="$ac_link"
21764 case "(($ac_try" in
21765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21766 *) ac_try_echo
=$ac_try;;
21768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769 (eval "$ac_link") 2>conftest.er1
21771 grep -v '^ *+' conftest.er1
>conftest.err
21773 cat conftest.err
>&5
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); } &&
21776 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21777 { (case "(($ac_try" in
21778 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21779 *) ac_try_echo=$ac_try;;
21781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21782 (eval "$ac_try") 2>&5
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); }; } &&
21786 { ac_try='test -s conftest$ac_exeext'
21787 { (case "(($ac_try" in
21788 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21789 *) ac_try_echo
=$ac_try;;
21791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21792 (eval "$ac_try") 2>&5
21794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795 (exit $ac_status); }; }; then
21797 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21799 # Check for a 64-bit object if we didn't find anything.
21800 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; }
21803 echo "$as_me: failed program was:" >&5
21804 sed 's/^/| /' conftest.
$ac_ext >&5
21809 rm -f core conftest.err conftest.
$ac_objext \
21810 conftest
$ac_exeext conftest.
$ac_ext
21811 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
21813 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
21814 # Warning - without using the other run time loading flags,
21815 # -berok will link without error, but may produce a broken library.
21816 no_undefined_flag_F77
=' ${wl}-bernotok'
21817 allow_undefined_flag_F77
=' ${wl}-berok'
21818 # Exported symbols can be pulled into shared objects from archives
21819 whole_archive_flag_spec_F77
='$convenience'
21820 archive_cmds_need_lc_F77
=yes
21821 # This is similar to how AIX traditionally builds its shared libraries.
21822 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'
21828 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)'
21829 hardcode_libdir_flag_spec_F77
='-L$libdir'
21830 hardcode_minus_L_F77
=yes
21831 # see comment about different semantics on the GNU ld section
21836 export_dynamic_flag_spec_F77
=-rdynamic
21839 cygwin
* | mingw
* | pw32
*)
21840 # When not using gcc, we currently assume that we are using
21841 # Microsoft Visual C++.
21842 # hardcode_libdir_flag_spec is actually meaningless, as there is
21843 # no search path for DLLs.
21844 hardcode_libdir_flag_spec_F77
=' '
21845 allow_undefined_flag_F77
=unsupported
21846 # Tell ltmain to make .lib files, not .a files.
21848 # Tell ltmain to make .dll files, not .so files.
21850 # FIXME: Setting linknames here is a bad hack.
21851 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21852 # The linker will automatically build a .lib file if we build a DLL.
21853 old_archive_From_new_cmds_F77
='true'
21854 # FIXME: Should let the user specify the lib program.
21855 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
21856 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
21857 enable_shared_with_static_runtimes_F77
=yes
21860 darwin
* | rhapsody
*)
21862 rhapsody
* | darwin1.
[012])
21863 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
21866 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21867 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21869 case ${MACOSX_DEPLOYMENT_TARGET} in
21871 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21874 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
21880 archive_cmds_need_lc_F77
=no
21881 hardcode_direct_F77
=no
21882 hardcode_automatic_F77
=yes
21883 hardcode_shlibpath_var_F77
=unsupported
21884 whole_archive_flag_spec_F77
=''
21885 link_all_deplibs_F77
=yes
21886 if test "$GCC" = yes ; then
21887 output_verbose_link_cmd
='echo'
21888 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21889 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21890 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21891 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}'
21892 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}'
21894 case $cc_basename in
21896 output_verbose_link_cmd
='echo'
21897 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21898 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21899 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21900 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}'
21901 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}'
21911 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21912 hardcode_libdir_flag_spec_F77
='-L$libdir'
21913 hardcode_shlibpath_var_F77
=no
21920 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21921 # support. Future versions do this automatically, but an explicit c++rt0.o
21922 # does not break anything, and helps significantly (at the cost of a little
21925 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21926 hardcode_libdir_flag_spec_F77
='-R$libdir'
21927 hardcode_direct_F77
=yes
21928 hardcode_shlibpath_var_F77
=no
21931 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21933 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21934 hardcode_direct_F77
=yes
21935 hardcode_minus_L_F77
=yes
21936 hardcode_shlibpath_var_F77
=no
21939 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21940 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
21941 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21942 hardcode_libdir_flag_spec_F77
='-R$libdir'
21943 hardcode_direct_F77
=yes
21944 hardcode_shlibpath_var_F77
=no
21948 if test "$GCC" = yes; then
21949 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'
21951 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'
21953 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
21954 hardcode_libdir_separator_F77
=:
21955 hardcode_direct_F77
=yes
21957 # hardcode_minus_L: Not really in the search PATH,
21958 # but as the default location of the library.
21959 hardcode_minus_L_F77
=yes
21960 export_dynamic_flag_spec_F77
='${wl}-E'
21964 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
21965 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21967 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21969 if test "$with_gnu_ld" = no
; then
21970 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
21971 hardcode_libdir_separator_F77
=:
21973 hardcode_direct_F77
=yes
21974 export_dynamic_flag_spec_F77
='${wl}-E'
21976 # hardcode_minus_L: Not really in the search PATH,
21977 # but as the default location of the library.
21978 hardcode_minus_L_F77
=yes
21983 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
21986 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21989 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21992 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21998 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22001 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22004 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22008 if test "$with_gnu_ld" = no
; then
22009 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22010 hardcode_libdir_separator_F77
=:
22014 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
22015 hardcode_direct_F77
=no
22016 hardcode_shlibpath_var_F77
=no
22019 hardcode_direct_F77
=yes
22020 export_dynamic_flag_spec_F77
='${wl}-E'
22022 # hardcode_minus_L: Not really in the search PATH,
22023 # but as the default location of the library.
22024 hardcode_minus_L_F77
=yes
22030 irix5
* | irix6
* | nonstopux
*)
22031 if test "$GCC" = yes; then
22032 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'
22034 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'
22035 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
22037 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22038 hardcode_libdir_separator_F77
=:
22039 link_all_deplibs_F77
=yes
22043 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
22044 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22046 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22048 hardcode_libdir_flag_spec_F77
='-R$libdir'
22049 hardcode_direct_F77
=yes
22050 hardcode_shlibpath_var_F77
=no
22054 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22055 hardcode_direct_F77
=yes
22056 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22057 hardcode_libdir_separator_F77
=:
22058 hardcode_shlibpath_var_F77
=no
22062 hardcode_direct_F77
=yes
22063 hardcode_shlibpath_var_F77
=no
22064 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22065 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22066 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22067 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22068 export_dynamic_flag_spec_F77
='${wl}-E'
22071 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
22072 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22073 hardcode_libdir_flag_spec_F77
='-R$libdir'
22076 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22077 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22084 hardcode_libdir_flag_spec_F77
='-L$libdir'
22085 hardcode_minus_L_F77
=yes
22086 allow_undefined_flag_F77
=unsupported
22087 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'
22088 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22092 if test "$GCC" = yes; then
22093 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
22094 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'
22096 allow_undefined_flag_F77
=' -expect_unresolved \*'
22097 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'
22099 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22100 hardcode_libdir_separator_F77
=:
22103 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
22104 if test "$GCC" = yes; then
22105 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
22106 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'
22107 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22109 allow_undefined_flag_F77
=' -expect_unresolved \*'
22110 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'
22111 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~
22112 $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'
22114 # Both c and cxx compiler support -rpath directly
22115 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
22117 hardcode_libdir_separator_F77
=:
22121 no_undefined_flag_F77
=' -z text'
22122 if test "$GCC" = yes; then
22124 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22125 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22126 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22129 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22130 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22131 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22133 hardcode_libdir_flag_spec_F77
='-R$libdir'
22134 hardcode_shlibpath_var_F77
=no
22136 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
22138 # The compiler driver will combine linker options so we
22139 # cannot just pass the convience library names through
22140 # without $wl, iff we do not link with $LD.
22141 # Luckily, gcc supports the same syntax we need for Sun Studio.
22142 # Supported since Solaris 2.6 (maybe 2.5.1?)
22145 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
22147 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' ;;
22150 link_all_deplibs_F77
=yes
22154 if test "x$host_vendor" = xsequent
; then
22155 # Use $CC to link under sequent, because it throws in some extra .o
22156 # files that make .init and .fini sections work.
22157 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22159 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22161 hardcode_libdir_flag_spec_F77
='-L$libdir'
22162 hardcode_direct_F77
=yes
22163 hardcode_minus_L_F77
=yes
22164 hardcode_shlibpath_var_F77
=no
22168 case $host_vendor in
22170 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22171 hardcode_direct_F77
=yes # is this really true???
22174 ## LD is ld it makes a PLAMLIB
22175 ## CC just makes a GrossModule.
22176 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22177 reload_cmds_F77
='$CC -r -o $output$reload_objs'
22178 hardcode_direct_F77
=no
22181 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22182 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
22185 runpath_var
='LD_RUN_PATH'
22186 hardcode_shlibpath_var_F77
=no
22190 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22191 hardcode_shlibpath_var_F77
=no
22192 export_dynamic_flag_spec_F77
='-Bexport'
22196 if test -d /usr
/nec
; then
22197 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22198 hardcode_shlibpath_var_F77
=no
22199 runpath_var
=LD_RUN_PATH
22200 hardcode_runpath_var
=yes
22205 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
22206 no_undefined_flag_F77
='${wl}-z,text'
22207 archive_cmds_need_lc_F77
=no
22208 hardcode_shlibpath_var_F77
=no
22209 runpath_var
='LD_RUN_PATH'
22211 if test "$GCC" = yes; then
22212 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22213 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22215 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22216 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22220 sysv5
* | sco3.2v5
* | sco5v6
*)
22221 # Note: We can NOT use -z defs as we might desire, because we do not
22222 # link with -lc, and that would cause any symbols used from libc to
22223 # always be unresolved, which means just about no library would
22224 # ever link correctly. If we're not using GNU ld we use -z text
22225 # though, which does catch some bad symbols but isn't as heavy-handed
22227 no_undefined_flag_F77
='${wl}-z,text'
22228 allow_undefined_flag_F77
='${wl}-z,nodefs'
22229 archive_cmds_need_lc_F77
=no
22230 hardcode_shlibpath_var_F77
=no
22231 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22232 hardcode_libdir_separator_F77
=':'
22233 link_all_deplibs_F77
=yes
22234 export_dynamic_flag_spec_F77
='${wl}-Bexport'
22235 runpath_var
='LD_RUN_PATH'
22237 if test "$GCC" = yes; then
22238 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22239 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22241 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22242 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22247 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22248 hardcode_libdir_flag_spec_F77
='-L$libdir'
22249 hardcode_shlibpath_var_F77
=no
22258 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22259 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22260 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
22263 # Do we need to explicitly link libc?
22265 case "x$archive_cmds_need_lc_F77" in
22267 # Assume -lc should be added
22268 archive_cmds_need_lc_F77
=yes
22270 if test "$enable_shared" = yes && test "$GCC" = yes; then
22271 case $archive_cmds_F77 in
22273 # FIXME: we may have to deal with multi-command sequences.
22276 # Test whether the compiler implicitly links with -lc since on some
22277 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22278 # to ld, don't add -lc before -lgcc.
22279 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22280 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22282 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
22284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22285 (eval $ac_compile) 2>&5
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); } 2>conftest.err
; then
22291 libobjs
=conftest.
$ac_objext
22293 wl
=$lt_prog_compiler_wl_F77
22294 pic_flag
=$lt_prog_compiler_pic_F77
22300 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
22301 allow_undefined_flag_F77
=
22302 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22303 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); }
22308 archive_cmds_need_lc_F77
=no
22310 archive_cmds_need_lc_F77
=yes
22312 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
22314 cat conftest.err
1>&5
22317 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22318 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22325 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22326 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22327 library_names_spec
=
22328 libname_spec
='lib$name'
22332 postuninstall_cmds
=
22336 shlibpath_overrides_runpath
=unknown
22338 dynamic_linker
="$host_os ld.so"
22339 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
22340 if test "$GCC" = yes; then
22341 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22342 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
22343 # if the path contains ";" then we assume it to be the separator
22344 # otherwise default to the standard path separator (i.e. ":") - it is
22345 # assumed that no part of a normal pathname contains ";" but that should
22346 # okay in the real world where ";" in dirpaths is itself problematic.
22347 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22349 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22352 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
22354 need_lib_prefix
=unknown
22355 hardcode_into_libs
=no
22357 # when you set need_version to no, make sure it does not cause -set_version
22358 # flags to be left without arguments
22359 need_version
=unknown
22364 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
22365 shlibpath_var
=LIBPATH
22367 # AIX 3 has no versioning support, so we append a major version to the name.
22368 soname_spec
='${libname}${release}${shared_ext}$major'
22375 hardcode_into_libs
=yes
22376 if test "$host_cpu" = ia64
; then
22377 # AIX 5 supports IA64
22378 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22379 shlibpath_var
=LD_LIBRARY_PATH
22381 # With GCC up to 2.95.x, collect2 would create an import file
22382 # for dependence libraries. The import file would start with
22383 # the line `#! .'. This would cause the generated library to
22384 # depend on `.', always an invalid library. This was fixed in
22385 # development snapshots of GCC prior to 3.0.
22387 aix4 | aix4.
[01] | aix4.
[01].
*)
22388 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22390 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
22393 can_build_shared
=no
22397 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22398 # soname into executable. Probably we can add versioning support to
22399 # collect2, so additional links can be useful in future.
22400 if test "$aix_use_runtimelinking" = yes; then
22401 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22402 # instead of lib<name>.a to let people know that these are not
22403 # typical AIX shared libraries.
22404 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22406 # We preserve .a as extension for shared libraries through AIX4.2
22407 # and later when we are not doing run time linking.
22408 library_names_spec
='${libname}${release}.a $libname.a'
22409 soname_spec
='${libname}${release}${shared_ext}$major'
22411 shlibpath_var
=LIBPATH
22416 library_names_spec
='$libname.ixlibrary $libname.a'
22417 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22418 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'
22422 library_names_spec
='${libname}${shared_ext}'
22423 dynamic_linker
="$host_os ld.so"
22424 shlibpath_var
=LIBRARY_PATH
22430 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22431 soname_spec
='${libname}${release}${shared_ext}$major'
22432 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
22433 shlibpath_var
=LD_LIBRARY_PATH
22434 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22435 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
22436 # the default ld.so.conf also contains /usr/contrib/lib and
22437 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22438 # libtool to hard-code these into programs
22441 cygwin
* | mingw
* | pw32
*)
22442 version_type
=windows
22447 case $GCC,$host_os in
22448 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
22449 library_names_spec
='$libname.dll.a'
22450 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22451 postinstall_cmds
='base_file=`basename \${file}`~
22452 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22453 dldir=$destdir/`dirname \$dlpath`~
22454 test -d \$dldir || mkdir -p \$dldir~
22455 $install_prog $dir/$dlname \$dldir/$dlname~
22456 chmod a+x \$dldir/$dlname'
22457 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22458 dlpath=$dir/\$dldll~
22460 shlibpath_overrides_runpath
=yes
22464 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22465 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22466 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
22469 # MinGW DLLs use traditional 'lib' prefix
22470 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22471 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22472 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
22473 # It is most probably a Windows format PATH printed by
22474 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22475 # path with ; separators, and with drive letters. We can handle the
22476 # drive letters (cygwin fileutils understands them), so leave them,
22477 # especially as we might pass files found there to a mingw objdump,
22478 # which wouldn't understand a cygwinified path. Ahh.
22479 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22481 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22485 # pw32 DLLs use 'pw' prefix rather than 'lib'
22486 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22492 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22495 dynamic_linker
='Win32 ld.exe'
22496 # FIXME: first we should search . and the directory the executable is in
22500 darwin
* | rhapsody
*)
22501 dynamic_linker
="$host_os dyld"
22502 version_type
=darwin
22505 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22506 soname_spec
='${libname}${release}${major}$shared_ext'
22507 shlibpath_overrides_runpath
=yes
22508 shlibpath_var
=DYLD_LIBRARY_PATH
22509 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
22510 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22511 if test "$GCC" = yes; then
22512 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"`
22514 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
22516 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
22523 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22524 soname_spec
='${libname}${release}${shared_ext}$major'
22525 shlibpath_var
=LD_LIBRARY_PATH
22536 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22537 soname_spec
='${libname}${release}${shared_ext}$major'
22538 shlibpath_var
=LD_LIBRARY_PATH
22539 shlibpath_overrides_runpath
=no
22540 hardcode_into_libs
=yes
22541 dynamic_linker
='GNU ld.so'
22544 freebsd
* | dragonfly
*)
22545 # DragonFly does not have aout. When/if they implement a new
22546 # versioning mechanism, adjust this.
22547 if test -x /usr
/bin
/objformat
; then
22548 objformat
=`/usr/bin/objformat`
22551 freebsd
[123]*) objformat
=aout
;;
22552 *) objformat
=elf
;;
22555 version_type
=freebsd-
$objformat
22556 case $version_type in
22558 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22563 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22567 shlibpath_var
=LD_LIBRARY_PATH
22570 shlibpath_overrides_runpath
=yes
22572 freebsd3.
[01]* | freebsdelf3.
[01]*)
22573 shlibpath_overrides_runpath
=yes
22574 hardcode_into_libs
=yes
22576 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
22577 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
22578 shlibpath_overrides_runpath
=no
22579 hardcode_into_libs
=yes
22581 freebsd
*) # from 4.6 on
22582 shlibpath_overrides_runpath
=yes
22583 hardcode_into_libs
=yes
22592 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22593 soname_spec
='${libname}${release}${shared_ext}$major'
22594 shlibpath_var
=LD_LIBRARY_PATH
22595 hardcode_into_libs
=yes
22598 hpux9
* | hpux10
* | hpux11
*)
22599 # Give a soname corresponding to the major version so that dld.sl refuses to
22600 # link against other versions.
22607 hardcode_into_libs
=yes
22608 dynamic_linker
="$host_os dld.so"
22609 shlibpath_var
=LD_LIBRARY_PATH
22610 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22611 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22612 soname_spec
='${libname}${release}${shared_ext}$major'
22613 if test "X$HPUX_IA64_MODE" = X32
; then
22614 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22616 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
22618 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22622 hardcode_into_libs
=yes
22623 dynamic_linker
="$host_os dld.sl"
22624 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
22625 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22626 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22627 soname_spec
='${libname}${release}${shared_ext}$major'
22628 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22629 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22633 dynamic_linker
="$host_os dld.sl"
22634 shlibpath_var
=SHLIB_PATH
22635 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
22636 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22637 soname_spec
='${libname}${release}${shared_ext}$major'
22640 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22641 postinstall_cmds
='chmod 555 $lib'
22648 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22649 soname_spec
='${libname}${release}${shared_ext}$major'
22650 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
22651 shlibpath_var
=LD_LIBRARY_PATH
22652 shlibpath_overrides_runpath
=no
22653 hardcode_into_libs
=yes
22656 irix5
* | irix6
* | nonstopux
*)
22658 nonstopux
*) version_type
=nonstopux
;;
22660 if test "$lt_cv_prog_gnu_ld" = yes; then
22668 soname_spec
='${libname}${release}${shared_ext}$major'
22669 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22671 irix5
* | nonstopux
*)
22672 libsuff
= shlibsuff
=
22675 case $LD in # libtool.m4 will add one of these switches to LD
22676 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
22677 libsuff
= shlibsuff
= libmagic
=32-bit;;
22678 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
22679 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
22680 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
22681 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
22682 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
22686 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
22687 shlibpath_overrides_runpath
=no
22688 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22689 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
22690 hardcode_into_libs
=yes
22693 # No shared lib support for Linux oldld, aout, or coff.
22694 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
22698 # This must be Linux ELF.
22703 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22704 soname_spec
='${libname}${release}${shared_ext}$major'
22705 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22706 shlibpath_var
=LD_LIBRARY_PATH
22707 shlibpath_overrides_runpath
=no
22708 # This implies no fast_install, which is unacceptable.
22709 # Some rework will be needed to allow for fast_install
22710 # before this can be enabled.
22711 hardcode_into_libs
=yes
22713 # Append ld.so.conf contents to the search path
22714 if test -f /etc
/ld.so.conf
; then
22715 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' ' '`
22716 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
22719 # We used to test for /lib/ld.so.1 and disable shared libraries on
22720 # powerpc, because MkLinux only supported shared libraries with the
22721 # GNU dynamic linker. Since this was broken with cross compilers,
22722 # most powerpc-linux boxes support dynamic linking these days and
22723 # people can always --disable-shared, the test was removed, and we
22724 # assume the GNU/Linux dynamic linker is in use.
22725 dynamic_linker
='GNU/Linux ld.so'
22732 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22733 soname_spec
='${libname}${release}${shared_ext}$major'
22734 shlibpath_var
=LD_LIBRARY_PATH
22735 shlibpath_overrides_runpath
=no
22736 hardcode_into_libs
=yes
22737 dynamic_linker
='GNU ld.so'
22744 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
22745 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22746 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22747 dynamic_linker
='NetBSD (a.out) ld.so'
22749 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22750 soname_spec
='${libname}${release}${shared_ext}$major'
22751 dynamic_linker
='NetBSD ld.elf_so'
22753 shlibpath_var
=LD_LIBRARY_PATH
22754 shlibpath_overrides_runpath
=yes
22755 hardcode_into_libs
=yes
22760 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22761 shlibpath_var
=LD_LIBRARY_PATH
22762 shlibpath_overrides_runpath
=yes
22769 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22770 soname_spec
='${libname}${release}${shared_ext}$major'
22771 shlibpath_var
=LD_LIBRARY_PATH
22772 shlibpath_overrides_runpath
=yes
22777 sys_lib_dlsearch_path_spec
="/usr/lib"
22779 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22781 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
22782 *) need_version
=no
;;
22784 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22785 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22786 shlibpath_var
=LD_LIBRARY_PATH
22787 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22789 openbsd2.
[89] | openbsd2.
[89].
*)
22790 shlibpath_overrides_runpath
=no
22793 shlibpath_overrides_runpath
=yes
22797 shlibpath_overrides_runpath
=yes
22802 libname_spec
='$name'
22805 library_names_spec
='$libname${shared_ext} $libname.a'
22806 dynamic_linker
='OS/2 ld.exe'
22807 shlibpath_var
=LIBPATH
22810 osf3
* | osf4
* | osf5
*)
22814 soname_spec
='${libname}${release}${shared_ext}$major'
22815 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22816 shlibpath_var
=LD_LIBRARY_PATH
22817 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22818 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
22825 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22826 soname_spec
='${libname}${release}${shared_ext}$major'
22827 shlibpath_var
=LD_LIBRARY_PATH
22828 shlibpath_overrides_runpath
=yes
22829 hardcode_into_libs
=yes
22830 # ldd complains unless libraries are executable
22831 postinstall_cmds
='chmod +x $lib'
22836 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22837 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22838 shlibpath_var
=LD_LIBRARY_PATH
22839 shlibpath_overrides_runpath
=yes
22840 if test "$with_gnu_ld" = yes; then
22848 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22849 soname_spec
='${libname}${release}${shared_ext}$major'
22850 shlibpath_var
=LD_LIBRARY_PATH
22851 case $host_vendor in
22853 shlibpath_overrides_runpath
=no
22855 export_dynamic_flag_spec
='${wl}-Blargedynsym'
22856 runpath_var
=LD_RUN_PATH
22864 shlibpath_overrides_runpath
=no
22865 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
22871 if test -d /usr
/nec
;then
22873 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22874 soname_spec
='$libname${shared_ext}.$major'
22875 shlibpath_var
=LD_LIBRARY_PATH
22879 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
22880 version_type
=freebsd-elf
22883 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22884 soname_spec
='${libname}${release}${shared_ext}$major'
22885 shlibpath_var
=LD_LIBRARY_PATH
22886 hardcode_into_libs
=yes
22887 if test "$with_gnu_ld" = yes; then
22888 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22889 shlibpath_overrides_runpath
=no
22891 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
22892 shlibpath_overrides_runpath
=yes
22895 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
22899 sys_lib_dlsearch_path_spec
='/usr/lib'
22904 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22905 soname_spec
='${libname}${release}${shared_ext}$major'
22906 shlibpath_var
=LD_LIBRARY_PATH
22913 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22914 echo "${ECHO_T}$dynamic_linker" >&6; }
22915 test "$dynamic_linker" = no
&& can_build_shared
=no
22917 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
22918 if test "$GCC" = yes; then
22919 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22922 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22923 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22924 hardcode_action_F77
=
22925 if test -n "$hardcode_libdir_flag_spec_F77" || \
22926 test -n "$runpath_var_F77" || \
22927 test "X$hardcode_automatic_F77" = "Xyes" ; then
22929 # We can hardcode non-existant directories.
22930 if test "$hardcode_direct_F77" != no
&&
22931 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22932 # have to relink, otherwise we might link with an installed library
22933 # when we should be linking with a yet-to-be-installed one
22934 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22935 test "$hardcode_minus_L_F77" != no
; then
22936 # Linking always hardcodes the temporary library directory.
22937 hardcode_action_F77
=relink
22939 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22940 hardcode_action_F77
=immediate
22943 # We cannot hardcode anything, or else we can only hardcode existing
22945 hardcode_action_F77
=unsupported
22947 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22948 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22950 if test "$hardcode_action_F77" = relink
; then
22951 # Fast installation is not supported
22952 enable_fast_install
=no
22953 elif test "$shlibpath_overrides_runpath" = yes ||
22954 test "$enable_shared" = no
; then
22955 # Fast installation is not necessary
22956 enable_fast_install
=needless
22960 # The else clause should only fire when bootstrapping the
22961 # libtool distribution, otherwise you forgot to ship ltmain.sh
22962 # with your package, and you will get complaints that there are
22963 # no rules to generate ltmain.sh.
22964 if test -f "$ltmain"; then
22965 # See if we are running on zsh, and set the options which allow our commands through
22966 # without removal of \ escapes.
22967 if test -n "${ZSH_VERSION+set}" ; then
22968 setopt NO_GLOB_SUBST
22970 # Now quote all the things that may contain metacharacters while being
22971 # careful not to overquote the AC_SUBSTed values. We take copies of the
22972 # variables and quote the copies for generation of the libtool script.
22973 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22975 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22976 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22977 deplibs_check_method reload_flag reload_cmds need_locks \
22978 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22979 lt_cv_sys_global_symbol_to_c_name_address \
22980 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22981 old_postinstall_cmds old_postuninstall_cmds \
22985 lt_prog_compiler_wl_F77 \
22986 lt_prog_compiler_pic_F77 \
22987 lt_prog_compiler_static_F77 \
22988 lt_prog_compiler_no_builtin_flag_F77 \
22989 export_dynamic_flag_spec_F77 \
22990 thread_safe_flag_spec_F77 \
22991 whole_archive_flag_spec_F77 \
22992 enable_shared_with_static_runtimes_F77 \
22993 old_archive_cmds_F77 \
22994 old_archive_from_new_cmds_F77 \
22995 predep_objects_F77 \
22996 postdep_objects_F77 \
22999 compiler_lib_search_path_F77 \
23001 archive_expsym_cmds_F77 \
23002 postinstall_cmds_F77 \
23003 postuninstall_cmds_F77 \
23004 old_archive_from_expsyms_cmds_F77 \
23005 allow_undefined_flag_F77 \
23006 no_undefined_flag_F77 \
23007 export_symbols_cmds_F77 \
23008 hardcode_libdir_flag_spec_F77 \
23009 hardcode_libdir_flag_spec_ld_F77 \
23010 hardcode_libdir_separator_F77 \
23011 hardcode_automatic_F77 \
23013 module_expsym_cmds_F77 \
23014 lt_cv_prog_compiler_c_o_F77 \
23015 exclude_expsyms_F77 \
23016 include_expsyms_F77
; do
23019 old_archive_cmds_F77 | \
23020 old_archive_from_new_cmds_F77 | \
23021 archive_cmds_F77 | \
23022 archive_expsym_cmds_F77 | \
23023 module_cmds_F77 | \
23024 module_expsym_cmds_F77 | \
23025 old_archive_from_expsyms_cmds_F77 | \
23026 export_symbols_cmds_F77 | \
23027 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23028 postinstall_cmds | postuninstall_cmds | \
23029 old_postinstall_cmds | old_postuninstall_cmds | \
23030 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
23031 # Double-quote double-evaled strings.
23032 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23035 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23041 *'\$0 --fallback-echo"')
23042 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23048 cat <<__EOF__ >> "$cfgfile"
23049 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23051 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23053 # Shell to use when invoking shell scripts.
23056 # Whether or not to build shared libraries.
23057 build_libtool_libs=$enable_shared
23059 # Whether or not to build static libraries.
23060 build_old_libs=$enable_static
23062 # Whether or not to add -lc for building shared libraries.
23063 build_libtool_need_lc=$archive_cmds_need_lc_F77
23065 # Whether or not to disallow shared libs when runtime libs are static
23066 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23068 # Whether or not to optimize for fast installation.
23069 fast_install=$enable_fast_install
23072 host_alias=$host_alias
23076 # The build system.
23077 build_alias=$build_alias
23081 # An echo program that does not interpret backslashes.
23086 AR_FLAGS=$lt_AR_FLAGS
23091 # LTCC compiler flags.
23092 LTCFLAGS=$lt_LTCFLAGS
23094 # A language-specific compiler.
23095 CC=$lt_compiler_F77
23097 # Is the compiler the GNU C compiler?
23103 # The linker used to build libraries.
23106 # Whether we need hard or soft links.
23109 # A BSD-compatible nm program.
23112 # A symbol stripping program
23115 # Used to examine libraries when file_magic_cmd begins "file"
23116 MAGIC_CMD=$MAGIC_CMD
23118 # Used on cygwin: DLL creation program.
23121 # Used on cygwin: object dumper.
23124 # Used on cygwin: assembler.
23127 # The name of the directory that contains temporary libtool files.
23130 # How to create reloadable object files.
23131 reload_flag=$lt_reload_flag
23132 reload_cmds=$lt_reload_cmds
23134 # How to pass a linker flag through the compiler.
23135 wl=$lt_lt_prog_compiler_wl_F77
23137 # Object file suffix (normally "o").
23138 objext="$ac_objext"
23140 # Old archive suffix (normally "a").
23143 # Shared library suffix (normally ".so").
23144 shrext_cmds='$shrext_cmds'
23146 # Executable file suffix (normally "").
23149 # Additional compiler flags for building library objects.
23150 pic_flag=$lt_lt_prog_compiler_pic_F77
23153 # What is the maximum length of a command?
23154 max_cmd_len=$lt_cv_sys_max_cmd_len
23156 # Does compiler simultaneously support -c and -o options?
23157 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23159 # Must we lock files when doing compilation?
23160 need_locks=$lt_need_locks
23162 # Do we need the lib prefix for modules?
23163 need_lib_prefix=$need_lib_prefix
23165 # Do we need a version for libraries?
23166 need_version=$need_version
23168 # Whether dlopen is supported.
23169 dlopen_support=$enable_dlopen
23171 # Whether dlopen of programs is supported.
23172 dlopen_self=$enable_dlopen_self
23174 # Whether dlopen of statically linked programs is supported.
23175 dlopen_self_static=$enable_dlopen_self_static
23177 # Compiler flag to prevent dynamic linking.
23178 link_static_flag=$lt_lt_prog_compiler_static_F77
23180 # Compiler flag to turn off builtin functions.
23181 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23183 # Compiler flag to allow reflexive dlopens.
23184 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23186 # Compiler flag to generate shared objects directly from archives.
23187 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23189 # Compiler flag to generate thread-safe objects.
23190 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23192 # Library versioning type.
23193 version_type=$version_type
23195 # Format of library name prefix.
23196 libname_spec=$lt_libname_spec
23198 # List of archive names. First name is the real one, the rest are links.
23199 # The last name is the one that the linker finds with -lNAME.
23200 library_names_spec=$lt_library_names_spec
23202 # The coded name of the library, if different from the real name.
23203 soname_spec=$lt_soname_spec
23205 # Commands used to build and install an old-style archive.
23207 old_archive_cmds=$lt_old_archive_cmds_F77
23208 old_postinstall_cmds=$lt_old_postinstall_cmds
23209 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23211 # Create an old-style archive from a shared archive.
23212 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23214 # Create a temporary old-style archive to link instead of a shared archive.
23215 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23217 # Commands used to build and install a shared archive.
23218 archive_cmds=$lt_archive_cmds_F77
23219 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23220 postinstall_cmds=$lt_postinstall_cmds
23221 postuninstall_cmds=$lt_postuninstall_cmds
23223 # Commands used to build a loadable module (assumed same as above if empty)
23224 module_cmds=$lt_module_cmds_F77
23225 module_expsym_cmds=$lt_module_expsym_cmds_F77
23227 # Commands to strip libraries.
23228 old_striplib=$lt_old_striplib
23229 striplib=$lt_striplib
23231 # Dependencies to place before the objects being linked to create a
23233 predep_objects=$lt_predep_objects_F77
23235 # Dependencies to place after the objects being linked to create a
23237 postdep_objects=$lt_postdep_objects_F77
23239 # Dependencies to place before the objects being linked to create a
23241 predeps=$lt_predeps_F77
23243 # Dependencies to place after the objects being linked to create a
23245 postdeps=$lt_postdeps_F77
23247 # The library search path used internally by the compiler when linking
23248 # a shared library.
23249 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23251 # Method to check whether dependent libraries are shared objects.
23252 deplibs_check_method=$lt_deplibs_check_method
23254 # Command to use when deplibs_check_method == file_magic.
23255 file_magic_cmd=$lt_file_magic_cmd
23257 # Flag that allows shared libraries with undefined symbols to be built.
23258 allow_undefined_flag=$lt_allow_undefined_flag_F77
23260 # Flag that forces no undefined symbols.
23261 no_undefined_flag=$lt_no_undefined_flag_F77
23263 # Commands used to finish a libtool library installation in a directory.
23264 finish_cmds=$lt_finish_cmds
23266 # Same as above, but a single script fragment to be evaled but not shown.
23267 finish_eval=$lt_finish_eval
23269 # Take the output of nm and produce a listing of raw symbols and C names.
23270 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23272 # Transform the output of nm in a proper C declaration
23273 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23275 # Transform the output of nm in a C name address pair
23276 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23278 # This is the shared library runtime path variable.
23279 runpath_var=$runpath_var
23281 # This is the shared library path variable.
23282 shlibpath_var=$shlibpath_var
23284 # Is shlibpath searched before the hard-coded library search path?
23285 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23287 # How to hardcode a shared library path into an executable.
23288 hardcode_action=$hardcode_action_F77
23290 # Whether we should hardcode library paths into libraries.
23291 hardcode_into_libs=$hardcode_into_libs
23293 # Flag to hardcode \$libdir into a binary during linking.
23294 # This must work even if \$libdir does not exist.
23295 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23297 # If ld is used when linking, flag to hardcode \$libdir into
23298 # a binary during linking. This must work even if \$libdir does
23300 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23302 # Whether we need a single -rpath flag with a separated argument.
23303 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23305 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23306 # resulting binary.
23307 hardcode_direct=$hardcode_direct_F77
23309 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23310 # resulting binary.
23311 hardcode_minus_L=$hardcode_minus_L_F77
23313 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23314 # the resulting binary.
23315 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23317 # Set to yes if building a shared library automatically hardcodes DIR into the library
23318 # and all subsequent libraries and executables linked against it.
23319 hardcode_automatic=$hardcode_automatic_F77
23321 # Variables whose values should be saved in libtool wrapper scripts and
23322 # restored at relink time.
23323 variables_saved_for_relink="$variables_saved_for_relink"
23325 # Whether libtool must link a program against all its dependency libraries.
23326 link_all_deplibs=$link_all_deplibs_F77
23328 # Compile-time system search path for libraries
23329 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23331 # Run-time system search path for libraries
23332 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23334 # Fix the shell variable \$srcfile for the compiler.
23335 fix_srcfile_path="$fix_srcfile_path_F77"
23337 # Set to yes if exported symbols are required.
23338 always_export_symbols=$always_export_symbols_F77
23340 # The commands to list exported symbols.
23341 export_symbols_cmds=$lt_export_symbols_cmds_F77
23343 # The commands to extract the exported symbol list from a shared archive.
23344 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23346 # Symbols that should not be listed in the preloaded symbols.
23347 exclude_expsyms=$lt_exclude_expsyms_F77
23349 # Symbols that must always be exported.
23350 include_expsyms=$lt_include_expsyms_F77
23352 # ### END LIBTOOL TAG CONFIG: $tagname
23358 # If there is no Makefile yet, we rely on a make rule to execute
23359 # `config.status --recheck' to rerun these tests and create the
23360 # libtool script then.
23361 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23362 if test -f "$ltmain_in"; then
23363 test -f Makefile
&& make "$ltmain"
23369 ac_cpp
='$CPP $CPPFLAGS'
23370 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23371 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23372 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
23382 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23384 ac_cpp
='$CPP $CPPFLAGS'
23385 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23386 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23387 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
23390 # Source file extension for Java test sources.
23393 # Object file extension for compiled Java test sources.
23397 # Code to be used in simple compile tests
23398 lt_simple_compile_test_code
="class foo {}\n"
23400 # Code to be used in simple link tests
23401 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
23403 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23405 # If no C compiler was specified, use CC.
23408 # If no C compiler flags were specified, use CFLAGS.
23409 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
23411 # Allow CC to be a program name with arguments.
23415 # save warnings/boilerplate of simple test code
23416 ac_outfile
=conftest.
$ac_objext
23417 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
23418 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
23419 _lt_compiler_boilerplate
=`cat conftest.err`
23422 ac_outfile
=conftest.
$ac_objext
23423 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
23424 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
23425 _lt_linker_boilerplate
=`cat conftest.err`
23429 # Allow CC to be a program name with arguments.
23434 for cc_temp
in $compiler""; do
23436 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
23437 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
23442 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23445 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23446 archive_cmds_need_lc_GCJ
=no
23448 old_archive_cmds_GCJ
=$old_archive_cmds
23451 lt_prog_compiler_no_builtin_flag_GCJ
=
23453 if test "$GCC" = yes; then
23454 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
23457 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23458 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23459 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23460 echo $ECHO_N "(cached) $ECHO_C" >&6
23462 lt_cv_prog_compiler_rtti_exceptions
=no
23463 ac_outfile
=conftest.
$ac_objext
23464 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
23465 lt_compiler_flag
="-fno-rtti -fno-exceptions"
23466 # Insert the option either (1) after the last *FLAGS variable, or
23467 # (2) before a word containing "conftest.", or (3) at the end.
23468 # Note that $ac_compile itself does not contain backslashes and begins
23469 # with a dollar sign (not a hyphen), so the echo should work correctly.
23470 # The option is referenced via a variable to avoid confusing sed.
23471 lt_compile
=`echo "$ac_compile" | $SED \
23472 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23474 -e 's:$: $lt_compiler_flag:'`
23475 (eval echo "\"\$as_me:23475: $lt_compile\"" >&5)
23476 (eval "$lt_compile" 2>conftest.err
)
23478 cat conftest.err
>&5
23479 echo "$as_me:23479: \$? = $ac_status" >&5
23480 if (exit $ac_status) && test -s "$ac_outfile"; then
23481 # The compiler can only warn and ignore the option if not recognized
23482 # So say no if there are warnings other than the usual output.
23483 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
23484 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
23485 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
23486 lt_cv_prog_compiler_rtti_exceptions
=yes
23492 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23493 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23495 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
23496 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23503 lt_prog_compiler_wl_GCJ
=
23504 lt_prog_compiler_pic_GCJ
=
23505 lt_prog_compiler_static_GCJ
=
23507 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23508 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23510 if test "$GCC" = yes; then
23511 lt_prog_compiler_wl_GCJ
='-Wl,'
23512 lt_prog_compiler_static_GCJ
='-static'
23516 # All AIX code is PIC.
23517 if test "$host_cpu" = ia64
; then
23518 # AIX 5 now supports IA64 processor
23519 lt_prog_compiler_static_GCJ
='-Bstatic'
23524 # FIXME: we need at least 68020 code to build shared libraries, but
23525 # adding the `-m68020' flag to GCC prevents building anything better,
23527 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
23530 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
23531 # PIC is the default for these OSes.
23534 mingw
* | pw32
* | os2
*)
23535 # This hack is so that the source file can tell whether it is being
23536 # built for inclusion in a dll (and should export symbols for example).
23537 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
23540 darwin
* | rhapsody
*)
23541 # PIC is the default on this platform
23542 # Common symbols not allowed in MH_DYLIB files
23543 lt_prog_compiler_pic_GCJ
='-fno-common'
23547 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23548 # Instead, we relocate shared libraries at runtime.
23552 # Just because we use GCC doesn't mean we suddenly get shared libraries
23553 # on systems that don't support them.
23554 lt_prog_compiler_can_build_shared_GCJ
=no
23559 if test -d /usr
/nec
; then
23560 lt_prog_compiler_pic_GCJ
=-Kconform_pic
23565 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23566 # not for PA HP-UX.
23572 lt_prog_compiler_pic_GCJ
='-fPIC'
23578 lt_prog_compiler_pic_GCJ
='-fPIC'
23582 # PORTME Check for flag to pass linker flags through the system compiler.
23585 lt_prog_compiler_wl_GCJ
='-Wl,'
23586 if test "$host_cpu" = ia64
; then
23587 # AIX 5 now supports IA64 processor
23588 lt_prog_compiler_static_GCJ
='-Bstatic'
23590 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
23594 # PIC is the default on this platform
23595 # Common symbols not allowed in MH_DYLIB files
23596 case $cc_basename in
23598 lt_prog_compiler_pic_GCJ
='-qnocommon'
23599 lt_prog_compiler_wl_GCJ
='-Wl,'
23604 mingw
* | pw32
* | os2
*)
23605 # This hack is so that the source file can tell whether it is being
23606 # built for inclusion in a dll (and should export symbols for example).
23607 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
23610 hpux9
* | hpux10
* | hpux11
*)
23611 lt_prog_compiler_wl_GCJ
='-Wl,'
23612 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23613 # not for PA HP-UX.
23619 lt_prog_compiler_pic_GCJ
='+Z'
23622 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23623 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
23626 irix5
* | irix6
* | nonstopux
*)
23627 lt_prog_compiler_wl_GCJ
='-Wl,'
23628 # PIC (with -KPIC) is the default.
23629 lt_prog_compiler_static_GCJ
='-non_shared'
23633 lt_prog_compiler_pic_GCJ
='-KPIC'
23634 lt_prog_compiler_static_GCJ
='-Bstatic'
23638 case $cc_basename in
23640 lt_prog_compiler_wl_GCJ
='-Wl,'
23641 lt_prog_compiler_pic_GCJ
='-KPIC'
23642 lt_prog_compiler_static_GCJ
='-static'
23644 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
23645 # Portland Group compilers (*not* the Pentium gcc compiler,
23646 # which looks to be a dead project)
23647 lt_prog_compiler_wl_GCJ
='-Wl,'
23648 lt_prog_compiler_pic_GCJ
='-fpic'
23649 lt_prog_compiler_static_GCJ
='-Bstatic'
23652 lt_prog_compiler_wl_GCJ
='-Wl,'
23653 # All Alpha code is PIC.
23654 lt_prog_compiler_static_GCJ
='-non_shared'
23659 osf3
* | osf4
* | osf5
*)
23660 lt_prog_compiler_wl_GCJ
='-Wl,'
23661 # All OSF/1 code is PIC.
23662 lt_prog_compiler_static_GCJ
='-non_shared'
23666 lt_prog_compiler_pic_GCJ
='-KPIC'
23667 lt_prog_compiler_static_GCJ
='-Bstatic'
23668 case $cc_basename in
23669 f77
* | f90
* | f95
*)
23670 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
23672 lt_prog_compiler_wl_GCJ
='-Wl,';;
23677 lt_prog_compiler_wl_GCJ
='-Qoption ld '
23678 lt_prog_compiler_pic_GCJ
='-PIC'
23679 lt_prog_compiler_static_GCJ
='-Bstatic'
23682 sysv4 | sysv4.2uw2
* | sysv4.3
*)
23683 lt_prog_compiler_wl_GCJ
='-Wl,'
23684 lt_prog_compiler_pic_GCJ
='-KPIC'
23685 lt_prog_compiler_static_GCJ
='-Bstatic'
23689 if test -d /usr
/nec
;then
23690 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
23691 lt_prog_compiler_static_GCJ
='-Bstatic'
23695 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
23696 lt_prog_compiler_wl_GCJ
='-Wl,'
23697 lt_prog_compiler_pic_GCJ
='-KPIC'
23698 lt_prog_compiler_static_GCJ
='-Bstatic'
23702 lt_prog_compiler_wl_GCJ
='-Wl,'
23703 lt_prog_compiler_can_build_shared_GCJ
=no
23707 lt_prog_compiler_pic_GCJ
='-pic'
23708 lt_prog_compiler_static_GCJ
='-Bstatic'
23712 lt_prog_compiler_can_build_shared_GCJ
=no
23717 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23718 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23721 # Check to make sure the PIC flag actually works.
23723 if test -n "$lt_prog_compiler_pic_GCJ"; then
23725 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23726 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23727 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23728 echo $ECHO_N "(cached) $ECHO_C" >&6
23730 lt_prog_compiler_pic_works_GCJ
=no
23731 ac_outfile
=conftest.
$ac_objext
23732 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
23733 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
23734 # Insert the option either (1) after the last *FLAGS variable, or
23735 # (2) before a word containing "conftest.", or (3) at the end.
23736 # Note that $ac_compile itself does not contain backslashes and begins
23737 # with a dollar sign (not a hyphen), so the echo should work correctly.
23738 # The option is referenced via a variable to avoid confusing sed.
23739 lt_compile
=`echo "$ac_compile" | $SED \
23740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23742 -e 's:$: $lt_compiler_flag:'`
23743 (eval echo "\"\$as_me:23743: $lt_compile\"" >&5)
23744 (eval "$lt_compile" 2>conftest.err
)
23746 cat conftest.err
>&5
23747 echo "$as_me:23747: \$? = $ac_status" >&5
23748 if (exit $ac_status) && test -s "$ac_outfile"; then
23749 # The compiler can only warn and ignore the option if not recognized
23750 # So say no if there are warnings other than the usual output.
23751 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
23752 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
23753 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
23754 lt_prog_compiler_pic_works_GCJ
=yes
23760 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23761 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23763 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
23764 case $lt_prog_compiler_pic_GCJ in
23766 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
23769 lt_prog_compiler_pic_GCJ
=
23770 lt_prog_compiler_can_build_shared_GCJ
=no
23775 # For platforms which do not support PIC, -DPIC is meaningless:
23777 lt_prog_compiler_pic_GCJ
=
23780 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
23785 # Check to make sure the static flag actually works.
23787 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
23788 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23789 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23790 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23791 echo $ECHO_N "(cached) $ECHO_C" >&6
23793 lt_prog_compiler_static_works_GCJ
=no
23794 save_LDFLAGS
="$LDFLAGS"
23795 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
23796 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
23797 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
23798 # The linker can only warn and ignore the option if not recognized
23799 # So say no if there are warnings
23800 if test -s conftest.err
; then
23801 # Append any errors to the config.log.
23802 cat conftest.err
1>&5
23803 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
23804 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
23805 if diff conftest.exp conftest.er2
>/dev
/null
; then
23806 lt_prog_compiler_static_works_GCJ
=yes
23809 lt_prog_compiler_static_works_GCJ
=yes
23813 LDFLAGS
="$save_LDFLAGS"
23816 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23817 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23819 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
23822 lt_prog_compiler_static_GCJ
=
23826 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23827 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23828 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23829 echo $ECHO_N "(cached) $ECHO_C" >&6
23831 lt_cv_prog_compiler_c_o_GCJ
=no
23832 $rm -r conftest
2>/dev
/null
23836 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
23838 lt_compiler_flag
="-o out/conftest2.$ac_objext"
23839 # Insert the option either (1) after the last *FLAGS variable, or
23840 # (2) before a word containing "conftest.", or (3) at the end.
23841 # Note that $ac_compile itself does not contain backslashes and begins
23842 # with a dollar sign (not a hyphen), so the echo should work correctly.
23843 lt_compile
=`echo "$ac_compile" | $SED \
23844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23846 -e 's:$: $lt_compiler_flag:'`
23847 (eval echo "\"\$as_me:23847: $lt_compile\"" >&5)
23848 (eval "$lt_compile" 2>out
/conftest.err
)
23850 cat out
/conftest.err
>&5
23851 echo "$as_me:23851: \$? = $ac_status" >&5
23852 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
23854 # The compiler can only warn and ignore the option if not recognized
23855 # So say no if there are warnings
23856 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
23857 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
23858 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
23859 lt_cv_prog_compiler_c_o_GCJ
=yes
23864 # SGI C++ compiler will create directory out/ii_files/ for
23865 # template instantiation
23866 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
23867 $rm out
/* && rmdir out
23873 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23874 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23877 hard_links
="nottested"
23878 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
23879 # do not overwrite the value of need_locks provided by the user
23880 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23881 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23884 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
23886 ln conftest.a conftest.b
2>&5 || hard_links
=no
23887 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
23888 { echo "$as_me:$LINENO: result: $hard_links" >&5
23889 echo "${ECHO_T}$hard_links" >&6; }
23890 if test "$hard_links" = no
; then
23891 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23892 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23899 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23900 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23903 allow_undefined_flag_GCJ
=
23904 enable_shared_with_static_runtimes_GCJ
=no
23906 archive_expsym_cmds_GCJ
=
23907 old_archive_From_new_cmds_GCJ
=
23908 old_archive_from_expsyms_cmds_GCJ
=
23909 export_dynamic_flag_spec_GCJ
=
23910 whole_archive_flag_spec_GCJ
=
23911 thread_safe_flag_spec_GCJ
=
23912 hardcode_libdir_flag_spec_GCJ
=
23913 hardcode_libdir_flag_spec_ld_GCJ
=
23914 hardcode_libdir_separator_GCJ
=
23915 hardcode_direct_GCJ
=no
23916 hardcode_minus_L_GCJ
=no
23917 hardcode_shlibpath_var_GCJ
=unsupported
23918 link_all_deplibs_GCJ
=unknown
23919 hardcode_automatic_GCJ
=no
23921 module_expsym_cmds_GCJ
=
23922 always_export_symbols_GCJ
=no
23923 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23924 # include_expsyms should be a list of space-separated symbols to be *always*
23925 # included in the symbol list
23926 include_expsyms_GCJ
=
23927 # exclude_expsyms can be an extended regexp of symbols to exclude
23928 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23929 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23930 # as well as any symbol that contains `d'.
23931 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
23932 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23933 # platforms (ab)use it in PIC code, but their linkers get confused if
23934 # the symbol is explicitly referenced. Since portable code cannot
23935 # rely on this symbol name, it's probably fine to never include it in
23936 # preloaded symbol tables.
23937 extract_expsyms_cmds
=
23938 # Just being paranoid about ensuring that cc_basename is set.
23939 for cc_temp
in $compiler""; do
23941 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
23942 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
23947 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23950 cygwin
* | mingw
* | pw32
*)
23951 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23952 # When not using gcc, we currently assume that we are using
23953 # Microsoft Visual C++.
23954 if test "$GCC" != yes; then
23959 # we just hope/assume this is gcc and not c89 (= MSVC++)
23968 if test "$with_gnu_ld" = yes; then
23969 # If archive_cmds runs LD, not CC, wlarc should be empty
23972 # Set some defaults for GNU ld with shared library support. These
23973 # are reset later if shared libraries are not supported. Putting them
23974 # here allows them to be overridden if necessary.
23975 runpath_var
=LD_RUN_PATH
23976 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
23977 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
23978 # ancient GNU ld didn't support --whole-archive et. al.
23979 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
23980 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23982 whole_archive_flag_spec_GCJ
=
23984 supports_anon_versioning
=no
23985 case `$LD -v 2>/dev/null` in
23986 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
23987 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
23988 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
23989 *\
2.11.
*) ;; # other 2.11 versions
23990 *) supports_anon_versioning
=yes ;;
23993 # See if GNU ld supports shared libraries.
23995 aix3
* | aix4
* | aix5
*)
23996 # On AIX/PPC, the GNU linker is very broken
23997 if test "$host_cpu" != ia64
; then
24001 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24002 *** to be unable to reliably create shared libraries on AIX.
24003 *** Therefore, libtool is disabling shared libraries support. If you
24004 *** really care for shared libraries, you may want to modify your PATH
24005 *** so that a non-GNU linker is found, and then restart.
24012 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)'
24013 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24014 hardcode_minus_L_GCJ
=yes
24016 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24017 # that the semantics of dynamic libraries on AmigaOS, at least up
24018 # to version 4, is to share data among multiple programs linked
24019 # with the same dynamic library. Since this doesn't match the
24020 # behavior of shared libraries on other platforms, we can't use
24026 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24027 allow_undefined_flag_GCJ
=unsupported
24028 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24029 # support --undefined. This deserves some investigation. FIXME
24030 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24036 cygwin
* | mingw
* | pw32
*)
24037 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24038 # as there is no search path for DLLs.
24039 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24040 allow_undefined_flag_GCJ
=unsupported
24041 always_export_symbols_GCJ
=no
24042 enable_shared_with_static_runtimes_GCJ
=yes
24043 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24045 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
24046 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24047 # If the export-symbols file already is a .def file (1st line
24048 # is EXPORTS), use it as is; otherwise, prepend...
24049 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24050 cp $export_symbols $output_objdir/$soname.def;
24052 echo EXPORTS > $output_objdir/$soname.def;
24053 cat $export_symbols >> $output_objdir/$soname.def;
24055 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24062 hardcode_direct_GCJ
=no
24063 hardcode_shlibpath_var_GCJ
=no
24064 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
24065 export_dynamic_flag_spec_GCJ
='${wl}-E'
24066 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24067 # Instead, shared libraries are loaded at an image base (0x10000000 by
24068 # default) and relocated if they conflict, which is a slow very memory
24069 # consuming and fragmenting process. To avoid this, we pick a random,
24070 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24071 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24072 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'
24073 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'
24077 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24079 case $cc_basename,$host_cpu in
24080 pgcc
*) # Portland Group C compiler
24081 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'
24082 tmp_addflag
=' $pic_flag'
24084 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
24085 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'
24086 tmp_addflag
=' $pic_flag -Mnomain' ;;
24087 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
24088 tmp_addflag
=' -i_dynamic' ;;
24089 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
24090 tmp_addflag
=' -i_dynamic -nofor_main' ;;
24091 ifc
* | ifort
*) # Intel Fortran compiler
24092 tmp_addflag
=' -nofor_main' ;;
24094 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24096 if test $supports_anon_versioning = yes; then
24097 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
24098 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24099 $echo "local: *; };" >> $output_objdir/$libname.ver~
24100 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24108 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
24109 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24112 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24113 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24118 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
24122 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24123 *** create shared libraries on Solaris systems. Therefore, libtool
24124 *** is disabling shared libraries support. We urge you to upgrade GNU
24125 *** binutils to release 2.9.1 or newer. Another option is to modify
24126 *** your PATH or compiler configuration so that the native linker is
24127 *** used, and then restart.
24130 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24131 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24132 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24138 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
24139 case `$LD -v 2>&1` in
24140 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
24144 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24145 *** reliably create shared libraries on SCO systems. Therefore, libtool
24146 *** is disabling shared libraries support. We urge you to upgrade GNU
24147 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24148 *** your PATH or compiler configuration so that the native linker is
24149 *** used, and then restart.
24154 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24155 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24156 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24157 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24166 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24168 hardcode_direct_GCJ
=yes
24169 hardcode_shlibpath_var_GCJ
=no
24173 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24174 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24175 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24182 if test "$ld_shlibs_GCJ" = no
; then
24184 hardcode_libdir_flag_spec_GCJ
=
24185 export_dynamic_flag_spec_GCJ
=
24186 whole_archive_flag_spec_GCJ
=
24189 # PORTME fill in a description of your system's linker (not GNU ld)
24192 allow_undefined_flag_GCJ
=unsupported
24193 always_export_symbols_GCJ
=yes
24194 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'
24195 # Note: this linker hardcodes the directories in LIBPATH if there
24196 # are no directories specified by -L.
24197 hardcode_minus_L_GCJ
=yes
24198 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24199 # Neither direct hardcoding nor static linking is supported with a
24201 hardcode_direct_GCJ
=unsupported
24206 if test "$host_cpu" = ia64
; then
24207 # On IA64, the linker does run time linking by default, so we don't
24208 # have to do anything special.
24209 aix_use_runtimelinking
=no
24210 exp_sym_flag
='-Bexport'
24213 # If we're using GNU nm, then we don't want the "-C" option.
24214 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24215 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
24216 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'
24218 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'
24220 aix_use_runtimelinking
=no
24222 # Test if we are trying to use run time linking or normal
24223 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24224 # need to do runtime linking.
24225 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
24226 for ld_flag
in $LDFLAGS; do
24227 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
24228 aix_use_runtimelinking
=yes
24235 exp_sym_flag
='-bexport'
24236 no_entry_flag
='-bnoentry'
24239 # When large executables or shared objects are built, AIX ld can
24240 # have problems creating the table of contents. If linking a library
24241 # or program results in "error TOC overflow" add -mminimal-toc to
24242 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24243 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24245 archive_cmds_GCJ
=''
24246 hardcode_direct_GCJ
=yes
24247 hardcode_libdir_separator_GCJ
=':'
24248 link_all_deplibs_GCJ
=yes
24250 if test "$GCC" = yes; then
24251 case $host_os in aix4.
[012]|aix4.
[012].
*)
24252 # We only want to do this on AIX 4.2 and lower, the check
24253 # below for broken collect2 doesn't work under 4.3+
24254 collect2name
=`${CC} -print-prog-name=collect2`
24255 if test -f "$collect2name" && \
24256 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
24258 # We have reworked collect2
24259 hardcode_direct_GCJ
=yes
24261 # We have old collect2
24262 hardcode_direct_GCJ
=unsupported
24263 # It fails to find uninstalled libraries when the uninstalled
24264 # path is not listed in the libpath. Setting hardcode_minus_L
24265 # to unsupported forces relinking
24266 hardcode_minus_L_GCJ
=yes
24267 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24268 hardcode_libdir_separator_GCJ
=
24272 shared_flag
='-shared'
24273 if test "$aix_use_runtimelinking" = yes; then
24274 shared_flag
="$shared_flag "'${wl}-G'
24278 if test "$host_cpu" = ia64
; then
24279 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24280 # chokes on -Wl,-G. The following line is correct:
24283 if test "$aix_use_runtimelinking" = yes; then
24284 shared_flag
='${wl}-G'
24286 shared_flag
='${wl}-bM:SRE'
24291 # It seems that -bexpall does not export symbols beginning with
24292 # underscore (_), so it is better to generate a list of symbols to export.
24293 always_export_symbols_GCJ
=yes
24294 if test "$aix_use_runtimelinking" = yes; then
24295 # Warning - without using the other runtime loading flags (-brtl),
24296 # -berok will link without error, but may produce a broken library.
24297 allow_undefined_flag_GCJ
='-berok'
24298 # Determine the default libpath from the value encoded in an empty executable.
24299 cat >conftest.
$ac_ext <<_ACEOF
24302 cat confdefs.h
>>conftest.
$ac_ext
24303 cat >>conftest.
$ac_ext <<_ACEOF
24304 /* end confdefs.h. */
24314 rm -f conftest.
$ac_objext conftest
$ac_exeext
24315 if { (ac_try
="$ac_link"
24316 case "(($ac_try" in
24317 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24318 *) ac_try_echo=$ac_try;;
24320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24321 (eval "$ac_link") 2>conftest.er1
24323 grep -v '^ *+' conftest.er1 >conftest.err
24325 cat conftest.err >&5
24326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327 (exit $ac_status); } &&
24328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24329 { (case "(($ac_try" in
24330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24331 *) ac_try_echo
=$ac_try;;
24333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24334 (eval "$ac_try") 2>&5
24336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337 (exit $ac_status); }; } &&
24338 { ac_try
='test -s conftest$ac_exeext'
24339 { (case "(($ac_try" in
24340 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24341 *) ac_try_echo=$ac_try;;
24343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24344 (eval "$ac_try") 2>&5
24346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347 (exit $ac_status); }; }; then
24349 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24351 # Check for a 64-bit object if we didn't find anything.
24352 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; }
24355 echo "$as_me: failed program was:" >&5
24356 sed 's/^/| /' conftest.$ac_ext >&5
24361 rm -f core conftest.err conftest.$ac_objext \
24362 conftest$ac_exeext conftest.$ac_ext
24363 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24365 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24366 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"
24368 if test "$host_cpu" = ia64; then
24369 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24370 allow_undefined_flag_GCJ="-z nodefs"
24371 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"
24373 # Determine the default libpath from the value encoded in an empty executable.
24374 cat >conftest.$ac_ext <<_ACEOF
24377 cat confdefs.h >>conftest.$ac_ext
24378 cat >>conftest.$ac_ext <<_ACEOF
24379 /* end confdefs.h. */
24389 rm -f conftest.$ac_objext conftest$ac_exeext
24390 if { (ac_try="$ac_link"
24391 case "(($ac_try" in
24392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24393 *) ac_try_echo
=$ac_try;;
24395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24396 (eval "$ac_link") 2>conftest.er1
24398 grep -v '^ *+' conftest.er1
>conftest.err
24400 cat conftest.err
>&5
24401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402 (exit $ac_status); } &&
24403 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24404 { (case "(($ac_try" in
24405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24406 *) ac_try_echo=$ac_try;;
24408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24409 (eval "$ac_try") 2>&5
24411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412 (exit $ac_status); }; } &&
24413 { ac_try='test -s conftest$ac_exeext'
24414 { (case "(($ac_try" in
24415 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24416 *) ac_try_echo
=$ac_try;;
24418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24419 (eval "$ac_try") 2>&5
24421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422 (exit $ac_status); }; }; then
24424 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24426 # Check for a 64-bit object if we didn't find anything.
24427 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; }
24430 echo "$as_me: failed program was:" >&5
24431 sed 's/^/| /' conftest.
$ac_ext >&5
24436 rm -f core conftest.err conftest.
$ac_objext \
24437 conftest
$ac_exeext conftest.
$ac_ext
24438 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
24440 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
24441 # Warning - without using the other run time loading flags,
24442 # -berok will link without error, but may produce a broken library.
24443 no_undefined_flag_GCJ
=' ${wl}-bernotok'
24444 allow_undefined_flag_GCJ
=' ${wl}-berok'
24445 # Exported symbols can be pulled into shared objects from archives
24446 whole_archive_flag_spec_GCJ
='$convenience'
24447 archive_cmds_need_lc_GCJ
=yes
24448 # This is similar to how AIX traditionally builds its shared libraries.
24449 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'
24455 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)'
24456 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24457 hardcode_minus_L_GCJ
=yes
24458 # see comment about different semantics on the GNU ld section
24463 export_dynamic_flag_spec_GCJ
=-rdynamic
24466 cygwin
* | mingw
* | pw32
*)
24467 # When not using gcc, we currently assume that we are using
24468 # Microsoft Visual C++.
24469 # hardcode_libdir_flag_spec is actually meaningless, as there is
24470 # no search path for DLLs.
24471 hardcode_libdir_flag_spec_GCJ
=' '
24472 allow_undefined_flag_GCJ
=unsupported
24473 # Tell ltmain to make .lib files, not .a files.
24475 # Tell ltmain to make .dll files, not .so files.
24477 # FIXME: Setting linknames here is a bad hack.
24478 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24479 # The linker will automatically build a .lib file if we build a DLL.
24480 old_archive_From_new_cmds_GCJ
='true'
24481 # FIXME: Should let the user specify the lib program.
24482 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
24483 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
24484 enable_shared_with_static_runtimes_GCJ
=yes
24487 darwin
* | rhapsody
*)
24489 rhapsody
* | darwin1.
[012])
24490 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
24493 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24494 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24496 case ${MACOSX_DEPLOYMENT_TARGET} in
24498 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24501 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
24507 archive_cmds_need_lc_GCJ
=no
24508 hardcode_direct_GCJ
=no
24509 hardcode_automatic_GCJ
=yes
24510 hardcode_shlibpath_var_GCJ
=unsupported
24511 whole_archive_flag_spec_GCJ
=''
24512 link_all_deplibs_GCJ
=yes
24513 if test "$GCC" = yes ; then
24514 output_verbose_link_cmd
='echo'
24515 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24516 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24517 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24518 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}'
24519 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}'
24521 case $cc_basename in
24523 output_verbose_link_cmd
='echo'
24524 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24525 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24526 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24527 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}'
24528 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}'
24538 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24539 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24540 hardcode_shlibpath_var_GCJ
=no
24547 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24548 # support. Future versions do this automatically, but an explicit c++rt0.o
24549 # does not break anything, and helps significantly (at the cost of a little
24552 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24553 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
24554 hardcode_direct_GCJ
=yes
24555 hardcode_shlibpath_var_GCJ
=no
24558 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24560 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24561 hardcode_direct_GCJ
=yes
24562 hardcode_minus_L_GCJ
=yes
24563 hardcode_shlibpath_var_GCJ
=no
24566 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24567 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
24568 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24569 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
24570 hardcode_direct_GCJ
=yes
24571 hardcode_shlibpath_var_GCJ
=no
24575 if test "$GCC" = yes; then
24576 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'
24578 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'
24580 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
24581 hardcode_libdir_separator_GCJ
=:
24582 hardcode_direct_GCJ
=yes
24584 # hardcode_minus_L: Not really in the search PATH,
24585 # but as the default location of the library.
24586 hardcode_minus_L_GCJ
=yes
24587 export_dynamic_flag_spec_GCJ
='${wl}-E'
24591 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
24592 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24594 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24596 if test "$with_gnu_ld" = no
; then
24597 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
24598 hardcode_libdir_separator_GCJ
=:
24600 hardcode_direct_GCJ
=yes
24601 export_dynamic_flag_spec_GCJ
='${wl}-E'
24603 # hardcode_minus_L: Not really in the search PATH,
24604 # but as the default location of the library.
24605 hardcode_minus_L_GCJ
=yes
24610 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
24613 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24616 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24619 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24625 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24628 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24631 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24635 if test "$with_gnu_ld" = no
; then
24636 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
24637 hardcode_libdir_separator_GCJ
=:
24641 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
24642 hardcode_direct_GCJ
=no
24643 hardcode_shlibpath_var_GCJ
=no
24646 hardcode_direct_GCJ
=yes
24647 export_dynamic_flag_spec_GCJ
='${wl}-E'
24649 # hardcode_minus_L: Not really in the search PATH,
24650 # but as the default location of the library.
24651 hardcode_minus_L_GCJ
=yes
24657 irix5
* | irix6
* | nonstopux
*)
24658 if test "$GCC" = yes; then
24659 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'
24661 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'
24662 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
24664 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
24665 hardcode_libdir_separator_GCJ
=:
24666 link_all_deplibs_GCJ
=yes
24670 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
24671 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24673 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24675 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
24676 hardcode_direct_GCJ
=yes
24677 hardcode_shlibpath_var_GCJ
=no
24681 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24682 hardcode_direct_GCJ
=yes
24683 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
24684 hardcode_libdir_separator_GCJ
=:
24685 hardcode_shlibpath_var_GCJ
=no
24689 hardcode_direct_GCJ
=yes
24690 hardcode_shlibpath_var_GCJ
=no
24691 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24692 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24693 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24694 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
24695 export_dynamic_flag_spec_GCJ
='${wl}-E'
24698 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
24699 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24700 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
24703 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24704 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
24711 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24712 hardcode_minus_L_GCJ
=yes
24713 allow_undefined_flag_GCJ
=unsupported
24714 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'
24715 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24719 if test "$GCC" = yes; then
24720 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
24721 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'
24723 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
24724 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'
24726 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
24727 hardcode_libdir_separator_GCJ
=:
24730 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
24731 if test "$GCC" = yes; then
24732 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
24733 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'
24734 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
24736 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
24737 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'
24738 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~
24739 $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'
24741 # Both c and cxx compiler support -rpath directly
24742 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
24744 hardcode_libdir_separator_GCJ
=:
24748 no_undefined_flag_GCJ
=' -z text'
24749 if test "$GCC" = yes; then
24751 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24752 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24753 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24756 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24757 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24758 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24760 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
24761 hardcode_shlibpath_var_GCJ
=no
24763 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
24765 # The compiler driver will combine linker options so we
24766 # cannot just pass the convience library names through
24767 # without $wl, iff we do not link with $LD.
24768 # Luckily, gcc supports the same syntax we need for Sun Studio.
24769 # Supported since Solaris 2.6 (maybe 2.5.1?)
24772 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
24774 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' ;;
24777 link_all_deplibs_GCJ
=yes
24781 if test "x$host_vendor" = xsequent
; then
24782 # Use $CC to link under sequent, because it throws in some extra .o
24783 # files that make .init and .fini sections work.
24784 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24786 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24788 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24789 hardcode_direct_GCJ
=yes
24790 hardcode_minus_L_GCJ
=yes
24791 hardcode_shlibpath_var_GCJ
=no
24795 case $host_vendor in
24797 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24798 hardcode_direct_GCJ
=yes # is this really true???
24801 ## LD is ld it makes a PLAMLIB
24802 ## CC just makes a GrossModule.
24803 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24804 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
24805 hardcode_direct_GCJ
=no
24808 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24809 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
24812 runpath_var
='LD_RUN_PATH'
24813 hardcode_shlibpath_var_GCJ
=no
24817 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24818 hardcode_shlibpath_var_GCJ
=no
24819 export_dynamic_flag_spec_GCJ
='-Bexport'
24823 if test -d /usr
/nec
; then
24824 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24825 hardcode_shlibpath_var_GCJ
=no
24826 runpath_var
=LD_RUN_PATH
24827 hardcode_runpath_var
=yes
24832 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
24833 no_undefined_flag_GCJ
='${wl}-z,text'
24834 archive_cmds_need_lc_GCJ
=no
24835 hardcode_shlibpath_var_GCJ
=no
24836 runpath_var
='LD_RUN_PATH'
24838 if test "$GCC" = yes; then
24839 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24840 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24842 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24843 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24847 sysv5
* | sco3.2v5
* | sco5v6
*)
24848 # Note: We can NOT use -z defs as we might desire, because we do not
24849 # link with -lc, and that would cause any symbols used from libc to
24850 # always be unresolved, which means just about no library would
24851 # ever link correctly. If we're not using GNU ld we use -z text
24852 # though, which does catch some bad symbols but isn't as heavy-handed
24854 no_undefined_flag_GCJ
='${wl}-z,text'
24855 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
24856 archive_cmds_need_lc_GCJ
=no
24857 hardcode_shlibpath_var_GCJ
=no
24858 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24859 hardcode_libdir_separator_GCJ
=':'
24860 link_all_deplibs_GCJ
=yes
24861 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
24862 runpath_var
='LD_RUN_PATH'
24864 if test "$GCC" = yes; then
24865 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24866 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24868 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24869 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24874 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24875 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24876 hardcode_shlibpath_var_GCJ
=no
24885 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24886 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24887 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
24890 # Do we need to explicitly link libc?
24892 case "x$archive_cmds_need_lc_GCJ" in
24894 # Assume -lc should be added
24895 archive_cmds_need_lc_GCJ
=yes
24897 if test "$enable_shared" = yes && test "$GCC" = yes; then
24898 case $archive_cmds_GCJ in
24900 # FIXME: we may have to deal with multi-command sequences.
24903 # Test whether the compiler implicitly links with -lc since on some
24904 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24905 # to ld, don't add -lc before -lgcc.
24906 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24907 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24909 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24912 (eval $ac_compile) 2>&5
24914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915 (exit $ac_status); } 2>conftest.err
; then
24918 libobjs
=conftest.
$ac_objext
24920 wl
=$lt_prog_compiler_wl_GCJ
24921 pic_flag
=$lt_prog_compiler_pic_GCJ
24927 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
24928 allow_undefined_flag_GCJ
=
24929 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24930 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); }
24935 archive_cmds_need_lc_GCJ
=no
24937 archive_cmds_need_lc_GCJ
=yes
24939 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
24941 cat conftest.err
1>&5
24944 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24945 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24952 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24953 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24954 library_names_spec
=
24955 libname_spec
='lib$name'
24959 postuninstall_cmds
=
24963 shlibpath_overrides_runpath
=unknown
24965 dynamic_linker
="$host_os ld.so"
24966 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
24967 if test "$GCC" = yes; then
24968 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24969 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
24970 # if the path contains ";" then we assume it to be the separator
24971 # otherwise default to the standard path separator (i.e. ":") - it is
24972 # assumed that no part of a normal pathname contains ";" but that should
24973 # okay in the real world where ";" in dirpaths is itself problematic.
24974 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24976 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24979 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
24981 need_lib_prefix
=unknown
24982 hardcode_into_libs
=no
24984 # when you set need_version to no, make sure it does not cause -set_version
24985 # flags to be left without arguments
24986 need_version
=unknown
24991 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
24992 shlibpath_var
=LIBPATH
24994 # AIX 3 has no versioning support, so we append a major version to the name.
24995 soname_spec
='${libname}${release}${shared_ext}$major'
25002 hardcode_into_libs
=yes
25003 if test "$host_cpu" = ia64
; then
25004 # AIX 5 supports IA64
25005 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25006 shlibpath_var
=LD_LIBRARY_PATH
25008 # With GCC up to 2.95.x, collect2 would create an import file
25009 # for dependence libraries. The import file would start with
25010 # the line `#! .'. This would cause the generated library to
25011 # depend on `.', always an invalid library. This was fixed in
25012 # development snapshots of GCC prior to 3.0.
25014 aix4 | aix4.
[01] | aix4.
[01].
*)
25015 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25017 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
25020 can_build_shared
=no
25024 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25025 # soname into executable. Probably we can add versioning support to
25026 # collect2, so additional links can be useful in future.
25027 if test "$aix_use_runtimelinking" = yes; then
25028 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25029 # instead of lib<name>.a to let people know that these are not
25030 # typical AIX shared libraries.
25031 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25033 # We preserve .a as extension for shared libraries through AIX4.2
25034 # and later when we are not doing run time linking.
25035 library_names_spec
='${libname}${release}.a $libname.a'
25036 soname_spec
='${libname}${release}${shared_ext}$major'
25038 shlibpath_var
=LIBPATH
25043 library_names_spec
='$libname.ixlibrary $libname.a'
25044 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25045 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'
25049 library_names_spec
='${libname}${shared_ext}'
25050 dynamic_linker
="$host_os ld.so"
25051 shlibpath_var
=LIBRARY_PATH
25057 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25058 soname_spec
='${libname}${release}${shared_ext}$major'
25059 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
25060 shlibpath_var
=LD_LIBRARY_PATH
25061 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25062 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
25063 # the default ld.so.conf also contains /usr/contrib/lib and
25064 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25065 # libtool to hard-code these into programs
25068 cygwin
* | mingw
* | pw32
*)
25069 version_type
=windows
25074 case $GCC,$host_os in
25075 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
25076 library_names_spec
='$libname.dll.a'
25077 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25078 postinstall_cmds
='base_file=`basename \${file}`~
25079 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25080 dldir=$destdir/`dirname \$dlpath`~
25081 test -d \$dldir || mkdir -p \$dldir~
25082 $install_prog $dir/$dlname \$dldir/$dlname~
25083 chmod a+x \$dldir/$dlname'
25084 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25085 dlpath=$dir/\$dldll~
25087 shlibpath_overrides_runpath
=yes
25091 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25092 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25093 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
25096 # MinGW DLLs use traditional 'lib' prefix
25097 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25098 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25099 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
25100 # It is most probably a Windows format PATH printed by
25101 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25102 # path with ; separators, and with drive letters. We can handle the
25103 # drive letters (cygwin fileutils understands them), so leave them,
25104 # especially as we might pass files found there to a mingw objdump,
25105 # which wouldn't understand a cygwinified path. Ahh.
25106 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25108 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25112 # pw32 DLLs use 'pw' prefix rather than 'lib'
25113 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25119 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25122 dynamic_linker
='Win32 ld.exe'
25123 # FIXME: first we should search . and the directory the executable is in
25127 darwin
* | rhapsody
*)
25128 dynamic_linker
="$host_os dyld"
25129 version_type
=darwin
25132 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25133 soname_spec
='${libname}${release}${major}$shared_ext'
25134 shlibpath_overrides_runpath
=yes
25135 shlibpath_var
=DYLD_LIBRARY_PATH
25136 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
25137 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25138 if test "$GCC" = yes; then
25139 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"`
25141 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
25143 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
25150 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25151 soname_spec
='${libname}${release}${shared_ext}$major'
25152 shlibpath_var
=LD_LIBRARY_PATH
25163 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25164 soname_spec
='${libname}${release}${shared_ext}$major'
25165 shlibpath_var
=LD_LIBRARY_PATH
25166 shlibpath_overrides_runpath
=no
25167 hardcode_into_libs
=yes
25168 dynamic_linker
='GNU ld.so'
25171 freebsd
* | dragonfly
*)
25172 # DragonFly does not have aout. When/if they implement a new
25173 # versioning mechanism, adjust this.
25174 if test -x /usr
/bin
/objformat
; then
25175 objformat
=`/usr/bin/objformat`
25178 freebsd
[123]*) objformat
=aout
;;
25179 *) objformat
=elf
;;
25182 version_type
=freebsd-
$objformat
25183 case $version_type in
25185 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25190 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25194 shlibpath_var
=LD_LIBRARY_PATH
25197 shlibpath_overrides_runpath
=yes
25199 freebsd3.
[01]* | freebsdelf3.
[01]*)
25200 shlibpath_overrides_runpath
=yes
25201 hardcode_into_libs
=yes
25203 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
25204 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
25205 shlibpath_overrides_runpath
=no
25206 hardcode_into_libs
=yes
25208 freebsd
*) # from 4.6 on
25209 shlibpath_overrides_runpath
=yes
25210 hardcode_into_libs
=yes
25219 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25220 soname_spec
='${libname}${release}${shared_ext}$major'
25221 shlibpath_var
=LD_LIBRARY_PATH
25222 hardcode_into_libs
=yes
25225 hpux9
* | hpux10
* | hpux11
*)
25226 # Give a soname corresponding to the major version so that dld.sl refuses to
25227 # link against other versions.
25234 hardcode_into_libs
=yes
25235 dynamic_linker
="$host_os dld.so"
25236 shlibpath_var
=LD_LIBRARY_PATH
25237 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
25238 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25239 soname_spec
='${libname}${release}${shared_ext}$major'
25240 if test "X$HPUX_IA64_MODE" = X32
; then
25241 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25243 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
25245 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
25249 hardcode_into_libs
=yes
25250 dynamic_linker
="$host_os dld.sl"
25251 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
25252 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
25253 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25254 soname_spec
='${libname}${release}${shared_ext}$major'
25255 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25256 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
25260 dynamic_linker
="$host_os dld.sl"
25261 shlibpath_var
=SHLIB_PATH
25262 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
25263 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25264 soname_spec
='${libname}${release}${shared_ext}$major'
25267 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25268 postinstall_cmds
='chmod 555 $lib'
25275 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25276 soname_spec
='${libname}${release}${shared_ext}$major'
25277 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
25278 shlibpath_var
=LD_LIBRARY_PATH
25279 shlibpath_overrides_runpath
=no
25280 hardcode_into_libs
=yes
25283 irix5
* | irix6
* | nonstopux
*)
25285 nonstopux
*) version_type
=nonstopux
;;
25287 if test "$lt_cv_prog_gnu_ld" = yes; then
25295 soname_spec
='${libname}${release}${shared_ext}$major'
25296 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25298 irix5
* | nonstopux
*)
25299 libsuff
= shlibsuff
=
25302 case $LD in # libtool.m4 will add one of these switches to LD
25303 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
25304 libsuff
= shlibsuff
= libmagic
=32-bit;;
25305 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
25306 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
25307 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
25308 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
25309 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
25313 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
25314 shlibpath_overrides_runpath
=no
25315 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25316 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
25317 hardcode_into_libs
=yes
25320 # No shared lib support for Linux oldld, aout, or coff.
25321 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
25325 # This must be Linux ELF.
25330 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25331 soname_spec
='${libname}${release}${shared_ext}$major'
25332 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25333 shlibpath_var
=LD_LIBRARY_PATH
25334 shlibpath_overrides_runpath
=no
25335 # This implies no fast_install, which is unacceptable.
25336 # Some rework will be needed to allow for fast_install
25337 # before this can be enabled.
25338 hardcode_into_libs
=yes
25340 # Append ld.so.conf contents to the search path
25341 if test -f /etc
/ld.so.conf
; then
25342 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' ' '`
25343 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
25346 # We used to test for /lib/ld.so.1 and disable shared libraries on
25347 # powerpc, because MkLinux only supported shared libraries with the
25348 # GNU dynamic linker. Since this was broken with cross compilers,
25349 # most powerpc-linux boxes support dynamic linking these days and
25350 # people can always --disable-shared, the test was removed, and we
25351 # assume the GNU/Linux dynamic linker is in use.
25352 dynamic_linker
='GNU/Linux ld.so'
25359 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25360 soname_spec
='${libname}${release}${shared_ext}$major'
25361 shlibpath_var
=LD_LIBRARY_PATH
25362 shlibpath_overrides_runpath
=no
25363 hardcode_into_libs
=yes
25364 dynamic_linker
='GNU ld.so'
25371 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
25372 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25373 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25374 dynamic_linker
='NetBSD (a.out) ld.so'
25376 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25377 soname_spec
='${libname}${release}${shared_ext}$major'
25378 dynamic_linker
='NetBSD ld.elf_so'
25380 shlibpath_var
=LD_LIBRARY_PATH
25381 shlibpath_overrides_runpath
=yes
25382 hardcode_into_libs
=yes
25387 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25388 shlibpath_var
=LD_LIBRARY_PATH
25389 shlibpath_overrides_runpath
=yes
25396 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25397 soname_spec
='${libname}${release}${shared_ext}$major'
25398 shlibpath_var
=LD_LIBRARY_PATH
25399 shlibpath_overrides_runpath
=yes
25404 sys_lib_dlsearch_path_spec
="/usr/lib"
25406 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25408 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
25409 *) need_version
=no
;;
25411 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25412 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25413 shlibpath_var
=LD_LIBRARY_PATH
25414 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25416 openbsd2.
[89] | openbsd2.
[89].
*)
25417 shlibpath_overrides_runpath
=no
25420 shlibpath_overrides_runpath
=yes
25424 shlibpath_overrides_runpath
=yes
25429 libname_spec
='$name'
25432 library_names_spec
='$libname${shared_ext} $libname.a'
25433 dynamic_linker
='OS/2 ld.exe'
25434 shlibpath_var
=LIBPATH
25437 osf3
* | osf4
* | osf5
*)
25441 soname_spec
='${libname}${release}${shared_ext}$major'
25442 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25443 shlibpath_var
=LD_LIBRARY_PATH
25444 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25445 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
25452 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25453 soname_spec
='${libname}${release}${shared_ext}$major'
25454 shlibpath_var
=LD_LIBRARY_PATH
25455 shlibpath_overrides_runpath
=yes
25456 hardcode_into_libs
=yes
25457 # ldd complains unless libraries are executable
25458 postinstall_cmds
='chmod +x $lib'
25463 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25464 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25465 shlibpath_var
=LD_LIBRARY_PATH
25466 shlibpath_overrides_runpath
=yes
25467 if test "$with_gnu_ld" = yes; then
25475 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25476 soname_spec
='${libname}${release}${shared_ext}$major'
25477 shlibpath_var
=LD_LIBRARY_PATH
25478 case $host_vendor in
25480 shlibpath_overrides_runpath
=no
25482 export_dynamic_flag_spec
='${wl}-Blargedynsym'
25483 runpath_var
=LD_RUN_PATH
25491 shlibpath_overrides_runpath
=no
25492 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
25498 if test -d /usr
/nec
;then
25500 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25501 soname_spec
='$libname${shared_ext}.$major'
25502 shlibpath_var
=LD_LIBRARY_PATH
25506 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
25507 version_type
=freebsd-elf
25510 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25511 soname_spec
='${libname}${release}${shared_ext}$major'
25512 shlibpath_var
=LD_LIBRARY_PATH
25513 hardcode_into_libs
=yes
25514 if test "$with_gnu_ld" = yes; then
25515 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25516 shlibpath_overrides_runpath
=no
25518 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
25519 shlibpath_overrides_runpath
=yes
25522 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
25526 sys_lib_dlsearch_path_spec
='/usr/lib'
25531 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25532 soname_spec
='${libname}${release}${shared_ext}$major'
25533 shlibpath_var
=LD_LIBRARY_PATH
25540 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25541 echo "${ECHO_T}$dynamic_linker" >&6; }
25542 test "$dynamic_linker" = no
&& can_build_shared
=no
25544 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
25545 if test "$GCC" = yes; then
25546 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25549 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25550 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25551 hardcode_action_GCJ
=
25552 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25553 test -n "$runpath_var_GCJ" || \
25554 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25556 # We can hardcode non-existant directories.
25557 if test "$hardcode_direct_GCJ" != no
&&
25558 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25559 # have to relink, otherwise we might link with an installed library
25560 # when we should be linking with a yet-to-be-installed one
25561 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25562 test "$hardcode_minus_L_GCJ" != no
; then
25563 # Linking always hardcodes the temporary library directory.
25564 hardcode_action_GCJ
=relink
25566 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25567 hardcode_action_GCJ
=immediate
25570 # We cannot hardcode anything, or else we can only hardcode existing
25572 hardcode_action_GCJ
=unsupported
25574 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25575 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25577 if test "$hardcode_action_GCJ" = relink
; then
25578 # Fast installation is not supported
25579 enable_fast_install
=no
25580 elif test "$shlibpath_overrides_runpath" = yes ||
25581 test "$enable_shared" = no
; then
25582 # Fast installation is not necessary
25583 enable_fast_install
=needless
25587 # The else clause should only fire when bootstrapping the
25588 # libtool distribution, otherwise you forgot to ship ltmain.sh
25589 # with your package, and you will get complaints that there are
25590 # no rules to generate ltmain.sh.
25591 if test -f "$ltmain"; then
25592 # See if we are running on zsh, and set the options which allow our commands through
25593 # without removal of \ escapes.
25594 if test -n "${ZSH_VERSION+set}" ; then
25595 setopt NO_GLOB_SUBST
25597 # Now quote all the things that may contain metacharacters while being
25598 # careful not to overquote the AC_SUBSTed values. We take copies of the
25599 # variables and quote the copies for generation of the libtool script.
25600 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25602 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25603 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25604 deplibs_check_method reload_flag reload_cmds need_locks \
25605 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25606 lt_cv_sys_global_symbol_to_c_name_address \
25607 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25608 old_postinstall_cmds old_postuninstall_cmds \
25612 lt_prog_compiler_wl_GCJ \
25613 lt_prog_compiler_pic_GCJ \
25614 lt_prog_compiler_static_GCJ \
25615 lt_prog_compiler_no_builtin_flag_GCJ \
25616 export_dynamic_flag_spec_GCJ \
25617 thread_safe_flag_spec_GCJ \
25618 whole_archive_flag_spec_GCJ \
25619 enable_shared_with_static_runtimes_GCJ \
25620 old_archive_cmds_GCJ \
25621 old_archive_from_new_cmds_GCJ \
25622 predep_objects_GCJ \
25623 postdep_objects_GCJ \
25626 compiler_lib_search_path_GCJ \
25628 archive_expsym_cmds_GCJ \
25629 postinstall_cmds_GCJ \
25630 postuninstall_cmds_GCJ \
25631 old_archive_from_expsyms_cmds_GCJ \
25632 allow_undefined_flag_GCJ \
25633 no_undefined_flag_GCJ \
25634 export_symbols_cmds_GCJ \
25635 hardcode_libdir_flag_spec_GCJ \
25636 hardcode_libdir_flag_spec_ld_GCJ \
25637 hardcode_libdir_separator_GCJ \
25638 hardcode_automatic_GCJ \
25640 module_expsym_cmds_GCJ \
25641 lt_cv_prog_compiler_c_o_GCJ \
25642 exclude_expsyms_GCJ \
25643 include_expsyms_GCJ
; do
25646 old_archive_cmds_GCJ | \
25647 old_archive_from_new_cmds_GCJ | \
25648 archive_cmds_GCJ | \
25649 archive_expsym_cmds_GCJ | \
25650 module_cmds_GCJ | \
25651 module_expsym_cmds_GCJ | \
25652 old_archive_from_expsyms_cmds_GCJ | \
25653 export_symbols_cmds_GCJ | \
25654 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25655 postinstall_cmds | postuninstall_cmds | \
25656 old_postinstall_cmds | old_postuninstall_cmds | \
25657 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
25658 # Double-quote double-evaled strings.
25659 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25662 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25668 *'\$0 --fallback-echo"')
25669 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25675 cat <<__EOF__ >> "$cfgfile"
25676 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25678 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25680 # Shell to use when invoking shell scripts.
25683 # Whether or not to build shared libraries.
25684 build_libtool_libs=$enable_shared
25686 # Whether or not to build static libraries.
25687 build_old_libs=$enable_static
25689 # Whether or not to add -lc for building shared libraries.
25690 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25692 # Whether or not to disallow shared libs when runtime libs are static
25693 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25695 # Whether or not to optimize for fast installation.
25696 fast_install=$enable_fast_install
25699 host_alias=$host_alias
25703 # The build system.
25704 build_alias=$build_alias
25708 # An echo program that does not interpret backslashes.
25713 AR_FLAGS=$lt_AR_FLAGS
25718 # LTCC compiler flags.
25719 LTCFLAGS=$lt_LTCFLAGS
25721 # A language-specific compiler.
25722 CC=$lt_compiler_GCJ
25724 # Is the compiler the GNU C compiler?
25730 # The linker used to build libraries.
25733 # Whether we need hard or soft links.
25736 # A BSD-compatible nm program.
25739 # A symbol stripping program
25742 # Used to examine libraries when file_magic_cmd begins "file"
25743 MAGIC_CMD=$MAGIC_CMD
25745 # Used on cygwin: DLL creation program.
25748 # Used on cygwin: object dumper.
25751 # Used on cygwin: assembler.
25754 # The name of the directory that contains temporary libtool files.
25757 # How to create reloadable object files.
25758 reload_flag=$lt_reload_flag
25759 reload_cmds=$lt_reload_cmds
25761 # How to pass a linker flag through the compiler.
25762 wl=$lt_lt_prog_compiler_wl_GCJ
25764 # Object file suffix (normally "o").
25765 objext="$ac_objext"
25767 # Old archive suffix (normally "a").
25770 # Shared library suffix (normally ".so").
25771 shrext_cmds='$shrext_cmds'
25773 # Executable file suffix (normally "").
25776 # Additional compiler flags for building library objects.
25777 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25780 # What is the maximum length of a command?
25781 max_cmd_len=$lt_cv_sys_max_cmd_len
25783 # Does compiler simultaneously support -c and -o options?
25784 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25786 # Must we lock files when doing compilation?
25787 need_locks=$lt_need_locks
25789 # Do we need the lib prefix for modules?
25790 need_lib_prefix=$need_lib_prefix
25792 # Do we need a version for libraries?
25793 need_version=$need_version
25795 # Whether dlopen is supported.
25796 dlopen_support=$enable_dlopen
25798 # Whether dlopen of programs is supported.
25799 dlopen_self=$enable_dlopen_self
25801 # Whether dlopen of statically linked programs is supported.
25802 dlopen_self_static=$enable_dlopen_self_static
25804 # Compiler flag to prevent dynamic linking.
25805 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25807 # Compiler flag to turn off builtin functions.
25808 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25810 # Compiler flag to allow reflexive dlopens.
25811 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25813 # Compiler flag to generate shared objects directly from archives.
25814 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25816 # Compiler flag to generate thread-safe objects.
25817 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25819 # Library versioning type.
25820 version_type=$version_type
25822 # Format of library name prefix.
25823 libname_spec=$lt_libname_spec
25825 # List of archive names. First name is the real one, the rest are links.
25826 # The last name is the one that the linker finds with -lNAME.
25827 library_names_spec=$lt_library_names_spec
25829 # The coded name of the library, if different from the real name.
25830 soname_spec=$lt_soname_spec
25832 # Commands used to build and install an old-style archive.
25834 old_archive_cmds=$lt_old_archive_cmds_GCJ
25835 old_postinstall_cmds=$lt_old_postinstall_cmds
25836 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25838 # Create an old-style archive from a shared archive.
25839 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25841 # Create a temporary old-style archive to link instead of a shared archive.
25842 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25844 # Commands used to build and install a shared archive.
25845 archive_cmds=$lt_archive_cmds_GCJ
25846 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25847 postinstall_cmds=$lt_postinstall_cmds
25848 postuninstall_cmds=$lt_postuninstall_cmds
25850 # Commands used to build a loadable module (assumed same as above if empty)
25851 module_cmds=$lt_module_cmds_GCJ
25852 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25854 # Commands to strip libraries.
25855 old_striplib=$lt_old_striplib
25856 striplib=$lt_striplib
25858 # Dependencies to place before the objects being linked to create a
25860 predep_objects=$lt_predep_objects_GCJ
25862 # Dependencies to place after the objects being linked to create a
25864 postdep_objects=$lt_postdep_objects_GCJ
25866 # Dependencies to place before the objects being linked to create a
25868 predeps=$lt_predeps_GCJ
25870 # Dependencies to place after the objects being linked to create a
25872 postdeps=$lt_postdeps_GCJ
25874 # The library search path used internally by the compiler when linking
25875 # a shared library.
25876 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25878 # Method to check whether dependent libraries are shared objects.
25879 deplibs_check_method=$lt_deplibs_check_method
25881 # Command to use when deplibs_check_method == file_magic.
25882 file_magic_cmd=$lt_file_magic_cmd
25884 # Flag that allows shared libraries with undefined symbols to be built.
25885 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25887 # Flag that forces no undefined symbols.
25888 no_undefined_flag=$lt_no_undefined_flag_GCJ
25890 # Commands used to finish a libtool library installation in a directory.
25891 finish_cmds=$lt_finish_cmds
25893 # Same as above, but a single script fragment to be evaled but not shown.
25894 finish_eval=$lt_finish_eval
25896 # Take the output of nm and produce a listing of raw symbols and C names.
25897 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25899 # Transform the output of nm in a proper C declaration
25900 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25902 # Transform the output of nm in a C name address pair
25903 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25905 # This is the shared library runtime path variable.
25906 runpath_var=$runpath_var
25908 # This is the shared library path variable.
25909 shlibpath_var=$shlibpath_var
25911 # Is shlibpath searched before the hard-coded library search path?
25912 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25914 # How to hardcode a shared library path into an executable.
25915 hardcode_action=$hardcode_action_GCJ
25917 # Whether we should hardcode library paths into libraries.
25918 hardcode_into_libs=$hardcode_into_libs
25920 # Flag to hardcode \$libdir into a binary during linking.
25921 # This must work even if \$libdir does not exist.
25922 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25924 # If ld is used when linking, flag to hardcode \$libdir into
25925 # a binary during linking. This must work even if \$libdir does
25927 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25929 # Whether we need a single -rpath flag with a separated argument.
25930 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25932 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25933 # resulting binary.
25934 hardcode_direct=$hardcode_direct_GCJ
25936 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25937 # resulting binary.
25938 hardcode_minus_L=$hardcode_minus_L_GCJ
25940 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25941 # the resulting binary.
25942 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25944 # Set to yes if building a shared library automatically hardcodes DIR into the library
25945 # and all subsequent libraries and executables linked against it.
25946 hardcode_automatic=$hardcode_automatic_GCJ
25948 # Variables whose values should be saved in libtool wrapper scripts and
25949 # restored at relink time.
25950 variables_saved_for_relink="$variables_saved_for_relink"
25952 # Whether libtool must link a program against all its dependency libraries.
25953 link_all_deplibs=$link_all_deplibs_GCJ
25955 # Compile-time system search path for libraries
25956 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25958 # Run-time system search path for libraries
25959 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25961 # Fix the shell variable \$srcfile for the compiler.
25962 fix_srcfile_path="$fix_srcfile_path_GCJ"
25964 # Set to yes if exported symbols are required.
25965 always_export_symbols=$always_export_symbols_GCJ
25967 # The commands to list exported symbols.
25968 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25970 # The commands to extract the exported symbol list from a shared archive.
25971 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25973 # Symbols that should not be listed in the preloaded symbols.
25974 exclude_expsyms=$lt_exclude_expsyms_GCJ
25976 # Symbols that must always be exported.
25977 include_expsyms=$lt_include_expsyms_GCJ
25979 # ### END LIBTOOL TAG CONFIG: $tagname
25985 # If there is no Makefile yet, we rely on a make rule to execute
25986 # `config.status --recheck' to rerun these tests and create the
25987 # libtool script then.
25988 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25989 if test -f "$ltmain_in"; then
25990 test -f Makefile
&& make "$ltmain"
25996 ac_cpp
='$CPP $CPPFLAGS'
25997 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25998 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25999 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26010 ac_cpp
='$CPP $CPPFLAGS'
26011 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26012 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26013 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26016 # Source file extension for RC test sources.
26019 # Object file extension for compiled RC test sources.
26023 # Code to be used in simple compile tests
26024 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26026 # Code to be used in simple link tests
26027 lt_simple_link_test_code
="$lt_simple_compile_test_code"
26029 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26031 # If no C compiler was specified, use CC.
26034 # If no C compiler flags were specified, use CFLAGS.
26035 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
26037 # Allow CC to be a program name with arguments.
26041 # save warnings/boilerplate of simple test code
26042 ac_outfile
=conftest.
$ac_objext
26043 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
26044 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
26045 _lt_compiler_boilerplate
=`cat conftest.err`
26048 ac_outfile
=conftest.
$ac_objext
26049 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
26050 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
26051 _lt_linker_boilerplate
=`cat conftest.err`
26055 # Allow CC to be a program name with arguments.
26060 for cc_temp
in $compiler""; do
26062 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
26063 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
26068 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26070 lt_cv_prog_compiler_c_o_RC
=yes
26072 # The else clause should only fire when bootstrapping the
26073 # libtool distribution, otherwise you forgot to ship ltmain.sh
26074 # with your package, and you will get complaints that there are
26075 # no rules to generate ltmain.sh.
26076 if test -f "$ltmain"; then
26077 # See if we are running on zsh, and set the options which allow our commands through
26078 # without removal of \ escapes.
26079 if test -n "${ZSH_VERSION+set}" ; then
26080 setopt NO_GLOB_SUBST
26082 # Now quote all the things that may contain metacharacters while being
26083 # careful not to overquote the AC_SUBSTed values. We take copies of the
26084 # variables and quote the copies for generation of the libtool script.
26085 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26087 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26088 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26089 deplibs_check_method reload_flag reload_cmds need_locks \
26090 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26091 lt_cv_sys_global_symbol_to_c_name_address \
26092 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26093 old_postinstall_cmds old_postuninstall_cmds \
26097 lt_prog_compiler_wl_RC \
26098 lt_prog_compiler_pic_RC \
26099 lt_prog_compiler_static_RC \
26100 lt_prog_compiler_no_builtin_flag_RC \
26101 export_dynamic_flag_spec_RC \
26102 thread_safe_flag_spec_RC \
26103 whole_archive_flag_spec_RC \
26104 enable_shared_with_static_runtimes_RC \
26105 old_archive_cmds_RC \
26106 old_archive_from_new_cmds_RC \
26107 predep_objects_RC \
26108 postdep_objects_RC \
26111 compiler_lib_search_path_RC \
26113 archive_expsym_cmds_RC \
26114 postinstall_cmds_RC \
26115 postuninstall_cmds_RC \
26116 old_archive_from_expsyms_cmds_RC \
26117 allow_undefined_flag_RC \
26118 no_undefined_flag_RC \
26119 export_symbols_cmds_RC \
26120 hardcode_libdir_flag_spec_RC \
26121 hardcode_libdir_flag_spec_ld_RC \
26122 hardcode_libdir_separator_RC \
26123 hardcode_automatic_RC \
26125 module_expsym_cmds_RC \
26126 lt_cv_prog_compiler_c_o_RC \
26127 exclude_expsyms_RC \
26128 include_expsyms_RC
; do
26131 old_archive_cmds_RC | \
26132 old_archive_from_new_cmds_RC | \
26133 archive_cmds_RC | \
26134 archive_expsym_cmds_RC | \
26136 module_expsym_cmds_RC | \
26137 old_archive_from_expsyms_cmds_RC | \
26138 export_symbols_cmds_RC | \
26139 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26140 postinstall_cmds | postuninstall_cmds | \
26141 old_postinstall_cmds | old_postuninstall_cmds | \
26142 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
26143 # Double-quote double-evaled strings.
26144 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26147 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26153 *'\$0 --fallback-echo"')
26154 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26160 cat <<__EOF__ >> "$cfgfile"
26161 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26163 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26165 # Shell to use when invoking shell scripts.
26168 # Whether or not to build shared libraries.
26169 build_libtool_libs=$enable_shared
26171 # Whether or not to build static libraries.
26172 build_old_libs=$enable_static
26174 # Whether or not to add -lc for building shared libraries.
26175 build_libtool_need_lc=$archive_cmds_need_lc_RC
26177 # Whether or not to disallow shared libs when runtime libs are static
26178 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26180 # Whether or not to optimize for fast installation.
26181 fast_install=$enable_fast_install
26184 host_alias=$host_alias
26188 # The build system.
26189 build_alias=$build_alias
26193 # An echo program that does not interpret backslashes.
26198 AR_FLAGS=$lt_AR_FLAGS
26203 # LTCC compiler flags.
26204 LTCFLAGS=$lt_LTCFLAGS
26206 # A language-specific compiler.
26209 # Is the compiler the GNU C compiler?
26215 # The linker used to build libraries.
26218 # Whether we need hard or soft links.
26221 # A BSD-compatible nm program.
26224 # A symbol stripping program
26227 # Used to examine libraries when file_magic_cmd begins "file"
26228 MAGIC_CMD=$MAGIC_CMD
26230 # Used on cygwin: DLL creation program.
26233 # Used on cygwin: object dumper.
26236 # Used on cygwin: assembler.
26239 # The name of the directory that contains temporary libtool files.
26242 # How to create reloadable object files.
26243 reload_flag=$lt_reload_flag
26244 reload_cmds=$lt_reload_cmds
26246 # How to pass a linker flag through the compiler.
26247 wl=$lt_lt_prog_compiler_wl_RC
26249 # Object file suffix (normally "o").
26250 objext="$ac_objext"
26252 # Old archive suffix (normally "a").
26255 # Shared library suffix (normally ".so").
26256 shrext_cmds='$shrext_cmds'
26258 # Executable file suffix (normally "").
26261 # Additional compiler flags for building library objects.
26262 pic_flag=$lt_lt_prog_compiler_pic_RC
26265 # What is the maximum length of a command?
26266 max_cmd_len=$lt_cv_sys_max_cmd_len
26268 # Does compiler simultaneously support -c and -o options?
26269 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26271 # Must we lock files when doing compilation?
26272 need_locks=$lt_need_locks
26274 # Do we need the lib prefix for modules?
26275 need_lib_prefix=$need_lib_prefix
26277 # Do we need a version for libraries?
26278 need_version=$need_version
26280 # Whether dlopen is supported.
26281 dlopen_support=$enable_dlopen
26283 # Whether dlopen of programs is supported.
26284 dlopen_self=$enable_dlopen_self
26286 # Whether dlopen of statically linked programs is supported.
26287 dlopen_self_static=$enable_dlopen_self_static
26289 # Compiler flag to prevent dynamic linking.
26290 link_static_flag=$lt_lt_prog_compiler_static_RC
26292 # Compiler flag to turn off builtin functions.
26293 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26295 # Compiler flag to allow reflexive dlopens.
26296 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26298 # Compiler flag to generate shared objects directly from archives.
26299 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26301 # Compiler flag to generate thread-safe objects.
26302 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26304 # Library versioning type.
26305 version_type=$version_type
26307 # Format of library name prefix.
26308 libname_spec=$lt_libname_spec
26310 # List of archive names. First name is the real one, the rest are links.
26311 # The last name is the one that the linker finds with -lNAME.
26312 library_names_spec=$lt_library_names_spec
26314 # The coded name of the library, if different from the real name.
26315 soname_spec=$lt_soname_spec
26317 # Commands used to build and install an old-style archive.
26319 old_archive_cmds=$lt_old_archive_cmds_RC
26320 old_postinstall_cmds=$lt_old_postinstall_cmds
26321 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26323 # Create an old-style archive from a shared archive.
26324 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26326 # Create a temporary old-style archive to link instead of a shared archive.
26327 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26329 # Commands used to build and install a shared archive.
26330 archive_cmds=$lt_archive_cmds_RC
26331 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26332 postinstall_cmds=$lt_postinstall_cmds
26333 postuninstall_cmds=$lt_postuninstall_cmds
26335 # Commands used to build a loadable module (assumed same as above if empty)
26336 module_cmds=$lt_module_cmds_RC
26337 module_expsym_cmds=$lt_module_expsym_cmds_RC
26339 # Commands to strip libraries.
26340 old_striplib=$lt_old_striplib
26341 striplib=$lt_striplib
26343 # Dependencies to place before the objects being linked to create a
26345 predep_objects=$lt_predep_objects_RC
26347 # Dependencies to place after the objects being linked to create a
26349 postdep_objects=$lt_postdep_objects_RC
26351 # Dependencies to place before the objects being linked to create a
26353 predeps=$lt_predeps_RC
26355 # Dependencies to place after the objects being linked to create a
26357 postdeps=$lt_postdeps_RC
26359 # The library search path used internally by the compiler when linking
26360 # a shared library.
26361 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26363 # Method to check whether dependent libraries are shared objects.
26364 deplibs_check_method=$lt_deplibs_check_method
26366 # Command to use when deplibs_check_method == file_magic.
26367 file_magic_cmd=$lt_file_magic_cmd
26369 # Flag that allows shared libraries with undefined symbols to be built.
26370 allow_undefined_flag=$lt_allow_undefined_flag_RC
26372 # Flag that forces no undefined symbols.
26373 no_undefined_flag=$lt_no_undefined_flag_RC
26375 # Commands used to finish a libtool library installation in a directory.
26376 finish_cmds=$lt_finish_cmds
26378 # Same as above, but a single script fragment to be evaled but not shown.
26379 finish_eval=$lt_finish_eval
26381 # Take the output of nm and produce a listing of raw symbols and C names.
26382 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26384 # Transform the output of nm in a proper C declaration
26385 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26387 # Transform the output of nm in a C name address pair
26388 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26390 # This is the shared library runtime path variable.
26391 runpath_var=$runpath_var
26393 # This is the shared library path variable.
26394 shlibpath_var=$shlibpath_var
26396 # Is shlibpath searched before the hard-coded library search path?
26397 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26399 # How to hardcode a shared library path into an executable.
26400 hardcode_action=$hardcode_action_RC
26402 # Whether we should hardcode library paths into libraries.
26403 hardcode_into_libs=$hardcode_into_libs
26405 # Flag to hardcode \$libdir into a binary during linking.
26406 # This must work even if \$libdir does not exist.
26407 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26409 # If ld is used when linking, flag to hardcode \$libdir into
26410 # a binary during linking. This must work even if \$libdir does
26412 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26414 # Whether we need a single -rpath flag with a separated argument.
26415 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26417 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26418 # resulting binary.
26419 hardcode_direct=$hardcode_direct_RC
26421 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26422 # resulting binary.
26423 hardcode_minus_L=$hardcode_minus_L_RC
26425 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26426 # the resulting binary.
26427 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26429 # Set to yes if building a shared library automatically hardcodes DIR into the library
26430 # and all subsequent libraries and executables linked against it.
26431 hardcode_automatic=$hardcode_automatic_RC
26433 # Variables whose values should be saved in libtool wrapper scripts and
26434 # restored at relink time.
26435 variables_saved_for_relink="$variables_saved_for_relink"
26437 # Whether libtool must link a program against all its dependency libraries.
26438 link_all_deplibs=$link_all_deplibs_RC
26440 # Compile-time system search path for libraries
26441 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26443 # Run-time system search path for libraries
26444 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26446 # Fix the shell variable \$srcfile for the compiler.
26447 fix_srcfile_path="$fix_srcfile_path_RC"
26449 # Set to yes if exported symbols are required.
26450 always_export_symbols=$always_export_symbols_RC
26452 # The commands to list exported symbols.
26453 export_symbols_cmds=$lt_export_symbols_cmds_RC
26455 # The commands to extract the exported symbol list from a shared archive.
26456 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26458 # Symbols that should not be listed in the preloaded symbols.
26459 exclude_expsyms=$lt_exclude_expsyms_RC
26461 # Symbols that must always be exported.
26462 include_expsyms=$lt_include_expsyms_RC
26464 # ### END LIBTOOL TAG CONFIG: $tagname
26470 # If there is no Makefile yet, we rely on a make rule to execute
26471 # `config.status --recheck' to rerun these tests and create the
26472 # libtool script then.
26473 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26474 if test -f "$ltmain_in"; then
26475 test -f Makefile
&& make "$ltmain"
26481 ac_cpp
='$CPP $CPPFLAGS'
26482 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26483 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26484 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26491 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26492 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26493 { (exit 1); exit 1; }; }
26497 # Append the new tag name to the list of available tags.
26498 if test -n "$tagname" ; then
26499 available_tags
="$available_tags $tagname"
26505 # Now substitute the updated list of available tags.
26506 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26507 mv "${ofile}T" "$ofile"
26511 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26512 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26513 { (exit 1); exit 1; }; }
26519 # This can be used to rebuild libtool when needed
26520 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
26522 # Always use our own libtool.
26523 LIBTOOL
='$(SHELL) $(top_builddir)/mklib'
26525 # Prevent multiple expansion
26547 if test "$lt_cv_dlopen_self" = "yes" ; then
26549 cat >>confdefs.h
<<\_ACEOF
26550 #define CAN_DLOPEN_SELF 1
26555 etags_version
=`$ETAGS --version 2>&1`
26556 case "$etags_version" in
26557 *Eexuberant
*) ETAGSFLAGS
="--language-force=c++" ;;
26558 *GNU\ Emacs
*) ETAGSFLAGS
="-l c++" ;;
26559 *) ETAGSFLAGS
="" ;;
26561 ETAGSFLAGS
=$ETAGSFLAGS
26564 if test "$WITH_LLVMGCCDIR" = "default" ; then
26565 LLVMGCC
="llvm-gcc${EXEEXT}"
26566 LLVMGXX
="llvm-g++${EXEEXT}"
26567 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26568 set dummy
$LLVMGCC; ac_word
=$2
26569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26571 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26572 echo $ECHO_N "(cached) $ECHO_C" >&6
26576 ac_cv_path_LLVMGCC
="$LLVMGCC" # Let the user override the test with a path.
26579 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26580 for as_dir
in $PATH
26583 test -z "$as_dir" && as_dir
=.
26584 for ac_exec_ext
in '' $ac_executable_extensions; do
26585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26586 ac_cv_path_LLVMGCC
="$as_dir/$ac_word$ac_exec_ext"
26587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26597 LLVMGCC
=$ac_cv_path_LLVMGCC
26598 if test -n "$LLVMGCC"; then
26599 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26600 echo "${ECHO_T}$LLVMGCC" >&6; }
26602 { echo "$as_me:$LINENO: result: no" >&5
26603 echo "${ECHO_T}no" >&6; }
26607 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26608 set dummy
$LLVMGXX; ac_word
=$2
26609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26611 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26612 echo $ECHO_N "(cached) $ECHO_C" >&6
26616 ac_cv_path_LLVMGXX
="$LLVMGXX" # Let the user override the test with a path.
26619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26620 for as_dir
in $PATH
26623 test -z "$as_dir" && as_dir
=.
26624 for ac_exec_ext
in '' $ac_executable_extensions; do
26625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26626 ac_cv_path_LLVMGXX
="$as_dir/$ac_word$ac_exec_ext"
26627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26637 LLVMGXX
=$ac_cv_path_LLVMGXX
26638 if test -n "$LLVMGXX"; then
26639 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26640 echo "${ECHO_T}$LLVMGXX" >&6; }
26642 { echo "$as_me:$LINENO: result: no" >&5
26643 echo "${ECHO_T}no" >&6; }
26648 LLVMGCC
="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26649 LLVMGXX
="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26656 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26657 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26670 if test "$GCC" != "yes" && test "$ICC" != "yes"
26672 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26673 echo "$as_me: error: gcc|icc required but not found" >&2;}
26674 { (exit 1); exit 1; }; }
26677 if test "$GXX" != "yes" && test "$IXX" != "yes"
26679 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26680 echo "$as_me: error: g++|icc required but not found" >&2;}
26681 { (exit 1); exit 1; }; }
26684 if test "$GCC" = "yes"
26686 gccmajor
=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26687 if test "$gccmajor" -lt "3"
26689 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26690 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26691 { (exit 1); exit 1; }; }
26695 if test -z "$llvm_cv_gnu_make_command"
26697 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26698 echo "$as_me: error: GNU Make required but not found" >&2;}
26699 { (exit 1); exit 1; }; }
26702 { echo "$as_me:$LINENO: result: ok" >&5
26703 echo "${ECHO_T}ok" >&6; }
26707 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26708 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26709 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26710 echo $ECHO_N "(cached) $ECHO_C" >&6
26712 ac_check_lib_save_LIBS
=$LIBS
26714 cat >conftest.
$ac_ext <<_ACEOF
26717 cat confdefs.h
>>conftest.
$ac_ext
26718 cat >>conftest.
$ac_ext <<_ACEOF
26719 /* end confdefs.h. */
26721 /* Override any GCC internal prototype to avoid an error.
26722 Use char because int might match the return type of a GCC
26723 builtin and then its argument prototype would still apply. */
26731 return elf_begin ();
26736 rm -f conftest.
$ac_objext conftest
$ac_exeext
26737 if { (ac_try
="$ac_link"
26738 case "(($ac_try" in
26739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26740 *) ac_try_echo=$ac_try;;
26742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26743 (eval "$ac_link") 2>conftest.er1
26745 grep -v '^ *+' conftest.er1 >conftest.err
26747 cat conftest.err >&5
26748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26749 (exit $ac_status); } &&
26750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26751 { (case "(($ac_try" in
26752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26753 *) ac_try_echo
=$ac_try;;
26755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26756 (eval "$ac_try") 2>&5
26758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26759 (exit $ac_status); }; } &&
26760 { ac_try
='test -s conftest$ac_exeext'
26761 { (case "(($ac_try" in
26762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26763 *) ac_try_echo=$ac_try;;
26765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26766 (eval "$ac_try") 2>&5
26768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26769 (exit $ac_status); }; }; then
26770 ac_cv_lib_elf_elf_begin=yes
26772 echo "$as_me: failed program was:" >&5
26773 sed 's/^/| /' conftest.$ac_ext >&5
26775 ac_cv_lib_elf_elf_begin=no
26778 rm -f core conftest.err conftest.$ac_objext \
26779 conftest$ac_exeext conftest.$ac_ext
26780 LIBS=$ac_check_lib_save_LIBS
26782 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26783 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26784 if test $ac_cv_lib_elf_elf_begin = yes; then
26785 cat >>confdefs.h <<_ACEOF
26786 #define HAVE_LIBELF 1
26794 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26795 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26796 if test "${ac_cv_lib_m_sin+set}" = set; then
26797 echo $ECHO_N "(cached) $ECHO_C" >&6
26799 ac_check_lib_save_LIBS=$LIBS
26801 cat >conftest.$ac_ext <<_ACEOF
26804 cat confdefs.h >>conftest.$ac_ext
26805 cat >>conftest.$ac_ext <<_ACEOF
26806 /* end confdefs.h. */
26808 /* Override any GCC internal prototype to avoid an error.
26809 Use char because int might match the return type of a GCC
26810 builtin and then its argument prototype would still apply. */
26823 rm -f conftest.$ac_objext conftest$ac_exeext
26824 if { (ac_try="$ac_link"
26825 case "(($ac_try" in
26826 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26827 *) ac_try_echo
=$ac_try;;
26829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26830 (eval "$ac_link") 2>conftest.er1
26832 grep -v '^ *+' conftest.er1
>conftest.err
26834 cat conftest.err
>&5
26835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836 (exit $ac_status); } &&
26837 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26838 { (case "(($ac_try" in
26839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26840 *) ac_try_echo=$ac_try;;
26842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26843 (eval "$ac_try") 2>&5
26845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846 (exit $ac_status); }; } &&
26847 { ac_try='test -s conftest$ac_exeext'
26848 { (case "(($ac_try" in
26849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26850 *) ac_try_echo
=$ac_try;;
26852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26853 (eval "$ac_try") 2>&5
26855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); }; }; then
26857 ac_cv_lib_m_sin
=yes
26859 echo "$as_me: failed program was:" >&5
26860 sed 's/^/| /' conftest.
$ac_ext >&5
26865 rm -f core conftest.err conftest.
$ac_objext \
26866 conftest
$ac_exeext conftest.
$ac_ext
26867 LIBS
=$ac_check_lib_save_LIBS
26869 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26870 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26871 if test $ac_cv_lib_m_sin = yes; then
26872 cat >>confdefs.h
<<_ACEOF
26873 #define HAVE_LIBM 1
26880 if test "$llvm_cv_os_type" == "MingW" ; then
26882 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26883 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26884 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26885 echo $ECHO_N "(cached) $ECHO_C" >&6
26887 ac_check_lib_save_LIBS
=$LIBS
26888 LIBS
="-limagehlp $LIBS"
26889 cat >conftest.
$ac_ext <<_ACEOF
26892 cat confdefs.h
>>conftest.
$ac_ext
26893 cat >>conftest.
$ac_ext <<_ACEOF
26894 /* end confdefs.h. */
26905 rm -f conftest.
$ac_objext conftest
$ac_exeext
26906 if { (ac_try
="$ac_link"
26907 case "(($ac_try" in
26908 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26909 *) ac_try_echo=$ac_try;;
26911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26912 (eval "$ac_link") 2>conftest.er1
26914 grep -v '^ *+' conftest.er1 >conftest.err
26916 cat conftest.err >&5
26917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918 (exit $ac_status); } &&
26919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26920 { (case "(($ac_try" in
26921 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26922 *) ac_try_echo
=$ac_try;;
26924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26925 (eval "$ac_try") 2>&5
26927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928 (exit $ac_status); }; } &&
26929 { ac_try
='test -s conftest$ac_exeext'
26930 { (case "(($ac_try" in
26931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26932 *) ac_try_echo=$ac_try;;
26934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26935 (eval "$ac_try") 2>&5
26937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938 (exit $ac_status); }; }; then
26939 ac_cv_lib_imagehlp_main=yes
26941 echo "$as_me: failed program was:" >&5
26942 sed 's/^/| /' conftest.$ac_ext >&5
26944 ac_cv_lib_imagehlp_main=no
26947 rm -f core conftest.err conftest.$ac_objext \
26948 conftest$ac_exeext conftest.$ac_ext
26949 LIBS=$ac_check_lib_save_LIBS
26951 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26952 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26953 if test $ac_cv_lib_imagehlp_main = yes; then
26954 cat >>confdefs.h <<_ACEOF
26955 #define HAVE_LIBIMAGEHLP 1
26958 LIBS="-limagehlp $LIBS"
26963 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26964 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26965 if test "${ac_cv_lib_psapi_main+set}" = set; then
26966 echo $ECHO_N "(cached) $ECHO_C" >&6
26968 ac_check_lib_save_LIBS=$LIBS
26969 LIBS="-lpsapi $LIBS"
26970 cat >conftest.$ac_ext <<_ACEOF
26973 cat confdefs.h >>conftest.$ac_ext
26974 cat >>conftest.$ac_ext <<_ACEOF
26975 /* end confdefs.h. */
26986 rm -f conftest.$ac_objext conftest$ac_exeext
26987 if { (ac_try="$ac_link"
26988 case "(($ac_try" in
26989 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26990 *) ac_try_echo
=$ac_try;;
26992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26993 (eval "$ac_link") 2>conftest.er1
26995 grep -v '^ *+' conftest.er1
>conftest.err
26997 cat conftest.err
>&5
26998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999 (exit $ac_status); } &&
27000 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27001 { (case "(($ac_try" in
27002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27003 *) ac_try_echo=$ac_try;;
27005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27006 (eval "$ac_try") 2>&5
27008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009 (exit $ac_status); }; } &&
27010 { ac_try='test -s conftest$ac_exeext'
27011 { (case "(($ac_try" in
27012 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27013 *) ac_try_echo
=$ac_try;;
27015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27016 (eval "$ac_try") 2>&5
27018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019 (exit $ac_status); }; }; then
27020 ac_cv_lib_psapi_main
=yes
27022 echo "$as_me: failed program was:" >&5
27023 sed 's/^/| /' conftest.
$ac_ext >&5
27025 ac_cv_lib_psapi_main
=no
27028 rm -f core conftest.err conftest.
$ac_objext \
27029 conftest
$ac_exeext conftest.
$ac_ext
27030 LIBS
=$ac_check_lib_save_LIBS
27032 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27033 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27034 if test $ac_cv_lib_psapi_main = yes; then
27035 cat >>confdefs.h
<<_ACEOF
27036 #define HAVE_LIBPSAPI 1
27039 LIBS
="-lpsapi $LIBS"
27045 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27046 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27047 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27048 echo $ECHO_N "(cached) $ECHO_C" >&6
27050 ac_func_search_save_LIBS
=$LIBS
27051 cat >conftest.
$ac_ext <<_ACEOF
27054 cat confdefs.h
>>conftest.
$ac_ext
27055 cat >>conftest.
$ac_ext <<_ACEOF
27056 /* end confdefs.h. */
27058 /* Override any GCC internal prototype to avoid an error.
27059 Use char because int might match the return type of a GCC
27060 builtin and then its argument prototype would still apply. */
27068 return lt_dlopen ();
27073 for ac_lib
in '' ltdl
; do
27074 if test -z "$ac_lib"; then
27075 ac_res
="none required"
27078 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27080 rm -f conftest.
$ac_objext conftest
$ac_exeext
27081 if { (ac_try
="$ac_link"
27082 case "(($ac_try" in
27083 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27084 *) ac_try_echo=$ac_try;;
27086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27087 (eval "$ac_link") 2>conftest.er1
27089 grep -v '^ *+' conftest.er1 >conftest.err
27091 cat conftest.err >&5
27092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093 (exit $ac_status); } &&
27094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27095 { (case "(($ac_try" in
27096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27097 *) ac_try_echo
=$ac_try;;
27099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27100 (eval "$ac_try") 2>&5
27102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103 (exit $ac_status); }; } &&
27104 { ac_try
='test -s conftest$ac_exeext'
27105 { (case "(($ac_try" in
27106 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27107 *) ac_try_echo=$ac_try;;
27109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110 (eval "$ac_try") 2>&5
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); }; }; then
27114 ac_cv_search_lt_dlopen=$ac_res
27116 echo "$as_me: failed program was:" >&5
27117 sed 's/^/| /' conftest.$ac_ext >&5
27122 rm -f core conftest.err conftest.$ac_objext \
27124 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27128 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27131 ac_cv_search_lt_dlopen=no
27133 rm conftest.$ac_ext
27134 LIBS=$ac_func_search_save_LIBS
27136 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27137 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27138 ac_res=$ac_cv_search_lt_dlopen
27139 if test "$ac_res" != no; then
27140 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27142 cat >>confdefs.h <<\_ACEOF
27143 #define HAVE_LT_DLOPEN 1
27147 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27148 not be available" >&5
27149 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27150 not be available" >&2;}
27154 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27155 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27156 if test "${ac_cv_search_dlopen+set}" = set; then
27157 echo $ECHO_N "(cached) $ECHO_C" >&6
27159 ac_func_search_save_LIBS=$LIBS
27160 cat >conftest.$ac_ext <<_ACEOF
27163 cat confdefs.h >>conftest.$ac_ext
27164 cat >>conftest.$ac_ext <<_ACEOF
27165 /* end confdefs.h. */
27167 /* Override any GCC internal prototype to avoid an error.
27168 Use char because int might match the return type of a GCC
27169 builtin and then its argument prototype would still apply. */
27182 for ac_lib in '' dl; do
27183 if test -z "$ac_lib"; then
27184 ac_res="none required"
27187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27189 rm -f conftest.$ac_objext conftest$ac_exeext
27190 if { (ac_try="$ac_link"
27191 case "(($ac_try" in
27192 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27193 *) ac_try_echo
=$ac_try;;
27195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27196 (eval "$ac_link") 2>conftest.er1
27198 grep -v '^ *+' conftest.er1
>conftest.err
27200 cat conftest.err
>&5
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); } &&
27203 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27204 { (case "(($ac_try" in
27205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27206 *) ac_try_echo=$ac_try;;
27208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27209 (eval "$ac_try") 2>&5
27211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27212 (exit $ac_status); }; } &&
27213 { ac_try='test -s conftest$ac_exeext'
27214 { (case "(($ac_try" in
27215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27216 *) ac_try_echo
=$ac_try;;
27218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27219 (eval "$ac_try") 2>&5
27221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222 (exit $ac_status); }; }; then
27223 ac_cv_search_dlopen
=$ac_res
27225 echo "$as_me: failed program was:" >&5
27226 sed 's/^/| /' conftest.
$ac_ext >&5
27231 rm -f core conftest.err conftest.
$ac_objext \
27233 if test "${ac_cv_search_dlopen+set}" = set; then
27237 if test "${ac_cv_search_dlopen+set}" = set; then
27240 ac_cv_search_dlopen
=no
27242 rm conftest.
$ac_ext
27243 LIBS
=$ac_func_search_save_LIBS
27245 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27246 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27247 ac_res
=$ac_cv_search_dlopen
27248 if test "$ac_res" != no
; then
27249 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27251 cat >>confdefs.h
<<\_ACEOF
27252 #define HAVE_DLOPEN 1
27256 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27257 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27261 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27262 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27263 if test "${ac_cv_search_mallinfo+set}" = set; then
27264 echo $ECHO_N "(cached) $ECHO_C" >&6
27266 ac_func_search_save_LIBS
=$LIBS
27267 cat >conftest.
$ac_ext <<_ACEOF
27270 cat confdefs.h
>>conftest.
$ac_ext
27271 cat >>conftest.
$ac_ext <<_ACEOF
27272 /* end confdefs.h. */
27274 /* Override any GCC internal prototype to avoid an error.
27275 Use char because int might match the return type of a GCC
27276 builtin and then its argument prototype would still apply. */
27284 return mallinfo ();
27289 for ac_lib
in '' malloc
; do
27290 if test -z "$ac_lib"; then
27291 ac_res
="none required"
27294 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27296 rm -f conftest.
$ac_objext conftest
$ac_exeext
27297 if { (ac_try
="$ac_link"
27298 case "(($ac_try" in
27299 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27300 *) ac_try_echo=$ac_try;;
27302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27303 (eval "$ac_link") 2>conftest.er1
27305 grep -v '^ *+' conftest.er1 >conftest.err
27307 cat conftest.err >&5
27308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27309 (exit $ac_status); } &&
27310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27311 { (case "(($ac_try" in
27312 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27313 *) ac_try_echo
=$ac_try;;
27315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27316 (eval "$ac_try") 2>&5
27318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319 (exit $ac_status); }; } &&
27320 { ac_try
='test -s conftest$ac_exeext'
27321 { (case "(($ac_try" in
27322 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27323 *) ac_try_echo=$ac_try;;
27325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27326 (eval "$ac_try") 2>&5
27328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27329 (exit $ac_status); }; }; then
27330 ac_cv_search_mallinfo=$ac_res
27332 echo "$as_me: failed program was:" >&5
27333 sed 's/^/| /' conftest.$ac_ext >&5
27338 rm -f core conftest.err conftest.$ac_objext \
27340 if test "${ac_cv_search_mallinfo+set}" = set; then
27344 if test "${ac_cv_search_mallinfo+set}" = set; then
27347 ac_cv_search_mallinfo=no
27349 rm conftest.$ac_ext
27350 LIBS=$ac_func_search_save_LIBS
27352 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27353 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27354 ac_res=$ac_cv_search_mallinfo
27355 if test "$ac_res" != no; then
27356 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27358 cat >>confdefs.h <<\_ACEOF
27359 #define HAVE_MALLINFO 1
27365 if test "$ENABLE_THREADS" -eq 1 ; then
27367 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27368 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27369 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27370 echo $ECHO_N "(cached) $ECHO_C" >&6
27372 ac_check_lib_save_LIBS=$LIBS
27373 LIBS="-lpthread $LIBS"
27374 cat >conftest.$ac_ext <<_ACEOF
27377 cat confdefs.h >>conftest.$ac_ext
27378 cat >>conftest.$ac_ext <<_ACEOF
27379 /* end confdefs.h. */
27381 /* Override any GCC internal prototype to avoid an error.
27382 Use char because int might match the return type of a GCC
27383 builtin and then its argument prototype would still apply. */
27387 char pthread_mutex_init ();
27391 return pthread_mutex_init ();
27396 rm -f conftest.$ac_objext conftest$ac_exeext
27397 if { (ac_try="$ac_link"
27398 case "(($ac_try" in
27399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27400 *) ac_try_echo
=$ac_try;;
27402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27403 (eval "$ac_link") 2>conftest.er1
27405 grep -v '^ *+' conftest.er1
>conftest.err
27407 cat conftest.err
>&5
27408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409 (exit $ac_status); } &&
27410 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27411 { (case "(($ac_try" in
27412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27413 *) ac_try_echo=$ac_try;;
27415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27416 (eval "$ac_try") 2>&5
27418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27419 (exit $ac_status); }; } &&
27420 { ac_try='test -s conftest$ac_exeext'
27421 { (case "(($ac_try" in
27422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27423 *) ac_try_echo
=$ac_try;;
27425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27426 (eval "$ac_try") 2>&5
27428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27429 (exit $ac_status); }; }; then
27430 ac_cv_lib_pthread_pthread_mutex_init
=yes
27432 echo "$as_me: failed program was:" >&5
27433 sed 's/^/| /' conftest.
$ac_ext >&5
27435 ac_cv_lib_pthread_pthread_mutex_init
=no
27438 rm -f core conftest.err conftest.
$ac_objext \
27439 conftest
$ac_exeext conftest.
$ac_ext
27440 LIBS
=$ac_check_lib_save_LIBS
27442 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27443 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27444 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27445 cat >>confdefs.h
<<_ACEOF
27446 #define HAVE_LIBPTHREAD 1
27449 LIBS
="-lpthread $LIBS"
27453 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27454 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27455 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27456 echo $ECHO_N "(cached) $ECHO_C" >&6
27458 ac_func_search_save_LIBS
=$LIBS
27459 cat >conftest.
$ac_ext <<_ACEOF
27462 cat confdefs.h
>>conftest.
$ac_ext
27463 cat >>conftest.
$ac_ext <<_ACEOF
27464 /* end confdefs.h. */
27466 /* Override any GCC internal prototype to avoid an error.
27467 Use char because int might match the return type of a GCC
27468 builtin and then its argument prototype would still apply. */
27472 char pthread_mutex_lock ();
27476 return pthread_mutex_lock ();
27481 for ac_lib
in '' pthread
; do
27482 if test -z "$ac_lib"; then
27483 ac_res
="none required"
27486 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27488 rm -f conftest.
$ac_objext conftest
$ac_exeext
27489 if { (ac_try
="$ac_link"
27490 case "(($ac_try" in
27491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27492 *) ac_try_echo=$ac_try;;
27494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27495 (eval "$ac_link") 2>conftest.er1
27497 grep -v '^ *+' conftest.er1 >conftest.err
27499 cat conftest.err >&5
27500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27501 (exit $ac_status); } &&
27502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27503 { (case "(($ac_try" in
27504 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27505 *) ac_try_echo
=$ac_try;;
27507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27508 (eval "$ac_try") 2>&5
27510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511 (exit $ac_status); }; } &&
27512 { ac_try
='test -s conftest$ac_exeext'
27513 { (case "(($ac_try" in
27514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27515 *) ac_try_echo=$ac_try;;
27517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27518 (eval "$ac_try") 2>&5
27520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521 (exit $ac_status); }; }; then
27522 ac_cv_search_pthread_mutex_lock=$ac_res
27524 echo "$as_me: failed program was:" >&5
27525 sed 's/^/| /' conftest.$ac_ext >&5
27530 rm -f core conftest.err conftest.$ac_objext \
27532 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27536 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27539 ac_cv_search_pthread_mutex_lock=no
27541 rm conftest.$ac_ext
27542 LIBS=$ac_func_search_save_LIBS
27544 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27545 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27546 ac_res=$ac_cv_search_pthread_mutex_lock
27547 if test "$ac_res" != no; then
27548 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27550 cat >>confdefs.h <<\_ACEOF
27551 #define HAVE_PTHREAD_MUTEX_LOCK 1
27564 ac_header_dirent=no
27565 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27566 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
27567 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27568 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27570 echo $ECHO_N "(cached) $ECHO_C" >&6
27572 cat >conftest.$ac_ext <<_ACEOF
27575 cat confdefs.h >>conftest.$ac_ext
27576 cat >>conftest.$ac_ext <<_ACEOF
27577 /* end confdefs.h. */
27578 #include <sys/types.h>
27590 rm -f conftest.$ac_objext
27591 if { (ac_try="$ac_compile"
27592 case "(($ac_try" in
27593 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27594 *) ac_try_echo
=$ac_try;;
27596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27597 (eval "$ac_compile") 2>conftest.er1
27599 grep -v '^ *+' conftest.er1
>conftest.err
27601 cat conftest.err
>&5
27602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27603 (exit $ac_status); } &&
27604 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27605 { (case "(($ac_try" in
27606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27607 *) ac_try_echo=$ac_try;;
27609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27610 (eval "$ac_try") 2>&5
27612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27613 (exit $ac_status); }; } &&
27614 { ac_try='test -s conftest.$ac_objext'
27615 { (case "(($ac_try" in
27616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27617 *) ac_try_echo
=$ac_try;;
27619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27620 (eval "$ac_try") 2>&5
27622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623 (exit $ac_status); }; }; then
27624 eval "$as_ac_Header=yes"
27626 echo "$as_me: failed program was:" >&5
27627 sed 's/^/| /' conftest.
$ac_ext >&5
27629 eval "$as_ac_Header=no"
27632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27634 ac_res
=`eval echo '${'$as_ac_Header'}'`
27635 { echo "$as_me:$LINENO: result: $ac_res" >&5
27636 echo "${ECHO_T}$ac_res" >&6; }
27637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27638 cat >>confdefs.h
<<_ACEOF
27639 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27642 ac_header_dirent
=$ac_hdr; break
27646 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27647 if test $ac_header_dirent = dirent.h
; then
27648 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27649 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27650 if test "${ac_cv_search_opendir+set}" = set; then
27651 echo $ECHO_N "(cached) $ECHO_C" >&6
27653 ac_func_search_save_LIBS
=$LIBS
27654 cat >conftest.
$ac_ext <<_ACEOF
27657 cat confdefs.h
>>conftest.
$ac_ext
27658 cat >>conftest.
$ac_ext <<_ACEOF
27659 /* end confdefs.h. */
27661 /* Override any GCC internal prototype to avoid an error.
27662 Use char because int might match the return type of a GCC
27663 builtin and then its argument prototype would still apply. */
27676 for ac_lib
in '' dir
; do
27677 if test -z "$ac_lib"; then
27678 ac_res
="none required"
27681 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27683 rm -f conftest.
$ac_objext conftest
$ac_exeext
27684 if { (ac_try
="$ac_link"
27685 case "(($ac_try" in
27686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27687 *) ac_try_echo=$ac_try;;
27689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27690 (eval "$ac_link") 2>conftest.er1
27692 grep -v '^ *+' conftest.er1 >conftest.err
27694 cat conftest.err >&5
27695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696 (exit $ac_status); } &&
27697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27698 { (case "(($ac_try" in
27699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27700 *) ac_try_echo
=$ac_try;;
27702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27703 (eval "$ac_try") 2>&5
27705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706 (exit $ac_status); }; } &&
27707 { ac_try
='test -s conftest$ac_exeext'
27708 { (case "(($ac_try" in
27709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27710 *) ac_try_echo=$ac_try;;
27712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27713 (eval "$ac_try") 2>&5
27715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716 (exit $ac_status); }; }; then
27717 ac_cv_search_opendir=$ac_res
27719 echo "$as_me: failed program was:" >&5
27720 sed 's/^/| /' conftest.$ac_ext >&5
27725 rm -f core conftest.err conftest.$ac_objext \
27727 if test "${ac_cv_search_opendir+set}" = set; then
27731 if test "${ac_cv_search_opendir+set}" = set; then
27734 ac_cv_search_opendir=no
27736 rm conftest.$ac_ext
27737 LIBS=$ac_func_search_save_LIBS
27739 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27740 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27741 ac_res=$ac_cv_search_opendir
27742 if test "$ac_res" != no; then
27743 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27748 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27749 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27750 if test "${ac_cv_search_opendir+set}" = set; then
27751 echo $ECHO_N "(cached) $ECHO_C" >&6
27753 ac_func_search_save_LIBS=$LIBS
27754 cat >conftest.$ac_ext <<_ACEOF
27757 cat confdefs.h >>conftest.$ac_ext
27758 cat >>conftest.$ac_ext <<_ACEOF
27759 /* end confdefs.h. */
27761 /* Override any GCC internal prototype to avoid an error.
27762 Use char because int might match the return type of a GCC
27763 builtin and then its argument prototype would still apply. */
27776 for ac_lib in '' x; do
27777 if test -z "$ac_lib"; then
27778 ac_res="none required"
27781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27783 rm -f conftest.$ac_objext conftest$ac_exeext
27784 if { (ac_try="$ac_link"
27785 case "(($ac_try" in
27786 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27787 *) ac_try_echo
=$ac_try;;
27789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27790 (eval "$ac_link") 2>conftest.er1
27792 grep -v '^ *+' conftest.er1
>conftest.err
27794 cat conftest.err
>&5
27795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); } &&
27797 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27798 { (case "(($ac_try" in
27799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27800 *) ac_try_echo=$ac_try;;
27802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27803 (eval "$ac_try") 2>&5
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); }; } &&
27807 { ac_try='test -s conftest$ac_exeext'
27808 { (case "(($ac_try" in
27809 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27810 *) ac_try_echo
=$ac_try;;
27812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27813 (eval "$ac_try") 2>&5
27815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816 (exit $ac_status); }; }; then
27817 ac_cv_search_opendir
=$ac_res
27819 echo "$as_me: failed program was:" >&5
27820 sed 's/^/| /' conftest.
$ac_ext >&5
27825 rm -f core conftest.err conftest.
$ac_objext \
27827 if test "${ac_cv_search_opendir+set}" = set; then
27831 if test "${ac_cv_search_opendir+set}" = set; then
27834 ac_cv_search_opendir
=no
27836 rm conftest.
$ac_ext
27837 LIBS
=$ac_func_search_save_LIBS
27839 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27840 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27841 ac_res
=$ac_cv_search_opendir
27842 if test "$ac_res" != no
; then
27843 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27849 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27850 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
27851 if test "${ac_cv_header_mmap_anon+set}" = set; then
27852 echo $ECHO_N "(cached) $ECHO_C" >&6
27855 ac_cpp
='$CPP $CPPFLAGS'
27856 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27857 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27858 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
27860 cat >conftest.
$ac_ext <<_ACEOF
27863 cat confdefs.h
>>conftest.
$ac_ext
27864 cat >>conftest.
$ac_ext <<_ACEOF
27865 /* end confdefs.h. */
27866 #include <sys/mman.h>
27867 #include <unistd.h>
27872 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27877 rm -f conftest.
$ac_objext
27878 if { (ac_try
="$ac_compile"
27879 case "(($ac_try" in
27880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27881 *) ac_try_echo=$ac_try;;
27883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27884 (eval "$ac_compile") 2>conftest.er1
27886 grep -v '^ *+' conftest.er1 >conftest.err
27888 cat conftest.err >&5
27889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890 (exit $ac_status); } &&
27891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27892 { (case "(($ac_try" in
27893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27894 *) ac_try_echo
=$ac_try;;
27896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27897 (eval "$ac_try") 2>&5
27899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27900 (exit $ac_status); }; } &&
27901 { ac_try
='test -s conftest.$ac_objext'
27902 { (case "(($ac_try" in
27903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27904 *) ac_try_echo=$ac_try;;
27906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27907 (eval "$ac_try") 2>&5
27909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27910 (exit $ac_status); }; }; then
27911 ac_cv_header_mmap_anon=yes
27913 echo "$as_me: failed program was:" >&5
27914 sed 's/^/| /' conftest.$ac_ext >&5
27916 ac_cv_header_mmap_anon=no
27919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27921 ac_cpp='$CPP $CPPFLAGS'
27922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27928 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27929 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
27930 if test "$ac_cv_header_mmap_anon" = yes; then
27932 cat >>confdefs.h <<\_ACEOF
27933 #define HAVE_MMAP_ANONYMOUS 1
27938 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27939 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
27940 if test "${ac_cv_header_stat_broken+set}" = set; then
27941 echo $ECHO_N "(cached) $ECHO_C" >&6
27943 cat >conftest.$ac_ext <<_ACEOF
27946 cat confdefs.h >>conftest.$ac_ext
27947 cat >>conftest.$ac_ext <<_ACEOF
27948 /* end confdefs.h. */
27949 #include <sys/types.h>
27950 #include <sys/stat.h>
27952 #if defined S_ISBLK && defined S_IFDIR
27953 # if S_ISBLK (S_IFDIR)
27958 #if defined S_ISBLK && defined S_IFCHR
27959 # if S_ISBLK (S_IFCHR)
27964 #if defined S_ISLNK && defined S_IFREG
27965 # if S_ISLNK (S_IFREG)
27970 #if defined S_ISSOCK && defined S_IFREG
27971 # if S_ISSOCK (S_IFREG)
27977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27978 $EGREP "You lose" >/dev/null 2>&1; then
27979 ac_cv_header_stat_broken=yes
27981 ac_cv_header_stat_broken=no
27986 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27987 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
27988 if test $ac_cv_header_stat_broken = yes; then
27990 cat >>confdefs.h <<\_ACEOF
27991 #define STAT_MACROS_BROKEN 1
27996 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27997 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
27998 if test "${ac_cv_header_stdc+set}" = set; then
27999 echo $ECHO_N "(cached) $ECHO_C" >&6
28001 cat >conftest.$ac_ext <<_ACEOF
28004 cat confdefs.h >>conftest.$ac_ext
28005 cat >>conftest.$ac_ext <<_ACEOF
28006 /* end confdefs.h. */
28007 #include <stdlib.h>
28008 #include <stdarg.h>
28009 #include <string.h>
28020 rm -f conftest.$ac_objext
28021 if { (ac_try="$ac_compile"
28022 case "(($ac_try" in
28023 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28024 *) ac_try_echo
=$ac_try;;
28026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28027 (eval "$ac_compile") 2>conftest.er1
28029 grep -v '^ *+' conftest.er1
>conftest.err
28031 cat conftest.err
>&5
28032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033 (exit $ac_status); } &&
28034 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28035 { (case "(($ac_try" in
28036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28037 *) ac_try_echo=$ac_try;;
28039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28040 (eval "$ac_try") 2>&5
28042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28043 (exit $ac_status); }; } &&
28044 { ac_try='test -s conftest.$ac_objext'
28045 { (case "(($ac_try" in
28046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28047 *) ac_try_echo
=$ac_try;;
28049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28050 (eval "$ac_try") 2>&5
28052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053 (exit $ac_status); }; }; then
28054 ac_cv_header_stdc
=yes
28056 echo "$as_me: failed program was:" >&5
28057 sed 's/^/| /' conftest.
$ac_ext >&5
28059 ac_cv_header_stdc
=no
28062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28064 if test $ac_cv_header_stdc = yes; then
28065 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28066 cat >conftest.
$ac_ext <<_ACEOF
28069 cat confdefs.h
>>conftest.
$ac_ext
28070 cat >>conftest.
$ac_ext <<_ACEOF
28071 /* end confdefs.h. */
28072 #include <string.h>
28075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28076 $EGREP "memchr" >/dev
/null
2>&1; then
28079 ac_cv_header_stdc
=no
28085 if test $ac_cv_header_stdc = yes; then
28086 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28087 cat >conftest.
$ac_ext <<_ACEOF
28090 cat confdefs.h
>>conftest.
$ac_ext
28091 cat >>conftest.
$ac_ext <<_ACEOF
28092 /* end confdefs.h. */
28093 #include <stdlib.h>
28096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28097 $EGREP "free" >/dev
/null
2>&1; then
28100 ac_cv_header_stdc
=no
28106 if test $ac_cv_header_stdc = yes; then
28107 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28108 if test "$cross_compiling" = yes; then
28111 cat >conftest.
$ac_ext <<_ACEOF
28114 cat confdefs.h
>>conftest.
$ac_ext
28115 cat >>conftest.
$ac_ext <<_ACEOF
28116 /* end confdefs.h. */
28118 #include <stdlib.h>
28119 #if ((' ' & 0x0FF) == 0x020)
28120 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28121 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28123 # define ISLOWER(c) \
28124 (('a' <= (c) && (c) <= 'i') \
28125 || ('j' <= (c) && (c) <= 'r') \
28126 || ('s' <= (c) && (c) <= 'z'))
28127 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28130 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28135 for (i = 0; i < 256; i++)
28136 if (XOR (islower (i), ISLOWER (i))
28137 || toupper (i) != TOUPPER (i))
28142 rm -f conftest
$ac_exeext
28143 if { (ac_try
="$ac_link"
28144 case "(($ac_try" in
28145 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28146 *) ac_try_echo=$ac_try;;
28148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28149 (eval "$ac_link") 2>&5
28151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28153 { (case "(($ac_try" in
28154 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28155 *) ac_try_echo
=$ac_try;;
28157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28158 (eval "$ac_try") 2>&5
28160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161 (exit $ac_status); }; }; then
28164 echo "$as_me: program exited with status $ac_status" >&5
28165 echo "$as_me: failed program was:" >&5
28166 sed 's/^/| /' conftest.
$ac_ext >&5
28168 ( exit $ac_status )
28169 ac_cv_header_stdc
=no
28171 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28177 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28178 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28179 if test $ac_cv_header_stdc = yes; then
28181 cat >>confdefs.h
<<\_ACEOF
28182 #define STDC_HEADERS 1
28187 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28188 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28189 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28190 echo $ECHO_N "(cached) $ECHO_C" >&6
28192 cat >conftest.
$ac_ext <<_ACEOF
28195 cat confdefs.h
>>conftest.
$ac_ext
28196 cat >>conftest.
$ac_ext <<_ACEOF
28197 /* end confdefs.h. */
28198 #include <sys/types.h>
28199 #include <sys/wait.h>
28200 #ifndef WEXITSTATUS
28201 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28204 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28212 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28217 rm -f conftest.
$ac_objext
28218 if { (ac_try
="$ac_compile"
28219 case "(($ac_try" in
28220 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28221 *) ac_try_echo=$ac_try;;
28223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28224 (eval "$ac_compile") 2>conftest.er1
28226 grep -v '^ *+' conftest.er1 >conftest.err
28228 cat conftest.err >&5
28229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230 (exit $ac_status); } &&
28231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28232 { (case "(($ac_try" in
28233 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28234 *) ac_try_echo
=$ac_try;;
28236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28237 (eval "$ac_try") 2>&5
28239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240 (exit $ac_status); }; } &&
28241 { ac_try
='test -s conftest.$ac_objext'
28242 { (case "(($ac_try" in
28243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28244 *) ac_try_echo=$ac_try;;
28246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28247 (eval "$ac_try") 2>&5
28249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28250 (exit $ac_status); }; }; then
28251 ac_cv_header_sys_wait_h=yes
28253 echo "$as_me: failed program was:" >&5
28254 sed 's/^/| /' conftest.$ac_ext >&5
28256 ac_cv_header_sys_wait_h=no
28259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28261 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28262 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28263 if test $ac_cv_header_sys_wait_h = yes; then
28265 cat >>confdefs.h <<\_ACEOF
28266 #define HAVE_SYS_WAIT_H 1
28271 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28272 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28273 if test "${ac_cv_header_time+set}" = set; then
28274 echo $ECHO_N "(cached) $ECHO_C" >&6
28276 cat >conftest.$ac_ext <<_ACEOF
28279 cat confdefs.h >>conftest.$ac_ext
28280 cat >>conftest.$ac_ext <<_ACEOF
28281 /* end confdefs.h. */
28282 #include <sys/types.h>
28283 #include <sys/time.h>
28289 if ((struct tm *) 0)
28295 rm -f conftest.$ac_objext
28296 if { (ac_try="$ac_compile"
28297 case "(($ac_try" in
28298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28299 *) ac_try_echo
=$ac_try;;
28301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28302 (eval "$ac_compile") 2>conftest.er1
28304 grep -v '^ *+' conftest.er1
>conftest.err
28306 cat conftest.err
>&5
28307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308 (exit $ac_status); } &&
28309 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28310 { (case "(($ac_try" in
28311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28312 *) ac_try_echo=$ac_try;;
28314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28315 (eval "$ac_try") 2>&5
28317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28318 (exit $ac_status); }; } &&
28319 { ac_try='test -s conftest.$ac_objext'
28320 { (case "(($ac_try" in
28321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28322 *) ac_try_echo
=$ac_try;;
28324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28325 (eval "$ac_try") 2>&5
28327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28328 (exit $ac_status); }; }; then
28329 ac_cv_header_time
=yes
28331 echo "$as_me: failed program was:" >&5
28332 sed 's/^/| /' conftest.
$ac_ext >&5
28334 ac_cv_header_time
=no
28337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28339 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28340 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28341 if test $ac_cv_header_time = yes; then
28343 cat >>confdefs.h
<<\_ACEOF
28344 #define TIME_WITH_SYS_TIME 1
28356 for ac_header
in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28358 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28359 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28362 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28363 echo $ECHO_N "(cached) $ECHO_C" >&6
28365 ac_res
=`eval echo '${'$as_ac_Header'}'`
28366 { echo "$as_me:$LINENO: result: $ac_res" >&5
28367 echo "${ECHO_T}$ac_res" >&6; }
28369 # Is the header compilable?
28370 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28372 cat >conftest.
$ac_ext <<_ACEOF
28375 cat confdefs.h
>>conftest.
$ac_ext
28376 cat >>conftest.
$ac_ext <<_ACEOF
28377 /* end confdefs.h. */
28378 $ac_includes_default
28379 #include <$ac_header>
28381 rm -f conftest.
$ac_objext
28382 if { (ac_try
="$ac_compile"
28383 case "(($ac_try" in
28384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28385 *) ac_try_echo=$ac_try;;
28387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28388 (eval "$ac_compile") 2>conftest.er1
28390 grep -v '^ *+' conftest.er1 >conftest.err
28392 cat conftest.err >&5
28393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394 (exit $ac_status); } &&
28395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28396 { (case "(($ac_try" in
28397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28398 *) ac_try_echo
=$ac_try;;
28400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28401 (eval "$ac_try") 2>&5
28403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404 (exit $ac_status); }; } &&
28405 { ac_try
='test -s conftest.$ac_objext'
28406 { (case "(($ac_try" in
28407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28408 *) ac_try_echo=$ac_try;;
28410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28411 (eval "$ac_try") 2>&5
28413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414 (exit $ac_status); }; }; then
28415 ac_header_compiler=yes
28417 echo "$as_me: failed program was:" >&5
28418 sed 's/^/| /' conftest.$ac_ext >&5
28420 ac_header_compiler=no
28423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28424 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28425 echo "${ECHO_T}$ac_header_compiler" >&6; }
28427 # Is the header present?
28428 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28430 cat >conftest.$ac_ext <<_ACEOF
28433 cat confdefs.h >>conftest.$ac_ext
28434 cat >>conftest.$ac_ext <<_ACEOF
28435 /* end confdefs.h. */
28436 #include <$ac_header>
28438 if { (ac_try="$ac_cpp conftest.$ac_ext"
28439 case "(($ac_try" in
28440 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28441 *) ac_try_echo
=$ac_try;;
28443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28446 grep -v '^ *+' conftest.er1
>conftest.err
28448 cat conftest.err
>&5
28449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450 (exit $ac_status); } >/dev
/null
; then
28451 if test -s conftest.err
; then
28452 ac_cpp_err
=$ac_c_preproc_warn_flag
28453 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
28460 if test -z "$ac_cpp_err"; then
28461 ac_header_preproc
=yes
28463 echo "$as_me: failed program was:" >&5
28464 sed 's/^/| /' conftest.
$ac_ext >&5
28466 ac_header_preproc
=no
28469 rm -f conftest.err conftest.
$ac_ext
28470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28471 echo "${ECHO_T}$ac_header_preproc" >&6; }
28473 # So? What about this header?
28474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28480 ac_header_preproc
=yes
28483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28496 ## ----------------------------------- ##
28497 ## Report this to llvmbugs@cs.uiuc.edu ##
28498 ## ----------------------------------- ##
28500 ) |
sed "s/^/$as_me: WARNING: /" >&2
28503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28505 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28506 echo $ECHO_N "(cached) $ECHO_C" >&6
28508 eval "$as_ac_Header=\$ac_header_preproc"
28510 ac_res
=`eval echo '${'$as_ac_Header'}'`
28511 { echo "$as_me:$LINENO: result: $ac_res" >&5
28512 echo "${ECHO_T}$ac_res" >&6; }
28515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28516 cat >>confdefs.h
<<_ACEOF
28517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28530 for ac_header
in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28532 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28533 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28536 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28537 echo $ECHO_N "(cached) $ECHO_C" >&6
28539 ac_res
=`eval echo '${'$as_ac_Header'}'`
28540 { echo "$as_me:$LINENO: result: $ac_res" >&5
28541 echo "${ECHO_T}$ac_res" >&6; }
28543 # Is the header compilable?
28544 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28546 cat >conftest.
$ac_ext <<_ACEOF
28549 cat confdefs.h
>>conftest.
$ac_ext
28550 cat >>conftest.
$ac_ext <<_ACEOF
28551 /* end confdefs.h. */
28552 $ac_includes_default
28553 #include <$ac_header>
28555 rm -f conftest.
$ac_objext
28556 if { (ac_try
="$ac_compile"
28557 case "(($ac_try" in
28558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28559 *) ac_try_echo=$ac_try;;
28561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28562 (eval "$ac_compile") 2>conftest.er1
28564 grep -v '^ *+' conftest.er1 >conftest.err
28566 cat conftest.err >&5
28567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568 (exit $ac_status); } &&
28569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28570 { (case "(($ac_try" in
28571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28572 *) ac_try_echo
=$ac_try;;
28574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28575 (eval "$ac_try") 2>&5
28577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578 (exit $ac_status); }; } &&
28579 { ac_try
='test -s conftest.$ac_objext'
28580 { (case "(($ac_try" in
28581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28582 *) ac_try_echo=$ac_try;;
28584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28585 (eval "$ac_try") 2>&5
28587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588 (exit $ac_status); }; }; then
28589 ac_header_compiler=yes
28591 echo "$as_me: failed program was:" >&5
28592 sed 's/^/| /' conftest.$ac_ext >&5
28594 ac_header_compiler=no
28597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28598 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28599 echo "${ECHO_T}$ac_header_compiler" >&6; }
28601 # Is the header present?
28602 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28604 cat >conftest.$ac_ext <<_ACEOF
28607 cat confdefs.h >>conftest.$ac_ext
28608 cat >>conftest.$ac_ext <<_ACEOF
28609 /* end confdefs.h. */
28610 #include <$ac_header>
28612 if { (ac_try="$ac_cpp conftest.$ac_ext"
28613 case "(($ac_try" in
28614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28615 *) ac_try_echo
=$ac_try;;
28617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28620 grep -v '^ *+' conftest.er1
>conftest.err
28622 cat conftest.err
>&5
28623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624 (exit $ac_status); } >/dev
/null
; then
28625 if test -s conftest.err
; then
28626 ac_cpp_err
=$ac_c_preproc_warn_flag
28627 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
28634 if test -z "$ac_cpp_err"; then
28635 ac_header_preproc
=yes
28637 echo "$as_me: failed program was:" >&5
28638 sed 's/^/| /' conftest.
$ac_ext >&5
28640 ac_header_preproc
=no
28643 rm -f conftest.err conftest.
$ac_ext
28644 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28645 echo "${ECHO_T}$ac_header_preproc" >&6; }
28647 # So? What about this header?
28648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28654 ac_header_preproc
=yes
28657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28660 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28664 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28670 ## ----------------------------------- ##
28671 ## Report this to llvmbugs@cs.uiuc.edu ##
28672 ## ----------------------------------- ##
28674 ) |
sed "s/^/$as_me: WARNING: /" >&2
28677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28679 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28680 echo $ECHO_N "(cached) $ECHO_C" >&6
28682 eval "$as_ac_Header=\$ac_header_preproc"
28684 ac_res
=`eval echo '${'$as_ac_Header'}'`
28685 { echo "$as_me:$LINENO: result: $ac_res" >&5
28686 echo "${ECHO_T}$ac_res" >&6; }
28689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28690 cat >>confdefs.h
<<_ACEOF
28691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28703 for ac_header
in windows.h sys
/mman.h sys
/param.h sys
/resource.h sys
/time.h
28705 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28706 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28707 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28709 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28710 echo $ECHO_N "(cached) $ECHO_C" >&6
28712 ac_res
=`eval echo '${'$as_ac_Header'}'`
28713 { echo "$as_me:$LINENO: result: $ac_res" >&5
28714 echo "${ECHO_T}$ac_res" >&6; }
28716 # Is the header compilable?
28717 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28719 cat >conftest.
$ac_ext <<_ACEOF
28722 cat confdefs.h
>>conftest.
$ac_ext
28723 cat >>conftest.
$ac_ext <<_ACEOF
28724 /* end confdefs.h. */
28725 $ac_includes_default
28726 #include <$ac_header>
28728 rm -f conftest.
$ac_objext
28729 if { (ac_try
="$ac_compile"
28730 case "(($ac_try" in
28731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28732 *) ac_try_echo=$ac_try;;
28734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28735 (eval "$ac_compile") 2>conftest.er1
28737 grep -v '^ *+' conftest.er1 >conftest.err
28739 cat conftest.err >&5
28740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741 (exit $ac_status); } &&
28742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28743 { (case "(($ac_try" in
28744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28745 *) ac_try_echo
=$ac_try;;
28747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28748 (eval "$ac_try") 2>&5
28750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751 (exit $ac_status); }; } &&
28752 { ac_try
='test -s conftest.$ac_objext'
28753 { (case "(($ac_try" in
28754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28755 *) ac_try_echo=$ac_try;;
28757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28758 (eval "$ac_try") 2>&5
28760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28761 (exit $ac_status); }; }; then
28762 ac_header_compiler=yes
28764 echo "$as_me: failed program was:" >&5
28765 sed 's/^/| /' conftest.$ac_ext >&5
28767 ac_header_compiler=no
28770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28771 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28772 echo "${ECHO_T}$ac_header_compiler" >&6; }
28774 # Is the header present?
28775 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28777 cat >conftest.$ac_ext <<_ACEOF
28780 cat confdefs.h >>conftest.$ac_ext
28781 cat >>conftest.$ac_ext <<_ACEOF
28782 /* end confdefs.h. */
28783 #include <$ac_header>
28785 if { (ac_try="$ac_cpp conftest.$ac_ext"
28786 case "(($ac_try" in
28787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28788 *) ac_try_echo
=$ac_try;;
28790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28793 grep -v '^ *+' conftest.er1
>conftest.err
28795 cat conftest.err
>&5
28796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797 (exit $ac_status); } >/dev
/null
; then
28798 if test -s conftest.err
; then
28799 ac_cpp_err
=$ac_c_preproc_warn_flag
28800 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
28807 if test -z "$ac_cpp_err"; then
28808 ac_header_preproc
=yes
28810 echo "$as_me: failed program was:" >&5
28811 sed 's/^/| /' conftest.
$ac_ext >&5
28813 ac_header_preproc
=no
28816 rm -f conftest.err conftest.
$ac_ext
28817 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28818 echo "${ECHO_T}$ac_header_preproc" >&6; }
28820 # So? What about this header?
28821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28826 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28827 ac_header_preproc
=yes
28830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28834 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28835 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28836 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28837 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28840 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28841 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28843 ## ----------------------------------- ##
28844 ## Report this to llvmbugs@cs.uiuc.edu ##
28845 ## ----------------------------------- ##
28847 ) |
sed "s/^/$as_me: WARNING: /" >&2
28850 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28852 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28853 echo $ECHO_N "(cached) $ECHO_C" >&6
28855 eval "$as_ac_Header=\$ac_header_preproc"
28857 ac_res
=`eval echo '${'$as_ac_Header'}'`
28858 { echo "$as_me:$LINENO: result: $ac_res" >&5
28859 echo "${ECHO_T}$ac_res" >&6; }
28862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28863 cat >>confdefs.h
<<_ACEOF
28864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28873 for ac_header
in sys
/types.h malloc
/malloc.h
28875 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28876 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28879 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28880 echo $ECHO_N "(cached) $ECHO_C" >&6
28882 ac_res
=`eval echo '${'$as_ac_Header'}'`
28883 { echo "$as_me:$LINENO: result: $ac_res" >&5
28884 echo "${ECHO_T}$ac_res" >&6; }
28886 # Is the header compilable?
28887 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28889 cat >conftest.
$ac_ext <<_ACEOF
28892 cat confdefs.h
>>conftest.
$ac_ext
28893 cat >>conftest.
$ac_ext <<_ACEOF
28894 /* end confdefs.h. */
28895 $ac_includes_default
28896 #include <$ac_header>
28898 rm -f conftest.
$ac_objext
28899 if { (ac_try
="$ac_compile"
28900 case "(($ac_try" in
28901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28902 *) ac_try_echo=$ac_try;;
28904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28905 (eval "$ac_compile") 2>conftest.er1
28907 grep -v '^ *+' conftest.er1 >conftest.err
28909 cat conftest.err >&5
28910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28911 (exit $ac_status); } &&
28912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28913 { (case "(($ac_try" in
28914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28915 *) ac_try_echo
=$ac_try;;
28917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28918 (eval "$ac_try") 2>&5
28920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28921 (exit $ac_status); }; } &&
28922 { ac_try
='test -s conftest.$ac_objext'
28923 { (case "(($ac_try" in
28924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28925 *) ac_try_echo=$ac_try;;
28927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28928 (eval "$ac_try") 2>&5
28930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28931 (exit $ac_status); }; }; then
28932 ac_header_compiler=yes
28934 echo "$as_me: failed program was:" >&5
28935 sed 's/^/| /' conftest.$ac_ext >&5
28937 ac_header_compiler=no
28940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28942 echo "${ECHO_T}$ac_header_compiler" >&6; }
28944 # Is the header present?
28945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28947 cat >conftest.$ac_ext <<_ACEOF
28950 cat confdefs.h >>conftest.$ac_ext
28951 cat >>conftest.$ac_ext <<_ACEOF
28952 /* end confdefs.h. */
28953 #include <$ac_header>
28955 if { (ac_try="$ac_cpp conftest.$ac_ext"
28956 case "(($ac_try" in
28957 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28958 *) ac_try_echo
=$ac_try;;
28960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28963 grep -v '^ *+' conftest.er1
>conftest.err
28965 cat conftest.err
>&5
28966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967 (exit $ac_status); } >/dev
/null
; then
28968 if test -s conftest.err
; then
28969 ac_cpp_err
=$ac_c_preproc_warn_flag
28970 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
28977 if test -z "$ac_cpp_err"; then
28978 ac_header_preproc
=yes
28980 echo "$as_me: failed program was:" >&5
28981 sed 's/^/| /' conftest.
$ac_ext >&5
28983 ac_header_preproc
=no
28986 rm -f conftest.err conftest.
$ac_ext
28987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28988 echo "${ECHO_T}$ac_header_preproc" >&6; }
28990 # So? What about this header?
28991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28997 ac_header_preproc
=yes
29000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29007 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29013 ## ----------------------------------- ##
29014 ## Report this to llvmbugs@cs.uiuc.edu ##
29015 ## ----------------------------------- ##
29017 ) |
sed "s/^/$as_me: WARNING: /" >&2
29020 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29022 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29023 echo $ECHO_N "(cached) $ECHO_C" >&6
29025 eval "$as_ac_Header=\$ac_header_preproc"
29027 ac_res
=`eval echo '${'$as_ac_Header'}'`
29028 { echo "$as_me:$LINENO: result: $ac_res" >&5
29029 echo "${ECHO_T}$ac_res" >&6; }
29032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29033 cat >>confdefs.h
<<_ACEOF
29034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29041 if test "$ENABLE_THREADS" -eq 1 ; then
29043 for ac_header
in pthread.h
29045 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29046 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29049 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29050 echo $ECHO_N "(cached) $ECHO_C" >&6
29052 ac_res
=`eval echo '${'$as_ac_Header'}'`
29053 { echo "$as_me:$LINENO: result: $ac_res" >&5
29054 echo "${ECHO_T}$ac_res" >&6; }
29056 # Is the header compilable?
29057 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29059 cat >conftest.
$ac_ext <<_ACEOF
29062 cat confdefs.h
>>conftest.
$ac_ext
29063 cat >>conftest.
$ac_ext <<_ACEOF
29064 /* end confdefs.h. */
29065 $ac_includes_default
29066 #include <$ac_header>
29068 rm -f conftest.
$ac_objext
29069 if { (ac_try
="$ac_compile"
29070 case "(($ac_try" in
29071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29072 *) ac_try_echo=$ac_try;;
29074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29075 (eval "$ac_compile") 2>conftest.er1
29077 grep -v '^ *+' conftest.er1 >conftest.err
29079 cat conftest.err >&5
29080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081 (exit $ac_status); } &&
29082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29083 { (case "(($ac_try" in
29084 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29085 *) ac_try_echo
=$ac_try;;
29087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29088 (eval "$ac_try") 2>&5
29090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29091 (exit $ac_status); }; } &&
29092 { ac_try
='test -s conftest.$ac_objext'
29093 { (case "(($ac_try" in
29094 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29095 *) ac_try_echo=$ac_try;;
29097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29098 (eval "$ac_try") 2>&5
29100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101 (exit $ac_status); }; }; then
29102 ac_header_compiler=yes
29104 echo "$as_me: failed program was:" >&5
29105 sed 's/^/| /' conftest.$ac_ext >&5
29107 ac_header_compiler=no
29110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29111 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29112 echo "${ECHO_T}$ac_header_compiler" >&6; }
29114 # Is the header present?
29115 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29117 cat >conftest.$ac_ext <<_ACEOF
29120 cat confdefs.h >>conftest.$ac_ext
29121 cat >>conftest.$ac_ext <<_ACEOF
29122 /* end confdefs.h. */
29123 #include <$ac_header>
29125 if { (ac_try="$ac_cpp conftest.$ac_ext"
29126 case "(($ac_try" in
29127 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29128 *) ac_try_echo
=$ac_try;;
29130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29133 grep -v '^ *+' conftest.er1
>conftest.err
29135 cat conftest.err
>&5
29136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137 (exit $ac_status); } >/dev
/null
; then
29138 if test -s conftest.err
; then
29139 ac_cpp_err
=$ac_c_preproc_warn_flag
29140 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
29147 if test -z "$ac_cpp_err"; then
29148 ac_header_preproc
=yes
29150 echo "$as_me: failed program was:" >&5
29151 sed 's/^/| /' conftest.
$ac_ext >&5
29153 ac_header_preproc
=no
29156 rm -f conftest.err conftest.
$ac_ext
29157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29158 echo "${ECHO_T}$ac_header_preproc" >&6; }
29160 # So? What about this header?
29161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29167 ac_header_preproc
=yes
29170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29183 ## ----------------------------------- ##
29184 ## Report this to llvmbugs@cs.uiuc.edu ##
29185 ## ----------------------------------- ##
29187 ) |
sed "s/^/$as_me: WARNING: /" >&2
29190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29192 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29193 echo $ECHO_N "(cached) $ECHO_C" >&6
29195 eval "$as_ac_Header=\$ac_header_preproc"
29197 ac_res
=`eval echo '${'$as_ac_Header'}'`
29198 { echo "$as_me:$LINENO: result: $ac_res" >&5
29199 echo "${ECHO_T}$ac_res" >&6; }
29202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29203 cat >>confdefs.h
<<_ACEOF
29204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29214 { echo "$as_me:$LINENO: checking for pid_t" >&5
29215 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29216 if test "${ac_cv_type_pid_t+set}" = set; then
29217 echo $ECHO_N "(cached) $ECHO_C" >&6
29219 cat >conftest.
$ac_ext <<_ACEOF
29222 cat confdefs.h
>>conftest.
$ac_ext
29223 cat >>conftest.
$ac_ext <<_ACEOF
29224 /* end confdefs.h. */
29225 $ac_includes_default
29226 typedef pid_t ac__type_new_;
29230 if ((ac__type_new_ *) 0)
29232 if (sizeof (ac__type_new_))
29238 rm -f conftest.
$ac_objext
29239 if { (ac_try
="$ac_compile"
29240 case "(($ac_try" in
29241 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29242 *) ac_try_echo=$ac_try;;
29244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29245 (eval "$ac_compile") 2>conftest.er1
29247 grep -v '^ *+' conftest.er1 >conftest.err
29249 cat conftest.err >&5
29250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251 (exit $ac_status); } &&
29252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29253 { (case "(($ac_try" in
29254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29255 *) ac_try_echo
=$ac_try;;
29257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29258 (eval "$ac_try") 2>&5
29260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261 (exit $ac_status); }; } &&
29262 { ac_try
='test -s conftest.$ac_objext'
29263 { (case "(($ac_try" in
29264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29265 *) ac_try_echo=$ac_try;;
29267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29268 (eval "$ac_try") 2>&5
29270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271 (exit $ac_status); }; }; then
29272 ac_cv_type_pid_t=yes
29274 echo "$as_me: failed program was:" >&5
29275 sed 's/^/| /' conftest.$ac_ext >&5
29277 ac_cv_type_pid_t=no
29280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29282 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29283 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29284 if test $ac_cv_type_pid_t = yes; then
29288 cat >>confdefs.h <<_ACEOF
29294 { echo "$as_me:$LINENO: checking for size_t" >&5
29295 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29296 if test "${ac_cv_type_size_t+set}" = set; then
29297 echo $ECHO_N "(cached) $ECHO_C" >&6
29299 cat >conftest.$ac_ext <<_ACEOF
29302 cat confdefs.h >>conftest.$ac_ext
29303 cat >>conftest.$ac_ext <<_ACEOF
29304 /* end confdefs.h. */
29305 $ac_includes_default
29306 typedef size_t ac__type_new_;
29310 if ((ac__type_new_ *) 0)
29312 if (sizeof (ac__type_new_))
29318 rm -f conftest.$ac_objext
29319 if { (ac_try="$ac_compile"
29320 case "(($ac_try" in
29321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29322 *) ac_try_echo
=$ac_try;;
29324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29325 (eval "$ac_compile") 2>conftest.er1
29327 grep -v '^ *+' conftest.er1
>conftest.err
29329 cat conftest.err
>&5
29330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331 (exit $ac_status); } &&
29332 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29333 { (case "(($ac_try" in
29334 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29335 *) ac_try_echo=$ac_try;;
29337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29338 (eval "$ac_try") 2>&5
29340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341 (exit $ac_status); }; } &&
29342 { ac_try='test -s conftest.$ac_objext'
29343 { (case "(($ac_try" in
29344 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29345 *) ac_try_echo
=$ac_try;;
29347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29348 (eval "$ac_try") 2>&5
29350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29351 (exit $ac_status); }; }; then
29352 ac_cv_type_size_t
=yes
29354 echo "$as_me: failed program was:" >&5
29355 sed 's/^/| /' conftest.
$ac_ext >&5
29357 ac_cv_type_size_t
=no
29360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29362 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29363 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29364 if test $ac_cv_type_size_t = yes; then
29368 cat >>confdefs.h
<<_ACEOF
29369 #define size_t unsigned int
29374 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29375 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29376 if test "${ac_cv_type_signal+set}" = set; then
29377 echo $ECHO_N "(cached) $ECHO_C" >&6
29379 cat >conftest.
$ac_ext <<_ACEOF
29382 cat confdefs.h
>>conftest.
$ac_ext
29383 cat >>conftest.
$ac_ext <<_ACEOF
29384 /* end confdefs.h. */
29385 #include <sys/types.h>
29386 #include <signal.h>
29391 return *(signal (0, 0)) (0) == 1;
29396 rm -f conftest.
$ac_objext
29397 if { (ac_try
="$ac_compile"
29398 case "(($ac_try" in
29399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29400 *) ac_try_echo=$ac_try;;
29402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29403 (eval "$ac_compile") 2>conftest.er1
29405 grep -v '^ *+' conftest.er1 >conftest.err
29407 cat conftest.err >&5
29408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409 (exit $ac_status); } &&
29410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29411 { (case "(($ac_try" in
29412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29413 *) ac_try_echo
=$ac_try;;
29415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29416 (eval "$ac_try") 2>&5
29418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419 (exit $ac_status); }; } &&
29420 { ac_try
='test -s conftest.$ac_objext'
29421 { (case "(($ac_try" in
29422 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29423 *) ac_try_echo=$ac_try;;
29425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29426 (eval "$ac_try") 2>&5
29428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429 (exit $ac_status); }; }; then
29430 ac_cv_type_signal=int
29432 echo "$as_me: failed program was:" >&5
29433 sed 's/^/| /' conftest.$ac_ext >&5
29435 ac_cv_type_signal=void
29438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29440 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29441 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29443 cat >>confdefs.h <<_ACEOF
29444 #define RETSIGTYPE $ac_cv_type_signal
29448 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29449 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29450 if test "${ac_cv_struct_tm+set}" = set; then
29451 echo $ECHO_N "(cached) $ECHO_C" >&6
29453 cat >conftest.$ac_ext <<_ACEOF
29456 cat confdefs.h >>conftest.$ac_ext
29457 cat >>conftest.$ac_ext <<_ACEOF
29458 /* end confdefs.h. */
29459 #include <sys/types.h>
29465 struct tm *tp; tp->tm_sec;
29470 rm -f conftest.$ac_objext
29471 if { (ac_try="$ac_compile"
29472 case "(($ac_try" in
29473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29474 *) ac_try_echo
=$ac_try;;
29476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29477 (eval "$ac_compile") 2>conftest.er1
29479 grep -v '^ *+' conftest.er1
>conftest.err
29481 cat conftest.err
>&5
29482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29483 (exit $ac_status); } &&
29484 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29485 { (case "(($ac_try" in
29486 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29487 *) ac_try_echo=$ac_try;;
29489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29490 (eval "$ac_try") 2>&5
29492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493 (exit $ac_status); }; } &&
29494 { ac_try='test -s conftest.$ac_objext'
29495 { (case "(($ac_try" in
29496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29497 *) ac_try_echo
=$ac_try;;
29499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29500 (eval "$ac_try") 2>&5
29502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503 (exit $ac_status); }; }; then
29504 ac_cv_struct_tm
=time.h
29506 echo "$as_me: failed program was:" >&5
29507 sed 's/^/| /' conftest.
$ac_ext >&5
29509 ac_cv_struct_tm
=sys
/time.h
29512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29514 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29515 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29516 if test $ac_cv_struct_tm = sys
/time.h
; then
29518 cat >>confdefs.h
<<\_ACEOF
29519 #define TM_IN_SYS_TIME 1
29524 { echo "$as_me:$LINENO: checking for int64_t" >&5
29525 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29526 if test "${ac_cv_type_int64_t+set}" = set; then
29527 echo $ECHO_N "(cached) $ECHO_C" >&6
29529 cat >conftest.
$ac_ext <<_ACEOF
29532 cat confdefs.h
>>conftest.
$ac_ext
29533 cat >>conftest.
$ac_ext <<_ACEOF
29534 /* end confdefs.h. */
29535 $ac_includes_default
29536 typedef int64_t ac__type_new_;
29540 if ((ac__type_new_ *) 0)
29542 if (sizeof (ac__type_new_))
29548 rm -f conftest.
$ac_objext
29549 if { (ac_try
="$ac_compile"
29550 case "(($ac_try" in
29551 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29552 *) ac_try_echo=$ac_try;;
29554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29555 (eval "$ac_compile") 2>conftest.er1
29557 grep -v '^ *+' conftest.er1 >conftest.err
29559 cat conftest.err >&5
29560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561 (exit $ac_status); } &&
29562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29563 { (case "(($ac_try" in
29564 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29565 *) ac_try_echo
=$ac_try;;
29567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29568 (eval "$ac_try") 2>&5
29570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29571 (exit $ac_status); }; } &&
29572 { ac_try
='test -s conftest.$ac_objext'
29573 { (case "(($ac_try" in
29574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29575 *) ac_try_echo=$ac_try;;
29577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29578 (eval "$ac_try") 2>&5
29580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581 (exit $ac_status); }; }; then
29582 ac_cv_type_int64_t=yes
29584 echo "$as_me: failed program was:" >&5
29585 sed 's/^/| /' conftest.$ac_ext >&5
29587 ac_cv_type_int64_t=no
29590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29592 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29593 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29594 if test $ac_cv_type_int64_t = yes; then
29596 cat >>confdefs.h <<_ACEOF
29597 #define HAVE_INT64_T 1
29602 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29603 echo "$as_me: error: Type int64_t required but not found" >&2;}
29604 { (exit 1); exit 1; }; }
29607 { echo "$as_me:$LINENO: checking for uint64_t" >&5
29608 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29609 if test "${ac_cv_type_uint64_t+set}" = set; then
29610 echo $ECHO_N "(cached) $ECHO_C" >&6
29612 cat >conftest.$ac_ext <<_ACEOF
29615 cat confdefs.h >>conftest.$ac_ext
29616 cat >>conftest.$ac_ext <<_ACEOF
29617 /* end confdefs.h. */
29618 $ac_includes_default
29619 typedef uint64_t ac__type_new_;
29623 if ((ac__type_new_ *) 0)
29625 if (sizeof (ac__type_new_))
29631 rm -f conftest.$ac_objext
29632 if { (ac_try="$ac_compile"
29633 case "(($ac_try" in
29634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29635 *) ac_try_echo
=$ac_try;;
29637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29638 (eval "$ac_compile") 2>conftest.er1
29640 grep -v '^ *+' conftest.er1
>conftest.err
29642 cat conftest.err
>&5
29643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); } &&
29645 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
29655 { ac_try='test -s conftest.$ac_objext'
29656 { (case "(($ac_try" in
29657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29658 *) ac_try_echo
=$ac_try;;
29660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29661 (eval "$ac_try") 2>&5
29663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29664 (exit $ac_status); }; }; then
29665 ac_cv_type_uint64_t
=yes
29667 echo "$as_me: failed program was:" >&5
29668 sed 's/^/| /' conftest.
$ac_ext >&5
29670 ac_cv_type_uint64_t
=no
29673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29675 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29676 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29677 if test $ac_cv_type_uint64_t = yes; then
29679 cat >>confdefs.h
<<_ACEOF
29680 #define HAVE_UINT64_T 1
29685 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29686 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29687 if test "${ac_cv_type_u_int64_t+set}" = set; then
29688 echo $ECHO_N "(cached) $ECHO_C" >&6
29690 cat >conftest.
$ac_ext <<_ACEOF
29693 cat confdefs.h
>>conftest.
$ac_ext
29694 cat >>conftest.
$ac_ext <<_ACEOF
29695 /* end confdefs.h. */
29696 $ac_includes_default
29697 typedef u_int64_t ac__type_new_;
29701 if ((ac__type_new_ *) 0)
29703 if (sizeof (ac__type_new_))
29709 rm -f conftest.
$ac_objext
29710 if { (ac_try
="$ac_compile"
29711 case "(($ac_try" in
29712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29713 *) ac_try_echo=$ac_try;;
29715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29716 (eval "$ac_compile") 2>conftest.er1
29718 grep -v '^ *+' conftest.er1 >conftest.err
29720 cat conftest.err >&5
29721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29722 (exit $ac_status); } &&
29723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29724 { (case "(($ac_try" in
29725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29726 *) ac_try_echo
=$ac_try;;
29728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29729 (eval "$ac_try") 2>&5
29731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29732 (exit $ac_status); }; } &&
29733 { ac_try
='test -s conftest.$ac_objext'
29734 { (case "(($ac_try" in
29735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29736 *) ac_try_echo=$ac_try;;
29738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29739 (eval "$ac_try") 2>&5
29741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29742 (exit $ac_status); }; }; then
29743 ac_cv_type_u_int64_t=yes
29745 echo "$as_me: failed program was:" >&5
29746 sed 's/^/| /' conftest.$ac_ext >&5
29748 ac_cv_type_u_int64_t=no
29751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29753 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29754 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
29755 if test $ac_cv_type_u_int64_t = yes; then
29757 cat >>confdefs.h <<_ACEOF
29758 #define HAVE_U_INT64_T 1
29763 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29764 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29765 { (exit 1); exit 1; }; }
29779 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
29781 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
29782 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29785 echo $ECHO_N "(cached) $ECHO_C" >&6
29787 cat >conftest.$ac_ext <<_ACEOF
29790 cat confdefs.h >>conftest.$ac_ext
29791 cat >>conftest.$ac_ext <<_ACEOF
29792 /* end confdefs.h. */
29793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29795 #define $ac_func innocuous_$ac_func
29797 /* System header to define __stub macros and hopefully few prototypes,
29798 which can conflict with char $ac_func (); below.
29799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29800 <limits.h> exists even on freestanding compilers. */
29803 # include <limits.h>
29805 # include <assert.h>
29810 /* Override any GCC internal prototype to avoid an error.
29811 Use char because int might match the return type of a GCC
29812 builtin and then its argument prototype would still apply. */
29817 /* The GNU C library defines this for functions which it implements
29818 to always fail with ENOSYS. Some functions are actually named
29819 something starting with __ and the normal name is an alias. */
29820 #if defined __stub_$ac_func || defined __stub___$ac_func
29827 return $ac_func ();
29832 rm -f conftest.$ac_objext conftest$ac_exeext
29833 if { (ac_try="$ac_link"
29834 case "(($ac_try" in
29835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29836 *) ac_try_echo
=$ac_try;;
29838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29839 (eval "$ac_link") 2>conftest.er1
29841 grep -v '^ *+' conftest.er1
>conftest.err
29843 cat conftest.err
>&5
29844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845 (exit $ac_status); } &&
29846 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29847 { (case "(($ac_try" in
29848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29849 *) ac_try_echo=$ac_try;;
29851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29852 (eval "$ac_try") 2>&5
29854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855 (exit $ac_status); }; } &&
29856 { ac_try='test -s conftest$ac_exeext'
29857 { (case "(($ac_try" in
29858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29859 *) ac_try_echo
=$ac_try;;
29861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29862 (eval "$ac_try") 2>&5
29864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865 (exit $ac_status); }; }; then
29866 eval "$as_ac_var=yes"
29868 echo "$as_me: failed program was:" >&5
29869 sed 's/^/| /' conftest.
$ac_ext >&5
29871 eval "$as_ac_var=no"
29874 rm -f core conftest.err conftest.
$ac_objext \
29875 conftest
$ac_exeext conftest.
$ac_ext
29877 ac_res
=`eval echo '${'$as_ac_var'}'`
29878 { echo "$as_me:$LINENO: result: $ac_res" >&5
29879 echo "${ECHO_T}$ac_res" >&6; }
29880 if test `eval echo '${'$as_ac_var'}'` = yes; then
29881 cat >>confdefs.h
<<_ACEOF
29882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29894 for ac_func
in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
29896 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29897 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29899 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29900 echo $ECHO_N "(cached) $ECHO_C" >&6
29902 cat >conftest.
$ac_ext <<_ACEOF
29905 cat confdefs.h
>>conftest.
$ac_ext
29906 cat >>conftest.
$ac_ext <<_ACEOF
29907 /* end confdefs.h. */
29908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29910 #define $ac_func innocuous_$ac_func
29912 /* System header to define __stub macros and hopefully few prototypes,
29913 which can conflict with char $ac_func (); below.
29914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29915 <limits.h> exists even on freestanding compilers. */
29918 # include <limits.h>
29920 # include <assert.h>
29925 /* Override any GCC internal prototype to avoid an error.
29926 Use char because int might match the return type of a GCC
29927 builtin and then its argument prototype would still apply. */
29932 /* The GNU C library defines this for functions which it implements
29933 to always fail with ENOSYS. Some functions are actually named
29934 something starting with __ and the normal name is an alias. */
29935 #if defined __stub_$ac_func || defined __stub___$ac_func
29942 return $ac_func ();
29947 rm -f conftest.
$ac_objext conftest
$ac_exeext
29948 if { (ac_try
="$ac_link"
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_link") 2>conftest.er1
29956 grep -v '^ *+' conftest.er1 >conftest.err
29958 cat conftest.err >&5
29959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29960 (exit $ac_status); } &&
29961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29962 { (case "(($ac_try" in
29963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29964 *) ac_try_echo
=$ac_try;;
29966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29967 (eval "$ac_try") 2>&5
29969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970 (exit $ac_status); }; } &&
29971 { ac_try
='test -s conftest$ac_exeext'
29972 { (case "(($ac_try" in
29973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29974 *) ac_try_echo=$ac_try;;
29976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29977 (eval "$ac_try") 2>&5
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); }; }; then
29981 eval "$as_ac_var=yes"
29983 echo "$as_me: failed program was:" >&5
29984 sed 's/^/| /' conftest.$ac_ext >&5
29986 eval "$as_ac_var=no"
29989 rm -f core conftest.err conftest.$ac_objext \
29990 conftest$ac_exeext conftest.$ac_ext
29992 ac_res=`eval echo '${'$as_ac_var'}'`
29993 { echo "$as_me:$LINENO: result: $ac_res" >&5
29994 echo "${ECHO_T}$ac_res" >&6; }
29995 if test `eval echo '${'$as_ac_var'}'` = yes; then
29996 cat >>confdefs.h <<_ACEOF
29997 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
30010 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30012 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
30013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30016 echo $ECHO_N "(cached) $ECHO_C" >&6
30018 cat >conftest.$ac_ext <<_ACEOF
30021 cat confdefs.h >>conftest.$ac_ext
30022 cat >>conftest.$ac_ext <<_ACEOF
30023 /* end confdefs.h. */
30024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30026 #define $ac_func innocuous_$ac_func
30028 /* System header to define __stub macros and hopefully few prototypes,
30029 which can conflict with char $ac_func (); below.
30030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30031 <limits.h> exists even on freestanding compilers. */
30034 # include <limits.h>
30036 # include <assert.h>
30041 /* Override any GCC internal prototype to avoid an error.
30042 Use char because int might match the return type of a GCC
30043 builtin and then its argument prototype would still apply. */
30048 /* The GNU C library defines this for functions which it implements
30049 to always fail with ENOSYS. Some functions are actually named
30050 something starting with __ and the normal name is an alias. */
30051 #if defined __stub_$ac_func || defined __stub___$ac_func
30058 return $ac_func ();
30063 rm -f conftest.$ac_objext conftest$ac_exeext
30064 if { (ac_try="$ac_link"
30065 case "(($ac_try" in
30066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30067 *) ac_try_echo
=$ac_try;;
30069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30070 (eval "$ac_link") 2>conftest.er1
30072 grep -v '^ *+' conftest.er1
>conftest.err
30074 cat conftest.err
>&5
30075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30076 (exit $ac_status); } &&
30077 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30078 { (case "(($ac_try" in
30079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30080 *) ac_try_echo=$ac_try;;
30082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30083 (eval "$ac_try") 2>&5
30085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086 (exit $ac_status); }; } &&
30087 { ac_try='test -s conftest$ac_exeext'
30088 { (case "(($ac_try" in
30089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30090 *) ac_try_echo
=$ac_try;;
30092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30093 (eval "$ac_try") 2>&5
30095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096 (exit $ac_status); }; }; then
30097 eval "$as_ac_var=yes"
30099 echo "$as_me: failed program was:" >&5
30100 sed 's/^/| /' conftest.
$ac_ext >&5
30102 eval "$as_ac_var=no"
30105 rm -f core conftest.err conftest.
$ac_objext \
30106 conftest
$ac_exeext conftest.
$ac_ext
30108 ac_res
=`eval echo '${'$as_ac_var'}'`
30109 { echo "$as_me:$LINENO: result: $ac_res" >&5
30110 echo "${ECHO_T}$ac_res" >&6; }
30111 if test `eval echo '${'$as_ac_var'}'` = yes; then
30112 cat >>confdefs.h
<<_ACEOF
30113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30123 for ac_func
in strtoll strtoq sysconf malloc_zone_statistics
30125 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30126 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30128 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30129 echo $ECHO_N "(cached) $ECHO_C" >&6
30131 cat >conftest.
$ac_ext <<_ACEOF
30134 cat confdefs.h
>>conftest.
$ac_ext
30135 cat >>conftest.
$ac_ext <<_ACEOF
30136 /* end confdefs.h. */
30137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30139 #define $ac_func innocuous_$ac_func
30141 /* System header to define __stub macros and hopefully few prototypes,
30142 which can conflict with char $ac_func (); below.
30143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30144 <limits.h> exists even on freestanding compilers. */
30147 # include <limits.h>
30149 # include <assert.h>
30154 /* Override any GCC internal prototype to avoid an error.
30155 Use char because int might match the return type of a GCC
30156 builtin and then its argument prototype would still apply. */
30161 /* The GNU C library defines this for functions which it implements
30162 to always fail with ENOSYS. Some functions are actually named
30163 something starting with __ and the normal name is an alias. */
30164 #if defined __stub_$ac_func || defined __stub___$ac_func
30171 return $ac_func ();
30176 rm -f conftest.
$ac_objext conftest
$ac_exeext
30177 if { (ac_try
="$ac_link"
30178 case "(($ac_try" in
30179 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30180 *) ac_try_echo=$ac_try;;
30182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30183 (eval "$ac_link") 2>conftest.er1
30185 grep -v '^ *+' conftest.er1 >conftest.err
30187 cat conftest.err >&5
30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189 (exit $ac_status); } &&
30190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30191 { (case "(($ac_try" in
30192 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30193 *) ac_try_echo
=$ac_try;;
30195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30196 (eval "$ac_try") 2>&5
30198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199 (exit $ac_status); }; } &&
30200 { ac_try
='test -s conftest$ac_exeext'
30201 { (case "(($ac_try" in
30202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30203 *) ac_try_echo=$ac_try;;
30205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30206 (eval "$ac_try") 2>&5
30208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209 (exit $ac_status); }; }; then
30210 eval "$as_ac_var=yes"
30212 echo "$as_me: failed program was:" >&5
30213 sed 's/^/| /' conftest.$ac_ext >&5
30215 eval "$as_ac_var=no"
30218 rm -f core conftest.err conftest.$ac_objext \
30219 conftest$ac_exeext conftest.$ac_ext
30221 ac_res=`eval echo '${'$as_ac_var'}'`
30222 { echo "$as_me:$LINENO: result: $ac_res" >&5
30223 echo "${ECHO_T}$ac_res" >&6; }
30224 if test `eval echo '${'$as_ac_var'}'` = yes; then
30225 cat >>confdefs.h <<_ACEOF
30226 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
30238 for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
30240 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
30241 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30244 echo $ECHO_N "(cached) $ECHO_C" >&6
30246 cat >conftest.$ac_ext <<_ACEOF
30249 cat confdefs.h >>conftest.$ac_ext
30250 cat >>conftest.$ac_ext <<_ACEOF
30251 /* end confdefs.h. */
30252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30254 #define $ac_func innocuous_$ac_func
30256 /* System header to define __stub macros and hopefully few prototypes,
30257 which can conflict with char $ac_func (); below.
30258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30259 <limits.h> exists even on freestanding compilers. */
30262 # include <limits.h>
30264 # include <assert.h>
30269 /* Override any GCC internal prototype to avoid an error.
30270 Use char because int might match the return type of a GCC
30271 builtin and then its argument prototype would still apply. */
30276 /* The GNU C library defines this for functions which it implements
30277 to always fail with ENOSYS. Some functions are actually named
30278 something starting with __ and the normal name is an alias. */
30279 #if defined __stub_$ac_func || defined __stub___$ac_func
30286 return $ac_func ();
30291 rm -f conftest.$ac_objext conftest$ac_exeext
30292 if { (ac_try="$ac_link"
30293 case "(($ac_try" in
30294 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30295 *) ac_try_echo
=$ac_try;;
30297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30298 (eval "$ac_link") 2>conftest.er1
30300 grep -v '^ *+' conftest.er1
>conftest.err
30302 cat conftest.err
>&5
30303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304 (exit $ac_status); } &&
30305 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30306 { (case "(($ac_try" in
30307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30308 *) ac_try_echo=$ac_try;;
30310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30311 (eval "$ac_try") 2>&5
30313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314 (exit $ac_status); }; } &&
30315 { ac_try='test -s conftest$ac_exeext'
30316 { (case "(($ac_try" in
30317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30318 *) ac_try_echo
=$ac_try;;
30320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30321 (eval "$ac_try") 2>&5
30323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30324 (exit $ac_status); }; }; then
30325 eval "$as_ac_var=yes"
30327 echo "$as_me: failed program was:" >&5
30328 sed 's/^/| /' conftest.
$ac_ext >&5
30330 eval "$as_ac_var=no"
30333 rm -f core conftest.err conftest.
$ac_objext \
30334 conftest
$ac_exeext conftest.
$ac_ext
30336 ac_res
=`eval echo '${'$as_ac_var'}'`
30337 { echo "$as_me:$LINENO: result: $ac_res" >&5
30338 echo "${ECHO_T}$ac_res" >&6; }
30339 if test `eval echo '${'$as_ac_var'}'` = yes; then
30340 cat >>confdefs.h
<<_ACEOF
30341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30347 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30348 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
30349 if test "${llvm_cv_c_printf_a+set}" = set; then
30350 echo $ECHO_N "(cached) $ECHO_C" >&6
30353 ac_cpp
='$CPP $CPPFLAGS'
30354 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30355 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30356 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
30358 if test "$cross_compiling" = yes; then
30359 llvmac_cv_c_printf_a
=no
30361 cat >conftest.
$ac_ext <<_ACEOF
30365 cat confdefs.h
>>conftest.
$ac_ext
30366 cat >>conftest.
$ac_ext <<_ACEOF
30367 /* end confdefs.h. */
30370 #include <stdlib.h>
30376 volatile double A, B;
30380 sprintf(Buffer, "%a", A);
30384 if (A != 0x1.999999999999ap-4)
30391 rm -f conftest
$ac_exeext
30392 if { (ac_try
="$ac_link"
30393 case "(($ac_try" in
30394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30395 *) ac_try_echo=$ac_try;;
30397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30398 (eval "$ac_link") 2>&5
30400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30402 { (case "(($ac_try" in
30403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30404 *) ac_try_echo
=$ac_try;;
30406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30407 (eval "$ac_try") 2>&5
30409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30410 (exit $ac_status); }; }; then
30411 llvm_cv_c_printf_a
=yes
30413 echo "$as_me: program exited with status $ac_status" >&5
30414 echo "$as_me: failed program was:" >&5
30415 sed 's/^/| /' conftest.
$ac_ext >&5
30417 ( exit $ac_status )
30418 llvmac_cv_c_printf_a
=no
30420 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
30425 ac_cpp
='$CPP $CPPFLAGS'
30426 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30427 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30428 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
30431 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30432 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
30433 if test "$llvm_cv_c_printf_a" = "yes"; then
30435 cat >>confdefs.h
<<\_ACEOF
30436 #define HAVE_PRINTF_A 1
30441 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30442 # for constant arguments. Useless!
30443 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
30444 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30445 if test "${ac_cv_working_alloca_h+set}" = set; then
30446 echo $ECHO_N "(cached) $ECHO_C" >&6
30448 cat >conftest.
$ac_ext <<_ACEOF
30451 cat confdefs.h
>>conftest.
$ac_ext
30452 cat >>conftest.
$ac_ext <<_ACEOF
30453 /* end confdefs.h. */
30454 #include <alloca.h>
30458 char *p = (char *) alloca (2 * sizeof (int));
30464 rm -f conftest.
$ac_objext conftest
$ac_exeext
30465 if { (ac_try
="$ac_link"
30466 case "(($ac_try" in
30467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30468 *) ac_try_echo=$ac_try;;
30470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30471 (eval "$ac_link") 2>conftest.er1
30473 grep -v '^ *+' conftest.er1 >conftest.err
30475 cat conftest.err >&5
30476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30477 (exit $ac_status); } &&
30478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30479 { (case "(($ac_try" in
30480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30481 *) ac_try_echo
=$ac_try;;
30483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30484 (eval "$ac_try") 2>&5
30486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30487 (exit $ac_status); }; } &&
30488 { ac_try
='test -s conftest$ac_exeext'
30489 { (case "(($ac_try" in
30490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30491 *) ac_try_echo=$ac_try;;
30493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30494 (eval "$ac_try") 2>&5
30496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497 (exit $ac_status); }; }; then
30498 ac_cv_working_alloca_h=yes
30500 echo "$as_me: failed program was:" >&5
30501 sed 's/^/| /' conftest.$ac_ext >&5
30503 ac_cv_working_alloca_h=no
30506 rm -f core conftest.err conftest.$ac_objext \
30507 conftest$ac_exeext conftest.$ac_ext
30509 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30510 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30511 if test $ac_cv_working_alloca_h = yes; then
30513 cat >>confdefs.h <<\_ACEOF
30514 #define HAVE_ALLOCA_H 1
30519 { echo "$as_me:$LINENO: checking for alloca" >&5
30520 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30521 if test "${ac_cv_func_alloca_works+set}" = set; then
30522 echo $ECHO_N "(cached) $ECHO_C" >&6
30524 cat >conftest.$ac_ext <<_ACEOF
30527 cat confdefs.h >>conftest.$ac_ext
30528 cat >>conftest.$ac_ext <<_ACEOF
30529 /* end confdefs.h. */
30531 # define alloca __builtin_alloca
30534 # include <malloc.h>
30535 # define alloca _alloca
30538 # include <alloca.h>
30543 # ifndef alloca /* predefined by HP cc +Olibcalls */
30554 char *p = (char *) alloca (1);
30560 rm -f conftest.$ac_objext conftest$ac_exeext
30561 if { (ac_try="$ac_link"
30562 case "(($ac_try" in
30563 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30564 *) ac_try_echo
=$ac_try;;
30566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30567 (eval "$ac_link") 2>conftest.er1
30569 grep -v '^ *+' conftest.er1
>conftest.err
30571 cat conftest.err
>&5
30572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30573 (exit $ac_status); } &&
30574 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30575 { (case "(($ac_try" in
30576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30577 *) ac_try_echo=$ac_try;;
30579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30580 (eval "$ac_try") 2>&5
30582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583 (exit $ac_status); }; } &&
30584 { ac_try='test -s conftest$ac_exeext'
30585 { (case "(($ac_try" in
30586 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30587 *) ac_try_echo
=$ac_try;;
30589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30590 (eval "$ac_try") 2>&5
30592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593 (exit $ac_status); }; }; then
30594 ac_cv_func_alloca_works
=yes
30596 echo "$as_me: failed program was:" >&5
30597 sed 's/^/| /' conftest.
$ac_ext >&5
30599 ac_cv_func_alloca_works
=no
30602 rm -f core conftest.err conftest.
$ac_objext \
30603 conftest
$ac_exeext conftest.
$ac_ext
30605 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30606 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30608 if test $ac_cv_func_alloca_works = yes; then
30610 cat >>confdefs.h
<<\_ACEOF
30611 #define HAVE_ALLOCA 1
30615 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30616 # that cause trouble. Some versions do not even contain alloca or
30617 # contain a buggy version. If you still want to use their alloca,
30618 # use ar to extract alloca.o from them instead of compiling alloca.c.
30620 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
30622 cat >>confdefs.h
<<\_ACEOF
30627 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30628 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30629 if test "${ac_cv_os_cray+set}" = set; then
30630 echo $ECHO_N "(cached) $ECHO_C" >&6
30632 cat >conftest.
$ac_ext <<_ACEOF
30635 cat confdefs.h
>>conftest.
$ac_ext
30636 cat >>conftest.
$ac_ext <<_ACEOF
30637 /* end confdefs.h. */
30638 #if defined CRAY && ! defined CRAY2
30645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30646 $EGREP "webecray" >/dev
/null
2>&1; then
30654 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30655 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30656 if test $ac_cv_os_cray = yes; then
30657 for ac_func
in _getb67 GETB67 getb67
; do
30658 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30659 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30661 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30662 echo $ECHO_N "(cached) $ECHO_C" >&6
30664 cat >conftest.
$ac_ext <<_ACEOF
30667 cat confdefs.h
>>conftest.
$ac_ext
30668 cat >>conftest.
$ac_ext <<_ACEOF
30669 /* end confdefs.h. */
30670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30672 #define $ac_func innocuous_$ac_func
30674 /* System header to define __stub macros and hopefully few prototypes,
30675 which can conflict with char $ac_func (); below.
30676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30677 <limits.h> exists even on freestanding compilers. */
30680 # include <limits.h>
30682 # include <assert.h>
30687 /* Override any GCC internal prototype to avoid an error.
30688 Use char because int might match the return type of a GCC
30689 builtin and then its argument prototype would still apply. */
30694 /* The GNU C library defines this for functions which it implements
30695 to always fail with ENOSYS. Some functions are actually named
30696 something starting with __ and the normal name is an alias. */
30697 #if defined __stub_$ac_func || defined __stub___$ac_func
30704 return $ac_func ();
30709 rm -f conftest.
$ac_objext conftest
$ac_exeext
30710 if { (ac_try
="$ac_link"
30711 case "(($ac_try" in
30712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30713 *) ac_try_echo=$ac_try;;
30715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30716 (eval "$ac_link") 2>conftest.er1
30718 grep -v '^ *+' conftest.er1 >conftest.err
30720 cat conftest.err >&5
30721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722 (exit $ac_status); } &&
30723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30724 { (case "(($ac_try" in
30725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30726 *) ac_try_echo
=$ac_try;;
30728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30729 (eval "$ac_try") 2>&5
30731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30732 (exit $ac_status); }; } &&
30733 { ac_try
='test -s conftest$ac_exeext'
30734 { (case "(($ac_try" in
30735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30736 *) ac_try_echo=$ac_try;;
30738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30739 (eval "$ac_try") 2>&5
30741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30742 (exit $ac_status); }; }; then
30743 eval "$as_ac_var=yes"
30745 echo "$as_me: failed program was:" >&5
30746 sed 's/^/| /' conftest.$ac_ext >&5
30748 eval "$as_ac_var=no"
30751 rm -f core conftest.err conftest.$ac_objext \
30752 conftest$ac_exeext conftest.$ac_ext
30754 ac_res=`eval echo '${'$as_ac_var'}'`
30755 { echo "$as_me:$LINENO: result: $ac_res" >&5
30756 echo "${ECHO_T}$ac_res" >&6; }
30757 if test `eval echo '${'$as_ac_var'}'` = yes; then
30759 cat >>confdefs.h <<_ACEOF
30760 #define CRAY_STACKSEG_END $ac_func
30769 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30770 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
30771 if test "${ac_cv_c_stack_direction+set}" = set; then
30772 echo $ECHO_N "(cached) $ECHO_C" >&6
30774 if test "$cross_compiling" = yes; then
30775 ac_cv_c_stack_direction=0
30777 cat >conftest.$ac_ext <<_ACEOF
30780 cat confdefs.h >>conftest.$ac_ext
30781 cat >>conftest.$ac_ext <<_ACEOF
30782 /* end confdefs.h. */
30783 $ac_includes_default
30785 find_stack_direction ()
30787 static char *addr = 0;
30792 return find_stack_direction ();
30795 return (&dummy > addr) ? 1 : -1;
30801 return find_stack_direction () < 0;
30804 rm -f conftest$ac_exeext
30805 if { (ac_try="$ac_link"
30806 case "(($ac_try" in
30807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30808 *) ac_try_echo
=$ac_try;;
30810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30811 (eval "$ac_link") 2>&5
30813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30814 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
30815 { (case "(($ac_try" in
30816 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30817 *) ac_try_echo=$ac_try;;
30819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30820 (eval "$ac_try") 2>&5
30822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823 (exit $ac_status); }; }; then
30824 ac_cv_c_stack_direction=1
30826 echo "$as_me: program exited with status $ac_status" >&5
30827 echo "$as_me: failed program was:" >&5
30828 sed 's/^/| /' conftest.$ac_ext >&5
30830 ( exit $ac_status )
30831 ac_cv_c_stack_direction=-1
30833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30838 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30839 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
30841 cat >>confdefs.h <<_ACEOF
30842 #define STACK_DIRECTION $ac_cv_c_stack_direction
30849 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30850 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
30851 if test "${ac_cv_func_rand48+set}" = set; then
30852 echo $ECHO_N "(cached) $ECHO_C" >&6
30855 ac_cpp='$CXXCPP $CPPFLAGS'
30856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30860 cat >conftest.$ac_ext <<_ACEOF
30863 cat confdefs.h >>conftest.$ac_ext
30864 cat >>conftest.$ac_ext <<_ACEOF
30865 /* end confdefs.h. */
30866 #include <stdlib.h>
30870 srand48(0);lrand48();drand48();
30875 rm -f conftest.$ac_objext
30876 if { (ac_try="$ac_compile"
30877 case "(($ac_try" in
30878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30879 *) ac_try_echo
=$ac_try;;
30881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30882 (eval "$ac_compile") 2>conftest.er1
30884 grep -v '^ *+' conftest.er1
>conftest.err
30886 cat conftest.err
>&5
30887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30888 (exit $ac_status); } &&
30889 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30890 { (case "(($ac_try" in
30891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30892 *) ac_try_echo=$ac_try;;
30894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30895 (eval "$ac_try") 2>&5
30897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30898 (exit $ac_status); }; } &&
30899 { ac_try='test -s conftest.$ac_objext'
30900 { (case "(($ac_try" in
30901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30902 *) ac_try_echo
=$ac_try;;
30904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30905 (eval "$ac_try") 2>&5
30907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30908 (exit $ac_status); }; }; then
30909 ac_cv_func_rand48
=yes
30911 echo "$as_me: failed program was:" >&5
30912 sed 's/^/| /' conftest.
$ac_ext >&5
30914 ac_cv_func_rand48
=no
30917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30919 ac_cpp
='$CPP $CPPFLAGS'
30920 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30921 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30922 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
30925 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30926 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
30928 if test "$ac_cv_func_rand48" = "yes" ; then
30930 cat >>confdefs.h
<<\_ACEOF
30931 #define HAVE_RAND48 1
30937 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
30938 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
30939 if test "${ac_cv_cxx_namespaces+set}" = set; then
30940 echo $ECHO_N "(cached) $ECHO_C" >&6
30943 ac_cpp
='$CXXCPP $CPPFLAGS'
30944 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30945 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30946 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
30948 cat >conftest.
$ac_ext <<_ACEOF
30951 cat confdefs.h
>>conftest.
$ac_ext
30952 cat >>conftest.
$ac_ext <<_ACEOF
30953 /* end confdefs.h. */
30954 namespace Outer { namespace Inner { int i = 0; }}
30958 using namespace Outer::Inner; return i;
30963 rm -f conftest.
$ac_objext
30964 if { (ac_try
="$ac_compile"
30965 case "(($ac_try" in
30966 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30967 *) ac_try_echo=$ac_try;;
30969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30970 (eval "$ac_compile") 2>conftest.er1
30972 grep -v '^ *+' conftest.er1 >conftest.err
30974 cat conftest.err >&5
30975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30976 (exit $ac_status); } &&
30977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30978 { (case "(($ac_try" in
30979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30980 *) ac_try_echo
=$ac_try;;
30982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30983 (eval "$ac_try") 2>&5
30985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986 (exit $ac_status); }; } &&
30987 { ac_try
='test -s conftest.$ac_objext'
30988 { (case "(($ac_try" in
30989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30990 *) ac_try_echo=$ac_try;;
30992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30993 (eval "$ac_try") 2>&5
30995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996 (exit $ac_status); }; }; then
30997 ac_cv_cxx_namespaces=yes
30999 echo "$as_me: failed program was:" >&5
31000 sed 's/^/| /' conftest.$ac_ext >&5
31002 ac_cv_cxx_namespaces=no
31005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31007 ac_cpp='$CPP $CPPFLAGS'
31008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31014 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31015 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31016 if test "$ac_cv_cxx_namespaces" = yes; then
31018 cat >>confdefs.h <<\_ACEOF
31019 #define HAVE_NAMESPACES
31024 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31025 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31026 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31027 echo $ECHO_N "(cached) $ECHO_C" >&6
31031 ac_cpp='$CXXCPP $CPPFLAGS'
31032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31036 cat >conftest.$ac_ext <<_ACEOF
31039 cat confdefs.h >>conftest.$ac_ext
31040 cat >>conftest.$ac_ext <<_ACEOF
31041 /* end confdefs.h. */
31042 #include <ext/hash_map>
31043 #ifdef HAVE_NAMESPACES
31044 using namespace std;
31049 hash_map<int, int> t;
31054 rm -f conftest.$ac_objext
31055 if { (ac_try="$ac_compile"
31056 case "(($ac_try" in
31057 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31058 *) ac_try_echo
=$ac_try;;
31060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31061 (eval "$ac_compile") 2>conftest.er1
31063 grep -v '^ *+' conftest.er1
>conftest.err
31065 cat conftest.err
>&5
31066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067 (exit $ac_status); } &&
31068 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31069 { (case "(($ac_try" in
31070 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31071 *) ac_try_echo=$ac_try;;
31073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31074 (eval "$ac_try") 2>&5
31076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31077 (exit $ac_status); }; } &&
31078 { ac_try='test -s conftest.$ac_objext'
31079 { (case "(($ac_try" in
31080 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31081 *) ac_try_echo
=$ac_try;;
31083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31084 (eval "$ac_try") 2>&5
31086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31087 (exit $ac_status); }; }; then
31088 ac_cv_cxx_have_std_ext_hash_map
=yes
31090 echo "$as_me: failed program was:" >&5
31091 sed 's/^/| /' conftest.
$ac_ext >&5
31093 ac_cv_cxx_have_std_ext_hash_map
=no
31096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31098 ac_cpp
='$CPP $CPPFLAGS'
31099 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31100 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31101 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
31104 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31105 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31106 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31109 cat >>confdefs.h
<<\_ACEOF
31110 #define HAVE_STD_EXT_HASH_MAP 1
31115 cat >>confdefs.h
<<\_ACEOF
31116 #define HAVE_STD_EXT_HASH_MAP 0
31121 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31122 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31123 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31124 echo $ECHO_N "(cached) $ECHO_C" >&6
31128 ac_cpp
='$CXXCPP $CPPFLAGS'
31129 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31130 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31131 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
31133 cat >conftest.
$ac_ext <<_ACEOF
31136 cat confdefs.h
>>conftest.
$ac_ext
31137 cat >>conftest.
$ac_ext <<_ACEOF
31138 /* end confdefs.h. */
31139 #include <ext/hash_map>
31140 #ifdef HAVE_NAMESPACES
31141 using namespace __gnu_cxx;
31146 hash_map<int,int> t;
31151 rm -f conftest.
$ac_objext
31152 if { (ac_try
="$ac_compile"
31153 case "(($ac_try" in
31154 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31155 *) ac_try_echo=$ac_try;;
31157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31158 (eval "$ac_compile") 2>conftest.er1
31160 grep -v '^ *+' conftest.er1 >conftest.err
31162 cat conftest.err >&5
31163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164 (exit $ac_status); } &&
31165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31166 { (case "(($ac_try" in
31167 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31168 *) ac_try_echo
=$ac_try;;
31170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31171 (eval "$ac_try") 2>&5
31173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174 (exit $ac_status); }; } &&
31175 { ac_try
='test -s conftest.$ac_objext'
31176 { (case "(($ac_try" in
31177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31178 *) ac_try_echo=$ac_try;;
31180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31181 (eval "$ac_try") 2>&5
31183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31184 (exit $ac_status); }; }; then
31185 ac_cv_cxx_have_gnu_ext_hash_map=yes
31187 echo "$as_me: failed program was:" >&5
31188 sed 's/^/| /' conftest.$ac_ext >&5
31190 ac_cv_cxx_have_gnu_ext_hash_map=no
31193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31195 ac_cpp='$CPP $CPPFLAGS'
31196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31201 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31202 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31203 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31206 cat >>confdefs.h <<\_ACEOF
31207 #define HAVE_GNU_EXT_HASH_MAP 1
31212 cat >>confdefs.h <<\_ACEOF
31213 #define HAVE_GNU_EXT_HASH_MAP 0
31218 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31219 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31220 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31221 echo $ECHO_N "(cached) $ECHO_C" >&6
31225 ac_cpp='$CXXCPP $CPPFLAGS'
31226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31230 cat >conftest.$ac_ext <<_ACEOF
31233 cat confdefs.h >>conftest.$ac_ext
31234 cat >>conftest.$ac_ext <<_ACEOF
31235 /* end confdefs.h. */
31236 #include <hash_map>
31240 hash_map<int,int> t;
31245 rm -f conftest.$ac_objext
31246 if { (ac_try="$ac_compile"
31247 case "(($ac_try" in
31248 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31249 *) ac_try_echo
=$ac_try;;
31251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31252 (eval "$ac_compile") 2>conftest.er1
31254 grep -v '^ *+' conftest.er1
>conftest.err
31256 cat conftest.err
>&5
31257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31258 (exit $ac_status); } &&
31259 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31260 { (case "(($ac_try" in
31261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31262 *) ac_try_echo=$ac_try;;
31264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31265 (eval "$ac_try") 2>&5
31267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268 (exit $ac_status); }; } &&
31269 { ac_try='test -s conftest.$ac_objext'
31270 { (case "(($ac_try" in
31271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31272 *) ac_try_echo
=$ac_try;;
31274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31275 (eval "$ac_try") 2>&5
31277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31278 (exit $ac_status); }; }; then
31279 ac_cv_cxx_have_global_hash_map
=yes
31281 echo "$as_me: failed program was:" >&5
31282 sed 's/^/| /' conftest.
$ac_ext >&5
31284 ac_cv_cxx_have_global_hash_map
=no
31287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31289 ac_cpp
='$CPP $CPPFLAGS'
31290 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31291 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31292 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
31295 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31296 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31297 if test "$ac_cv_cxx_have_global_hash_map" = yes
31300 cat >>confdefs.h
<<\_ACEOF
31301 #define HAVE_GLOBAL_HASH_MAP 1
31306 cat >>confdefs.h
<<\_ACEOF
31307 #define HAVE_GLOBAL_HASH_MAP 0
31312 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31313 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31314 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31315 echo $ECHO_N "(cached) $ECHO_C" >&6
31319 ac_cpp
='$CXXCPP $CPPFLAGS'
31320 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31321 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31322 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
31324 cat >conftest.
$ac_ext <<_ACEOF
31327 cat confdefs.h
>>conftest.
$ac_ext
31328 cat >>conftest.
$ac_ext <<_ACEOF
31329 /* end confdefs.h. */
31330 #include <ext/hash_set>
31331 #ifdef HAVE_NAMESPACES
31332 using namespace std;
31342 rm -f conftest.
$ac_objext
31343 if { (ac_try
="$ac_compile"
31344 case "(($ac_try" in
31345 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31346 *) ac_try_echo=$ac_try;;
31348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31349 (eval "$ac_compile") 2>conftest.er1
31351 grep -v '^ *+' conftest.er1 >conftest.err
31353 cat conftest.err >&5
31354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355 (exit $ac_status); } &&
31356 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31357 { (case "(($ac_try" in
31358 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31359 *) ac_try_echo
=$ac_try;;
31361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31362 (eval "$ac_try") 2>&5
31364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365 (exit $ac_status); }; } &&
31366 { ac_try
='test -s conftest.$ac_objext'
31367 { (case "(($ac_try" in
31368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31369 *) ac_try_echo=$ac_try;;
31371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31372 (eval "$ac_try") 2>&5
31374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375 (exit $ac_status); }; }; then
31376 ac_cv_cxx_have_std_ext_hash_set=yes
31378 echo "$as_me: failed program was:" >&5
31379 sed 's/^/| /' conftest.$ac_ext >&5
31381 ac_cv_cxx_have_std_ext_hash_set=no
31384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31386 ac_cpp='$CPP $CPPFLAGS'
31387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31392 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31393 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
31394 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31397 cat >>confdefs.h <<\_ACEOF
31398 #define HAVE_STD_EXT_HASH_SET 1
31403 cat >>confdefs.h <<\_ACEOF
31404 #define HAVE_STD_EXT_HASH_SET 0
31409 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31410 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
31411 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31412 echo $ECHO_N "(cached) $ECHO_C" >&6
31416 ac_cpp='$CXXCPP $CPPFLAGS'
31417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31421 cat >conftest.$ac_ext <<_ACEOF
31424 cat confdefs.h >>conftest.$ac_ext
31425 cat >>conftest.$ac_ext <<_ACEOF
31426 /* end confdefs.h. */
31427 #include <ext/hash_set>
31428 #ifdef HAVE_NAMESPACES
31429 using namespace __gnu_cxx;
31439 rm -f conftest.$ac_objext
31440 if { (ac_try="$ac_compile"
31441 case "(($ac_try" in
31442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31443 *) ac_try_echo
=$ac_try;;
31445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31446 (eval "$ac_compile") 2>conftest.er1
31448 grep -v '^ *+' conftest.er1
>conftest.err
31450 cat conftest.err
>&5
31451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31452 (exit $ac_status); } &&
31453 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31454 { (case "(($ac_try" in
31455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31456 *) ac_try_echo=$ac_try;;
31458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31459 (eval "$ac_try") 2>&5
31461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31462 (exit $ac_status); }; } &&
31463 { ac_try='test -s conftest.$ac_objext'
31464 { (case "(($ac_try" in
31465 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31466 *) ac_try_echo
=$ac_try;;
31468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31469 (eval "$ac_try") 2>&5
31471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31472 (exit $ac_status); }; }; then
31473 ac_cv_cxx_have_gnu_ext_hash_set
=yes
31475 echo "$as_me: failed program was:" >&5
31476 sed 's/^/| /' conftest.
$ac_ext >&5
31478 ac_cv_cxx_have_gnu_ext_hash_set
=no
31481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31483 ac_cpp
='$CPP $CPPFLAGS'
31484 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31485 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31486 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
31489 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31490 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
31491 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31494 cat >>confdefs.h
<<\_ACEOF
31495 #define HAVE_GNU_EXT_HASH_SET 1
31500 cat >>confdefs.h
<<\_ACEOF
31501 #define HAVE_GNU_EXT_HASH_SET 0
31506 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31507 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
31508 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31509 echo $ECHO_N "(cached) $ECHO_C" >&6
31513 ac_cpp
='$CXXCPP $CPPFLAGS'
31514 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31515 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31516 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
31518 cat >conftest.
$ac_ext <<_ACEOF
31521 cat confdefs.h
>>conftest.
$ac_ext
31522 cat >>conftest.
$ac_ext <<_ACEOF
31523 /* end confdefs.h. */
31524 #include <hash_set>
31528 hash_set<int> t; return 0;
31533 rm -f conftest.
$ac_objext
31534 if { (ac_try
="$ac_compile"
31535 case "(($ac_try" in
31536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31537 *) ac_try_echo=$ac_try;;
31539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31540 (eval "$ac_compile") 2>conftest.er1
31542 grep -v '^ *+' conftest.er1 >conftest.err
31544 cat conftest.err >&5
31545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31546 (exit $ac_status); } &&
31547 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31548 { (case "(($ac_try" in
31549 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31550 *) ac_try_echo
=$ac_try;;
31552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31553 (eval "$ac_try") 2>&5
31555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31556 (exit $ac_status); }; } &&
31557 { ac_try
='test -s conftest.$ac_objext'
31558 { (case "(($ac_try" in
31559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31560 *) ac_try_echo=$ac_try;;
31562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31563 (eval "$ac_try") 2>&5
31565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31566 (exit $ac_status); }; }; then
31567 ac_cv_cxx_have_global_hash_set=yes
31569 echo "$as_me: failed program was:" >&5
31570 sed 's/^/| /' conftest.$ac_ext >&5
31572 ac_cv_cxx_have_global_hash_set=no
31575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31577 ac_cpp='$CPP $CPPFLAGS'
31578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31583 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31584 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
31585 if test "$ac_cv_cxx_have_global_hash_set" = yes
31588 cat >>confdefs.h <<\_ACEOF
31589 #define HAVE_GLOBAL_HASH_SET 1
31594 cat >>confdefs.h <<\_ACEOF
31595 #define HAVE_GLOBAL_HASH_SET 0
31600 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31601 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
31602 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31603 echo $ECHO_N "(cached) $ECHO_C" >&6
31607 ac_cpp='$CXXCPP $CPPFLAGS'
31608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31612 cat >conftest.$ac_ext <<_ACEOF
31615 cat confdefs.h >>conftest.$ac_ext
31616 cat >>conftest.$ac_ext <<_ACEOF
31617 /* end confdefs.h. */
31618 #include <iterator>
31619 #ifdef HAVE_NAMESPACES
31620 using namespace std;
31625 iterator<int,int,int> t; return 0;
31630 rm -f conftest.$ac_objext
31631 if { (ac_try="$ac_compile"
31632 case "(($ac_try" in
31633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31634 *) ac_try_echo
=$ac_try;;
31636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31637 (eval "$ac_compile") 2>conftest.er1
31639 grep -v '^ *+' conftest.er1
>conftest.err
31641 cat conftest.err
>&5
31642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31643 (exit $ac_status); } &&
31644 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31645 { (case "(($ac_try" in
31646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31647 *) ac_try_echo=$ac_try;;
31649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31650 (eval "$ac_try") 2>&5
31652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653 (exit $ac_status); }; } &&
31654 { ac_try='test -s conftest.$ac_objext'
31655 { (case "(($ac_try" in
31656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31657 *) ac_try_echo
=$ac_try;;
31659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31660 (eval "$ac_try") 2>&5
31662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31663 (exit $ac_status); }; }; then
31664 ac_cv_cxx_have_std_iterator
=yes
31666 echo "$as_me: failed program was:" >&5
31667 sed 's/^/| /' conftest.
$ac_ext >&5
31669 ac_cv_cxx_have_std_iterator
=no
31672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31674 ac_cpp
='$CPP $CPPFLAGS'
31675 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31676 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31677 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
31681 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31682 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
31683 if test "$ac_cv_cxx_have_std_iterator" = yes
31686 cat >>confdefs.h
<<\_ACEOF
31687 #define HAVE_STD_ITERATOR 1
31692 cat >>confdefs.h
<<\_ACEOF
31693 #define HAVE_STD_ITERATOR 0
31698 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31699 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
31700 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31701 echo $ECHO_N "(cached) $ECHO_C" >&6
31705 ac_cpp
='$CXXCPP $CPPFLAGS'
31706 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31707 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31708 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
31710 cat >conftest.
$ac_ext <<_ACEOF
31713 cat confdefs.h
>>conftest.
$ac_ext
31714 cat >>conftest.
$ac_ext <<_ACEOF
31715 /* end confdefs.h. */
31716 #include <iterator>
31717 #ifdef HAVE_NAMESPACES
31718 using namespace std;
31723 bidirectional_iterator<int,int> t; return 0;
31728 rm -f conftest.
$ac_objext
31729 if { (ac_try
="$ac_compile"
31730 case "(($ac_try" in
31731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31732 *) ac_try_echo=$ac_try;;
31734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31735 (eval "$ac_compile") 2>conftest.er1
31737 grep -v '^ *+' conftest.er1 >conftest.err
31739 cat conftest.err >&5
31740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31741 (exit $ac_status); } &&
31742 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31743 { (case "(($ac_try" in
31744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31745 *) ac_try_echo
=$ac_try;;
31747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31748 (eval "$ac_try") 2>&5
31750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31751 (exit $ac_status); }; } &&
31752 { ac_try
='test -s conftest.$ac_objext'
31753 { (case "(($ac_try" in
31754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31755 *) ac_try_echo=$ac_try;;
31757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31758 (eval "$ac_try") 2>&5
31760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31761 (exit $ac_status); }; }; then
31762 ac_cv_cxx_have_bi_iterator=yes
31764 echo "$as_me: failed program was:" >&5
31765 sed 's/^/| /' conftest.$ac_ext >&5
31767 ac_cv_cxx_have_bi_iterator=no
31770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31772 ac_cpp='$CPP $CPPFLAGS'
31773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31779 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31780 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
31781 if test "$ac_cv_cxx_have_bi_iterator" = yes
31784 cat >>confdefs.h <<\_ACEOF
31785 #define HAVE_BI_ITERATOR 1
31790 cat >>confdefs.h <<\_ACEOF
31791 #define HAVE_BI_ITERATOR 0
31796 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31797 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
31798 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31799 echo $ECHO_N "(cached) $ECHO_C" >&6
31803 ac_cpp='$CXXCPP $CPPFLAGS'
31804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31808 cat >conftest.$ac_ext <<_ACEOF
31811 cat confdefs.h >>conftest.$ac_ext
31812 cat >>conftest.$ac_ext <<_ACEOF
31813 /* end confdefs.h. */
31814 #include <iterator>
31815 #ifdef HAVE_NAMESPACES
31816 using namespace std;
31821 forward_iterator<int,int> t; return 0;
31826 rm -f conftest.$ac_objext
31827 if { (ac_try="$ac_compile"
31828 case "(($ac_try" in
31829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31830 *) ac_try_echo
=$ac_try;;
31832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31833 (eval "$ac_compile") 2>conftest.er1
31835 grep -v '^ *+' conftest.er1
>conftest.err
31837 cat conftest.err
>&5
31838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839 (exit $ac_status); } &&
31840 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31841 { (case "(($ac_try" in
31842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31843 *) ac_try_echo=$ac_try;;
31845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31846 (eval "$ac_try") 2>&5
31848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31849 (exit $ac_status); }; } &&
31850 { ac_try='test -s conftest.$ac_objext'
31851 { (case "(($ac_try" in
31852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31853 *) ac_try_echo
=$ac_try;;
31855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31856 (eval "$ac_try") 2>&5
31858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31859 (exit $ac_status); }; }; then
31860 ac_cv_cxx_have_fwd_iterator
=yes
31862 echo "$as_me: failed program was:" >&5
31863 sed 's/^/| /' conftest.
$ac_ext >&5
31865 ac_cv_cxx_have_fwd_iterator
=no
31868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31870 ac_cpp
='$CPP $CPPFLAGS'
31871 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31872 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31873 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
31877 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31878 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
31879 if test "$ac_cv_cxx_have_fwd_iterator" = yes
31882 cat >>confdefs.h
<<\_ACEOF
31883 #define HAVE_FWD_ITERATOR 1
31888 cat >>confdefs.h
<<\_ACEOF
31889 #define HAVE_FWD_ITERATOR 0
31895 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31896 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
31897 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31898 echo $ECHO_N "(cached) $ECHO_C" >&6
31901 ac_cpp
='$CXXCPP $CPPFLAGS'
31902 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31903 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31904 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
31906 cat >conftest.
$ac_ext <<_ACEOF
31909 cat confdefs.h
>>conftest.
$ac_ext
31910 cat >>conftest.
$ac_ext <<_ACEOF
31911 /* end confdefs.h. */
31921 rm -f conftest.
$ac_objext
31922 if { (ac_try
="$ac_compile"
31923 case "(($ac_try" in
31924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31925 *) ac_try_echo=$ac_try;;
31927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31928 (eval "$ac_compile") 2>conftest.er1
31930 grep -v '^ *+' conftest.er1 >conftest.err
31932 cat conftest.err >&5
31933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934 (exit $ac_status); } &&
31935 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31936 { (case "(($ac_try" in
31937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31938 *) ac_try_echo
=$ac_try;;
31940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31941 (eval "$ac_try") 2>&5
31943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31944 (exit $ac_status); }; } &&
31945 { ac_try
='test -s conftest.$ac_objext'
31946 { (case "(($ac_try" in
31947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31948 *) ac_try_echo=$ac_try;;
31950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31951 (eval "$ac_try") 2>&5
31953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31954 (exit $ac_status); }; }; then
31955 ac_cv_func_isnan_in_math_h=yes
31957 echo "$as_me: failed program was:" >&5
31958 sed 's/^/| /' conftest.$ac_ext >&5
31960 ac_cv_func_isnan_in_math_h=no
31963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31965 ac_cpp='$CPP $CPPFLAGS'
31966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31971 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
31972 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
31975 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
31977 cat >>confdefs.h <<\_ACEOF
31978 #define HAVE_ISNAN_IN_MATH_H 1
31983 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
31984 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
31985 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
31986 echo $ECHO_N "(cached) $ECHO_C" >&6
31989 ac_cpp='$CXXCPP $CPPFLAGS'
31990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31994 cat >conftest.$ac_ext <<_ACEOF
31997 cat confdefs.h >>conftest.$ac_ext
31998 cat >>conftest.$ac_ext <<_ACEOF
31999 /* end confdefs.h. */
32009 rm -f conftest.$ac_objext
32010 if { (ac_try="$ac_compile"
32011 case "(($ac_try" in
32012 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32013 *) ac_try_echo
=$ac_try;;
32015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32016 (eval "$ac_compile") 2>conftest.er1
32018 grep -v '^ *+' conftest.er1
>conftest.err
32020 cat conftest.err
>&5
32021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022 (exit $ac_status); } &&
32023 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32024 { (case "(($ac_try" in
32025 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32026 *) ac_try_echo=$ac_try;;
32028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32029 (eval "$ac_try") 2>&5
32031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032 (exit $ac_status); }; } &&
32033 { ac_try='test -s conftest.$ac_objext'
32034 { (case "(($ac_try" in
32035 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32036 *) ac_try_echo
=$ac_try;;
32038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32039 (eval "$ac_try") 2>&5
32041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32042 (exit $ac_status); }; }; then
32043 ac_cv_func_isnan_in_cmath
=yes
32045 echo "$as_me: failed program was:" >&5
32046 sed 's/^/| /' conftest.
$ac_ext >&5
32048 ac_cv_func_isnan_in_cmath
=no
32051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32053 ac_cpp
='$CPP $CPPFLAGS'
32054 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32055 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32056 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
32059 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32060 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32062 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32064 cat >>confdefs.h
<<\_ACEOF
32065 #define HAVE_ISNAN_IN_CMATH 1
32070 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32071 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32072 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32073 echo $ECHO_N "(cached) $ECHO_C" >&6
32076 ac_cpp
='$CXXCPP $CPPFLAGS'
32077 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32078 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32079 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
32081 cat >conftest.
$ac_ext <<_ACEOF
32084 cat confdefs.h
>>conftest.
$ac_ext
32085 cat >>conftest.
$ac_ext <<_ACEOF
32086 /* end confdefs.h. */
32091 float f; std::isnan(f);
32096 rm -f conftest.
$ac_objext
32097 if { (ac_try
="$ac_compile"
32098 case "(($ac_try" in
32099 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32100 *) ac_try_echo=$ac_try;;
32102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32103 (eval "$ac_compile") 2>conftest.er1
32105 grep -v '^ *+' conftest.er1 >conftest.err
32107 cat conftest.err >&5
32108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109 (exit $ac_status); } &&
32110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32111 { (case "(($ac_try" in
32112 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32113 *) ac_try_echo
=$ac_try;;
32115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32116 (eval "$ac_try") 2>&5
32118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119 (exit $ac_status); }; } &&
32120 { ac_try
='test -s conftest.$ac_objext'
32121 { (case "(($ac_try" in
32122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32123 *) ac_try_echo=$ac_try;;
32125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32126 (eval "$ac_try") 2>&5
32128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129 (exit $ac_status); }; }; then
32130 ac_cv_func_std_isnan_in_cmath=yes
32132 echo "$as_me: failed program was:" >&5
32133 sed 's/^/| /' conftest.$ac_ext >&5
32135 ac_cv_func_std_isnan_in_cmath=no
32138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32140 ac_cpp='$CPP $CPPFLAGS'
32141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32146 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32147 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32149 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32151 cat >>confdefs.h <<\_ACEOF
32152 #define HAVE_STD_ISNAN_IN_CMATH 1
32158 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32159 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32160 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32161 echo $ECHO_N "(cached) $ECHO_C" >&6
32164 ac_cpp='$CXXCPP $CPPFLAGS'
32165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32169 cat >conftest.$ac_ext <<_ACEOF
32172 cat confdefs.h >>conftest.$ac_ext
32173 cat >>conftest.$ac_ext <<_ACEOF
32174 /* end confdefs.h. */
32184 rm -f conftest.$ac_objext
32185 if { (ac_try="$ac_compile"
32186 case "(($ac_try" in
32187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32188 *) ac_try_echo
=$ac_try;;
32190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32191 (eval "$ac_compile") 2>conftest.er1
32193 grep -v '^ *+' conftest.er1
>conftest.err
32195 cat conftest.err
>&5
32196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32197 (exit $ac_status); } &&
32198 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32199 { (case "(($ac_try" in
32200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32201 *) ac_try_echo=$ac_try;;
32203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32204 (eval "$ac_try") 2>&5
32206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32207 (exit $ac_status); }; } &&
32208 { ac_try='test -s conftest.$ac_objext'
32209 { (case "(($ac_try" in
32210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32211 *) ac_try_echo
=$ac_try;;
32213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32214 (eval "$ac_try") 2>&5
32216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217 (exit $ac_status); }; }; then
32218 ac_cv_func_isinf_in_math_h
=yes
32220 echo "$as_me: failed program was:" >&5
32221 sed 's/^/| /' conftest.
$ac_ext >&5
32223 ac_cv_func_isinf_in_math_h
=no
32226 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32228 ac_cpp
='$CPP $CPPFLAGS'
32229 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32230 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32231 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
32234 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32235 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32237 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32239 cat >>confdefs.h
<<\_ACEOF
32240 #define HAVE_ISINF_IN_MATH_H 1
32245 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32246 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32247 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32248 echo $ECHO_N "(cached) $ECHO_C" >&6
32251 ac_cpp
='$CXXCPP $CPPFLAGS'
32252 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32253 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32254 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
32256 cat >conftest.
$ac_ext <<_ACEOF
32259 cat confdefs.h
>>conftest.
$ac_ext
32260 cat >>conftest.
$ac_ext <<_ACEOF
32261 /* end confdefs.h. */
32271 rm -f conftest.
$ac_objext
32272 if { (ac_try
="$ac_compile"
32273 case "(($ac_try" in
32274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32275 *) ac_try_echo=$ac_try;;
32277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32278 (eval "$ac_compile") 2>conftest.er1
32280 grep -v '^ *+' conftest.er1 >conftest.err
32282 cat conftest.err >&5
32283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32284 (exit $ac_status); } &&
32285 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32286 { (case "(($ac_try" in
32287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32288 *) ac_try_echo
=$ac_try;;
32290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32291 (eval "$ac_try") 2>&5
32293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294 (exit $ac_status); }; } &&
32295 { ac_try
='test -s conftest.$ac_objext'
32296 { (case "(($ac_try" in
32297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32298 *) ac_try_echo=$ac_try;;
32300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32301 (eval "$ac_try") 2>&5
32303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304 (exit $ac_status); }; }; then
32305 ac_cv_func_isinf_in_cmath=yes
32307 echo "$as_me: failed program was:" >&5
32308 sed 's/^/| /' conftest.$ac_ext >&5
32310 ac_cv_func_isinf_in_cmath=no
32313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32315 ac_cpp='$CPP $CPPFLAGS'
32316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32321 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32322 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32324 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32326 cat >>confdefs.h <<\_ACEOF
32327 #define HAVE_ISINF_IN_CMATH 1
32332 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32333 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32334 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32335 echo $ECHO_N "(cached) $ECHO_C" >&6
32338 ac_cpp='$CXXCPP $CPPFLAGS'
32339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32343 cat >conftest.$ac_ext <<_ACEOF
32346 cat confdefs.h >>conftest.$ac_ext
32347 cat >>conftest.$ac_ext <<_ACEOF
32348 /* end confdefs.h. */
32353 float f; std::isinf(f)}
32358 rm -f conftest.$ac_objext
32359 if { (ac_try="$ac_compile"
32360 case "(($ac_try" in
32361 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32362 *) ac_try_echo
=$ac_try;;
32364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32365 (eval "$ac_compile") 2>conftest.er1
32367 grep -v '^ *+' conftest.er1
>conftest.err
32369 cat conftest.err
>&5
32370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32371 (exit $ac_status); } &&
32372 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32373 { (case "(($ac_try" in
32374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32375 *) ac_try_echo=$ac_try;;
32377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32378 (eval "$ac_try") 2>&5
32380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32381 (exit $ac_status); }; } &&
32382 { ac_try='test -s conftest.$ac_objext'
32383 { (case "(($ac_try" in
32384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32385 *) ac_try_echo
=$ac_try;;
32387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32388 (eval "$ac_try") 2>&5
32390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391 (exit $ac_status); }; }; then
32392 ac_cv_func_std_isinf_in_cmath
=yes
32394 echo "$as_me: failed program was:" >&5
32395 sed 's/^/| /' conftest.
$ac_ext >&5
32397 ac_cv_func_std_isinf_in_cmath
=no
32400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32402 ac_cpp
='$CPP $CPPFLAGS'
32403 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32404 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32405 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
32408 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32409 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32411 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32413 cat >>confdefs.h
<<\_ACEOF
32414 #define HAVE_STD_ISINF_IN_CMATH 1
32419 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32420 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32421 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32422 echo $ECHO_N "(cached) $ECHO_C" >&6
32425 ac_cpp
='$CXXCPP $CPPFLAGS'
32426 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32427 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32428 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
32430 cat >conftest.
$ac_ext <<_ACEOF
32433 cat confdefs.h
>>conftest.
$ac_ext
32434 cat >>conftest.
$ac_ext <<_ACEOF
32435 /* end confdefs.h. */
32436 #include <ieeefp.h>
32440 float f; finite(f);
32445 rm -f conftest.
$ac_objext
32446 if { (ac_try
="$ac_compile"
32447 case "(($ac_try" in
32448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32449 *) ac_try_echo=$ac_try;;
32451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32452 (eval "$ac_compile") 2>conftest.er1
32454 grep -v '^ *+' conftest.er1 >conftest.err
32456 cat conftest.err >&5
32457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458 (exit $ac_status); } &&
32459 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32460 { (case "(($ac_try" in
32461 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32462 *) ac_try_echo
=$ac_try;;
32464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32465 (eval "$ac_try") 2>&5
32467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468 (exit $ac_status); }; } &&
32469 { ac_try
='test -s conftest.$ac_objext'
32470 { (case "(($ac_try" in
32471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32472 *) ac_try_echo=$ac_try;;
32474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32475 (eval "$ac_try") 2>&5
32477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32478 (exit $ac_status); }; }; then
32479 ac_cv_func_finite_in_ieeefp_h=yes
32481 echo "$as_me: failed program was:" >&5
32482 sed 's/^/| /' conftest.$ac_ext >&5
32484 ac_cv_func_finite_in_ieeefp_h=no
32487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32489 ac_cpp='$CPP $CPPFLAGS'
32490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32495 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32496 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32498 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32500 cat >>confdefs.h <<\_ACEOF
32501 #define HAVE_FINITE_IN_IEEEFP_H 1
32510 for ac_header in stdlib.h unistd.h
32512 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
32513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32517 echo $ECHO_N "(cached) $ECHO_C" >&6
32519 ac_res=`eval echo '${'$as_ac_Header'}'`
32520 { echo "$as_me:$LINENO: result: $ac_res" >&5
32521 echo "${ECHO_T}$ac_res" >&6; }
32523 # Is the header compilable?
32524 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32526 cat >conftest.$ac_ext <<_ACEOF
32529 cat confdefs.h >>conftest.$ac_ext
32530 cat >>conftest.$ac_ext <<_ACEOF
32531 /* end confdefs.h. */
32532 $ac_includes_default
32533 #include <$ac_header>
32535 rm -f conftest.$ac_objext
32536 if { (ac_try="$ac_compile"
32537 case "(($ac_try" in
32538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32539 *) ac_try_echo
=$ac_try;;
32541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32542 (eval "$ac_compile") 2>conftest.er1
32544 grep -v '^ *+' conftest.er1
>conftest.err
32546 cat conftest.err
>&5
32547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548 (exit $ac_status); } &&
32549 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32550 { (case "(($ac_try" in
32551 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32552 *) ac_try_echo=$ac_try;;
32554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32555 (eval "$ac_try") 2>&5
32557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32558 (exit $ac_status); }; } &&
32559 { ac_try='test -s conftest.$ac_objext'
32560 { (case "(($ac_try" in
32561 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32562 *) ac_try_echo
=$ac_try;;
32564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32565 (eval "$ac_try") 2>&5
32567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32568 (exit $ac_status); }; }; then
32569 ac_header_compiler
=yes
32571 echo "$as_me: failed program was:" >&5
32572 sed 's/^/| /' conftest.
$ac_ext >&5
32574 ac_header_compiler
=no
32577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32579 echo "${ECHO_T}$ac_header_compiler" >&6; }
32581 # Is the header present?
32582 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32584 cat >conftest.
$ac_ext <<_ACEOF
32587 cat confdefs.h
>>conftest.
$ac_ext
32588 cat >>conftest.
$ac_ext <<_ACEOF
32589 /* end confdefs.h. */
32590 #include <$ac_header>
32592 if { (ac_try
="$ac_cpp conftest.$ac_ext"
32593 case "(($ac_try" in
32594 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32595 *) ac_try_echo=$ac_try;;
32597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32600 grep -v '^ *+' conftest.er1 >conftest.err
32602 cat conftest.err >&5
32603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32604 (exit $ac_status); } >/dev/null; then
32605 if test -s conftest.err; then
32606 ac_cpp_err=$ac_c_preproc_warn_flag
32607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32614 if test -z "$ac_cpp_err"; then
32615 ac_header_preproc=yes
32617 echo "$as_me: failed program was:" >&5
32618 sed 's/^/| /' conftest.$ac_ext >&5
32620 ac_header_preproc=no
32623 rm -f conftest.err conftest.$ac_ext
32624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32625 echo "${ECHO_T}$ac_header_preproc" >&6; }
32627 # So? What about this header?
32628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32634 ac_header_preproc=yes
32637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32640 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32641 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32643 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32644 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32647 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32650 ## ----------------------------------- ##
32651 ## Report this to llvmbugs@cs.uiuc.edu ##
32652 ## ----------------------------------- ##
32654 ) | sed "s/^/$as_me: WARNING: /" >&2
32657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32660 echo $ECHO_N "(cached) $ECHO_C" >&6
32662 eval "$as_ac_Header=\$ac_header_preproc"
32664 ac_res=`eval echo '${'$as_ac_Header'}'`
32665 { echo "$as_me:$LINENO: result: $ac_res" >&5
32666 echo "${ECHO_T}$ac_res" >&6; }
32669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32670 cat >>confdefs.h <<_ACEOF
32671 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
32679 for ac_func in getpagesize
32681 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
32682 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32685 echo $ECHO_N "(cached) $ECHO_C" >&6
32687 cat >conftest.$ac_ext <<_ACEOF
32690 cat confdefs.h >>conftest.$ac_ext
32691 cat >>conftest.$ac_ext <<_ACEOF
32692 /* end confdefs.h. */
32693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32695 #define $ac_func innocuous_$ac_func
32697 /* System header to define __stub macros and hopefully few prototypes,
32698 which can conflict with char $ac_func (); below.
32699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32700 <limits.h> exists even on freestanding compilers. */
32703 # include <limits.h>
32705 # include <assert.h>
32710 /* Override any GCC internal prototype to avoid an error.
32711 Use char because int might match the return type of a GCC
32712 builtin and then its argument prototype would still apply. */
32717 /* The GNU C library defines this for functions which it implements
32718 to always fail with ENOSYS. Some functions are actually named
32719 something starting with __ and the normal name is an alias. */
32720 #if defined __stub_$ac_func || defined __stub___$ac_func
32727 return $ac_func ();
32732 rm -f conftest.$ac_objext conftest$ac_exeext
32733 if { (ac_try="$ac_link"
32734 case "(($ac_try" in
32735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32736 *) ac_try_echo
=$ac_try;;
32738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32739 (eval "$ac_link") 2>conftest.er1
32741 grep -v '^ *+' conftest.er1
>conftest.err
32743 cat conftest.err
>&5
32744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32745 (exit $ac_status); } &&
32746 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32747 { (case "(($ac_try" in
32748 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32749 *) ac_try_echo=$ac_try;;
32751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32752 (eval "$ac_try") 2>&5
32754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755 (exit $ac_status); }; } &&
32756 { ac_try='test -s conftest$ac_exeext'
32757 { (case "(($ac_try" in
32758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32759 *) ac_try_echo
=$ac_try;;
32761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32762 (eval "$ac_try") 2>&5
32764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32765 (exit $ac_status); }; }; then
32766 eval "$as_ac_var=yes"
32768 echo "$as_me: failed program was:" >&5
32769 sed 's/^/| /' conftest.
$ac_ext >&5
32771 eval "$as_ac_var=no"
32774 rm -f core conftest.err conftest.
$ac_objext \
32775 conftest
$ac_exeext conftest.
$ac_ext
32777 ac_res
=`eval echo '${'$as_ac_var'}'`
32778 { echo "$as_me:$LINENO: result: $ac_res" >&5
32779 echo "${ECHO_T}$ac_res" >&6; }
32780 if test `eval echo '${'$as_ac_var'}'` = yes; then
32781 cat >>confdefs.h
<<_ACEOF
32782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32788 { echo "$as_me:$LINENO: checking for working mmap" >&5
32789 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
32790 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32791 echo $ECHO_N "(cached) $ECHO_C" >&6
32793 if test "$cross_compiling" = yes; then
32794 ac_cv_func_mmap_fixed_mapped
=no
32796 cat >conftest.
$ac_ext <<_ACEOF
32799 cat confdefs.h
>>conftest.
$ac_ext
32800 cat >>conftest.
$ac_ext <<_ACEOF
32801 /* end confdefs.h. */
32802 $ac_includes_default
32803 /* malloc might have been renamed as rpl_malloc. */
32806 /* Thanks to Mike Haertel and Jim Avera for this test.
32807 Here is a matrix of mmap possibilities:
32808 mmap private not fixed
32809 mmap private fixed at somewhere currently unmapped
32810 mmap private fixed at somewhere already mapped
32811 mmap shared not fixed
32812 mmap shared fixed at somewhere currently unmapped
32813 mmap shared fixed at somewhere already mapped
32814 For private mappings, we should verify that changes cannot be read()
32815 back from the file, nor mmap's back from the file at a different
32816 address. (There have been systems where private was not correctly
32817 implemented like the infamous i386 svr4.0, and systems where the
32818 VM page cache was not coherent with the file system buffer cache
32819 like early versions of FreeBSD and possibly contemporary NetBSD.)
32820 For shared mappings, we should conversely verify that changes get
32821 propagated back to all the places they're supposed to be.
32823 Grep wants private fixed already mapped.
32824 The main things grep needs to know about mmap are:
32825 * does it exist and is it safe to write into the mmap'd area
32826 * how to use it (BSD variants) */
32829 #include <sys/mman.h>
32831 #if !STDC_HEADERS && !HAVE_STDLIB_H
32835 /* This mess was copied from the GNU getpagesize.h. */
32836 #if !HAVE_GETPAGESIZE
32837 /* Assume that all systems that can run configure have sys/param.h. */
32838 # if !HAVE_SYS_PARAM_H
32839 # define HAVE_SYS_PARAM_H 1
32842 # ifdef _SC_PAGESIZE
32843 # define getpagesize() sysconf(_SC_PAGESIZE)
32844 # else /* no _SC_PAGESIZE */
32845 # if HAVE_SYS_PARAM_H
32846 # include <sys/param.h>
32847 # ifdef EXEC_PAGESIZE
32848 # define getpagesize() EXEC_PAGESIZE
32849 # else /* no EXEC_PAGESIZE */
32851 # define getpagesize() NBPG * CLSIZE
32854 # endif /* no CLSIZE */
32855 # else /* no NBPG */
32857 # define getpagesize() NBPC
32858 # else /* no NBPC */
32860 # define getpagesize() PAGESIZE
32861 # endif /* PAGESIZE */
32862 # endif /* no NBPC */
32863 # endif /* no NBPG */
32864 # endif /* no EXEC_PAGESIZE */
32865 # else /* no HAVE_SYS_PARAM_H */
32866 # define getpagesize() 8192 /* punt totally */
32867 # endif /* no HAVE_SYS_PARAM_H */
32868 # endif /* no _SC_PAGESIZE */
32870 #endif /* no HAVE_GETPAGESIZE */
32875 char *data, *data2, *data3;
32879 pagesize = getpagesize ();
32881 /* First, make a file with some known garbage in it. */
32882 data = (char *) malloc (pagesize);
32885 for (i = 0; i < pagesize; ++i)
32886 *(data + i) = rand ();
32888 fd = creat ("conftest.mmap", 0600);
32891 if (write (fd, data, pagesize) != pagesize)
32895 /* Next, try to mmap the file at a fixed address which already has
32896 something else allocated at it. If we can, also make sure that
32897 we see the same garbage. */
32898 fd = open ("conftest.mmap", O_RDWR);
32901 data2 = (char *) malloc (2 * pagesize);
32904 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
32905 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
32906 MAP_PRIVATE | MAP_FIXED, fd, 0L))
32908 for (i = 0; i < pagesize; ++i)
32909 if (*(data + i) != *(data2 + i))
32912 /* Finally, make sure that changes to the mapped area do not
32913 percolate back to the file as seen by read(). (This is a bug on
32914 some variants of i386 svr4.0.) */
32915 for (i = 0; i < pagesize; ++i)
32916 *(data2 + i) = *(data2 + i) + 1;
32917 data3 = (char *) malloc (pagesize);
32920 if (read (fd, data3, pagesize) != pagesize)
32922 for (i = 0; i < pagesize; ++i)
32923 if (*(data + i) != *(data3 + i))
32929 rm -f conftest
$ac_exeext
32930 if { (ac_try
="$ac_link"
32931 case "(($ac_try" in
32932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32933 *) ac_try_echo=$ac_try;;
32935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32936 (eval "$ac_link") 2>&5
32938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32940 { (case "(($ac_try" in
32941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32942 *) ac_try_echo
=$ac_try;;
32944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32945 (eval "$ac_try") 2>&5
32947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32948 (exit $ac_status); }; }; then
32949 ac_cv_func_mmap_fixed_mapped
=yes
32951 echo "$as_me: program exited with status $ac_status" >&5
32952 echo "$as_me: failed program was:" >&5
32953 sed 's/^/| /' conftest.
$ac_ext >&5
32955 ( exit $ac_status )
32956 ac_cv_func_mmap_fixed_mapped
=no
32958 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
32963 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
32964 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
32965 if test $ac_cv_func_mmap_fixed_mapped = yes; then
32967 cat >>confdefs.h
<<\_ACEOF
32968 #define HAVE_MMAP 1
32972 rm -f conftest.mmap
32974 { echo "$as_me:$LINENO: checking for mmap of files" >&5
32975 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
32976 if test "${ac_cv_func_mmap_file+set}" = set; then
32977 echo $ECHO_N "(cached) $ECHO_C" >&6
32980 ac_cpp
='$CPP $CPPFLAGS'
32981 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32982 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32983 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
32985 if test "$cross_compiling" = yes; then
32986 ac_cv_func_mmap_file
=no
32988 cat >conftest.
$ac_ext <<_ACEOF
32992 cat confdefs.h
>>conftest.
$ac_ext
32993 cat >>conftest.
$ac_ext <<_ACEOF
32994 /* end confdefs.h. */
32996 #include <sys/types.h>
32997 #include <sys/mman.h>
33005 fd = creat ("foo",0777);
33006 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33008 return (fd != (int) MAP_FAILED);
33013 rm -f conftest
$ac_exeext
33014 if { (ac_try
="$ac_link"
33015 case "(($ac_try" in
33016 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33017 *) ac_try_echo=$ac_try;;
33019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33020 (eval "$ac_link") 2>&5
33022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33024 { (case "(($ac_try" in
33025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33026 *) ac_try_echo
=$ac_try;;
33028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33029 (eval "$ac_try") 2>&5
33031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33032 (exit $ac_status); }; }; then
33033 ac_cv_func_mmap_file
=yes
33035 echo "$as_me: program exited with status $ac_status" >&5
33036 echo "$as_me: failed program was:" >&5
33037 sed 's/^/| /' conftest.
$ac_ext >&5
33039 ( exit $ac_status )
33040 ac_cv_func_mmap_file
=no
33042 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
33047 ac_cpp
='$CPP $CPPFLAGS'
33048 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33049 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33050 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33054 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33055 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33056 if test "$ac_cv_func_mmap_file" = yes; then
33058 cat >>confdefs.h
<<\_ACEOF
33059 #define HAVE_MMAP_FILE
33066 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33067 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33068 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33069 echo $ECHO_N "(cached) $ECHO_C" >&6
33071 if test "$llvm_cv_os_type" = "Interix" ; then
33072 ac_cv_need_dev_zero_for_mmap
=yes
33074 ac_cv_need_dev_zero_for_mmap
=no
33078 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33079 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33080 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33082 cat >>confdefs.h
<<\_ACEOF
33083 #define NEED_DEV_ZERO_FOR_MMAP 1
33087 { echo "$as_me:$LINENO: checking for mprotect" >&5
33088 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
33089 if test "${ac_cv_func_mprotect+set}" = set; then
33090 echo $ECHO_N "(cached) $ECHO_C" >&6
33092 cat >conftest.
$ac_ext <<_ACEOF
33095 cat confdefs.h
>>conftest.
$ac_ext
33096 cat >>conftest.
$ac_ext <<_ACEOF
33097 /* end confdefs.h. */
33098 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
33099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33100 #define mprotect innocuous_mprotect
33102 /* System header to define __stub macros and hopefully few prototypes,
33103 which can conflict with char mprotect (); below.
33104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33105 <limits.h> exists even on freestanding compilers. */
33108 # include <limits.h>
33110 # include <assert.h>
33115 /* Override any GCC internal prototype to avoid an error.
33116 Use char because int might match the return type of a GCC
33117 builtin and then its argument prototype would still apply. */
33122 /* The GNU C library defines this for functions which it implements
33123 to always fail with ENOSYS. Some functions are actually named
33124 something starting with __ and the normal name is an alias. */
33125 #if defined __stub_mprotect || defined __stub___mprotect
33132 return mprotect ();
33137 rm -f conftest.
$ac_objext conftest
$ac_exeext
33138 if { (ac_try
="$ac_link"
33139 case "(($ac_try" in
33140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33141 *) ac_try_echo=$ac_try;;
33143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33144 (eval "$ac_link") 2>conftest.er1
33146 grep -v '^ *+' conftest.er1 >conftest.err
33148 cat conftest.err >&5
33149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150 (exit $ac_status); } &&
33151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33152 { (case "(($ac_try" in
33153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33154 *) ac_try_echo
=$ac_try;;
33156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33157 (eval "$ac_try") 2>&5
33159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33160 (exit $ac_status); }; } &&
33161 { ac_try
='test -s conftest$ac_exeext'
33162 { (case "(($ac_try" in
33163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33164 *) ac_try_echo=$ac_try;;
33166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33167 (eval "$ac_try") 2>&5
33169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33170 (exit $ac_status); }; }; then
33171 ac_cv_func_mprotect=yes
33173 echo "$as_me: failed program was:" >&5
33174 sed 's/^/| /' conftest.$ac_ext >&5
33176 ac_cv_func_mprotect=no
33179 rm -f core conftest.err conftest.$ac_objext \
33180 conftest$ac_exeext conftest.$ac_ext
33182 { echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
33183 echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
33184 if test $ac_cv_func_mprotect = yes; then
33187 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
33188 echo "$as_me: error: Function mprotect() required but not found" >&2;}
33189 { (exit 1); exit 1; }; }
33193 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33195 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33196 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33198 if test "$ac_cv_func_mmap_file" = "no"
33200 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33201 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33205 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33206 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33207 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33208 echo $ECHO_N "(cached) $ECHO_C" >&6
33210 llvm_cv_llvmgcc_sanity="no"
33211 if test -x "$LLVMGCC" ; then
33212 cp /dev/null conftest.c
33213 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
33214 if test $? -eq 0 ; then
33215 llvm_cv_llvmgcc_sanity="yes"
33220 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33221 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33223 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33224 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1
`
33225 LLVMCC1=$llvmcc1path
33227 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus
`
33228 LLVMCC1PLUS=$llvmcc1pluspath
33230 llvmgccdir=`echo "$llvmcc1path" |
sed 's,/libexec/.*,,'`
33231 LLVMGCCDIR=$llvmgccdir
33233 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 |
sed 's/^\([0-9.]*\).*/\1/'`
33234 llvmgccmajvers=`echo $llvmgccversion |
sed 's/^\([0-9]\).*/\1/'`
33235 LLVMGCC_VERSION=$llvmgccversion
33237 LLVMGCC_MAJVERS=$llvmgccmajvers
33241 SHLIBEXT=$libltdl_cv_shlibext
33244 # Translate the various configuration directories and other basic
33245 # information into substitutions that will end up in Makefile.config.in
33246 # that these configured values can be used by the makefiles
33247 if test "${prefix}" == "NONE" ; then
33248 prefix="/usr/local"
33250 eval LLVM_PREFIX="${prefix}";
33251 eval LLVM_BINDIR="${prefix}/bin";
33252 eval LLVM_LIBDIR="${prefix}/lib";
33253 eval LLVM_DATADIR="${prefix}/share/llvm";
33254 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33255 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33256 eval LLVM_INCLUDEDIR="${prefix}/include";
33257 eval LLVM_INFODIR="${prefix}/info";
33258 eval LLVM_MANDIR="${prefix}/man";
33259 LLVM_CONFIGTIME=`date`
33271 # Place the various directores into the config.h file as #defines so that we
33272 # can know about the installation paths within LLVM.
33274 cat >>confdefs.h <<_ACEOF
33275 #define LLVM_PREFIX "$LLVM_PREFIX"
33279 cat >>confdefs.h <<_ACEOF
33280 #define LLVM_BINDIR "$LLVM_BINDIR"
33284 cat >>confdefs.h <<_ACEOF
33285 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33289 cat >>confdefs.h <<_ACEOF
33290 #define LLVM_DATADIR "$LLVM_DATADIR"
33294 cat >>confdefs.h <<_ACEOF
33295 #define LLVM_DATADIR "$LLVM_DOCSDIR"
33299 cat >>confdefs.h <<_ACEOF
33300 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33304 cat >>confdefs.h <<_ACEOF
33305 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33309 cat >>confdefs.h <<_ACEOF
33310 #define LLVM_INFODIR "$LLVM_INFODIR"
33314 cat >>confdefs.h <<_ACEOF
33315 #define LLVM_MANDIR "$LLVM_MANDIR"
33319 cat >>confdefs.h <<_ACEOF
33320 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33325 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33327 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33329 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
33331 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
33333 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
33336 ac_config_files="$ac_config_files Makefile.config"
33339 ac_config_files="$ac_config_files docs/doxygen.cfg"
33342 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33345 ac_config_commands="$ac_config_commands setup"
33347 ac_config_commands="$ac_config_commands Makefile"
33350 ac_config_commands="$ac_config_commands Makefile.common"
33353 ac_config_commands="$ac_config_commands examples/Makefile"
33356 ac_config_commands="$ac_config_commands lib/Makefile"
33359 ac_config_commands="$ac_config_commands runtime/Makefile"
33362 ac_config_commands="$ac_config_commands test/Makefile"
33365 ac_config_commands="$ac_config_commands test/Makefile.tests"
33368 ac_config_commands="$ac_config_commands tools/Makefile"
33371 ac_config_commands="$ac_config_commands utils/Makefile"
33374 ac_config_commands="$ac_config_commands projects/Makefile"
33378 cat >confcache <<\_ACEOF
33379 # This file is a shell script that caches the results of configure
33380 # tests run on this system so they can be shared between configure
33381 # scripts and configure runs, see configure's option --config-cache.
33382 # It is not useful on other systems. If it contains results you don't
33383 # want to keep, you may remove or edit it.
33385 # config.status only pays attention to the cache file if you give it
33386 # the --recheck option to rerun configure.
33388 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
33389 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33390 # following values.
33394 # The following way of writing the cache mishandles newlines in values,
33395 # but we know of no workaround that is simple, portable, and efficient.
33396 # So, we kill variables containing newlines.
33397 # Ultrix sh set writes to stderr and can't be redirected directly,
33398 # and sets the high bit in the cache file unless we assign to the vars.
33400 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33401 eval ac_val
=\$
$ac_var
33405 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33406 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33409 _ | IFS | as_nl
) ;; #(
33410 *) $as_unset $ac_var ;;
33416 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33417 *${as_nl}ac_space
=\
*)
33418 # `set' does not quote correctly, so add quotes (double-quote
33419 # substitution turns \\\\ into \\, and sed turns \\ into \).
33422 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33425 # `set' quotes correctly as required by POSIX, so do not add quotes.
33426 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33435 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33437 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33439 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
33440 if test -w "$cache_file"; then
33441 test "x$cache_file" != "x/dev/null" &&
33442 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33443 echo "$as_me: updating cache $cache_file" >&6;}
33444 cat confcache
>$cache_file
33446 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33447 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33452 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
33453 # Let make expand exec_prefix.
33454 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
33456 DEFS
=-DHAVE_CONFIG_H
33460 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
33461 # 1. Remove the extension, and $U if already installed.
33462 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
33463 ac_i
=`echo "$ac_i" | sed "$ac_script"`
33464 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33465 # will be set to the directory where LIBOBJS objects are built.
33466 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33467 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33469 LIBOBJS
=$ac_libobjs
33471 LTLIBOBJS
=$ac_ltlibobjs
33474 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33475 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33476 Usually this means the macro was only invoked conditionally." >&5
33477 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33478 Usually this means the macro was only invoked conditionally." >&2;}
33479 { (exit 1); exit 1; }; }
33481 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33482 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33483 Usually this means the macro was only invoked conditionally." >&5
33484 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33485 Usually this means the macro was only invoked conditionally." >&2;}
33486 { (exit 1); exit 1; }; }
33489 : ${CONFIG_STATUS=./config.status}
33490 ac_clean_files_save
=$ac_clean_files
33491 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
33492 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33493 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33494 cat >$CONFIG_STATUS <<_ACEOF
33496 # Generated by $as_me.
33497 # Run this file to recreate the current configuration.
33498 # Compiler output produced by configure, useful for debugging
33499 # configure, is in config.log if it exists.
33502 ac_cs_recheck=false
33504 SHELL=\${CONFIG_SHELL-$SHELL}
33507 cat >>$CONFIG_STATUS <<\_ACEOF
33508 ## --------------------- ##
33509 ## M4sh Initialization. ##
33510 ## --------------------- ##
33512 # Be Bourne compatible
33513 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
33516 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33517 # is contrary to our usage. Disable this feature.
33518 alias -g '${1+"$@"}'='"$@"'
33519 setopt NO_GLOB_SUBST
33521 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
33523 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
33524 DUALCASE
=1; export DUALCASE
# for MKS sh
33528 # Avoid depending upon Character Ranges.
33529 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
33530 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33531 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
33532 as_cr_digits
='0123456789'
33533 as_cr_alnum
=$as_cr_Letters$as_cr_digits
33535 # The user is always right.
33536 if test "${PATH_SEPARATOR+set}" != set; then
33537 echo "#! /bin/sh" >conf$$.sh
33538 echo "exit 0" >>conf$$.sh
33540 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
33548 # Support unset when possible.
33549 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
33557 # We need space, tab and new line, in precisely that order. Quoting is
33558 # there to prevent editors from complaining about space-tab.
33559 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33560 # splitting by setting IFS to empty value.)
33565 # Find who we are. Look in the path if we contain no directory separator.
33567 *[\\/]* ) as_myself
=$0 ;;
33568 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
33569 for as_dir
in $PATH
33572 test -z "$as_dir" && as_dir
=.
33573 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
33579 # We did not find ourselves, most probably we were run as `sh COMMAND'
33580 # in which case we are not to be found in the path.
33581 if test "x$as_myself" = x
; then
33584 if test ! -f "$as_myself"; then
33585 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33586 { (exit 1); exit 1; }
33589 # Work around bugs in pre-3.0 UWIN ksh.
33590 for as_var
in ENV MAIL MAILPATH
33591 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
33599 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33600 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33601 LC_TELEPHONE LC_TIME
33603 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33604 eval $as_var=C
; export $as_var
33606 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
33610 # Required to use basename.
33611 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
33612 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
33618 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33619 as_basename
=basename
33625 # Name of the executable.
33626 as_me
=`$as_basename -- "$0" ||
33627 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33628 X"$0" : 'X\(//\)$' \| \
33629 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33631 sed '/^.*\/\([^/][^/]*\)\/*$/{
33650 as_lineno_1
=$LINENO
33651 as_lineno_2
=$LINENO
33652 test "x$as_lineno_1" != "x$as_lineno_2" &&
33653 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
33655 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33656 # uniformly replaced by the line number. The first 'sed' inserts a
33657 # line-number line after each line using $LINENO; the second 'sed'
33658 # does the real work. The second script uses 'N' to pair each
33659 # line-number line with the line containing $LINENO, and appends
33660 # trailing '-' during substitution so that $LINENO is not a special
33661 # case at line end.
33662 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33663 # scripts with optimization help from Paolo Bonzini. Blame Lee
33664 # E. McMahon (1931-1989) for sed's syntax. :-)
33676 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33679 ' >$as_me.lineno
&&
33680 chmod +x
"$as_me.lineno" ||
33681 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33682 { (exit 1); exit 1; }; }
33684 # Don't try to exec as it changes $[0], causing all sort of problems
33685 # (the dirname of $[0] is not the place where we might find the
33686 # original and so on. Autoconf is especially sensitive to this).
33687 .
"./$as_me.lineno"
33688 # Exit status is that of the last command.
33693 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
33699 ECHO_C
= ECHO_N
= ECHO_T
=
33700 case `echo -n x` in
33702 case `echo 'x\c'` in
33703 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
33710 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
33711 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
33717 rm -f conf$$ conf$$.exe conf$$.
file
33718 if test -d conf$$.dir
; then
33719 rm -f conf$$.dir
/conf$$.
file
33725 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
33727 # ... but there are two gotchas:
33728 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33729 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33730 # In both cases, we have to default to `cp -p'.
33731 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
33733 elif ln conf$$.
file conf$$
2>/dev
/null
; then
33738 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
33739 rmdir conf$$.dir
2>/dev
/null
33741 if mkdir
-p .
2>/dev
/null
; then
33744 test -d .
/-p && rmdir .
/-p
33748 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
33749 # systems may use methods other than mode bits to determine executability.
33750 cat >conf$$.
file <<_ASEOF
33754 chmod +x conf$$.
file
33755 if test -x conf$$.
file >/dev
/null
2>&1; then
33756 as_executable_p
="test -x"
33762 # Sed expression to map a string onto a valid CPP name.
33763 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33765 # Sed expression to map a string onto a valid variable name.
33766 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33771 # Save the log message, to keep $[0] and so on meaningful, and to
33772 # report actual input values of CONFIG_FILES etc. instead of their
33773 # values after options handling.
33775 This file was extended by llvm $as_me 1.9cvs, which was
33776 generated by GNU Autoconf 2.60. Invocation command line was
33778 CONFIG_FILES = $CONFIG_FILES
33779 CONFIG_HEADERS = $CONFIG_HEADERS
33780 CONFIG_LINKS = $CONFIG_LINKS
33781 CONFIG_COMMANDS = $CONFIG_COMMANDS
33784 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33789 cat >>$CONFIG_STATUS <<_ACEOF
33790 # Files that config.status was made for.
33791 config_files="$ac_config_files"
33792 config_headers="$ac_config_headers"
33793 config_commands="$ac_config_commands"
33797 cat >>$CONFIG_STATUS <<\_ACEOF
33799 \`$as_me' instantiates files from templates according to the
33800 current configuration.
33802 Usage: $0 [OPTIONS] [FILE]...
33804 -h, --help print this help, then exit
33805 -V, --version print version number, then exit
33806 -q, --quiet do not print progress messages
33807 -d, --debug don't remove temporary files
33808 --recheck update $as_me by reconfiguring in the same conditions
33809 --file=FILE[:TEMPLATE]
33810 instantiate the configuration file FILE
33811 --header=FILE[:TEMPLATE]
33812 instantiate the configuration header FILE
33814 Configuration files:
33817 Configuration headers:
33820 Configuration commands:
33823 Report bugs to <bug-autoconf@gnu.org>."
33826 cat >>$CONFIG_STATUS <<_ACEOF
33828 llvm config.status 1.9cvs
33829 configured by $0, generated by GNU Autoconf 2.60,
33830 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33832 Copyright (C) 2006 Free Software Foundation, Inc.
33833 This config.status script is free software; the Free Software Foundation
33834 gives unlimited permission to copy, distribute and modify it."
33841 cat >>$CONFIG_STATUS <<\_ACEOF
33842 # If no file are specified by the user, then we need to provide default
33843 # value. By we need to know if files were specified by the user.
33849 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33850 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
33861 # Handling of the options.
33862 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
33864 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
33865 echo "$ac_cs_version"; exit ;;
33866 --debug |
--debu |
--deb |
--de |
--d |
-d )
33868 --file |
--fil |
--fi |
--f )
33870 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
33871 ac_need_defaults
=false
;;
33872 --header |
--heade |
--head |
--hea )
33874 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
33875 ac_need_defaults
=false
;;
33877 # Conflict between --help and --header
33878 { echo "$as_me: error: ambiguous option: $1
33879 Try \`$0 --help' for more information." >&2
33880 { (exit 1); exit 1; }; };;
33881 --help |
--hel |
-h )
33882 echo "$ac_cs_usage"; exit ;;
33883 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
33884 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
33887 # This is an error.
33888 -*) { echo "$as_me: error: unrecognized option: $1
33889 Try \`$0 --help' for more information." >&2
33890 { (exit 1); exit 1; }; } ;;
33892 *) ac_config_targets
="$ac_config_targets $1"
33893 ac_need_defaults
=false
;;
33899 ac_configure_extra_args
=
33901 if $ac_cs_silent; then
33903 ac_configure_extra_args
="$ac_configure_extra_args --silent"
33907 cat >>$CONFIG_STATUS <<_ACEOF
33908 if \$ac_cs_recheck; then
33909 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33910 CONFIG_SHELL=$SHELL
33911 export CONFIG_SHELL
33912 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33916 cat >>$CONFIG_STATUS <<\_ACEOF
33920 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33921 ## Running $as_me. ##
33927 cat >>$CONFIG_STATUS <<_ACEOF
33931 llvm_src="${srcdir}"
33935 cat >>$CONFIG_STATUS <<\_ACEOF
33937 # Handling of arguments.
33938 for ac_config_target
in $ac_config_targets
33940 case $ac_config_target in
33941 "include/llvm/Config/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
33942 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
33943 "include/llvm/ADT/hash_map") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
33944 "include/llvm/ADT/hash_set") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
33945 "include/llvm/ADT/iterator") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
33946 "Makefile.config") CONFIG_FILES
="$CONFIG_FILES Makefile.config" ;;
33947 "docs/doxygen.cfg") CONFIG_FILES
="$CONFIG_FILES docs/doxygen.cfg" ;;
33948 "tools/llvm-config/llvm-config.in") CONFIG_FILES
="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
33949 "setup") CONFIG_COMMANDS
="$CONFIG_COMMANDS setup" ;;
33950 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
33951 "Makefile.common") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile.common" ;;
33952 "examples/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS examples/Makefile" ;;
33953 "lib/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS lib/Makefile" ;;
33954 "runtime/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS runtime/Makefile" ;;
33955 "test/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile" ;;
33956 "test/Makefile.tests") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile.tests" ;;
33957 "tools/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/Makefile" ;;
33958 "utils/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS utils/Makefile" ;;
33959 "projects/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS projects/Makefile" ;;
33961 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33962 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33963 { (exit 1); exit 1; }; };;
33968 # If the user did not use the arguments to specify the items to instantiate,
33969 # then the envvar interface is used. Set only those that are not.
33970 # We use the long form for the default assignment because of an extremely
33971 # bizarre bug on SunOS 4.1.3.
33972 if $ac_need_defaults; then
33973 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
33974 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
33975 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
33978 # Have a temporary directory for convenience. Make it in the build tree
33979 # simply because there is no reason against having it here, and in addition,
33980 # creating and moving files from /tmp can sometimes cause problems.
33981 # Hook for its removal unless debugging.
33982 # Note that there is a small window in which the directory will not be cleaned:
33983 # after its creation but before its name has been assigned to `$tmp'.
33987 trap 'exit_status=$?
33988 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33990 trap '{ (exit 1); exit 1; }' 1 2 13 15
33992 # Create a (secure) tmp directory for tmp files.
33995 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33996 test -n "$tmp" && test -d "$tmp"
33999 tmp
=.
/conf$$
-$RANDOM
34000 (umask 077 && mkdir
"$tmp")
34003 echo "$me: cannot create a temporary directory in ." >&2
34004 { (exit 1); exit 1; }
34008 # Set up the sed scripts for CONFIG_FILES section.
34011 # No need to generate the scripts if there are no CONFIG_FILES.
34012 # This happens for instance when ./config.status config.h
34013 if test -n "$CONFIG_FILES"; then
34020 for ac_last_try
in false false false false false
:; do
34021 cat >conf$
$subs.
sed <<_ACEOF
34022 SHELL!$SHELL$ac_delim
34023 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34024 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34025 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34026 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34027 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34028 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34029 exec_prefix!$exec_prefix$ac_delim
34030 prefix!$prefix$ac_delim
34031 program_transform_name!$program_transform_name$ac_delim
34032 bindir!$bindir$ac_delim
34033 sbindir!$sbindir$ac_delim
34034 libexecdir!$libexecdir$ac_delim
34035 datarootdir!$datarootdir$ac_delim
34036 datadir!$datadir$ac_delim
34037 sysconfdir!$sysconfdir$ac_delim
34038 sharedstatedir!$sharedstatedir$ac_delim
34039 localstatedir!$localstatedir$ac_delim
34040 includedir!$includedir$ac_delim
34041 oldincludedir!$oldincludedir$ac_delim
34042 docdir!$docdir$ac_delim
34043 infodir!$infodir$ac_delim
34044 htmldir!$htmldir$ac_delim
34045 dvidir!$dvidir$ac_delim
34046 pdfdir!$pdfdir$ac_delim
34047 psdir!$psdir$ac_delim
34048 libdir!$libdir$ac_delim
34049 localedir!$localedir$ac_delim
34050 mandir!$mandir$ac_delim
34051 DEFS!$DEFS$ac_delim
34052 ECHO_C!$ECHO_C$ac_delim
34053 ECHO_N!$ECHO_N$ac_delim
34054 ECHO_T!$ECHO_T$ac_delim
34055 LIBS!$LIBS$ac_delim
34056 build_alias!$build_alias$ac_delim
34057 host_alias!$host_alias$ac_delim
34058 target_alias!$target_alias$ac_delim
34059 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34060 subdirs!$subdirs$ac_delim
34061 build!$build$ac_delim
34062 build_cpu!$build_cpu$ac_delim
34063 build_vendor!$build_vendor$ac_delim
34064 build_os!$build_os$ac_delim
34065 host!$host$ac_delim
34066 host_cpu!$host_cpu$ac_delim
34067 host_vendor!$host_vendor$ac_delim
34068 host_os!$host_os$ac_delim
34069 target!$target$ac_delim
34070 target_cpu!$target_cpu$ac_delim
34071 target_vendor!$target_vendor$ac_delim
34072 target_os!$target_os$ac_delim
34074 LINKALL!$LINKALL$ac_delim
34075 NOLINKALL!$NOLINKALL$ac_delim
34076 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34077 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34078 ARCH!$ARCH$ac_delim
34079 ENDIAN!$ENDIAN$ac_delim
34081 CFLAGS!$CFLAGS$ac_delim
34082 LDFLAGS!$LDFLAGS$ac_delim
34083 CPPFLAGS!$CPPFLAGS$ac_delim
34084 ac_ct_CC!$ac_ct_CC$ac_delim
34085 EXEEXT!$EXEEXT$ac_delim
34086 OBJEXT!$OBJEXT$ac_delim
34088 GREP!$GREP$ac_delim
34089 EGREP!$EGREP$ac_delim
34090 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34091 BUILD_CC!$BUILD_CC$ac_delim
34092 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34093 CVSBUILD!$CVSBUILD$ac_delim
34094 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34095 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34096 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34098 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34099 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34100 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34101 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34102 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34104 CXXFLAGS!$CXXFLAGS$ac_delim
34105 ac_ct_CXX!$ac_ct_CXX$ac_delim
34107 LEXLIB!$LEXLIB$ac_delim
34108 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34109 FLEX!$FLEX$ac_delim
34110 YACC!$YACC$ac_delim
34111 YFLAGS!$YFLAGS$ac_delim
34112 BISON!$BISON$ac_delim
34114 ifGNUmake!$ifGNUmake$ac_delim
34115 LN_S!$LN_S$ac_delim
34118 DATE!$DATE$ac_delim
34121 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34123 elif $ac_last_try; then
34124 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34125 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34126 { (exit 1); exit 1; }; }
34128 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
34132 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34133 if test -n "$ac_eof"; then
34134 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
34135 ac_eof
=`expr $ac_eof + 1`
34138 cat >>$CONFIG_STATUS <<_ACEOF
34139 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34140 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34143 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34144 s/^/s,@/; s/!/@,|#_!!_#|/
34147 s/'"$ac_delim"'$/,g/; t
34149 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34150 ' >>$CONFIG_STATUS <conf$
$subs.
sed
34151 rm -f conf$
$subs.
sed
34152 cat >>$CONFIG_STATUS <<_ACEOF
34158 for ac_last_try
in false false false false false
:; do
34159 cat >conf$
$subs.
sed <<_ACEOF
34160 FIND!$FIND$ac_delim
34161 MKDIR!$MKDIR$ac_delim
34163 RANLIB!$RANLIB$ac_delim
34167 BINPWD!$BINPWD$ac_delim
34168 GRAPHVIZ!$GRAPHVIZ$ac_delim
34171 DOTTY!$DOTTY$ac_delim
34172 PERL!$PERL$ac_delim
34173 HAVE_PERL!$HAVE_PERL$ac_delim
34174 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34175 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34176 INSTALL_DATA!$INSTALL_DATA$ac_delim
34177 BZIP2!$BZIP2$ac_delim
34178 DOXYGEN!$DOXYGEN$ac_delim
34179 ETAGS!$ETAGS$ac_delim
34180 GROFF!$GROFF$ac_delim
34181 GZIP!$GZIP$ac_delim
34182 POD2HTML!$POD2HTML$ac_delim
34183 POD2MAN!$POD2MAN$ac_delim
34184 RUNTEST!$RUNTEST$ac_delim
34185 TCLSH!$TCLSH$ac_delim
34187 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34188 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34189 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34190 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34191 LIBADD_DL!$LIBADD_DL$ac_delim
34192 ECHO!$ECHO$ac_delim
34194 STRIP!$STRIP$ac_delim
34195 CXXCPP!$CXXCPP$ac_delim
34197 FFLAGS!$FFLAGS$ac_delim
34198 ac_ct_F77!$ac_ct_F77$ac_delim
34199 LIBTOOL!$LIBTOOL$ac_delim
34200 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34201 LLVMGCC!$LLVMGCC$ac_delim
34202 LLVMGXX!$LLVMGXX$ac_delim
34203 ALLOCA!$ALLOCA$ac_delim
34204 MMAP_FILE!$MMAP_FILE$ac_delim
34205 LLVMCC1!$LLVMCC1$ac_delim
34206 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34207 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34208 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34209 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34210 SHLIBEXT!$SHLIBEXT$ac_delim
34211 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34212 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34213 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34214 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34215 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34216 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34217 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34218 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34219 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34220 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34221 LIBOBJS!$LIBOBJS$ac_delim
34222 LTLIBOBJS!$LTLIBOBJS$ac_delim
34225 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then
34227 elif $ac_last_try; then
34228 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34229 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34230 { (exit 1); exit 1; }; }
34232 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
34236 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34237 if test -n "$ac_eof"; then
34238 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
34239 ac_eof
=`expr $ac_eof + 1`
34242 cat >>$CONFIG_STATUS <<_ACEOF
34243 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34244 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34247 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34248 s/^/s,@/; s/!/@,|#_!!_#|/
34251 s/'"$ac_delim"'$/,g/; t
34253 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34254 ' >>$CONFIG_STATUS <conf$
$subs.
sed
34255 rm -f conf$
$subs.
sed
34256 cat >>$CONFIG_STATUS <<_ACEOF
34263 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34264 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34265 # trailing colons and then remove the whole line if VPATH becomes empty
34266 # (actually we leave an empty line to preserve line numbers).
34267 if test "x$srcdir" = x.
; then
34268 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
34269 s/:*\$(srcdir):*/:/
34270 s/:*\${srcdir}:*/:/
34272 s/^\([^=]*=[ ]*\):*/\1/
34278 cat >>$CONFIG_STATUS <<\_ACEOF
34279 fi # test -n "$CONFIG_FILES"
34282 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
34285 :[FHLC
]) ac_mode
=$ac_tag; continue;;
34287 case $ac_mode$ac_tag in
34289 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34290 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34291 { (exit 1); exit 1; }; };;
34292 :[FH
]-) ac_tag
=-:-;;
34293 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
34310 -) ac_f
="$tmp/stdin";;
34311 *) # Look for the file first in the build tree, then in the source tree
34312 # (if the path is not absolute). The absolute path cannot be DOS-style,
34313 # because $ac_f cannot contain `:'.
34317 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
34319 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34320 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34321 { (exit 1); exit 1; }; };;
34323 ac_file_inputs
="$ac_file_inputs $ac_f"
34326 # Let's still pretend it is `configure' which instantiates (i.e., don't
34327 # use $as_me), people would be surprised to read:
34328 # /* config.h. Generated by config.status. */
34329 configure_input
="Generated from "`IFS=:
34330 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34331 if test x
"$ac_file" != x-
; then
34332 configure_input
="$ac_file. $configure_input"
34333 { echo "$as_me:$LINENO: creating $ac_file" >&5
34334 echo "$as_me: creating $ac_file" >&6;}
34338 *:-:* |
*:-) cat >"$tmp/stdin";;
34343 ac_dir
=`$as_dirname -- "$ac_file" ||
34344 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34345 X"$ac_file" : 'X\(//\)[^/]' \| \
34346 X"$ac_file" : 'X\(//\)$' \| \
34347 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34353 /^X\(\/\/\)[^/].*/{
34368 -*) as_dir
=.
/$as_dir;;
34370 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
34374 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34375 *) as_qdir
=$as_dir;;
34377 as_dirs
="'$as_qdir' $as_dirs"
34378 as_dir
=`$as_dirname -- "$as_dir" ||
34379 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34380 X"$as_dir" : 'X\(//\)[^/]' \| \
34381 X"$as_dir" : 'X\(//\)$' \| \
34382 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34388 /^X\(\/\/\)[^/].*/{
34401 test -d "$as_dir" && break
34403 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
34404 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34405 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34406 { (exit 1); exit 1; }; }; }
34410 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34412 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34413 # A ".." for each directory in $ac_dir_suffix.
34414 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34415 case $ac_top_builddir_sub in
34416 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34417 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
34420 ac_abs_top_builddir
=$ac_pwd
34421 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
34422 # for backward compatibility:
34423 ac_top_builddir
=$ac_top_build_prefix
34426 .
) # We are building in place.
34428 ac_top_srcdir
=$ac_top_builddir_sub
34429 ac_abs_top_srcdir
=$ac_pwd ;;
34430 [\\/]* | ?
:[\\/]* ) # Absolute name.
34431 ac_srcdir
=$srcdir$ac_dir_suffix;
34432 ac_top_srcdir
=$srcdir
34433 ac_abs_top_srcdir
=$srcdir ;;
34434 *) # Relative name.
34435 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
34436 ac_top_srcdir
=$ac_top_build_prefix$srcdir
34437 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
34439 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
34449 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
34450 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
34454 cat >>$CONFIG_STATUS <<\_ACEOF
34455 # If the template does not know about datarootdir, expand it.
34456 # FIXME: This hack should be removed a few years after 2.60.
34457 ac_datarootdir_hack
=; ac_datarootdir_seen
=
34459 case `sed -n '/datarootdir/ {
34468 ' $ac_file_inputs` in
34469 *datarootdir
*) ac_datarootdir_seen
=yes;;
34470 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
34471 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34472 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34474 cat >>$CONFIG_STATUS <<_ACEOF
34475 ac_datarootdir_hack='
34476 s&@datadir@&$datadir&g
34477 s&@docdir@&$docdir&g
34478 s&@infodir@&$infodir&g
34479 s&@localedir@&$localedir&g
34480 s&@mandir@&$mandir&g
34481 s&\\\${datarootdir}&$datarootdir&g' ;;
34485 # Neutralize VPATH when `$srcdir' = `.'.
34486 # Shell code in configure.ac might set extrasub.
34487 # FIXME: do we really want to maintain this feature?
34488 cat >>$CONFIG_STATUS <<_ACEOF
34492 cat >>$CONFIG_STATUS <<\_ACEOF
34494 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
34495 s
&@configure_input@
&$configure_input&;t t
34496 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
34497 s
&@srcdir@
&$ac_srcdir&;t t
34498 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
34499 s
&@top_srcdir@
&$ac_top_srcdir&;t t
34500 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
34501 s
&@builddir@
&$ac_builddir&;t t
34502 s
&@abs_builddir@
&$ac_abs_builddir&;t t
34503 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
34504 s
&@INSTALL@
&$ac_INSTALL&;t t
34505 $ac_datarootdir_hack
34506 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
34508 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34509 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
34510 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
34511 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
34512 which seems to be undefined. Please make sure it is defined." >&5
34513 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
34514 which seems to be undefined. Please make sure it is defined." >&2;}
34518 -) cat "$tmp/out"; rm -f "$tmp/out";;
34519 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34528 # Transform confdefs.h into a sed script `conftest.defines', that
34529 # substitutes the proper values into config.h.in to produce config.h.
34530 rm -f conftest.defines conftest.
tail
34531 # First, append a space to every undef/define line, to ease matching.
34532 echo 's/$/ /' >conftest.defines
34533 # Then, protect against being on the right side of a sed subst, or in
34534 # an unquoted here document, in config.status. If some macros were
34535 # called several times there might be several #defines for the same
34536 # symbol, which is useless. But do not sort them, since the last
34537 # AC_DEFINE must be honored.
34538 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
34539 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34540 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34541 # PARAMS is the parameter list in the macro definition--in most cases, it's
34542 # just an empty string.
34543 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34544 ac_dB
='\\)[ (].*,\\1define\\2'
34552 s/^[ ]*#[ ]*define[ ][ ]*//
34557 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34558 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34559 ' >>conftest.defines
34561 # Remove the space that was appended to ease matching.
34562 # Then replace #undef with comments. This is necessary, for
34563 # example, in the case of _POSIX_SOURCE, which is predefined and required
34564 # on some systems where configure will not decide to define it.
34565 # (The regexp can be short, since the line contains either #define or #undef.)
34567 s,^[ #]*u.*,/* & */,' >>conftest.defines
34569 # Break up conftest.defines:
34570 ac_max_sed_lines
=50
34572 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34573 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34574 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34576 ac_in
='$ac_file_inputs'
34577 ac_out
='"$tmp/out1"'
34578 ac_nxt
='"$tmp/out2"'
34582 # Write a here document:
34583 cat >>$CONFIG_STATUS <<_ACEOF
34584 # First, check the format of the line:
34585 cat >"\$tmp/defines.sed" <<\\CEOF
34586 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34587 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34591 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
34593 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34594 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
34595 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
34596 grep . conftest.
tail >/dev
/null ||
break
34597 rm -f conftest.defines
34598 mv conftest.
tail conftest.defines
34600 rm -f conftest.defines conftest.
tail
34602 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34603 cat >>$CONFIG_STATUS <<\_ACEOF
34604 if test x
"$ac_file" != x-
; then
34605 echo "/* $configure_input */" >"$tmp/config.h"
34606 cat "$ac_result" >>"$tmp/config.h"
34607 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
34608 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34609 echo "$as_me: $ac_file is unchanged" >&6;}
34612 mv "$tmp/config.h" $ac_file
34615 echo "/* $configure_input */"
34621 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34622 echo "$as_me: executing $ac_file commands" >&6;}
34627 case $ac_file$ac_mode in
34628 "Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile`
34629 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile
;;
34630 "Makefile.common":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile.common`
34631 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common
;;
34632 "examples/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname examples/Makefile`
34633 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples
/Makefile examples
/Makefile
;;
34634 "lib/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname lib/Makefile`
34635 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib
/Makefile lib
/Makefile
;;
34636 "runtime/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname runtime/Makefile`
34637 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime
/Makefile runtime
/Makefile
;;
34638 "test/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile`
34639 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test
/Makefile test
/Makefile
;;
34640 "test/Makefile.tests":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile.tests`
34641 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test
/Makefile.tests test
/Makefile.tests
;;
34642 "tools/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname tools/Makefile`
34643 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools
/Makefile tools
/Makefile
;;
34644 "utils/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname utils/Makefile`
34645 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils
/Makefile utils
/Makefile
;;
34646 "projects/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname projects/Makefile`
34647 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects
/Makefile projects
/Makefile
;;
34653 { (exit 0); exit 0; }
34655 chmod +x
$CONFIG_STATUS
34656 ac_clean_files
=$ac_clean_files_save
34659 # configure is writing to config.log, and then calls config.status.
34660 # config.status does its own redirection, appending to config.log.
34661 # Unfortunately, on DOS this fails, as config.log is still kept open
34662 # by configure, so config.status won't be able to write to it; its
34663 # output is simply discarded. So we exec the FD to /dev/null,
34664 # effectively closing config.log, so it can be properly (re)opened and
34665 # appended to by config.status. When coming back to configure, we
34666 # need to make the FD available again.
34667 if test "$no_create" != yes; then
34669 ac_config_status_args
=
34670 test "$silent" = yes &&
34671 ac_config_status_args
="$ac_config_status_args --quiet"
34673 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
34675 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34676 # would make configure fail if this is the last instruction.
34677 $ac_cs_success ||
{ (exit 1); exit 1; }
34681 # CONFIG_SUBDIRS section.
34683 if test "$no_recursion" != yes; then
34685 # Remove --cache-file and --srcdir arguments so they do not pile up.
34686 ac_sub_configure_args
=
34688 eval "set x $ac_configure_args"
34692 if test -n "$ac_prev"; then
34697 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
34698 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
34699 ac_prev
=cache_file
;;
34700 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
34701 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
34704 --config-cache |
-C)
34706 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
34708 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
34710 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
34712 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
34716 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34718 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
34722 # Always prepend --prefix to ensure using the same prefix
34723 # in subdir configurations.
34724 ac_arg
="--prefix=$prefix"
34726 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34728 ac_sub_configure_args
="$ac_arg $ac_sub_configure_args"
34731 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
34733 # Do not complain, so a configure script can configure whichever
34734 # parts of a large source tree are present.
34735 test -d "$srcdir/$ac_dir" ||
continue
34737 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34738 echo "$as_me:$LINENO: $ac_msg" >&5
34742 -*) as_dir
=.
/$as_dir;;
34744 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
34748 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34749 *) as_qdir
=$as_dir;;
34751 as_dirs
="'$as_qdir' $as_dirs"
34752 as_dir
=`$as_dirname -- "$as_dir" ||
34753 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34754 X"$as_dir" : 'X\(//\)[^/]' \| \
34755 X"$as_dir" : 'X\(//\)$' \| \
34756 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34762 /^X\(\/\/\)[^/].*/{
34775 test -d "$as_dir" && break
34777 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
34778 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34779 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34780 { (exit 1); exit 1; }; }; }
34784 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34786 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34787 # A ".." for each directory in $ac_dir_suffix.
34788 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34789 case $ac_top_builddir_sub in
34790 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34791 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
34794 ac_abs_top_builddir
=$ac_pwd
34795 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
34796 # for backward compatibility:
34797 ac_top_builddir
=$ac_top_build_prefix
34800 .
) # We are building in place.
34802 ac_top_srcdir
=$ac_top_builddir_sub
34803 ac_abs_top_srcdir
=$ac_pwd ;;
34804 [\\/]* | ?
:[\\/]* ) # Absolute name.
34805 ac_srcdir
=$srcdir$ac_dir_suffix;
34806 ac_top_srcdir
=$srcdir
34807 ac_abs_top_srcdir
=$srcdir ;;
34808 *) # Relative name.
34809 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
34810 ac_top_srcdir
=$ac_top_build_prefix$srcdir
34811 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
34813 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
34818 # Check for guested configure; otherwise get Cygnus style configure.
34819 if test -f "$ac_srcdir/configure.gnu"; then
34820 ac_sub_configure
=$ac_srcdir/configure.gnu
34821 elif test -f "$ac_srcdir/configure"; then
34822 ac_sub_configure
=$ac_srcdir/configure
34823 elif test -f "$ac_srcdir/configure.in"; then
34824 # This should be Cygnus configure.
34825 ac_sub_configure
=$ac_aux_dir/configure
34827 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34828 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34832 # The recursion is here.
34833 if test -n "$ac_sub_configure"; then
34834 # Make the cache file name correct relative to the subdirectory.
34835 case $cache_file in
34836 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
34837 *) # Relative name.
34838 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
34841 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34842 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34843 # The eval makes quoting arguments work.
34844 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34845 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34846 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
34847 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34848 { (exit 1); exit 1; }; }
34856 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
34857 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
34858 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
34859 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
34860 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
34861 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
34862 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
34863 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
34864 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
34865 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
34866 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}