2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.4svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
28 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
29 DUALCASE
=1; export DUALCASE
# for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /usr
/bin
/posix
$PATH_SEPARATOR/bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
251 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
252 DUALCASE
=1; export DUALCASE
# for MKS sh
257 CONFIG_SHELL
=$as_shell
259 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
271 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
272 DUALCASE
=1; export DUALCASE
# for MKS sh
284 as_func_ret_success
() {
287 as_func_ret_failure
() {
292 if as_func_success
; then
296 echo as_func_success failed.
299 if as_func_failure
; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success
; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure
; then
313 echo as_func_ret_failure succeeded.
316 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) ||
{ (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x
; then
341 for as_var
in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no
; then
350 echo This
script requires a shell
more modern than all the
351 echo shells that I found on your system. Please
install a
352 echo modern shell
, or manually run the
script under such a
353 echo shell
if you
do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") ||
{
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system
,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x
"$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
470 ECHO_C
= ECHO_N
= ECHO_T
=
474 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
481 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
488 rm -f conf$$ conf$$.exe conf$$.
file
489 if test -d conf$$.dir
; then
490 rm -f conf$$.dir
/conf$$.
file
496 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
504 elif ln conf$$.
file conf$$
2>/dev
/null
; then
509 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
510 rmdir conf$$.dir
2>/dev
/null
512 if mkdir
-p .
2>/dev
/null
; then
515 test -d .
/-p && rmdir .
/-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.
file <<_ASEOF
526 if test -x conf$$.
file >/dev
/null
2>&1; then
527 as_executable_p
="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL
=${CONFIG_SHELL-/bin/sh}
547 # Remove one level of quotation (which was required for Make).
548 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
553 if test "X$1" = X--no-reexec
; then
554 # Discard the --no-reexec flag, and continue.
556 elif test "X$1" = X--fallback-echo
; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo
; then
568 # used as fallback echo
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
578 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset
; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string
=`eval $cmd`) 2>/dev
/null
&&
586 echo_test_string
=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
606 for dir
in $PATH /usr
/ucb
; do
608 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
618 if test "X$echo" = Xecho
; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
625 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL
=/bin
/ksh
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
641 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
647 SHELL
="$CONFIG_SHELL"
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
656 # maybe with a smaller string...
659 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string
=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
672 # Oops. We lost completely, so just stick with echo.
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames
=${tagnames+${tagnames},}CXX
693 tagnames
=${tagnames+${tagnames},}F77
695 exec 7<&0 </dev
/null
6>&1
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
705 ac_default_prefix
=/usr
/local
707 ac_config_libobj_dir
=.
713 SHELL
=${CONFIG_SHELL-/bin/sh}
715 # Identity of this package.
717 PACKAGE_TARNAME
='-llvm-'
718 PACKAGE_VERSION
='2.4svn'
719 PACKAGE_STRING
='llvm 2.4svn'
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
833 ENABLE_EXPENSIVE_CHECKS
892 CONVENIENCE_LTDL_TRUE
893 CONVENIENCE_LTDL_FALSE
931 ENABLE_VISIBILITY_INLINES_HIDDEN
935 ac_precious_vars
='build_alias
951 ac_subdirs_all
='projects/sample
953 projects/llvm-stacker
960 projects/llvm-poolalloc
962 projects/llvm-kernel'
964 # Initialize some variables set by options.
966 ac_init_version
=false
967 # The variables have the same names as the options, with
968 # dashes changed to underlines.
976 program_transform_name
=s
,x
,x
,
984 # Installation directory options.
985 # These are left unexpanded so users can "make install exec_prefix=/foo"
986 # and all the variables that are supposed to be based on exec_prefix
987 # by default will actually change.
988 # Use braces instead of parens because sh, perl, etc. also accept them.
989 # (The list follows the same order as the GNU Coding Standards.)
990 bindir
='${exec_prefix}/bin'
991 sbindir
='${exec_prefix}/sbin'
992 libexecdir
='${exec_prefix}/libexec'
993 datarootdir
='${prefix}/share'
994 datadir
='${datarootdir}'
995 sysconfdir
='${prefix}/etc'
996 sharedstatedir
='${prefix}/com'
997 localstatedir
='${prefix}/var'
998 includedir
='${prefix}/include'
999 oldincludedir
='/usr/include'
1000 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1001 infodir
='${datarootdir}/info'
1006 libdir
='${exec_prefix}/lib'
1007 localedir
='${datarootdir}/locale'
1008 mandir
='${datarootdir}/man'
1014 # If the previous option needs an argument, assign it.
1015 if test -n "$ac_prev"; then
1016 eval $ac_prev=\
$ac_option
1022 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026 # Accept the important Cygnus configure options, so we can diagnose typos.
1028 case $ac_dashdash$ac_option in
1032 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1034 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1035 bindir
=$ac_optarg ;;
1037 -build |
--build |
--buil |
--bui |
--bu)
1038 ac_prev
=build_alias
;;
1039 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1040 build_alias
=$ac_optarg ;;
1042 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1043 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1044 ac_prev
=cache_file
;;
1045 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1046 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1047 cache_file
=$ac_optarg ;;
1049 --config-cache |
-C)
1050 cache_file
=config.cache
;;
1052 -datadir |
--datadir |
--datadi |
--datad)
1054 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1055 datadir
=$ac_optarg ;;
1057 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1058 |
--dataroo |
--dataro |
--datar)
1059 ac_prev
=datarootdir
;;
1060 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1061 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1062 datarootdir
=$ac_optarg ;;
1064 -disable-* |
--disable-*)
1065 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1068 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1071 eval enable_
$ac_feature=no
;;
1073 -docdir |
--docdir |
--docdi |
--doc |
--do)
1075 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1076 docdir
=$ac_optarg ;;
1078 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1080 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1081 dvidir
=$ac_optarg ;;
1083 -enable-* |
--enable-*)
1084 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1087 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1088 { (exit 1); exit 1; }; }
1089 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1090 eval enable_
$ac_feature=\
$ac_optarg ;;
1092 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1093 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1094 |
--exec |
--exe |
--ex)
1095 ac_prev
=exec_prefix
;;
1096 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1097 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1098 |
--exec=* |
--exe=* |
--ex=*)
1099 exec_prefix
=$ac_optarg ;;
1101 -gas |
--gas |
--ga |
--g)
1102 # Obsolete; use --with-gas.
1105 -help |
--help |
--hel |
--he |
-h)
1106 ac_init_help
=long
;;
1107 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1108 ac_init_help
=recursive
;;
1109 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1110 ac_init_help
=short
;;
1112 -host |
--host |
--hos |
--ho)
1113 ac_prev
=host_alias
;;
1114 -host=* |
--host=* |
--hos=* |
--ho=*)
1115 host_alias
=$ac_optarg ;;
1117 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1119 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1121 htmldir
=$ac_optarg ;;
1123 -includedir |
--includedir |
--includedi |
--included |
--include \
1124 |
--includ |
--inclu |
--incl |
--inc)
1125 ac_prev
=includedir
;;
1126 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1127 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1128 includedir
=$ac_optarg ;;
1130 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1132 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1133 infodir
=$ac_optarg ;;
1135 -libdir |
--libdir |
--libdi |
--libd)
1137 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1138 libdir
=$ac_optarg ;;
1140 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1141 |
--libexe |
--libex |
--libe)
1142 ac_prev
=libexecdir
;;
1143 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1144 |
--libexe=* |
--libex=* |
--libe=*)
1145 libexecdir
=$ac_optarg ;;
1147 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1148 ac_prev
=localedir
;;
1149 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1150 localedir
=$ac_optarg ;;
1152 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1153 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1154 ac_prev
=localstatedir
;;
1155 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1156 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1157 localstatedir
=$ac_optarg ;;
1159 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1161 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1162 mandir
=$ac_optarg ;;
1164 -nfp |
--nfp |
--nf)
1165 # Obsolete; use --without-fp.
1168 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1169 |
--no-cr |
--no-c |
-n)
1172 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1173 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1176 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1177 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1178 |
--oldin |
--oldi |
--old |
--ol |
--o)
1179 ac_prev
=oldincludedir
;;
1180 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1181 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1182 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1183 oldincludedir
=$ac_optarg ;;
1185 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1187 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1188 prefix
=$ac_optarg ;;
1190 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1191 |
--program-pre |
--program-pr |
--program-p)
1192 ac_prev
=program_prefix
;;
1193 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1194 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1195 program_prefix
=$ac_optarg ;;
1197 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1198 |
--program-suf |
--program-su |
--program-s)
1199 ac_prev
=program_suffix
;;
1200 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1201 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1202 program_suffix
=$ac_optarg ;;
1204 -program-transform-name |
--program-transform-name \
1205 |
--program-transform-nam |
--program-transform-na \
1206 |
--program-transform-n |
--program-transform- \
1207 |
--program-transform |
--program-transfor \
1208 |
--program-transfo |
--program-transf \
1209 |
--program-trans |
--program-tran \
1210 |
--progr-tra |
--program-tr |
--program-t)
1211 ac_prev
=program_transform_name
;;
1212 -program-transform-name=* |
--program-transform-name=* \
1213 |
--program-transform-nam=* |
--program-transform-na=* \
1214 |
--program-transform-n=* |
--program-transform-=* \
1215 |
--program-transform=* |
--program-transfor=* \
1216 |
--program-transfo=* |
--program-transf=* \
1217 |
--program-trans=* |
--program-tran=* \
1218 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1219 program_transform_name
=$ac_optarg ;;
1221 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1223 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1224 pdfdir
=$ac_optarg ;;
1226 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1228 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1231 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1232 |
-silent |
--silent |
--silen |
--sile |
--sil)
1235 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1237 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1239 sbindir
=$ac_optarg ;;
1241 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1242 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1243 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1245 ac_prev
=sharedstatedir
;;
1246 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1247 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1248 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1250 sharedstatedir
=$ac_optarg ;;
1252 -site |
--site |
--sit)
1254 -site=* |
--site=* |
--sit=*)
1257 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1259 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1260 srcdir
=$ac_optarg ;;
1262 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1263 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1264 ac_prev
=sysconfdir
;;
1265 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1266 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1267 sysconfdir
=$ac_optarg ;;
1269 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1270 ac_prev
=target_alias
;;
1271 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1272 target_alias
=$ac_optarg ;;
1274 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1277 -version |
--version |
--versio |
--versi |
--vers |
-V)
1278 ac_init_version
=: ;;
1281 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1284 { echo "$as_me: error: invalid package name: $ac_package" >&2
1285 { (exit 1); exit 1; }; }
1286 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1287 eval with_
$ac_package=\
$ac_optarg ;;
1289 -without-* |
--without-*)
1290 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1293 { echo "$as_me: error: invalid package name: $ac_package" >&2
1294 { (exit 1); exit 1; }; }
1295 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1296 eval with_
$ac_package=no
;;
1299 # Obsolete; use --with-x.
1302 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1303 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1304 ac_prev
=x_includes
;;
1305 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1306 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1307 x_includes
=$ac_optarg ;;
1309 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1310 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1311 ac_prev
=x_libraries
;;
1312 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1313 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1314 x_libraries
=$ac_optarg ;;
1316 -*) { echo "$as_me: error: unrecognized option: $ac_option
1317 Try \`$0 --help' for more information." >&2
1318 { (exit 1); exit 1; }; }
1322 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1323 # Reject names that are not valid shell variable names.
1324 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1325 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1326 { (exit 1); exit 1; }; }
1327 eval $ac_envvar=\
$ac_optarg
1328 export $ac_envvar ;;
1331 # FIXME: should be removed in autoconf 3.0.
1332 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1333 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1334 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1335 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1341 if test -n "$ac_prev"; then
1342 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1343 { echo "$as_me: error: missing argument to $ac_option" >&2
1344 { (exit 1); exit 1; }; }
1347 # Be sure to have absolute directory names.
1348 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1349 datadir sysconfdir sharedstatedir localstatedir includedir \
1350 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1351 libdir localedir mandir
1353 eval ac_val
=\$
$ac_var
1355 [\\/$
]* | ?
:[\\/]* ) continue;;
1356 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1358 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1359 { (exit 1); exit 1; }; }
1362 # There might be people who depend on the old broken behavior: `$host'
1363 # used to hold the argument of --host etc.
1364 # FIXME: To remove some day.
1367 target
=$target_alias
1369 # FIXME: To remove some day.
1370 if test "x$host_alias" != x
; then
1371 if test "x$build_alias" = x
; then
1372 cross_compiling
=maybe
1373 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1374 If a cross compiler is detected then cross compile mode will be used." >&2
1375 elif test "x$build_alias" != "x$host_alias"; then
1381 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1383 test "$silent" = yes && exec 6>/dev
/null
1386 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1387 ac_ls_di
=`ls -di .` &&
1388 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1389 { echo "$as_me: error: Working directory cannot be determined" >&2
1390 { (exit 1); exit 1; }; }
1391 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1392 { echo "$as_me: error: pwd does not report name of working directory" >&2
1393 { (exit 1); exit 1; }; }
1396 # Find the source files, if location was not specified.
1397 if test -z "$srcdir"; then
1398 ac_srcdir_defaulted
=yes
1399 # Try the directory containing this script, then the parent directory.
1400 ac_confdir
=`$as_dirname -- "$0" ||
1401 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402 X"$0" : 'X\(//\)[^/]' \| \
1403 X"$0" : 'X\(//\)$' \| \
1404 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1428 ac_srcdir_defaulted
=no
1430 if test ! -r "$srcdir/$ac_unique_file"; then
1431 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1432 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1433 { (exit 1); exit 1; }; }
1435 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1437 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1438 { (exit 1); exit 1; }; }
1440 # When building in place, set srcdir=.
1441 if test "$ac_abs_confdir" = "$ac_pwd"; then
1444 # Remove unnecessary trailing slashes from srcdir.
1445 # Double slashes in file names in object file debugging info
1446 # mess up M-x gdb in Emacs.
1448 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1450 for ac_var
in $ac_precious_vars; do
1451 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1452 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1453 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1454 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1458 # Report the --help message.
1460 if test "$ac_init_help" = "long"; then
1461 # Omit some internal or obsolete options to make the list less imposing.
1462 # This message is too long to be a string in the A/UX 3.1 sh.
1464 \`configure' configures llvm 2.4svn to adapt to many kinds of systems.
1466 Usage: $0 [OPTION]... [VAR=VALUE]...
1468 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1469 VAR=VALUE. See below for descriptions of some of the useful variables.
1471 Defaults for the options are specified in brackets.
1474 -h, --help display this help and exit
1475 --help=short display options specific to this package
1476 --help=recursive display the short help of all the included packages
1477 -V, --version display version information and exit
1478 -q, --quiet, --silent do not print \`checking...' messages
1479 --cache-file=FILE cache test results in FILE [disabled]
1480 -C, --config-cache alias for \`--cache-file=config.cache'
1481 -n, --no-create do not create output files
1482 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1484 Installation directories:
1485 --prefix=PREFIX install architecture-independent files in PREFIX
1486 [$ac_default_prefix]
1487 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1490 By default, \`make install' will install all the files in
1491 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1492 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1493 for instance \`--prefix=\$HOME'.
1495 For better control, use the options below.
1497 Fine tuning of the installation directories:
1498 --bindir=DIR user executables [EPREFIX/bin]
1499 --sbindir=DIR system admin executables [EPREFIX/sbin]
1500 --libexecdir=DIR program executables [EPREFIX/libexec]
1501 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1502 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1503 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1504 --libdir=DIR object code libraries [EPREFIX/lib]
1505 --includedir=DIR C header files [PREFIX/include]
1506 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1507 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1508 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1509 --infodir=DIR info documentation [DATAROOTDIR/info]
1510 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1511 --mandir=DIR man documentation [DATAROOTDIR/man]
1512 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1513 --htmldir=DIR html documentation [DOCDIR]
1514 --dvidir=DIR dvi documentation [DOCDIR]
1515 --pdfdir=DIR pdf documentation [DOCDIR]
1516 --psdir=DIR ps documentation [DOCDIR]
1522 --build=BUILD configure
for building on BUILD
[guessed
]
1523 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1524 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1528 if test -n "$ac_init_help"; then
1529 case $ac_init_help in
1530 short | recursive
) echo "Configuration of llvm 2.4svn:";;
1535 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1536 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1539 --enable-expensive-checks
1541 --enable-debug-runtime
1542 --enable-jit Enable Just In Time Compiling
(default is YES
)
1543 --enable-doxygen Build doxygen documentation
(default is NO
)
1544 --enable-threads Use threads
if available
(default is YES
)
1545 --enable-pic Build LLVM with Position Independent Code
(default
1547 --enable-targets Build specific
host targets
:
1548 all
,host-only
,{target-name
} (default
=all
)
1549 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1551 --enable-bindings Build specific language bindings
:
1552 all
,auto
,none
,{binding-name
} (default
=auto
)
1553 --enable-ltdl-install install libltdl
1554 --enable-shared[=PKGS
] build shared libraries
1556 --enable-static[=PKGS
] build static libraries
1558 --enable-fast-install[=PKGS
]
1559 optimize
for fast installation
1561 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1564 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1565 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1566 --with-llvmgccdir Specify location of llvm-gcc
install dir
(default
1568 --with-llvmgcc Specify location of llvm-gcc driver
(default
1570 --with-llvmgxx Specify location of llvm-g
++ driver
(default
1572 --with-extra-options Specify addtional options to compile LLVM with
1573 --with-ocaml-libdir Specify
install location
for ocaml bindings
(default
1575 --with-tclinclude directory where tcl headers are
1576 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1577 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1579 --with-tags[=TAGS
] include additional configurations
[automatic
]
1580 --with-udis86=<path
> Use udis86 external x86 disassembler library
1582 Some influential environment variables
:
1583 CC C compiler
command
1584 CFLAGS C compiler flags
1585 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1586 nonstandard directory
<lib dir
>
1587 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1588 you have headers
in a nonstandard directory
<include dir
>
1590 CXX C
++ compiler
command
1591 CXXFLAGS C
++ compiler flags
1592 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1593 the first program found out of: `bison
-y', `byacc', `yacc'.
1594 YFLAGS The list of arguments that will be passed by default to $YACC.
1595 This script will default YFLAGS to the empty string to avoid a
1596 default value of `-d' given by some make applications.
1597 CXXCPP C++ preprocessor
1598 F77 Fortran 77 compiler command
1599 FFLAGS Fortran 77 compiler flags
1601 Use these variables to override the choices made by `configure' or to
help
1602 it to
find libraries and programs with nonstandard names
/locations.
1604 Report bugs to
<llvmbugs@cs.uiuc.edu
>.
1609 if test "$ac_init_help" = "recursive"; then
1610 # If there are subdirs, report their specific --help.
1611 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1612 test -d "$ac_dir" ||
continue
1616 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1618 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1619 # A ".." for each directory in $ac_dir_suffix.
1620 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1621 case $ac_top_builddir_sub in
1622 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1623 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1626 ac_abs_top_builddir
=$ac_pwd
1627 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1628 # for backward compatibility:
1629 ac_top_builddir
=$ac_top_build_prefix
1632 .
) # We are building in place.
1634 ac_top_srcdir
=$ac_top_builddir_sub
1635 ac_abs_top_srcdir
=$ac_pwd ;;
1636 [\\/]* | ?
:[\\/]* ) # Absolute name.
1637 ac_srcdir
=$srcdir$ac_dir_suffix;
1638 ac_top_srcdir
=$srcdir
1639 ac_abs_top_srcdir
=$srcdir ;;
1641 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1643 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1645 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1647 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1648 # Check for guested configure.
1649 if test -f "$ac_srcdir/configure.gnu"; then
1651 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652 elif test -f "$ac_srcdir/configure"; then
1654 $SHELL "$ac_srcdir/configure" --help=recursive
1656 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1658 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1662 test -n "$ac_init_help" && exit $ac_status
1663 if $ac_init_version; then
1665 llvm configure
2.4svn
1666 generated by GNU Autoconf
2.60
1668 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1669 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1670 This configure
script is free software
; the Free Software Foundation
1671 gives unlimited permission to copy
, distribute and modify it.
1673 Copyright
(c
) 2003-2008 University of Illinois
at Urbana-Champaign.
1677 cat >config.log
<<_ACEOF
1678 This file contains any messages produced by compilers while
1679 running configure, to aid debugging if configure makes a mistake.
1681 It was created by llvm $as_me 2.4svn, which was
1682 generated by GNU Autoconf 2.60. Invocation command line was
1694 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1695 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1696 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1697 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1698 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1700 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1701 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1703 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1704 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1705 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1706 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1707 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1708 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1709 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1713 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1717 test -z "$as_dir" && as_dir
=.
1718 echo "PATH: $as_dir"
1734 # Keep a trace of the command line.
1735 # Strip out --no-create and --no-recursion so they do not pile up.
1736 # Strip out --silent because we don't want to record it for future runs.
1737 # Also quote any args containing shell meta-characters.
1738 # Make two passes to allow for proper duplicate-argument suppression.
1742 ac_must_keep_next
=false
1748 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1749 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1750 |
-silent |
--silent |
--silen |
--sile |
--sil)
1753 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1756 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1758 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1759 if test $ac_must_keep_next = true
; then
1760 ac_must_keep_next
=false
# Got value, back to normal.
1763 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1764 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1765 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1766 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1767 case "$ac_configure_args0 " in
1768 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1771 -* ) ac_must_keep_next
=true
;;
1774 ac_configure_args
="$ac_configure_args '$ac_arg'"
1779 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1780 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1782 # When interrupted or exit'd, cleanup temporary files, and complete
1783 # config.log. We remove comments because anyway the quotes in there
1784 # would cause problems or look ugly.
1785 # WARNING: Use '\'' to represent an apostrophe within the trap.
1786 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1787 trap 'exit_status=$?
1788 # Save into config.log some information that might help in debugging.
1793 ## ---------------- ##
1794 ## Cache variables. ##
1795 ## ---------------- ##
1798 # The following way of writing the cache mishandles newlines in values,
1800 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1801 eval ac_val=\$$ac_var
1805 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1806 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1809 _ | IFS | as_nl) ;; #(
1810 *) $as_unset $ac_var ;;
1815 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1816 *${as_nl}ac_space=\ *)
1818 "s/'\''/'\''\\\\'\'''\''/g;
1819 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1822 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1830 ## ----------------- ##
1831 ## Output variables. ##
1832 ## ----------------- ##
1835 for ac_var in $ac_subst_vars
1837 eval ac_val=\$$ac_var
1839 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1841 echo "$ac_var='\''$ac_val'\''"
1845 if test -n "$ac_subst_files"; then
1847 ## ------------------- ##
1848 ## File substitutions. ##
1849 ## ------------------- ##
1852 for ac_var
in $ac_subst_files
1854 eval ac_val
=\$
$ac_var
1856 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1858 echo "$ac_var='\''$ac_val'\''"
1863 if test -s confdefs.h; then
1873 test "$ac_signal" != 0 &&
1874 echo "$as_me: caught signal $ac_signal"
1875 echo "$as_me: exit $exit_status"
1877 rm -f core *.core core.conftest.* &&
1878 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1881 for ac_signal
in 1 2 13 15; do
1882 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1886 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1887 rm -f -r conftest
* confdefs.h
1889 # Predefined preprocessor variables.
1891 cat >>confdefs.h
<<_ACEOF
1892 #define PACKAGE_NAME "$PACKAGE_NAME"
1896 cat >>confdefs.h
<<_ACEOF
1897 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1901 cat >>confdefs.h
<<_ACEOF
1902 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1906 cat >>confdefs.h
<<_ACEOF
1907 #define PACKAGE_STRING "$PACKAGE_STRING"
1911 cat >>confdefs.h
<<_ACEOF
1912 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1916 # Let the site file select an alternate cache file if it wants to.
1917 # Prefer explicitly selected file to automatically selected ones.
1918 if test -n "$CONFIG_SITE"; then
1919 set x
"$CONFIG_SITE"
1920 elif test "x$prefix" != xNONE
; then
1921 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1923 set x
"$ac_default_prefix/share/config.site" \
1924 "$ac_default_prefix/etc/config.site"
1929 if test -r "$ac_site_file"; then
1930 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1931 echo "$as_me: loading site script $ac_site_file" >&6;}
1932 sed 's/^/| /' "$ac_site_file" >&5
1937 if test -r "$cache_file"; then
1938 # Some versions of bash will fail to source /dev/null (special
1939 # files actually), so we avoid doing that.
1940 if test -f "$cache_file"; then
1941 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1942 echo "$as_me: loading cache $cache_file" >&6;}
1944 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1945 *) .
"./$cache_file";;
1949 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1950 echo "$as_me: creating cache $cache_file" >&6;}
1954 # Check that the precious variables saved in the cache have kept the same
1956 ac_cache_corrupted
=false
1957 for ac_var
in $ac_precious_vars; do
1958 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1959 eval ac_new_set
=\
$ac_env_${ac_var}_set
1960 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1961 eval ac_new_val
=\
$ac_env_${ac_var}_value
1962 case $ac_old_set,$ac_new_set in
1964 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1965 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1966 ac_cache_corrupted
=: ;;
1968 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1969 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1970 ac_cache_corrupted
=: ;;
1973 if test "x$ac_old_val" != "x$ac_new_val"; then
1974 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1975 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1976 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1977 echo "$as_me: former value: $ac_old_val" >&2;}
1978 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1979 echo "$as_me: current value: $ac_new_val" >&2;}
1980 ac_cache_corrupted
=:
1983 # Pass precious variables to config.status.
1984 if test "$ac_new_set" = set; then
1986 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1987 *) ac_arg
=$ac_var=$ac_new_val ;;
1989 case " $ac_configure_args " in
1990 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1991 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1995 if $ac_cache_corrupted; then
1996 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1997 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1998 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1999 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2000 { (exit 1); exit 1; }; }
2028 ac_cpp
='$CPP $CPPFLAGS'
2029 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2030 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2031 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2035 LLVM_COPYRIGHT
="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2044 for ac_dir
in autoconf
"$srcdir"/autoconf
; do
2045 if test -f "$ac_dir/install-sh"; then
2047 ac_install_sh
="$ac_aux_dir/install-sh -c"
2049 elif test -f "$ac_dir/install.sh"; then
2051 ac_install_sh
="$ac_aux_dir/install.sh -c"
2053 elif test -f "$ac_dir/shtool"; then
2055 ac_install_sh
="$ac_aux_dir/shtool install -c"
2059 if test -z "$ac_aux_dir"; then
2060 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2061 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2062 { (exit 1); exit 1; }; }
2065 # These three variables are undocumented and unsupported,
2066 # and are intended to be withdrawn in a future Autoconf release.
2067 # They can cause serious problems if a builder's source tree is in a directory
2068 # whose full name contains unusual characters.
2069 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2070 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2071 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2075 if test ${srcdir} != "." ; then
2076 if test -f ${srcdir}/include
/llvm
/Config
/config.h
; then
2077 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2078 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2079 { (exit 1); exit 1; }; }
2083 for i
in `ls ${srcdir}/projects`
2085 if test -d ${srcdir}/projects
/${i} ; then
2088 sample
) subdirs
="$subdirs projects/sample"
2090 privbracket
) subdirs
="$subdirs projects/privbracket"
2092 llvm-stacker
) subdirs
="$subdirs projects/llvm-stacker"
2094 # llvm-test is the old name of the test-suite, kept here for backwards
2096 llvm-test
) subdirs
="$subdirs projects/llvm-test"
2098 test-suite
) subdirs
="$subdirs projects/test-suite"
2100 llvm-reopt
) subdirs
="$subdirs projects/llvm-reopt"
2102 llvm-gcc
) subdirs
="$subdirs projects/llvm-gcc"
2104 llvm-java
) subdirs
="$subdirs projects/llvm-java"
2106 llvm-tv
) subdirs
="$subdirs projects/llvm-tv"
2108 llvm-poolalloc
) subdirs
="$subdirs projects/llvm-poolalloc"
2110 poolalloc
) subdirs
="$subdirs projects/poolalloc"
2112 llvm-kernel
) subdirs
="$subdirs projects/llvm-kernel"
2115 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2116 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2123 # Make sure we can run config.sub.
2124 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2125 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2126 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2127 { (exit 1); exit 1; }; }
2129 { echo "$as_me:$LINENO: checking build system type" >&5
2130 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2131 if test "${ac_cv_build+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 ac_build_alias
=$build_alias
2135 test "x$ac_build_alias" = x
&&
2136 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2137 test "x$ac_build_alias" = x
&&
2138 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2139 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2140 { (exit 1); exit 1; }; }
2141 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2142 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2143 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2144 { (exit 1); exit 1; }; }
2147 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2148 echo "${ECHO_T}$ac_cv_build" >&6; }
2149 case $ac_cv_build in
2151 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2152 echo "$as_me: error: invalid value of canonical build" >&2;}
2153 { (exit 1); exit 1; }; };;
2156 ac_save_IFS
=$IFS; IFS
='-'
2162 # Remember, the first character of IFS is used to create $*,
2163 # except with old shells:
2166 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2169 { echo "$as_me:$LINENO: checking host system type" >&5
2170 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2171 if test "${ac_cv_host+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 if test "x$host_alias" = x
; then
2175 ac_cv_host
=$ac_cv_build
2177 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2178 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2179 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2180 { (exit 1); exit 1; }; }
2184 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2185 echo "${ECHO_T}$ac_cv_host" >&6; }
2188 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2189 echo "$as_me: error: invalid value of canonical host" >&2;}
2190 { (exit 1); exit 1; }; };;
2193 ac_save_IFS
=$IFS; IFS
='-'
2199 # Remember, the first character of IFS is used to create $*,
2200 # except with old shells:
2203 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2206 { echo "$as_me:$LINENO: checking target system type" >&5
2207 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2208 if test "${ac_cv_target+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 if test "x$target_alias" = x
; then
2212 ac_cv_target
=$ac_cv_host
2214 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2215 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2216 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2217 { (exit 1); exit 1; }; }
2221 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2222 echo "${ECHO_T}$ac_cv_target" >&6; }
2223 case $ac_cv_target in
2225 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2226 echo "$as_me: error: invalid value of canonical target" >&2;}
2227 { (exit 1); exit 1; }; };;
2229 target
=$ac_cv_target
2230 ac_save_IFS
=$IFS; IFS
='-'
2236 # Remember, the first character of IFS is used to create $*,
2237 # except with old shells:
2240 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2243 # The aliases save the names the user supplied, while $host etc.
2244 # will get canonicalized.
2245 test -n "$target_alias" &&
2246 test "$program_prefix$program_suffix$program_transform_name" = \
2248 program_prefix
=${target_alias}-
2250 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2251 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2252 if test "${llvm_cv_os_type+set}" = set; then
2253 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 llvm_cv_link_all_option
="-Wl,--whole-archive"
2258 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2259 llvm_cv_os_type
="AIX"
2260 llvm_cv_platform_type
="Unix" ;;
2262 llvm_cv_link_all_option
="-Wl,--whole-archive"
2263 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2264 llvm_cv_os_type
="IRIX"
2265 llvm_cv_platform_type
="Unix" ;;
2267 llvm_cv_link_all_option
="-Wl,--whole-archive"
2268 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2269 llvm_cv_os_type
="Cygwin"
2270 llvm_cv_platform_type
="Unix" ;;
2272 llvm_cv_link_all_option
="-Wl,-all_load"
2273 llvm_cv_no_link_all_option
="-Wl,-noall_load"
2274 llvm_cv_os_type
="Darwin"
2275 llvm_cv_platform_type
="Unix" ;;
2277 llvm_cv_link_all_option
="-Wl,--whole-archive"
2278 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2279 llvm_cv_os_type
="FreeBSD"
2280 llvm_cv_platform_type
="Unix" ;;
2282 llvm_cv_link_all_option
="-Wl,--whole-archive"
2283 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2284 llvm_cv_os_type
="OpenBSD"
2285 llvm_cv_platform_type
="Unix" ;;
2287 llvm_cv_link_all_option
="-Wl,--whole-archive"
2288 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2289 llvm_cv_os_type
="NetBSD"
2290 llvm_cv_platform_type
="Unix" ;;
2292 llvm_cv_link_all_option
="-Wl,--whole-archive"
2293 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2294 llvm_cv_os_type
="DragonFly"
2295 llvm_cv_platform_type
="Unix" ;;
2297 llvm_cv_link_all_option
="-Wl,--whole-archive"
2298 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2299 llvm_cv_os_type
="HP-UX"
2300 llvm_cv_platform_type
="Unix" ;;
2302 llvm_cv_link_all_option
="-Wl,--whole-archive"
2303 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2304 llvm_cv_os_type
="Interix"
2305 llvm_cv_platform_type
="Unix" ;;
2307 llvm_cv_link_all_option
="-Wl,--whole-archive"
2308 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2309 llvm_cv_os_type
="Linux"
2310 llvm_cv_platform_type
="Unix" ;;
2312 llvm_cv_link_all_option
="-Wl,-z,allextract"
2313 llvm_cv_no_link_all_option
="-Wl,-z,defaultextract"
2314 llvm_cv_os_type
="SunOS"
2315 llvm_cv_platform_type
="Unix" ;;
2317 llvm_cv_link_all_option
="-Wl,--whole-archive"
2318 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2319 llvm_cv_os_type
="Win32"
2320 llvm_cv_platform_type
="Win32" ;;
2322 llvm_cv_link_all_option
="-Wl,--whole-archive"
2323 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2324 llvm_cv_os_type
="MingW"
2325 llvm_cv_platform_type
="Win32" ;;
2327 llvm_cv_link_all_option
=""
2328 llvm_cv_no_link_all_option
=""
2329 llvm_cv_os_type
="Unknown"
2330 llvm_cv_platform_type
="Unknown" ;;
2333 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2334 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2336 if test "$llvm_cv_os_type" = "Unknown" ; then
2337 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2338 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2339 { (exit 1); exit 1; }; }
2345 LINKALL
=$llvm_cv_link_all_option
2347 NOLINKALL
=$llvm_cv_no_link_all_option
2350 case $llvm_cv_platform_type in
2353 cat >>confdefs.h
<<\_ACEOF
2354 #define LLVM_ON_UNIX 1
2364 cat >>confdefs.h
<<\_ACEOF
2365 #define LLVM_ON_WIN32 1
2375 { echo "$as_me:$LINENO: checking target architecture" >&5
2376 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2377 if test "${llvm_cv_target_arch+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2381 i?
86-*) llvm_cv_target_arch
="x86" ;;
2382 amd64-
* | x86_64-
*) llvm_cv_target_arch
="x86_64" ;;
2383 sparc
*-*) llvm_cv_target_arch
="Sparc" ;;
2384 powerpc
*-*) llvm_cv_target_arch
="PowerPC" ;;
2385 alpha
*-*) llvm_cv_target_arch
="Alpha" ;;
2386 ia64-
*) llvm_cv_target_arch
="IA64" ;;
2387 arm-
*) llvm_cv_target_arch
="ARM" ;;
2388 mips-
*) llvm_cv_target_arch
="Mips" ;;
2389 pic16-
*) llvm_cv_target_arch
="PIC16" ;;
2390 *) llvm_cv_target_arch
="Unknown" ;;
2393 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2394 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2396 if test "$llvm_cv_target_arch" = "Unknown" ; then
2397 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2398 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2401 ARCH
=$llvm_cv_target_arch
2405 ac_cpp
='$CPP $CPPFLAGS'
2406 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2407 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2408 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2409 if test -n "$ac_tool_prefix"; then
2410 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2411 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2414 if test "${ac_cv_prog_CC+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2417 if test -n "$CC"; then
2418 ac_cv_prog_CC
="$CC" # Let the user override the test.
2420 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2424 test -z "$as_dir" && as_dir
=.
2425 for ac_exec_ext
in '' $ac_executable_extensions; do
2426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2427 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2438 if test -n "$CC"; then
2439 { echo "$as_me:$LINENO: result: $CC" >&5
2440 echo "${ECHO_T}$CC" >&6; }
2442 { echo "$as_me:$LINENO: result: no" >&5
2443 echo "${ECHO_T}no" >&6; }
2448 if test -z "$ac_cv_prog_CC"; then
2450 # Extract the first word of "gcc", so it can be a program name with args.
2451 set dummy gcc
; ac_word
=$2
2452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2454 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 if test -n "$ac_ct_CC"; then
2458 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2464 test -z "$as_dir" && as_dir
=.
2465 for ac_exec_ext
in '' $ac_executable_extensions; do
2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2467 ac_cv_prog_ac_ct_CC
="gcc"
2468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2478 if test -n "$ac_ct_CC"; then
2479 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2480 echo "${ECHO_T}$ac_ct_CC" >&6; }
2482 { echo "$as_me:$LINENO: result: no" >&5
2483 echo "${ECHO_T}no" >&6; }
2486 if test "x$ac_ct_CC" = x
; then
2489 case $cross_compiling:$ac_tool_warned in
2491 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2492 whose name does not start with the host triplet. If you think this
2493 configuration is useful to you, please write to autoconf@gnu.org." >&5
2494 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2495 whose name does not start with the host triplet. If you think this
2496 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2497 ac_tool_warned
=yes ;;
2505 if test -z "$CC"; then
2506 if test -n "$ac_tool_prefix"; then
2507 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2508 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2511 if test "${ac_cv_prog_CC+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 if test -n "$CC"; then
2515 ac_cv_prog_CC
="$CC" # Let the user override the test.
2517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2521 test -z "$as_dir" && as_dir
=.
2522 for ac_exec_ext
in '' $ac_executable_extensions; do
2523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2524 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 if test -n "$CC"; then
2536 { echo "$as_me:$LINENO: result: $CC" >&5
2537 echo "${ECHO_T}$CC" >&6; }
2539 { echo "$as_me:$LINENO: result: no" >&5
2540 echo "${ECHO_T}no" >&6; }
2546 if test -z "$CC"; then
2547 # Extract the first word of "cc", so it can be a program name with args.
2548 set dummy cc
; ac_word
=$2
2549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2551 if test "${ac_cv_prog_CC+set}" = set; then
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2554 if test -n "$CC"; then
2555 ac_cv_prog_CC
="$CC" # Let the user override the test.
2558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2562 test -z "$as_dir" && as_dir
=.
2563 for ac_exec_ext
in '' $ac_executable_extensions; do
2564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2565 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2566 ac_prog_rejected
=yes
2570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 if test $ac_prog_rejected = yes; then
2578 # We found a bogon in the path, so make sure we never use it.
2579 set dummy
$ac_cv_prog_CC
2581 if test $# != 0; then
2582 # We chose a different compiler from the bogus one.
2583 # However, it has the same basename, so the bogon will be chosen
2584 # first if we set CC to just the basename; use the full file name.
2586 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2592 if test -n "$CC"; then
2593 { echo "$as_me:$LINENO: result: $CC" >&5
2594 echo "${ECHO_T}$CC" >&6; }
2596 { echo "$as_me:$LINENO: result: no" >&5
2597 echo "${ECHO_T}no" >&6; }
2602 if test -z "$CC"; then
2603 if test -n "$ac_tool_prefix"; then
2604 for ac_prog
in cl.exe
2606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2607 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2610 if test "${ac_cv_prog_CC+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2613 if test -n "$CC"; then
2614 ac_cv_prog_CC
="$CC" # Let the user override the test.
2616 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2620 test -z "$as_dir" && as_dir
=.
2621 for ac_exec_ext
in '' $ac_executable_extensions; do
2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2623 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2634 if test -n "$CC"; then
2635 { echo "$as_me:$LINENO: result: $CC" >&5
2636 echo "${ECHO_T}$CC" >&6; }
2638 { echo "$as_me:$LINENO: result: no" >&5
2639 echo "${ECHO_T}no" >&6; }
2643 test -n "$CC" && break
2646 if test -z "$CC"; then
2648 for ac_prog
in cl.exe
2650 # Extract the first word of "$ac_prog", so it can be a program name with args.
2651 set dummy
$ac_prog; ac_word
=$2
2652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2654 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 if test -n "$ac_ct_CC"; then
2658 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2664 test -z "$as_dir" && as_dir
=.
2665 for ac_exec_ext
in '' $ac_executable_extensions; do
2666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2667 ac_cv_prog_ac_ct_CC
="$ac_prog"
2668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2678 if test -n "$ac_ct_CC"; then
2679 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2680 echo "${ECHO_T}$ac_ct_CC" >&6; }
2682 { echo "$as_me:$LINENO: result: no" >&5
2683 echo "${ECHO_T}no" >&6; }
2687 test -n "$ac_ct_CC" && break
2690 if test "x$ac_ct_CC" = x
; then
2693 case $cross_compiling:$ac_tool_warned in
2695 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2696 whose name does not start with the host triplet. If you think this
2697 configuration is useful to you, please write to autoconf@gnu.org." >&5
2698 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2699 whose name does not start with the host triplet. If you think this
2700 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2701 ac_tool_warned
=yes ;;
2710 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2711 See \`config.log' for more details." >&5
2712 echo "$as_me: error: no acceptable C compiler found in \$PATH
2713 See \`config.log' for more details." >&2;}
2714 { (exit 1); exit 1; }; }
2716 # Provide some information about the compiler.
2717 echo "$as_me:$LINENO: checking for C compiler version" >&5
2718 ac_compiler
=`set X $ac_compile; echo $2`
2719 { (ac_try
="$ac_compiler --version >&5"
2721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_compiler --version >&5") 2>&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }
2729 { (ac_try="$ac_compiler -v >&5"
2731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2732 *) ac_try_echo
=$ac_try;;
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_compiler -v >&5") 2>&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }
2739 { (ac_try
="$ac_compiler -V >&5"
2741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745 (eval "$ac_compiler -V >&5") 2>&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }
2750 cat >conftest.$ac_ext <<_ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2765 ac_clean_files_save=$ac_clean_files
2766 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2767 # Try to create an executable without -o first, disregard a.out.
2768 # It will help us diagnose broken compilers, and finding out an intuition
2770 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2771 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2772 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2774 # List of possible output files, starting from the most likely.
2775 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2776 # only as a last resort. b.out is created by i960 compilers.
2777 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2779 # The IRIX 6 linker writes into existing files which may not be
2780 # executable, retaining their permissions. Remove them first so a
2781 # subsequent execution test works.
2783 for ac_file in $ac_files
2786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2787 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2792 if { (ac_try="$ac_link_default"
2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798 (eval "$ac_link_default") 2>&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; then
2802 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2803 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2804 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2805 # so that the user can short-circuit this test for compilers unknown to
2807 for ac_file
in $ac_files
2809 test -f "$ac_file" ||
continue
2811 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2814 # We found the default executable, but exeext='' is most
2818 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2820 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2822 # We set ac_cv_exeext here because the later test for it is not
2823 # safe: cross compilers may not add the suffix if given an `-o'
2824 # argument, so we may need to know it at that point already.
2825 # Even if this section looks crufty: it has the advantage of
2832 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2835 echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.
$ac_ext >&5
2838 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2839 See \`config.log' for more details." >&5
2840 echo "$as_me: error: C compiler cannot create executables
2841 See \`config.log' for more details." >&2;}
2842 { (exit 77); exit 77; }; }
2845 ac_exeext
=$ac_cv_exeext
2846 { echo "$as_me:$LINENO: result: $ac_file" >&5
2847 echo "${ECHO_T}$ac_file" >&6; }
2849 # Check that the compiler produces executables we can run. If not, either
2850 # the compiler is broken, or we cross compile.
2851 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2852 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2853 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2854 # If not cross compiling, check that we can run a simple program.
2855 if test "$cross_compiling" != yes; then
2856 if { ac_try
='./$ac_file'
2857 { (case "(($ac_try" in
2858 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2859 *) ac_try_echo=$ac_try;;
2861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2862 (eval "$ac_try") 2>&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }; }; then
2868 if test "$cross_compiling" = maybe; then
2871 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2872 If you meant to cross compile, use \`--host'.
2873 See \`config.log' for more details.
" >&5
2874 echo "$as_me: error
: cannot run C compiled programs.
2875 If you meant to cross compile
, use \
`--host'.
2876 See \`config.log
' for more details." >&2;}
2877 { (exit 1); exit 1; }; }
2881 { echo "$as_me:$LINENO: result: yes" >&5
2882 echo "${ECHO_T}yes" >&6; }
2884 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2885 ac_clean_files=$ac_clean_files_save
2886 # Check that the compiler produces executables we can run. If not, either
2887 # the compiler is broken, or we cross compile.
2888 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2889 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2890 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2891 echo "${ECHO_T}$cross_compiling" >&6; }
2893 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2894 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2895 if { (ac_try="$ac_link"
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_link") 2>&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }; then
2905 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2906 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2907 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2909 for ac_file
in conftest.exe conftest conftest.
*; do
2910 test -f "$ac_file" ||
continue
2912 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2913 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2919 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2920 See \`config.log' for more details." >&5
2921 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2922 See \`config.log' for more details." >&2;}
2923 { (exit 1); exit 1; }; }
2926 rm -f conftest
$ac_cv_exeext
2927 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2928 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2930 rm -f conftest.
$ac_ext
2931 EXEEXT
=$ac_cv_exeext
2933 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2934 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2935 if test "${ac_cv_objext+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. */
2953 rm -f conftest.o conftest.obj
2954 if { (ac_try
="$ac_compile"
2956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_compile") 2>&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; then
2964 for ac_file in conftest.o conftest.obj conftest.*; do
2965 test -f "$ac_file" || continue;
2967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2968 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2976 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2977 See \`config.log
' for more details." >&5
2978 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2979 See \`config.log' for more details.
" >&2;}
2980 { (exit 1); exit 1; }; }
2983 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2985 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2986 echo "${ECHO_T}$ac_cv_objext" >&6; }
2987 OBJEXT=$ac_cv_objext
2989 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2990 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2991 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2992 echo $ECHO_N "(cached
) $ECHO_C" >&6
2994 cat >conftest.$ac_ext <<_ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h. */
3012 rm -f conftest.$ac_objext
3013 if { (ac_try="$ac_compile"
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3018 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_compile") 2>conftest.er1
3021 grep -v '^ *+' conftest.er1 >conftest.err
3023 cat conftest.err >&5
3024 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3025 (exit $ac_status); } &&
3026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3027 { (case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3031 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_try") 2>&5
3034 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3035 (exit $ac_status); }; } &&
3036 { ac_try='test -s conftest.$ac_objext'
3037 { (case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3041 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_try") 2>&5
3044 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3045 (exit $ac_status); }; }; then
3048 echo "$as_me: failed program was
:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3058 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3059 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3060 GCC=`test $ac_compiler_gnu = yes && echo yes`
3061 ac_test_CFLAGS=${CFLAGS+set}
3062 ac_save_CFLAGS=$CFLAGS
3063 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3064 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3065 if test "${ac_cv_prog_cc_g+set}" = set; then
3066 echo $ECHO_N "(cached
) $ECHO_C" >&6
3068 ac_save_c_werror_flag=$ac_c_werror_flag
3069 ac_c_werror_flag=yes
3072 cat >conftest.$ac_ext <<_ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3087 rm -f conftest.$ac_objext
3088 if { (ac_try="$ac_compile"
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3093 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_compile") 2>conftest.er1
3096 grep -v '^ *+' conftest.er1 >conftest.err
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3100 (exit $ac_status); } &&
3101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3102 { (case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3106 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_try") 2>&5
3109 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3110 (exit $ac_status); }; } &&
3111 { ac_try='test -s conftest.$ac_objext'
3112 { (case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3117 (eval "$ac_try") 2>&5
3119 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3120 (exit $ac_status); }; }; then
3123 echo "$as_me: failed program was
:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
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
3181 ac_c_werror_flag=$ac_save_c_werror_flag
3183 cat >conftest.$ac_ext <<_ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3198 rm -f conftest.$ac_objext
3199 if { (ac_try="$ac_compile"
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3204 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_compile") 2>conftest.er1
3207 grep -v '^ *+' conftest.er1 >conftest.err
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3211 (exit $ac_status); } &&
3212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3213 { (case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3217 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3218 (eval "$ac_try") 2>&5
3220 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3221 (exit $ac_status); }; } &&
3222 { ac_try='test -s conftest.$ac_objext'
3223 { (case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3227 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_try") 2>&5
3230 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3231 (exit $ac_status); }; }; then
3234 echo "$as_me: failed program was
:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247 ac_c_werror_flag=$ac_save_c_werror_flag
3249 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3250 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3251 if test "$ac_test_CFLAGS" = set; then
3252 CFLAGS=$ac_save_CFLAGS
3253 elif test $ac_cv_prog_cc_g = yes; then
3254 if test "$GCC" = yes; then
3260 if test "$GCC" = yes; then
3266 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3267 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3268 if test "${ac_cv_prog_cc_c89+set}" = set; then
3269 echo $ECHO_N "(cached
) $ECHO_C" >&6
3271 ac_cv_prog_cc_c89=no
3273 cat >conftest.$ac_ext <<_ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h. */
3281 #include <sys/types.h>
3282 #include <sys/stat.h>
3283 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3284 struct buf { int x; };
3285 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3286 static char *e (p, i)
3292 static char *f (char * (*g) (char **, int), char **p, ...)
3297 s = g (p, va_arg (v,int));
3302 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3303 function prototypes and stuff, but not '\xHH' hex character constants.
3304 These don't provoke an error unfortunately, instead are silently treated
3305 as 'x'. The following induces an error, until -std is added to get
3306 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3307 array size at least. It's necessary to write '\x00'==0 to get something
3308 that's true only with -std. */
3309 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3311 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3312 inside strings and character constants. */
3314 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3316 int test (int i, double x);
3317 struct s1 {int (*f) (int a);};
3318 struct s2 {int (*f) (double a);};
3319 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3325 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3330 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3331 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3333 CC="$ac_save_CC $ac_arg"
3334 rm -f conftest.$ac_objext
3335 if { (ac_try="$ac_compile"
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_compile") 2>conftest.er1
3343 grep -v '^ *+' conftest.er1 >conftest.err
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3347 (exit $ac_status); } &&
3348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3349 { (case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3353 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3354 (eval "$ac_try") 2>&5
3356 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3357 (exit $ac_status); }; } &&
3358 { ac_try='test -s conftest.$ac_objext'
3359 { (case "(($ac_try" in
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3363 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3364 (eval "$ac_try") 2>&5
3366 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3367 (exit $ac_status); }; }; then
3368 ac_cv_prog_cc_c89=$ac_arg
3370 echo "$as_me: failed program was
:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3376 rm -f core conftest.err conftest.$ac_objext
3377 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3379 rm -f conftest.$ac_ext
3384 case "x
$ac_cv_prog_cc_c89" in
3386 { echo "$as_me:$LINENO: result
: none needed
" >&5
3387 echo "${ECHO_T}none needed
" >&6; } ;;
3389 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3390 echo "${ECHO_T}unsupported
" >&6; } ;;
3392 CC="$CC $ac_cv_prog_cc_c89"
3393 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3394 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3399 ac_cpp='$CPP $CPPFLAGS'
3400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3406 ac_cpp='$CPP $CPPFLAGS'
3407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3410 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3411 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3412 # On Suns, sometimes $CPP names a directory.
3413 if test -n "$CPP" && test -d "$CPP"; then
3416 if test -z "$CPP"; then
3417 if test "${ac_cv_prog_CPP+set}" = set; then
3418 echo $ECHO_N "(cached
) $ECHO_C" >&6
3420 # Double quotes because CPP needs to be expanded
3421 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3424 for ac_c_preproc_warn_flag in '' yes
3426 # Use a header file that comes with gcc, so configuring glibc
3427 # with a fresh cross-compiler works.
3428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3429 # <limits.h> exists even on freestanding compilers.
3430 # On the NeXT, cc -E runs the code through the compiler's parser,
3431 # not just through cpp. "Syntax error
" is here to catch this case.
3432 cat >conftest.$ac_ext <<_ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3439 # include <limits.h>
3441 # include <assert.h>
3445 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3450 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3453 grep -v '^ *+' conftest.er1 >conftest.err
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3457 (exit $ac_status); } >/dev/null; then
3458 if test -s conftest.err; then
3459 ac_cpp_err=$ac_c_preproc_warn_flag
3460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3467 if test -z "$ac_cpp_err"; then
3470 echo "$as_me: failed program was
:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3473 # Broken: fails on valid input.
3477 rm -f conftest.err conftest.$ac_ext
3479 # OK, works on sane cases. Now check whether nonexistent headers
3480 # can be detected and how.
3481 cat >conftest.$ac_ext <<_ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3487 #include <ac_nonexistent.h>
3489 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3494 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3497 grep -v '^ *+' conftest.er1 >conftest.err
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3501 (exit $ac_status); } >/dev/null; then
3502 if test -s conftest.err; then
3503 ac_cpp_err=$ac_c_preproc_warn_flag
3504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3511 if test -z "$ac_cpp_err"; then
3512 # Broken: success on invalid input.
3515 echo "$as_me: failed program was
:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3518 # Passes both tests.
3523 rm -f conftest.err conftest.$ac_ext
3526 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3527 rm -f conftest.err conftest.$ac_ext
3528 if $ac_preproc_ok; then
3540 { echo "$as_me:$LINENO: result
: $CPP" >&5
3541 echo "${ECHO_T}$CPP" >&6; }
3543 for ac_c_preproc_warn_flag in '' yes
3545 # Use a header file that comes with gcc, so configuring glibc
3546 # with a fresh cross-compiler works.
3547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3548 # <limits.h> exists even on freestanding compilers.
3549 # On the NeXT, cc -E runs the code through the compiler's parser,
3550 # not just through cpp. "Syntax error
" is here to catch this case.
3551 cat >conftest.$ac_ext <<_ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3558 # include <limits.h>
3560 # include <assert.h>
3564 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3569 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3572 grep -v '^ *+' conftest.er1 >conftest.err
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3576 (exit $ac_status); } >/dev/null; then
3577 if test -s conftest.err; then
3578 ac_cpp_err=$ac_c_preproc_warn_flag
3579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3586 if test -z "$ac_cpp_err"; then
3589 echo "$as_me: failed program was
:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3592 # Broken: fails on valid input.
3596 rm -f conftest.err conftest.$ac_ext
3598 # OK, works on sane cases. Now check whether nonexistent headers
3599 # can be detected and how.
3600 cat >conftest.$ac_ext <<_ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3606 #include <ac_nonexistent.h>
3608 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3616 grep -v '^ *+' conftest.er1 >conftest.err
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3620 (exit $ac_status); } >/dev/null; then
3621 if test -s conftest.err; then
3622 ac_cpp_err=$ac_c_preproc_warn_flag
3623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3630 if test -z "$ac_cpp_err"; then
3631 # Broken: success on invalid input.
3634 echo "$as_me: failed program was
:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3637 # Passes both tests.
3642 rm -f conftest.err conftest.$ac_ext
3645 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3646 rm -f conftest.err conftest.$ac_ext
3647 if $ac_preproc_ok; then
3650 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3651 See \
`config.log' for more details." >&5
3652 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3653 See \`config.log
' for more details." >&2;}
3654 { (exit 1); exit 1; }; }
3658 ac_cpp='$CPP $CPPFLAGS'
3659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3660 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3664 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3665 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3666 if test "${ac_cv_path_GREP+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 # Extract the first word of "grep ggrep" to use in msg output
3670 if test -z "$GREP"; then
3671 set dummy grep ggrep; ac_prog_name=$2
3672 if test "${ac_cv_path_GREP+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 ac_path_GREP_found=false
3676 # Loop through the user's path and
test for each of PROGNAME-LIST
3677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3678 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3681 test -z "$as_dir" && as_dir
=.
3682 for ac_prog
in grep ggrep
; do
3683 for ac_exec_ext
in '' $ac_executable_extensions; do
3684 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3685 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
3686 # Check for GNU ac_path_GREP and select it if it is found.
3687 # Check for GNU $ac_path_GREP
3688 case `"$ac_path_GREP" --version 2>&1` in
3690 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3693 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3696 cat "conftest.in" "conftest.in" >"conftest.tmp"
3697 mv "conftest.tmp" "conftest.in"
3698 cp "conftest.in" "conftest.nl"
3699 echo 'GREP' >> "conftest.nl"
3700 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3701 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3702 ac_count
=`expr $ac_count + 1`
3703 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3704 # Best one so far, save it but keep looking for a better one
3705 ac_cv_path_GREP
="$ac_path_GREP"
3706 ac_path_GREP_max
=$ac_count
3708 # 10*(2^10) chars as input seems more than enough
3709 test $ac_count -gt 10 && break
3711 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3715 $ac_path_GREP_found && break 3
3725 GREP
="$ac_cv_path_GREP"
3726 if test -z "$GREP"; then
3727 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3728 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3729 { (exit 1); exit 1; }; }
3733 ac_cv_path_GREP
=$GREP
3738 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3739 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3740 GREP
="$ac_cv_path_GREP"
3743 { echo "$as_me:$LINENO: checking for egrep" >&5
3744 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3745 if test "${ac_cv_path_EGREP+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3748 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3749 then ac_cv_path_EGREP
="$GREP -E"
3751 # Extract the first word of "egrep" to use in msg output
3752 if test -z "$EGREP"; then
3753 set dummy
egrep; ac_prog_name
=$2
3754 if test "${ac_cv_path_EGREP+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 ac_path_EGREP_found
=false
3758 # Loop through the user's path and test for each of PROGNAME-LIST
3759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3760 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3763 test -z "$as_dir" && as_dir
=.
3764 for ac_prog
in egrep; do
3765 for ac_exec_ext
in '' $ac_executable_extensions; do
3766 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3767 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
3768 # Check for GNU ac_path_EGREP and select it if it is found.
3769 # Check for GNU $ac_path_EGREP
3770 case `"$ac_path_EGREP" --version 2>&1` in
3772 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3775 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3778 cat "conftest.in" "conftest.in" >"conftest.tmp"
3779 mv "conftest.tmp" "conftest.in"
3780 cp "conftest.in" "conftest.nl"
3781 echo 'EGREP' >> "conftest.nl"
3782 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3783 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3784 ac_count
=`expr $ac_count + 1`
3785 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3786 # Best one so far, save it but keep looking for a better one
3787 ac_cv_path_EGREP
="$ac_path_EGREP"
3788 ac_path_EGREP_max
=$ac_count
3790 # 10*(2^10) chars as input seems more than enough
3791 test $ac_count -gt 10 && break
3793 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3797 $ac_path_EGREP_found && break 3
3807 EGREP
="$ac_cv_path_EGREP"
3808 if test -z "$EGREP"; then
3809 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3810 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3811 { (exit 1); exit 1; }; }
3815 ac_cv_path_EGREP
=$EGREP
3821 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3822 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3823 EGREP
="$ac_cv_path_EGREP"
3826 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3827 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3828 if test "${ac_cv_header_stdc+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 cat >conftest.
$ac_ext <<_ACEOF
3834 cat confdefs.h
>>conftest.
$ac_ext
3835 cat >>conftest.
$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3850 rm -f conftest.
$ac_objext
3851 if { (ac_try
="$ac_compile"
3853 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_compile") 2>conftest.er1
3859 grep -v '^ *+' conftest.er1 >conftest.err
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } &&
3864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3865 { (case "(($ac_try" in
3866 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3867 *) ac_try_echo
=$ac_try;;
3869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3870 (eval "$ac_try") 2>&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; } &&
3874 { ac_try
='test -s conftest.$ac_objext'
3875 { (case "(($ac_try" in
3876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880 (eval "$ac_try") 2>&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }; }; then
3884 ac_cv_header_stdc=yes
3886 echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3889 ac_cv_header_stdc=no
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 if test $ac_cv_header_stdc = yes; then
3895 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3896 cat >conftest.$ac_ext <<_ACEOF
3899 cat confdefs.h >>conftest.$ac_ext
3900 cat >>conftest.$ac_ext <<_ACEOF
3901 /* end confdefs.h. */
3905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3906 $EGREP "memchr" >/dev/null 2>&1; then
3909 ac_cv_header_stdc=no
3915 if test $ac_cv_header_stdc = yes; then
3916 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3917 cat >conftest.$ac_ext <<_ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h. */
3926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3927 $EGREP "free" >/dev/null 2>&1; then
3930 ac_cv_header_stdc=no
3936 if test $ac_cv_header_stdc = yes; then
3937 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3938 if test "$cross_compiling" = yes; then
3941 cat >conftest.$ac_ext <<_ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h. */
3949 #if ((' ' & 0x0FF) == 0x020)
3950 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3951 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3953 # define ISLOWER(c) \
3954 (('a' <= (c) && (c) <= 'i') \
3955 || ('j' <= (c) && (c) <= 'r') \
3956 || ('s' <= (c) && (c) <= 'z'))
3957 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3960 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3965 for (i = 0; i < 256; i++)
3966 if (XOR (islower (i), ISLOWER (i))
3967 || toupper (i) != TOUPPER (i))
3972 rm -f conftest$ac_exeext
3973 if { (ac_try="$ac_link"
3975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3976 *) ac_try_echo
=$ac_try;;
3978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3979 (eval "$ac_link") 2>&5
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3983 { (case "(($ac_try" in
3984 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3988 (eval "$ac_try") 2>&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; }; then
3994 echo "$as_me: program exited with status $ac_status" >&5
3995 echo "$as_me: failed program was:" >&5
3996 sed 's/^/| /' conftest.$ac_ext >&5
3999 ac_cv_header_stdc=no
4001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4007 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4008 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4009 if test $ac_cv_header_stdc = yes; then
4011 cat >>confdefs.h <<\_ACEOF
4012 #define STDC_HEADERS 1
4017 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4027 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4028 inttypes.h stdint.h unistd.h
4030 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 cat >conftest.$ac_ext <<_ACEOF
4039 cat confdefs.h >>conftest.$ac_ext
4040 cat >>conftest.$ac_ext <<_ACEOF
4041 /* end confdefs.h. */
4042 $ac_includes_default
4044 #include <$ac_header>
4046 rm -f conftest.$ac_objext
4047 if { (ac_try="$ac_compile"
4049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4050 *) ac_try_echo
=$ac_try;;
4052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053 (eval "$ac_compile") 2>conftest.er1
4055 grep -v '^ *+' conftest.er1
>conftest.err
4057 cat conftest.err
>&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } &&
4060 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4061 { (case "(($ac_try" in
4062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4066 (eval "$ac_try") 2>&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; } &&
4070 { ac_try='test -s conftest.$ac_objext'
4071 { (case "(($ac_try" in
4072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4073 *) ac_try_echo
=$ac_try;;
4075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076 (eval "$ac_try") 2>&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4080 eval "$as_ac_Header=yes"
4082 echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.
$ac_ext >&5
4085 eval "$as_ac_Header=no"
4088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4090 ac_res
=`eval echo '${'$as_ac_Header'}'`
4091 { echo "$as_me:$LINENO: result: $ac_res" >&5
4092 echo "${ECHO_T}$ac_res" >&6; }
4093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4094 cat >>confdefs.h
<<_ACEOF
4095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4103 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4104 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4105 if test "${ac_cv_c_bigendian+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 # See if sys/param.h defines the BYTE_ORDER macro.
4109 cat >conftest.
$ac_ext <<_ACEOF
4112 cat confdefs.h
>>conftest.
$ac_ext
4113 cat >>conftest.
$ac_ext <<_ACEOF
4114 /* end confdefs.h. */
4115 #include <sys/types.h>
4116 #include <sys/param.h>
4121 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4129 rm -f conftest.
$ac_objext
4130 if { (ac_try
="$ac_compile"
4132 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136 (eval "$ac_compile") 2>conftest.er1
4138 grep -v '^ *+' conftest.er1 >conftest.err
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4144 { (case "(($ac_try" in
4145 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4146 *) ac_try_echo
=$ac_try;;
4148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4149 (eval "$ac_try") 2>&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; } &&
4153 { ac_try
='test -s conftest.$ac_objext'
4154 { (case "(($ac_try" in
4155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159 (eval "$ac_try") 2>&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; }; then
4163 # It does; now see whether it defined to BIG_ENDIAN or not.
4164 cat >conftest.$ac_ext <<_ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4170 #include <sys/types.h>
4171 #include <sys/param.h>
4176 #if BYTE_ORDER != BIG_ENDIAN
4184 rm -f conftest.$ac_objext
4185 if { (ac_try="$ac_compile"
4187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4188 *) ac_try_echo
=$ac_try;;
4190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_compile") 2>conftest.er1
4193 grep -v '^ *+' conftest.er1
>conftest.err
4195 cat conftest.err
>&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } &&
4198 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4199 { (case "(($ac_try" in
4200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4204 (eval "$ac_try") 2>&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; } &&
4208 { ac_try='test -s conftest.$ac_objext'
4209 { (case "(($ac_try" in
4210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4211 *) ac_try_echo
=$ac_try;;
4213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214 (eval "$ac_try") 2>&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; }; then
4218 ac_cv_c_bigendian
=yes
4220 echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.
$ac_ext >&5
4223 ac_cv_c_bigendian
=no
4226 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.
$ac_ext >&5
4231 # It does not; compile a test program.
4232 if test "$cross_compiling" = yes; then
4233 # try to guess the endianness by grepping values into an object file
4234 ac_cv_c_bigendian
=unknown
4235 cat >conftest.
$ac_ext <<_ACEOF
4238 cat confdefs.h
>>conftest.
$ac_ext
4239 cat >>conftest.
$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4241 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4242 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4243 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4244 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4245 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4246 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4250 _ascii (); _ebcdic ();
4255 rm -f conftest.
$ac_objext
4256 if { (ac_try
="$ac_compile"
4258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_compile") 2>conftest.er1
4264 grep -v '^ *+' conftest.er1 >conftest.err
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
4269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4270 { (case "(($ac_try" in
4271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4272 *) ac_try_echo
=$ac_try;;
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_try") 2>&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; } &&
4279 { ac_try
='test -s conftest.$ac_objext'
4280 { (case "(($ac_try" in
4281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285 (eval "$ac_try") 2>&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4289 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4290 ac_cv_c_bigendian=yes
4292 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4293 if test "$ac_cv_c_bigendian" = unknown; then
4294 ac_cv_c_bigendian=no
4296 # finding both strings is unlikely to happen, but who knows?
4297 ac_cv_c_bigendian=unknown
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 cat >conftest.$ac_ext <<_ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h. */
4315 $ac_includes_default
4320 /* Are we little or big endian? From Harbison&Steele. */
4324 char c[sizeof (long int)];
4327 return u.c[sizeof (long int) - 1] == 1;
4333 rm -f conftest$ac_exeext
4334 if { (ac_try="$ac_link"
4336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4337 *) ac_try_echo
=$ac_try;;
4339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4340 (eval "$ac_link") 2>&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4344 { (case "(($ac_try" in
4345 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4349 (eval "$ac_try") 2>&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); }; }; then
4353 ac_cv_c_bigendian=no
4355 echo "$as_me: program exited with status $ac_status" >&5
4356 echo "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.$ac_ext >&5
4360 ac_cv_c_bigendian=yes
4362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4371 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4372 case $ac_cv_c_bigendian in
4380 { { echo "$as_me:$LINENO: error: unknown endianness
4381 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4382 echo "$as_me: error: unknown endianness
4383 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4384 { (exit 1); exit 1; }; } ;;
4388 if test "$cross_compiling" = yes; then
4389 LLVM_CROSS_COMPILING=1
4392 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4393 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4394 if test "${ac_cv_build_exeext+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4398 ac_cv_build_exeext=.exe
4400 ac_build_prefix=${build_alias}-
4402 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4403 set dummy ${ac_build_prefix}gcc; ac_word=$2
4404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4406 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 if test -n "$BUILD_CC"; then
4410 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4419 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 BUILD_CC=$ac_cv_prog_BUILD_CC
4430 if test -n "$BUILD_CC"; then
4431 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4432 echo "${ECHO_T}$BUILD_CC" >&6; }
4434 { echo "$as_me:$LINENO: result: no" >&5
4435 echo "${ECHO_T}no" >&6; }
4439 if test -z "$BUILD_CC"; then
4440 # Extract the first word of "gcc", so it can be a program name with args.
4441 set dummy gcc; ac_word=$2
4442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4444 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 if test -n "$BUILD_CC"; then
4448 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 test -z "$as_dir" && as_dir=.
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4457 ac_cv_prog_BUILD_CC="gcc"
4458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4467 BUILD_CC=$ac_cv_prog_BUILD_CC
4468 if test -n "$BUILD_CC"; then
4469 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4470 echo "${ECHO_T}$BUILD_CC" >&6; }
4472 { echo "$as_me:$LINENO: result: no" >&5
4473 echo "${ECHO_T}no" >&6; }
4477 if test -z "$BUILD_CC"; then
4478 # Extract the first word of "cc", so it can be a program name with args.
4479 set dummy cc; ac_word=$2
4480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4482 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 if test -n "$BUILD_CC"; then
4486 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 test -z "$as_dir" && as_dir=.
4494 for ac_exec_ext in '' $ac_executable_extensions; do
4495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4496 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4497 ac_prog_rejected=yes
4500 ac_cv_prog_BUILD_CC="cc"
4501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 if test $ac_prog_rejected = yes; then
4509 # We found a bogon in the path, so make sure we never use it.
4510 set dummy $ac_cv_prog_BUILD_CC
4512 if test $# != 0; then
4513 # We chose a different compiler from the bogus one.
4514 # However, it has the same basename, so the bogon will be chosen
4515 # first if we set BUILD_CC to just the basename; use the full file name.
4517 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4522 BUILD_CC=$ac_cv_prog_BUILD_CC
4523 if test -n "$BUILD_CC"; then
4524 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4525 echo "${ECHO_T}$BUILD_CC" >&6; }
4527 { echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6; }
4534 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4535 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4536 { (exit 1); exit 1; }; }
4537 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4539 echo 'int main () { return 0; }' > conftest.$ac_ext
4541 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4542 (eval $ac_build_link) 2>&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; then
4546 for file in conftest.*; do
4548 *.c | *.o | *.obj | *.dSYM) ;;
4549 *) ac_cv_build_exeext=`echo $file |
sed -e s
/conftest
//` ;;
4553 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4554 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4555 { (exit 1); exit 1; }; }
4558 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4563 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4564 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4565 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4566 ac_build_exeext=$BUILD_EXEEXT
4569 LLVM_CROSS_COMPILING=0
4573 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4584 # Check whether --enable-optimized was given.
4585 if test "${enable_optimized+set}" = set; then
4586 enableval=$enable_optimized;
4591 if test ${enableval} = "no" ; then
4595 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4599 # Check whether --enable-assertions was given.
4600 if test "${enable_assertions+set}" = set; then
4601 enableval=$enable_assertions;
4606 if test ${enableval} = "yes" ; then
4610 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4614 # Check whether --enable-expensive-checks was given.
4615 if test "${enable_expensive_checks+set}" = set; then
4616 enableval=$enable_expensive_checks;
4621 if test ${enableval} = "yes" ; then
4622 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4624 EXPENSIVE_CHECKS=yes
4627 ENABLE_EXPENSIVE_CHECKS=
4633 # Check whether --enable-debug-runtime was given.
4634 if test "${enable_debug_runtime+set}" = set; then
4635 enableval=$enable_debug_runtime;
4640 if test ${enableval} = "no" ; then
4644 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4648 # Check whether --enable-jit was given.
4649 if test "${enable_jit+set}" = set; then
4650 enableval=$enable_jit;
4655 if test ${enableval} = "no"
4660 case "$llvm_cv_target_arch" in
4661 x86) TARGET_HAS_JIT=1
4663 Sparc) TARGET_HAS_JIT=0
4665 PowerPC) TARGET_HAS_JIT=1
4667 x86_64) TARGET_HAS_JIT=1
4669 Alpha) TARGET_HAS_JIT=1
4671 IA64) TARGET_HAS_JIT=0
4673 ARM) TARGET_HAS_JIT=0
4675 Mips) TARGET_HAS_JIT=0
4677 PIC16) TARGET_HAS_JIT=0
4684 # Check whether --enable-doxygen was given.
4685 if test "${enable_doxygen+set}" = set; then
4686 enableval=$enable_doxygen;
4691 case "$enableval" in
4692 yes) ENABLE_DOXYGEN=1
4694 no) ENABLE_DOXYGEN=0
4696 default) ENABLE_DOXYGEN=0
4698 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4699 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4700 { (exit 1); exit 1; }; } ;;
4703 # Check whether --enable-threads was given.
4704 if test "${enable_threads+set}" = set; then
4705 enableval=$enable_threads;
4710 case "$enableval" in
4711 yes) ENABLE_THREADS=1
4713 no) ENABLE_THREADS=0
4715 default) ENABLE_THREADS=1
4717 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4718 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4719 { (exit 1); exit 1; }; } ;;
4722 cat >>confdefs.h <<_ACEOF
4723 #define ENABLE_THREADS $ENABLE_THREADS
4727 # Check whether --enable-pic was given.
4728 if test "${enable_pic+set}" = set; then
4729 enableval=$enable_pic;
4734 case "$enableval" in
4739 default) ENABLE_PIC=0
4741 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4742 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4743 { (exit 1); exit 1; }; } ;;
4746 cat >>confdefs.h <<_ACEOF
4747 #define ENABLE_PIC $ENABLE_PIC
4752 # Check whether --enable-targets was given.
4753 if test "${enable_targets+set}" = set; then
4754 enableval=$enable_targets;
4759 case "$enableval" in
4760 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
4762 case "$llvm_cv_target_arch" in
4763 x86) TARGETS_TO_BUILD="X86" ;;
4764 x86_64) TARGETS_TO_BUILD="X86" ;;
4765 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4766 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4767 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4768 IA64) TARGETS_TO_BUILD="IA64" ;;
4769 ARM) TARGETS_TO_BUILD="ARM" ;;
4770 Mips) TARGETS_TO_BUILD="Mips" ;;
4771 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4772 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4773 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4774 echo "$as_me: error: Can not set target to build" >&2;}
4775 { (exit 1); exit 1; }; } ;;
4778 *)for a_target in `echo $enableval|
sed -e 's/,/ /g' ` ; do
4780 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4781 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4782 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4783 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4784 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4785 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4786 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4787 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4788 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4789 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4790 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4791 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4792 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4793 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4794 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4795 { (exit 1); exit 1; }; } ;;
4800 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4803 # Check whether --enable-cbe-printf-a was given.
4804 if test "${enable_cbe_printf_a+set}" = set; then
4805 enableval=$enable_cbe_printf_a;
4810 case "$enableval" in
4811 yes) ENABLE_CBE_PRINTF_A=1
4813 no) ENABLE_CBE_PRINTF_A=0
4815 default) ENABLE_CBE_PRINTF_A=1
4817 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4818 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4819 { (exit 1); exit 1; }; } ;;
4822 cat >>confdefs.h <<_ACEOF
4823 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4828 # Check whether --with-llvmgccdir was given.
4829 if test "${with_llvmgccdir+set}" = set; then
4830 withval=$with_llvmgccdir;
4836 default) WITH_LLVMGCCDIR=default ;;
4837 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4838 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4839 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4840 { (exit 1); exit 1; }; } ;;
4844 # Check whether --with-llvmgcc was given.
4845 if test "${with_llvmgcc+set}" = set; then
4846 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4852 # Check whether --with-llvmgxx was given.
4853 if test "${with_llvmgxx+set}" = set; then
4854 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4859 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4860 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4861 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4862 { (exit 1); exit 1; }; };
4865 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4866 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4867 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4868 { (exit 1); exit 1; }; };
4872 # Check whether --with-extra-options was given.
4873 if test "${with_extra_options+set}" = set; then
4874 withval=$with_extra_options;
4880 default) EXTRA_OPTIONS= ;;
4881 *) EXTRA_OPTIONS=$withval ;;
4883 EXTRA_OPTIONS=$EXTRA_OPTIONS
4886 # Check whether --enable-bindings was given.
4887 if test "${enable_bindings+set}" = set; then
4888 enableval=$enable_bindings;
4893 BINDINGS_TO_BUILD=""
4894 case "$enableval" in
4895 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4896 all ) BINDINGS_TO_BUILD="ocaml" ;;
4897 none | no) BINDINGS_TO_BUILD="" ;;
4898 *)for a_binding in `echo $enableval|
sed -e 's/,/ /g' ` ; do
4899 case "$a_binding" in
4900 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4901 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4902 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4903 { (exit 1); exit 1; }; } ;;
4910 # Check whether --with-ocaml-libdir was given.
4911 if test "${with_ocaml_libdir+set}" = set; then
4912 withval=$with_ocaml_libdir;
4918 auto) with_ocaml_libdir="$withval" ;;
4919 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4920 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4921 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4922 { (exit 1); exit 1; }; } ;;
4927 ac_cpp='$CPP $CPPFLAGS'
4928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4931 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4932 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4933 # On Suns, sometimes $CPP names a directory.
4934 if test -n "$CPP" && test -d "$CPP"; then
4937 if test -z "$CPP"; then
4938 if test "${ac_cv_prog_CPP+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 # Double quotes because CPP needs to be expanded
4942 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4945 for ac_c_preproc_warn_flag in '' yes
4947 # Use a header file that comes with gcc, so configuring glibc
4948 # with a fresh cross-compiler works.
4949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4950 # <limits.h> exists even on freestanding compilers.
4951 # On the NeXT, cc -E runs the code through the compiler's parser,
4952 # not just through cpp. "Syntax error" is here to catch this case.
4953 cat >conftest.$ac_ext <<_ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4960 # include <limits.h>
4962 # include <assert.h>
4966 if { (ac_try="$ac_cpp conftest.$ac_ext"
4968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4969 *) ac_try_echo
=$ac_try;;
4971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4974 grep -v '^ *+' conftest.er1
>conftest.err
4976 cat conftest.err
>&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } >/dev
/null
; then
4979 if test -s conftest.err
; then
4980 ac_cpp_err
=$ac_c_preproc_warn_flag
4981 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4988 if test -z "$ac_cpp_err"; then
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.
$ac_ext >&5
4994 # Broken: fails on valid input.
4998 rm -f conftest.err conftest.
$ac_ext
5000 # OK, works on sane cases. Now check whether nonexistent headers
5001 # can be detected and how.
5002 cat >conftest.
$ac_ext <<_ACEOF
5005 cat confdefs.h
>>conftest.
$ac_ext
5006 cat >>conftest.
$ac_ext <<_ACEOF
5007 /* end confdefs.h. */
5008 #include <ac_nonexistent.h>
5010 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5013 *) ac_try_echo=$ac_try;;
5015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5018 grep -v '^ *+' conftest.er1 >conftest.err
5020 cat conftest.err >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } >/dev/null; then
5023 if test -s conftest.err; then
5024 ac_cpp_err=$ac_c_preproc_warn_flag
5025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5032 if test -z "$ac_cpp_err"; then
5033 # Broken: success on invalid input.
5036 echo "$as_me: failed program was:" >&5
5037 sed 's/^/| /' conftest.$ac_ext >&5
5039 # Passes both tests.
5044 rm -f conftest.err conftest.$ac_ext
5047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5048 rm -f conftest.err conftest.
$ac_ext
5049 if $ac_preproc_ok; then
5061 { echo "$as_me:$LINENO: result: $CPP" >&5
5062 echo "${ECHO_T}$CPP" >&6; }
5064 for ac_c_preproc_warn_flag
in '' yes
5066 # Use a header file that comes with gcc, so configuring glibc
5067 # with a fresh cross-compiler works.
5068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5069 # <limits.h> exists even on freestanding compilers.
5070 # On the NeXT, cc -E runs the code through the compiler's parser,
5071 # not just through cpp. "Syntax error" is here to catch this case.
5072 cat >conftest.
$ac_ext <<_ACEOF
5075 cat confdefs.h
>>conftest.
$ac_ext
5076 cat >>conftest.
$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5079 # include <limits.h>
5081 # include <assert.h>
5085 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5093 grep -v '^ *+' conftest.er1 >conftest.err
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } >/dev/null; then
5098 if test -s conftest.err; then
5099 ac_cpp_err=$ac_c_preproc_warn_flag
5100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5107 if test -z "$ac_cpp_err"; then
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5113 # Broken: fails on valid input.
5117 rm -f conftest.err conftest.$ac_ext
5119 # OK, works on sane cases. Now check whether nonexistent headers
5120 # can be detected and how.
5121 cat >conftest.$ac_ext <<_ACEOF
5124 cat confdefs.h >>conftest.$ac_ext
5125 cat >>conftest.$ac_ext <<_ACEOF
5126 /* end confdefs.h. */
5127 #include <ac_nonexistent.h>
5129 if { (ac_try="$ac_cpp conftest.$ac_ext"
5131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5132 *) ac_try_echo
=$ac_try;;
5134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5137 grep -v '^ *+' conftest.er1
>conftest.err
5139 cat conftest.err
>&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } >/dev
/null
; then
5142 if test -s conftest.err
; then
5143 ac_cpp_err
=$ac_c_preproc_warn_flag
5144 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5151 if test -z "$ac_cpp_err"; then
5152 # Broken: success on invalid input.
5155 echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.
$ac_ext >&5
5158 # Passes both tests.
5163 rm -f conftest.err conftest.
$ac_ext
5166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5167 rm -f conftest.err conftest.
$ac_ext
5168 if $ac_preproc_ok; then
5171 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5172 See \`config.log' for more details." >&5
5173 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5174 See \`config.log' for more details." >&2;}
5175 { (exit 1); exit 1; }; }
5179 ac_cpp
='$CPP $CPPFLAGS'
5180 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5181 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5182 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5185 ac_cpp
='$CPP $CPPFLAGS'
5186 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5187 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5188 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5189 if test -n "$ac_tool_prefix"; then
5192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5193 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5196 if test "${ac_cv_prog_CC+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 if test -n "$CC"; then
5200 ac_cv_prog_CC
="$CC" # Let the user override the test.
5202 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5206 test -z "$as_dir" && as_dir
=.
5207 for ac_exec_ext
in '' $ac_executable_extensions; do
5208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5209 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 if test -n "$CC"; then
5221 { echo "$as_me:$LINENO: result: $CC" >&5
5222 echo "${ECHO_T}$CC" >&6; }
5224 { echo "$as_me:$LINENO: result: no" >&5
5225 echo "${ECHO_T}no" >&6; }
5229 test -n "$CC" && break
5232 if test -z "$CC"; then
5236 # Extract the first word of "$ac_prog", so it can be a program name with args.
5237 set dummy
$ac_prog; ac_word
=$2
5238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 if test -n "$ac_ct_CC"; then
5244 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5250 test -z "$as_dir" && as_dir
=.
5251 for ac_exec_ext
in '' $ac_executable_extensions; do
5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5253 ac_cv_prog_ac_ct_CC
="$ac_prog"
5254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5264 if test -n "$ac_ct_CC"; then
5265 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5266 echo "${ECHO_T}$ac_ct_CC" >&6; }
5268 { echo "$as_me:$LINENO: result: no" >&5
5269 echo "${ECHO_T}no" >&6; }
5273 test -n "$ac_ct_CC" && break
5276 if test "x$ac_ct_CC" = x
; then
5279 case $cross_compiling:$ac_tool_warned in
5281 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5282 whose name does not start with the host triplet. If you think this
5283 configuration is useful to you, please write to autoconf@gnu.org." >&5
5284 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5285 whose name does not start with the host triplet. If you think this
5286 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5287 ac_tool_warned
=yes ;;
5294 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5295 See \`config.log' for more details." >&5
5296 echo "$as_me: error: no acceptable C compiler found in \$PATH
5297 See \`config.log' for more details." >&2;}
5298 { (exit 1); exit 1; }; }
5300 # Provide some information about the compiler.
5301 echo "$as_me:$LINENO: checking for C compiler version" >&5
5302 ac_compiler
=`set X $ac_compile; echo $2`
5303 { (ac_try
="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }
5313 { (ac_try="$ac_compiler -v >&5"
5315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5316 *) ac_try_echo
=$ac_try;;
5318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319 (eval "$ac_compiler -v >&5") 2>&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }
5323 { (ac_try
="$ac_compiler -V >&5"
5325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5329 (eval "$ac_compiler -V >&5") 2>&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }
5334 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5335 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5336 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 cat >conftest.$ac_ext <<_ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5357 rm -f conftest.$ac_objext
5358 if { (ac_try="$ac_compile"
5360 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5361 *) ac_try_echo
=$ac_try;;
5363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5364 (eval "$ac_compile") 2>conftest.er1
5366 grep -v '^ *+' conftest.er1
>conftest.err
5368 cat conftest.err
>&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } &&
5371 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5372 { (case "(($ac_try" in
5373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5374 *) ac_try_echo=$ac_try;;
5376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5377 (eval "$ac_try") 2>&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; } &&
5381 { ac_try='test -s conftest.$ac_objext'
5382 { (case "(($ac_try" in
5383 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5384 *) ac_try_echo
=$ac_try;;
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_try") 2>&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; }; then
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.
$ac_ext >&5
5399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5400 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
5403 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5404 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5405 GCC
=`test $ac_compiler_gnu = yes && echo yes`
5406 ac_test_CFLAGS
=${CFLAGS+set}
5407 ac_save_CFLAGS
=$CFLAGS
5408 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5409 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5410 if test "${ac_cv_prog_cc_g+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 ac_save_c_werror_flag
=$ac_c_werror_flag
5414 ac_c_werror_flag
=yes
5417 cat >conftest.
$ac_ext <<_ACEOF
5420 cat confdefs.h
>>conftest.
$ac_ext
5421 cat >>conftest.
$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5432 rm -f conftest.
$ac_objext
5433 if { (ac_try
="$ac_compile"
5435 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5436 *) ac_try_echo=$ac_try;;
5438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5439 (eval "$ac_compile") 2>conftest.er1
5441 grep -v '^ *+' conftest.er1 >conftest.err
5443 cat conftest.err >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } &&
5446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5447 { (case "(($ac_try" in
5448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5449 *) ac_try_echo
=$ac_try;;
5451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5452 (eval "$ac_try") 2>&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; } &&
5456 { ac_try
='test -s conftest.$ac_objext'
5457 { (case "(($ac_try" in
5458 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5459 *) ac_try_echo=$ac_try;;
5461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462 (eval "$ac_try") 2>&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); }; }; then
5468 echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5472 cat >conftest.$ac_ext <<_ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h. */
5487 rm -f conftest.$ac_objext
5488 if { (ac_try="$ac_compile"
5490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5491 *) ac_try_echo
=$ac_try;;
5493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5494 (eval "$ac_compile") 2>conftest.er1
5496 grep -v '^ *+' conftest.er1
>conftest.err
5498 cat conftest.err
>&5
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); } &&
5501 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5502 { (case "(($ac_try" in
5503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507 (eval "$ac_try") 2>&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; } &&
5511 { ac_try='test -s conftest.$ac_objext'
5512 { (case "(($ac_try" in
5513 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5514 *) ac_try_echo
=$ac_try;;
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_try") 2>&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; }; then
5523 echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.
$ac_ext >&5
5526 ac_c_werror_flag
=$ac_save_c_werror_flag
5528 cat >conftest.
$ac_ext <<_ACEOF
5531 cat confdefs.h
>>conftest.
$ac_ext
5532 cat >>conftest.
$ac_ext <<_ACEOF
5533 /* end confdefs.h. */
5543 rm -f conftest.
$ac_objext
5544 if { (ac_try
="$ac_compile"
5546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5547 *) ac_try_echo=$ac_try;;
5549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5550 (eval "$ac_compile") 2>conftest.er1
5552 grep -v '^ *+' conftest.er1 >conftest.err
5554 cat conftest.err >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } &&
5557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5558 { (case "(($ac_try" in
5559 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5560 *) ac_try_echo
=$ac_try;;
5562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563 (eval "$ac_try") 2>&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); }; } &&
5567 { ac_try
='test -s conftest.$ac_objext'
5568 { (case "(($ac_try" in
5569 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5570 *) ac_try_echo=$ac_try;;
5572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5573 (eval "$ac_try") 2>&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592 ac_c_werror_flag=$ac_save_c_werror_flag
5594 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5595 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5596 if test "$ac_test_CFLAGS" = set; then
5597 CFLAGS=$ac_save_CFLAGS
5598 elif test $ac_cv_prog_cc_g = yes; then
5599 if test "$GCC" = yes; then
5605 if test "$GCC" = yes; then
5611 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5612 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5613 if test "${ac_cv_prog_cc_c89+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 ac_cv_prog_cc_c89=no
5618 cat >conftest.$ac_ext <<_ACEOF
5621 cat confdefs.h >>conftest.$ac_ext
5622 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h. */
5626 #include <sys/types.h>
5627 #include <sys/stat.h>
5628 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5629 struct buf { int x; };
5630 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5631 static char *e (p, i)
5637 static char *f (char * (*g) (char **, int), char **p, ...)
5642 s = g (p, va_arg (v,int));
5647 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5648 function prototypes and stuff, but not '\xHH' hex character constants.
5649 These don't provoke an error unfortunately, instead are silently treated
5650 as 'x'. The following induces an error, until -std is added to get
5651 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5652 array size at least. It's necessary to write '\x00'==0 to get something
5653 that's true only with -std. */
5654 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5656 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5657 inside strings and character constants. */
5659 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5661 int test (int i, double x);
5662 struct s1 {int (*f) (int a);};
5663 struct s2 {int (*f) (double a);};
5664 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5670 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5675 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5676 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5678 CC="$ac_save_CC $ac_arg"
5679 rm -f conftest.$ac_objext
5680 if { (ac_try="$ac_compile"
5682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5683 *) ac_try_echo
=$ac_try;;
5685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_compile") 2>conftest.er1
5688 grep -v '^ *+' conftest.er1
>conftest.err
5690 cat conftest.err
>&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } &&
5693 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5694 { (case "(($ac_try" in
5695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699 (eval "$ac_try") 2>&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; } &&
5703 { ac_try='test -s conftest.$ac_objext'
5704 { (case "(($ac_try" in
5705 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5706 *) ac_try_echo
=$ac_try;;
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_try") 2>&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; }; then
5713 ac_cv_prog_cc_c89
=$ac_arg
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.
$ac_ext >&5
5721 rm -f core conftest.err conftest.
$ac_objext
5722 test "x$ac_cv_prog_cc_c89" != "xno" && break
5724 rm -f conftest.
$ac_ext
5729 case "x$ac_cv_prog_cc_c89" in
5731 { echo "$as_me:$LINENO: result: none needed" >&5
5732 echo "${ECHO_T}none needed" >&6; } ;;
5734 { echo "$as_me:$LINENO: result: unsupported" >&5
5735 echo "${ECHO_T}unsupported" >&6; } ;;
5737 CC
="$CC $ac_cv_prog_cc_c89"
5738 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5739 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5744 ac_cpp
='$CPP $CPPFLAGS'
5745 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5746 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5747 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5750 ac_cpp
='$CXXCPP $CPPFLAGS'
5751 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5752 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5753 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5754 if test -z "$CXX"; then
5755 if test -n "$CCC"; then
5758 if test -n "$ac_tool_prefix"; then
5761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5762 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5765 if test "${ac_cv_prog_CXX+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 if test -n "$CXX"; then
5769 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
5771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5775 test -z "$as_dir" && as_dir
=.
5776 for ac_exec_ext
in '' $ac_executable_extensions; do
5777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5778 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
5779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 if test -n "$CXX"; then
5790 { echo "$as_me:$LINENO: result: $CXX" >&5
5791 echo "${ECHO_T}$CXX" >&6; }
5793 { echo "$as_me:$LINENO: result: no" >&5
5794 echo "${ECHO_T}no" >&6; }
5798 test -n "$CXX" && break
5801 if test -z "$CXX"; then
5805 # Extract the first word of "$ac_prog", so it can be a program name with args.
5806 set dummy
$ac_prog; ac_word
=$2
5807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5809 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 if test -n "$ac_ct_CXX"; then
5813 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
5815 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5819 test -z "$as_dir" && as_dir
=.
5820 for ac_exec_ext
in '' $ac_executable_extensions; do
5821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5822 ac_cv_prog_ac_ct_CXX
="$ac_prog"
5823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
5833 if test -n "$ac_ct_CXX"; then
5834 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5835 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5837 { echo "$as_me:$LINENO: result: no" >&5
5838 echo "${ECHO_T}no" >&6; }
5842 test -n "$ac_ct_CXX" && break
5845 if test "x$ac_ct_CXX" = x
; then
5848 case $cross_compiling:$ac_tool_warned in
5850 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5851 whose name does not start with the host triplet. If you think this
5852 configuration is useful to you, please write to autoconf@gnu.org." >&5
5853 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5854 whose name does not start with the host triplet. If you think this
5855 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5856 ac_tool_warned
=yes ;;
5864 # Provide some information about the compiler.
5865 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5866 ac_compiler
=`set X $ac_compile; echo $2`
5867 { (ac_try
="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }
5877 { (ac_try="$ac_compiler -v >&5"
5879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5880 *) ac_try_echo
=$ac_try;;
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_compiler -v >&5") 2>&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }
5887 { (ac_try
="$ac_compiler -V >&5"
5889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5890 *) ac_try_echo=$ac_try;;
5892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893 (eval "$ac_compiler -V >&5") 2>&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }
5898 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5899 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5900 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 cat >conftest.$ac_ext <<_ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h. */
5921 rm -f conftest.$ac_objext
5922 if { (ac_try="$ac_compile"
5924 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5925 *) ac_try_echo
=$ac_try;;
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_compile") 2>conftest.er1
5930 grep -v '^ *+' conftest.er1
>conftest.err
5932 cat conftest.err
>&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } &&
5935 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5936 { (case "(($ac_try" in
5937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_try") 2>&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; } &&
5945 { ac_try='test -s conftest.$ac_objext'
5946 { (case "(($ac_try" in
5947 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5948 *) ac_try_echo
=$ac_try;;
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_try") 2>&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
5957 echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.
$ac_ext >&5
5963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5964 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5967 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5968 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5969 GXX
=`test $ac_compiler_gnu = yes && echo yes`
5970 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5971 ac_save_CXXFLAGS
=$CXXFLAGS
5972 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5973 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5974 if test "${ac_cv_prog_cxx_g+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5978 ac_cxx_werror_flag
=yes
5981 cat >conftest.
$ac_ext <<_ACEOF
5984 cat confdefs.h
>>conftest.
$ac_ext
5985 cat >>conftest.
$ac_ext <<_ACEOF
5986 /* end confdefs.h. */
5996 rm -f conftest.
$ac_objext
5997 if { (ac_try
="$ac_compile"
5999 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6000 *) ac_try_echo=$ac_try;;
6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003 (eval "$ac_compile") 2>conftest.er1
6005 grep -v '^ *+' conftest.er1 >conftest.err
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } &&
6010 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6011 { (case "(($ac_try" in
6012 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6013 *) ac_try_echo
=$ac_try;;
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_try") 2>&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; } &&
6020 { ac_try
='test -s conftest.$ac_objext'
6021 { (case "(($ac_try" in
6022 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026 (eval "$ac_try") 2>&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); }; }; then
6030 ac_cv_prog_cxx_g=yes
6032 echo "$as_me: failed program was:" >&5
6033 sed 's/^/| /' conftest.$ac_ext >&5
6036 cat >conftest.$ac_ext <<_ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6051 rm -f conftest.$ac_objext
6052 if { (ac_try="$ac_compile"
6054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6055 *) ac_try_echo
=$ac_try;;
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058 (eval "$ac_compile") 2>conftest.er1
6060 grep -v '^ *+' conftest.er1
>conftest.err
6062 cat conftest.err
>&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6066 { (case "(($ac_try" in
6067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6068 *) ac_try_echo=$ac_try;;
6070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071 (eval "$ac_try") 2>&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; } &&
6075 { ac_try='test -s conftest.$ac_objext'
6076 { (case "(($ac_try" in
6077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6078 *) ac_try_echo
=$ac_try;;
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_try") 2>&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; }; then
6087 echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.
$ac_ext >&5
6090 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6092 cat >conftest.
$ac_ext <<_ACEOF
6095 cat confdefs.h
>>conftest.
$ac_ext
6096 cat >>conftest.
$ac_ext <<_ACEOF
6097 /* end confdefs.h. */
6107 rm -f conftest.
$ac_objext
6108 if { (ac_try
="$ac_compile"
6110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6111 *) ac_try_echo=$ac_try;;
6113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6114 (eval "$ac_compile") 2>conftest.er1
6116 grep -v '^ *+' conftest.er1 >conftest.err
6118 cat conftest.err >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } &&
6121 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6122 { (case "(($ac_try" in
6123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6124 *) ac_try_echo
=$ac_try;;
6126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6127 (eval "$ac_try") 2>&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; } &&
6131 { ac_try
='test -s conftest.$ac_objext'
6132 { (case "(($ac_try" in
6133 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137 (eval "$ac_try") 2>&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
6141 ac_cv_prog_cxx_g=yes
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6156 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6158 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6159 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6160 if test "$ac_test_CXXFLAGS" = set; then
6161 CXXFLAGS=$ac_save_CXXFLAGS
6162 elif test $ac_cv_prog_cxx_g = yes; then
6163 if test "$GXX" = yes; then
6169 if test "$GXX" = yes; then
6176 ac_cpp='$CPP $CPPFLAGS'
6177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6181 { echo "$as_me:$LINENO: checking " >&5
6182 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6183 if test "${ac_cv_has_flex+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 for ac_prog in flex lex
6188 # Extract the first word of "$ac_prog", so it can be a program name with args.
6189 set dummy $ac_prog; ac_word=$2
6190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6192 if test "${ac_cv_prog_LEX+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 if test -n "$LEX"; then
6196 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6205 ac_cv_prog_LEX="$ac_prog"
6206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 if test -n "$LEX"; then
6217 { echo "$as_me:$LINENO: result: $LEX" >&5
6218 echo "${ECHO_T}$LEX" >&6; }
6220 { echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6; }
6225 test -n "$LEX" && break
6227 test -n "$LEX" || LEX=":"
6229 if test -z "$LEXLIB"
6231 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6232 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6233 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 ac_check_lib_save_LIBS=$LIBS
6238 cat >conftest.$ac_ext <<_ACEOF
6241 cat confdefs.h >>conftest.$ac_ext
6242 cat >>conftest.$ac_ext <<_ACEOF
6243 /* end confdefs.h. */
6245 /* Override any GCC internal prototype to avoid an error.
6246 Use char because int might match the return type of a GCC
6247 builtin and then its argument prototype would still apply. */
6260 rm -f conftest.$ac_objext conftest$ac_exeext
6261 if { (ac_try="$ac_link"
6263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6264 *) ac_try_echo
=$ac_try;;
6266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267 (eval "$ac_link") 2>conftest.er1
6269 grep -v '^ *+' conftest.er1
>conftest.err
6271 cat conftest.err
>&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } &&
6274 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6275 { (case "(($ac_try" in
6276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6277 *) ac_try_echo=$ac_try;;
6279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6280 (eval "$ac_try") 2>&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }; } &&
6284 { ac_try='test -s conftest$ac_exeext'
6285 { (case "(($ac_try" in
6286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6287 *) ac_try_echo
=$ac_try;;
6289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290 (eval "$ac_try") 2>&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6294 ac_cv_lib_fl_yywrap
=yes
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.
$ac_ext >&5
6299 ac_cv_lib_fl_yywrap
=no
6302 rm -f core conftest.err conftest.
$ac_objext \
6303 conftest
$ac_exeext conftest.
$ac_ext
6304 LIBS
=$ac_check_lib_save_LIBS
6306 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6307 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6308 if test $ac_cv_lib_fl_yywrap = yes; then
6311 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6312 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6313 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 ac_check_lib_save_LIBS
=$LIBS
6318 cat >conftest.
$ac_ext <<_ACEOF
6321 cat confdefs.h
>>conftest.
$ac_ext
6322 cat >>conftest.
$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6325 /* Override any GCC internal prototype to avoid an error.
6326 Use char because int might match the return type of a GCC
6327 builtin and then its argument prototype would still apply. */
6340 rm -f conftest.
$ac_objext conftest
$ac_exeext
6341 if { (ac_try
="$ac_link"
6343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6344 *) ac_try_echo=$ac_try;;
6346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6347 (eval "$ac_link") 2>conftest.er1
6349 grep -v '^ *+' conftest.er1 >conftest.err
6351 cat conftest.err >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } &&
6354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6355 { (case "(($ac_try" in
6356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6357 *) ac_try_echo
=$ac_try;;
6359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360 (eval "$ac_try") 2>&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; } &&
6364 { ac_try
='test -s conftest$ac_exeext'
6365 { (case "(($ac_try" in
6366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6367 *) ac_try_echo=$ac_try;;
6369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6370 (eval "$ac_try") 2>&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; }; then
6374 ac_cv_lib_l_yywrap=yes
6376 echo "$as_me: failed program was:" >&5
6377 sed 's/^/| /' conftest.$ac_ext >&5
6379 ac_cv_lib_l_yywrap=no
6382 rm -f core conftest.err conftest.$ac_objext \
6383 conftest$ac_exeext conftest.$ac_ext
6384 LIBS=$ac_check_lib_save_LIBS
6386 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6387 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6388 if test $ac_cv_lib_l_yywrap = yes; then
6396 if test "x$LEX" != "x:"; then
6397 { echo "$as_me:$LINENO: checking lex output file root" >&5
6398 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6399 if test "${ac_cv_prog_lex_root+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 # The minimal lex program is just a single line: %%. But some broken lexes
6403 # (Solaris, I think it was) want two %% lines, so accommodate them.
6404 cat >conftest.l <<_ACEOF
6408 { (ac_try="$LEX conftest.l"
6410 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6411 *) ac_try_echo
=$ac_try;;
6413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6414 (eval "$LEX conftest.l") 2>&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }
6418 if test -f lex.yy.c
; then
6419 ac_cv_prog_lex_root
=lex.yy
6420 elif test -f lexyy.c
; then
6421 ac_cv_prog_lex_root
=lexyy
6423 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6424 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6425 { (exit 1); exit 1; }; }
6428 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6429 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6431 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
6433 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6434 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6435 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6438 # POSIX says lex can declare yytext either as a pointer or an array; the
6439 # default is implementation-dependent. Figure out which it is, since
6440 # not all implementations provide the %pointer and %array declarations.
6441 ac_cv_prog_lex_yytext_pointer
=no
6442 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6444 LIBS
="$LIBS $LEXLIB"
6445 cat >conftest.
$ac_ext <<_ACEOF
6446 `cat $LEX_OUTPUT_ROOT.c`
6448 rm -f conftest.
$ac_objext conftest
$ac_exeext
6449 if { (ac_try
="$ac_link"
6451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6452 *) ac_try_echo=$ac_try;;
6454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455 (eval "$ac_link") 2>conftest.er1
6457 grep -v '^ *+' conftest.er1 >conftest.err
6459 cat conftest.err >&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); } &&
6462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6463 { (case "(($ac_try" in
6464 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6465 *) ac_try_echo
=$ac_try;;
6467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468 (eval "$ac_try") 2>&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; } &&
6472 { ac_try
='test -s conftest$ac_exeext'
6473 { (case "(($ac_try" in
6474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6475 *) ac_try_echo=$ac_try;;
6477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6478 (eval "$ac_try") 2>&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; }; then
6482 ac_cv_prog_lex_yytext_pointer=yes
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6490 rm -f core conftest.err conftest.$ac_objext \
6491 conftest$ac_exeext conftest.$ac_ext
6493 rm -f "${LEX_OUTPUT_ROOT}.c"
6496 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6497 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6498 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6500 cat >>confdefs.h <<\_ACEOF
6501 #define YYTEXT_POINTER 1
6509 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6510 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6511 if test "$LEX" != "flex"; then
6512 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6513 echo "$as_me: error: flex not found but required" >&2;}
6514 { (exit 1); exit 1; }; }
6520 { echo "$as_me:$LINENO: checking " >&5
6521 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6522 if test "${llvm_cv_has_bison+set}" = set; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 for ac_prog in 'bison -y' byacc
6527 # Extract the first word of "$ac_prog", so it can be a program name with args.
6528 set dummy $ac_prog; ac_word=$2
6529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6531 if test "${ac_cv_prog_YACC+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 if test -n "$YACC"; then
6535 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 test -z "$as_dir" && as_dir=.
6542 for ac_exec_ext in '' $ac_executable_extensions; do
6543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6544 ac_cv_prog_YACC="$ac_prog"
6545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 YACC=$ac_cv_prog_YACC
6555 if test -n "$YACC"; then
6556 { echo "$as_me:$LINENO: result: $YACC" >&5
6557 echo "${ECHO_T}$YACC" >&6; }
6559 { echo "$as_me:$LINENO: result: no" >&5
6560 echo "${ECHO_T}no" >&6; }
6564 test -n "$YACC" && break
6566 test -n "$YACC" || YACC="yacc"
6569 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6570 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6571 if test "$YACC" != "bison -y"; then
6573 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6574 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6580 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6581 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6582 if test "${lt_cv_path_NM+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 if test -n "$NM"; then
6586 # Let the user override the test.
6589 lt_nm_to_check="${ac_tool_prefix}nm"
6590 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6591 lt_nm_to_check="$lt_nm_to_check nm"
6593 for lt_tmp_nm in $lt_nm_to_check; do
6594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6595 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6597 test -z "$ac_dir" && ac_dir=.
6598 tmp_nm="$ac_dir/$lt_tmp_nm"
6599 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6600 # Check to see if the nm accepts a BSD-compat flag.
6601 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
6602 # nm: unknown option "B" ignored
6603 # Tru64's nm complains that
/dev
/null is an invalid object
file
6604 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6605 */dev
/null
* |
*'Invalid file or object type'*)
6606 lt_cv_path_NM
="$tmp_nm -B"
6610 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6612 lt_cv_path_NM
="$tmp_nm -p"
6616 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6617 continue # so that we can try to find one that supports BSD flags
6626 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
6629 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6630 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6635 { echo "$as_me:$LINENO: checking for GNU make" >&5
6636 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6637 if test "${llvm_cv_gnu_make_command+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 llvm_cv_gnu_make_command
=''
6641 for a
in "$MAKE" make gmake gnumake
; do
6642 if test -z "$a" ; then continue ; fi ;
6643 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
)
6645 llvm_cv_gnu_make_command
=$a ;
6650 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6651 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6652 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6656 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6657 echo "${ECHO_T}\"Not found\"" >&6; };
6661 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6662 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6664 if test "$LN_S" = "ln -s"; then
6665 { echo "$as_me:$LINENO: result: yes" >&5
6666 echo "${ECHO_T}yes" >&6; }
6668 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6669 echo "${ECHO_T}no, using $LN_S" >&6; }
6672 # Extract the first word of "cmp", so it can be a program name with args.
6673 set dummy
cmp; ac_word
=$2
6674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6676 if test "${ac_cv_path_CMP+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6681 ac_cv_path_CMP
="$CMP" # Let the user override the test with a path.
6684 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6688 test -z "$as_dir" && as_dir
=.
6689 for ac_exec_ext
in '' $ac_executable_extensions; do
6690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6691 ac_cv_path_CMP
="$as_dir/$ac_word$ac_exec_ext"
6692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP
="cmp"
6704 if test -n "$CMP"; then
6705 { echo "$as_me:$LINENO: result: $CMP" >&5
6706 echo "${ECHO_T}$CMP" >&6; }
6708 { echo "$as_me:$LINENO: result: no" >&5
6709 echo "${ECHO_T}no" >&6; }
6713 # Extract the first word of "cp", so it can be a program name with args.
6714 set dummy
cp; ac_word
=$2
6715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6717 if test "${ac_cv_path_CP+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
6725 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6729 test -z "$as_dir" && as_dir
=.
6730 for ac_exec_ext
in '' $ac_executable_extensions; do
6731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6732 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
6733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
6745 if test -n "$CP"; then
6746 { echo "$as_me:$LINENO: result: $CP" >&5
6747 echo "${ECHO_T}$CP" >&6; }
6749 { echo "$as_me:$LINENO: result: no" >&5
6750 echo "${ECHO_T}no" >&6; }
6754 # Extract the first word of "date", so it can be a program name with args.
6755 set dummy
date; ac_word
=$2
6756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6758 if test "${ac_cv_path_DATE+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 ac_cv_path_DATE
="$DATE" # Let the user override the test with a path.
6766 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6770 test -z "$as_dir" && as_dir
=.
6771 for ac_exec_ext
in '' $ac_executable_extensions; do
6772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6773 ac_cv_path_DATE
="$as_dir/$ac_word$ac_exec_ext"
6774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE
="date"
6785 DATE
=$ac_cv_path_DATE
6786 if test -n "$DATE"; then
6787 { echo "$as_me:$LINENO: result: $DATE" >&5
6788 echo "${ECHO_T}$DATE" >&6; }
6790 { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6795 # Extract the first word of "find", so it can be a program name with args.
6796 set dummy
find; ac_word
=$2
6797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6799 if test "${ac_cv_path_FIND+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6807 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6811 test -z "$as_dir" && as_dir
=.
6812 for ac_exec_ext
in '' $ac_executable_extensions; do
6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6814 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
="find"
6826 FIND
=$ac_cv_path_FIND
6827 if test -n "$FIND"; then
6828 { echo "$as_me:$LINENO: result: $FIND" >&5
6829 echo "${ECHO_T}$FIND" >&6; }
6831 { echo "$as_me:$LINENO: result: no" >&5
6832 echo "${ECHO_T}no" >&6; }
6836 # Extract the first word of "grep", so it can be a program name with args.
6837 set dummy
grep; ac_word
=$2
6838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6840 if test "${ac_cv_path_GREP+set}" = set; then
6841 echo $ECHO_N "(cached) $ECHO_C" >&6
6845 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6852 test -z "$as_dir" && as_dir
=.
6853 for ac_exec_ext
in '' $ac_executable_extensions; do
6854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6855 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
="grep"
6867 GREP
=$ac_cv_path_GREP
6868 if test -n "$GREP"; then
6869 { echo "$as_me:$LINENO: result: $GREP" >&5
6870 echo "${ECHO_T}$GREP" >&6; }
6872 { echo "$as_me:$LINENO: result: no" >&5
6873 echo "${ECHO_T}no" >&6; }
6877 # Extract the first word of "mkdir", so it can be a program name with args.
6878 set dummy mkdir
; ac_word
=$2
6879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881 if test "${ac_cv_path_MKDIR+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
6889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6893 test -z "$as_dir" && as_dir
=.
6894 for ac_exec_ext
in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6896 ac_cv_path_MKDIR
="$as_dir/$ac_word$ac_exec_ext"
6897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6904 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="mkdir"
6908 MKDIR
=$ac_cv_path_MKDIR
6909 if test -n "$MKDIR"; then
6910 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6911 echo "${ECHO_T}$MKDIR" >&6; }
6913 { echo "$as_me:$LINENO: result: no" >&5
6914 echo "${ECHO_T}no" >&6; }
6918 # Extract the first word of "mv", so it can be a program name with args.
6919 set dummy
mv; ac_word
=$2
6920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6922 if test "${ac_cv_path_MV+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
6930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6934 test -z "$as_dir" && as_dir
=.
6935 for ac_exec_ext
in '' $ac_executable_extensions; do
6936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6937 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
6938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
6950 if test -n "$MV"; then
6951 { echo "$as_me:$LINENO: result: $MV" >&5
6952 echo "${ECHO_T}$MV" >&6; }
6954 { echo "$as_me:$LINENO: result: no" >&5
6955 echo "${ECHO_T}no" >&6; }
6959 if test -n "$ac_tool_prefix"; then
6960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6961 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6964 if test "${ac_cv_prog_RANLIB+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 if test -n "$RANLIB"; then
6968 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6974 test -z "$as_dir" && as_dir
=.
6975 for ac_exec_ext
in '' $ac_executable_extensions; do
6976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6977 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 RANLIB
=$ac_cv_prog_RANLIB
6988 if test -n "$RANLIB"; then
6989 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6990 echo "${ECHO_T}$RANLIB" >&6; }
6992 { echo "$as_me:$LINENO: result: no" >&5
6993 echo "${ECHO_T}no" >&6; }
6998 if test -z "$ac_cv_prog_RANLIB"; then
6999 ac_ct_RANLIB
=$RANLIB
7000 # Extract the first word of "ranlib", so it can be a program name with args.
7001 set dummy ranlib
; ac_word
=$2
7002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7004 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 if test -n "$ac_ct_RANLIB"; then
7008 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7014 test -z "$as_dir" && as_dir
=.
7015 for ac_exec_ext
in '' $ac_executable_extensions; do
7016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7017 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7028 if test -n "$ac_ct_RANLIB"; then
7029 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7030 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7032 { echo "$as_me:$LINENO: result: no" >&5
7033 echo "${ECHO_T}no" >&6; }
7036 if test "x$ac_ct_RANLIB" = x
; then
7039 case $cross_compiling:$ac_tool_warned in
7041 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7042 whose name does not start with the host triplet. If you think this
7043 configuration is useful to you, please write to autoconf@gnu.org." >&5
7044 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7045 whose name does not start with the host triplet. If you think this
7046 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7047 ac_tool_warned
=yes ;;
7049 RANLIB
=$ac_ct_RANLIB
7052 RANLIB
="$ac_cv_prog_RANLIB"
7055 # Extract the first word of "rm", so it can be a program name with args.
7056 set dummy
rm; ac_word
=$2
7057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7059 if test "${ac_cv_path_RM+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
7067 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7071 test -z "$as_dir" && as_dir
=.
7072 for ac_exec_ext
in '' $ac_executable_extensions; do
7073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7074 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
7075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
7087 if test -n "$RM"; then
7088 { echo "$as_me:$LINENO: result: $RM" >&5
7089 echo "${ECHO_T}$RM" >&6; }
7091 { echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6; }
7096 # Extract the first word of "sed", so it can be a program name with args.
7097 set dummy
sed; ac_word
=$2
7098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7100 if test "${ac_cv_path_SED+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
7108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7112 test -z "$as_dir" && as_dir
=.
7113 for ac_exec_ext
in '' $ac_executable_extensions; do
7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7115 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
7116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
7128 if test -n "$SED"; then
7129 { echo "$as_me:$LINENO: result: $SED" >&5
7130 echo "${ECHO_T}$SED" >&6; }
7132 { echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6; }
7137 # Extract the first word of "tar", so it can be a program name with args.
7138 set dummy
tar; ac_word
=$2
7139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141 if test "${ac_cv_path_TAR+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
7149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7153 test -z "$as_dir" && as_dir
=.
7154 for ac_exec_ext
in '' $ac_executable_extensions; do
7155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7156 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
7157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR
="gtar"
7169 if test -n "$TAR"; then
7170 { echo "$as_me:$LINENO: result: $TAR" >&5
7171 echo "${ECHO_T}$TAR" >&6; }
7173 { echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6; }
7178 # Extract the first word of "pwd", so it can be a program name with args.
7179 set dummy
pwd; ac_word
=$2
7180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7182 if test "${ac_cv_path_BINPWD+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 ac_cv_path_BINPWD
="$BINPWD" # Let the user override the test with a path.
7190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7194 test -z "$as_dir" && as_dir
=.
7195 for ac_exec_ext
in '' $ac_executable_extensions; do
7196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7197 ac_cv_path_BINPWD
="$as_dir/$ac_word$ac_exec_ext"
7198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD
="pwd"
7209 BINPWD
=$ac_cv_path_BINPWD
7210 if test -n "$BINPWD"; then
7211 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7212 echo "${ECHO_T}$BINPWD" >&6; }
7214 { echo "$as_me:$LINENO: result: no" >&5
7215 echo "${ECHO_T}no" >&6; }
7220 # Extract the first word of "Graphviz", so it can be a program name with args.
7221 set dummy Graphviz
; ac_word
=$2
7222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7224 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 ac_cv_path_GRAPHVIZ
="$GRAPHVIZ" # Let the user override the test with a path.
7232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7236 test -z "$as_dir" && as_dir
=.
7237 for ac_exec_ext
in '' $ac_executable_extensions; do
7238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7239 ac_cv_path_GRAPHVIZ
="$as_dir/$ac_word$ac_exec_ext"
7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ
="echo Graphviz"
7251 GRAPHVIZ
=$ac_cv_path_GRAPHVIZ
7252 if test -n "$GRAPHVIZ"; then
7253 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7254 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7256 { echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6; }
7261 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7263 cat >>confdefs.h
<<\_ACEOF
7264 #define HAVE_GRAPHVIZ 1
7267 if test "$llvm_cv_os_type" = "MingW" ; then
7268 GRAPHVIZ
=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7271 cat >>confdefs.h
<<_ACEOF
7272 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7276 # Extract the first word of "dot", so it can be a program name with args.
7277 set dummy dot
; ac_word
=$2
7278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7280 if test "${ac_cv_path_DOT+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7292 test -z "$as_dir" && as_dir
=.
7293 for ac_exec_ext
in '' $ac_executable_extensions; do
7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7295 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
="echo dot"
7308 if test -n "$DOT"; then
7309 { echo "$as_me:$LINENO: result: $DOT" >&5
7310 echo "${ECHO_T}$DOT" >&6; }
7312 { echo "$as_me:$LINENO: result: no" >&5
7313 echo "${ECHO_T}no" >&6; }
7317 if test "$DOT" != "echo dot" ; then
7319 cat >>confdefs.h
<<\_ACEOF
7323 if test "$llvm_cv_os_type" = "MingW" ; then
7324 DOT
=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7327 cat >>confdefs.h
<<_ACEOF
7328 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7332 for ac_prog
in gv gsview32
7334 # Extract the first word of "$ac_prog", so it can be a program name with args.
7335 set dummy
$ac_prog; ac_word
=$2
7336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7338 if test "${ac_cv_path_GV+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7343 ac_cv_path_GV
="$GV" # Let the user override the test with a path.
7346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7350 test -z "$as_dir" && as_dir
=.
7351 for ac_exec_ext
in '' $ac_executable_extensions; do
7352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7353 ac_cv_path_GV
="$as_dir/$ac_word$ac_exec_ext"
7354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 if test -n "$GV"; then
7366 { echo "$as_me:$LINENO: result: $GV" >&5
7367 echo "${ECHO_T}$GV" >&6; }
7369 { echo "$as_me:$LINENO: result: no" >&5
7370 echo "${ECHO_T}no" >&6; }
7374 test -n "$GV" && break
7376 test -n "$GV" || GV
="echo gv"
7378 if test "$GV" != "echo gv" ; then
7380 cat >>confdefs.h
<<\_ACEOF
7384 if test "$llvm_cv_os_type" = "MingW" ; then
7385 GV
=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7388 cat >>confdefs.h
<<_ACEOF
7389 #define LLVM_PATH_GV "$GV${EXEEXT}"
7393 # Extract the first word of "dotty", so it can be a program name with args.
7394 set dummy dotty
; ac_word
=$2
7395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7397 if test "${ac_cv_path_DOTTY+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
7402 ac_cv_path_DOTTY
="$DOTTY" # Let the user override the test with a path.
7405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7409 test -z "$as_dir" && as_dir
=.
7410 for ac_exec_ext
in '' $ac_executable_extensions; do
7411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7412 ac_cv_path_DOTTY
="$as_dir/$ac_word$ac_exec_ext"
7413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY
="echo dotty"
7424 DOTTY
=$ac_cv_path_DOTTY
7425 if test -n "$DOTTY"; then
7426 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7427 echo "${ECHO_T}$DOTTY" >&6; }
7429 { echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6; }
7434 if test "$DOTTY" != "echo dotty" ; then
7436 cat >>confdefs.h
<<\_ACEOF
7437 #define HAVE_DOTTY 1
7440 if test "$llvm_cv_os_type" = "MingW" ; then
7441 DOTTY
=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7444 cat >>confdefs.h
<<_ACEOF
7445 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7451 # Extract the first word of "perl", so it can be a program name with args.
7452 set dummy perl
; ac_word
=$2
7453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7455 if test "${ac_cv_path_PERL+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7460 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
7463 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7467 test -z "$as_dir" && as_dir
=.
7468 for ac_exec_ext
in '' $ac_executable_extensions; do
7469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7470 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
7471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="none"
7482 PERL
=$ac_cv_path_PERL
7483 if test -n "$PERL"; then
7484 { echo "$as_me:$LINENO: result: $PERL" >&5
7485 echo "${ECHO_T}$PERL" >&6; }
7487 { echo "$as_me:$LINENO: result: no" >&5
7488 echo "${ECHO_T}no" >&6; }
7492 if test "$PERL" != "none"; then
7493 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7494 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7495 if $PERL -e 'use 5.006;' 2>&1 > /dev
/null
; then
7496 { echo "$as_me:$LINENO: result: yes" >&5
7497 echo "${ECHO_T}yes" >&6; }
7500 { echo "$as_me:$LINENO: result: not found" >&5
7501 echo "${ECHO_T}not found" >&6; }
7506 if test x
"$PERL" = xnone
; then
7509 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7510 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7511 { (exit 1); exit 1; }; }
7517 # Find a good install program. We prefer a C program (faster),
7518 # so one script is as good as another. But avoid the broken or
7519 # incompatible versions:
7520 # SysV /etc/install, /usr/sbin/install
7521 # SunOS /usr/etc/install
7522 # IRIX /sbin/install
7524 # AmigaOS /C/install, which installs bootblocks on floppy discs
7525 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7526 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7527 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7528 # OS/2's system install, which has a completely different semantic
7529 # ./install, which can be erroneously created by make from ./install.sh.
7530 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7531 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7532 if test -z "$INSTALL"; then
7533 if test "${ac_cv_path_install+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7540 test -z "$as_dir" && as_dir
=.
7541 # Account for people who put trailing slashes in PATH elements.
7543 .
/ | .
// |
/cC
/* | \
7544 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7545 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
7548 # OSF1 and SCO ODT 3.0 have their own names for install.
7549 # Don't use installbsd from OSF since it installs stuff as root
7551 for ac_prog
in ginstall scoinst
install; do
7552 for ac_exec_ext
in '' $ac_executable_extensions; do
7553 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7554 if test $ac_prog = install &&
7555 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7556 # AIX install. It has an incompatible calling convention.
7558 elif test $ac_prog = install &&
7559 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7560 # program-specific install script used by HP pwplus--don't use.
7563 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7576 if test "${ac_cv_path_install+set}" = set; then
7577 INSTALL
=$ac_cv_path_install
7579 # As a last resort, use the slow shell script. Don't cache a
7580 # value for INSTALL within a source directory, because that will
7581 # break other packages using the cache if that directory is
7582 # removed, or if the value is a relative name.
7583 INSTALL
=$ac_install_sh
7586 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7587 echo "${ECHO_T}$INSTALL" >&6; }
7589 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7590 # It thinks the first close brace ends the variable substitution.
7591 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7593 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7595 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7598 # Extract the first word of "bzip2", so it can be a program name with args.
7599 set dummy
bzip2; ac_word
=$2
7600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7602 if test "${ac_cv_path_BZIP2+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
7610 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7614 test -z "$as_dir" && as_dir
=.
7615 for ac_exec_ext
in '' $ac_executable_extensions; do
7616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7617 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
7618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7628 BZIP2
=$ac_cv_path_BZIP2
7629 if test -n "$BZIP2"; then
7630 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7631 echo "${ECHO_T}$BZIP2" >&6; }
7633 { echo "$as_me:$LINENO: result: no" >&5
7634 echo "${ECHO_T}no" >&6; }
7638 # Extract the first word of "doxygen", so it can be a program name with args.
7639 set dummy doxygen
; ac_word
=$2
7640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7642 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7643 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
7650 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7654 test -z "$as_dir" && as_dir
=.
7655 for ac_exec_ext
in '' $ac_executable_extensions; do
7656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7657 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
7658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 DOXYGEN
=$ac_cv_path_DOXYGEN
7669 if test -n "$DOXYGEN"; then
7670 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7671 echo "${ECHO_T}$DOXYGEN" >&6; }
7673 { echo "$as_me:$LINENO: result: no" >&5
7674 echo "${ECHO_T}no" >&6; }
7678 # Extract the first word of "groff", so it can be a program name with args.
7679 set dummy
groff; ac_word
=$2
7680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7682 if test "${ac_cv_path_GROFF+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 ac_cv_path_GROFF
="$GROFF" # Let the user override the test with a path.
7690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7694 test -z "$as_dir" && as_dir
=.
7695 for ac_exec_ext
in '' $ac_executable_extensions; do
7696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7697 ac_cv_path_GROFF
="$as_dir/$ac_word$ac_exec_ext"
7698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7708 GROFF
=$ac_cv_path_GROFF
7709 if test -n "$GROFF"; then
7710 { echo "$as_me:$LINENO: result: $GROFF" >&5
7711 echo "${ECHO_T}$GROFF" >&6; }
7713 { echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6; }
7718 # Extract the first word of "gzip", so it can be a program name with args.
7719 set dummy
gzip; ac_word
=$2
7720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7722 if test "${ac_cv_path_GZIP+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 ac_cv_path_GZIP
="$GZIP" # Let the user override the test with a path.
7730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7734 test -z "$as_dir" && as_dir
=.
7735 for ac_exec_ext
in '' $ac_executable_extensions; do
7736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7737 ac_cv_path_GZIP
="$as_dir/$ac_word$ac_exec_ext"
7738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 GZIP
=$ac_cv_path_GZIP
7749 if test -n "$GZIP"; then
7750 { echo "$as_me:$LINENO: result: $GZIP" >&5
7751 echo "${ECHO_T}$GZIP" >&6; }
7753 { echo "$as_me:$LINENO: result: no" >&5
7754 echo "${ECHO_T}no" >&6; }
7758 # Extract the first word of "pod2html", so it can be a program name with args.
7759 set dummy pod2html
; ac_word
=$2
7760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7762 if test "${ac_cv_path_POD2HTML+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 ac_cv_path_POD2HTML
="$POD2HTML" # Let the user override the test with a path.
7770 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7774 test -z "$as_dir" && as_dir
=.
7775 for ac_exec_ext
in '' $ac_executable_extensions; do
7776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7777 ac_cv_path_POD2HTML
="$as_dir/$ac_word$ac_exec_ext"
7778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7788 POD2HTML
=$ac_cv_path_POD2HTML
7789 if test -n "$POD2HTML"; then
7790 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7791 echo "${ECHO_T}$POD2HTML" >&6; }
7793 { echo "$as_me:$LINENO: result: no" >&5
7794 echo "${ECHO_T}no" >&6; }
7798 # Extract the first word of "pod2man", so it can be a program name with args.
7799 set dummy pod2man
; ac_word
=$2
7800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7802 if test "${ac_cv_path_POD2MAN+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
7810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7814 test -z "$as_dir" && as_dir
=.
7815 for ac_exec_ext
in '' $ac_executable_extensions; do
7816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7817 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
7818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 POD2MAN
=$ac_cv_path_POD2MAN
7829 if test -n "$POD2MAN"; then
7830 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7831 echo "${ECHO_T}$POD2MAN" >&6; }
7833 { echo "$as_me:$LINENO: result: no" >&5
7834 echo "${ECHO_T}no" >&6; }
7838 # Extract the first word of "runtest", so it can be a program name with args.
7839 set dummy runtest
; ac_word
=$2
7840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7842 if test "${ac_cv_path_RUNTEST+set}" = set; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7847 ac_cv_path_RUNTEST
="$RUNTEST" # Let the user override the test with a path.
7850 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7854 test -z "$as_dir" && as_dir
=.
7855 for ac_exec_ext
in '' $ac_executable_extensions; do
7856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7857 ac_cv_path_RUNTEST
="$as_dir/$ac_word$ac_exec_ext"
7858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7868 RUNTEST
=$ac_cv_path_RUNTEST
7869 if test -n "$RUNTEST"; then
7870 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7871 echo "${ECHO_T}$RUNTEST" >&6; }
7873 { echo "$as_me:$LINENO: result: no" >&5
7874 echo "${ECHO_T}no" >&6; }
7880 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7881 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7883 # Check whether --with-tclinclude was given.
7884 if test "${with_tclinclude+set}" = set; then
7885 withval
=$with_tclinclude; with_tclinclude
=${withval}
7890 if test "${ac_cv_path_tclsh+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7894 if test x
"${with_tclinclude}" != x
; then
7895 if test -f ${with_tclinclude}/tclsh
; then
7896 ac_cv_path_tclsh
=`(cd ${with_tclinclude}; pwd)`
7897 elif test -f ${with_tclinclude}/src
/tclsh
; then
7898 ac_cv_path_tclsh
=`(cd ${with_tclinclude}/src; pwd)`
7900 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7901 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7902 { (exit 1); exit 1; }; }
7906 if test x
"${ac_cv_path_tclsh}" = x
; then
7907 { echo "$as_me:$LINENO: result: none" >&5
7908 echo "${ECHO_T}none" >&6; }
7909 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
7911 # Extract the first word of "$ac_prog", so it can be a program name with args.
7912 set dummy
$ac_prog; ac_word
=$2
7913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7915 if test "${ac_cv_path_TCLSH+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
7923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7927 test -z "$as_dir" && as_dir
=.
7928 for ac_exec_ext
in '' $ac_executable_extensions; do
7929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7930 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
7931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7941 TCLSH
=$ac_cv_path_TCLSH
7942 if test -n "$TCLSH"; then
7943 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7944 echo "${ECHO_T}$TCLSH" >&6; }
7946 { echo "$as_me:$LINENO: result: no" >&5
7947 echo "${ECHO_T}no" >&6; }
7951 test -n "$TCLSH" && break
7954 if test x
"${TCLSH}" = x
; then
7955 ac_cv_path_tclsh
='';
7957 ac_cv_path_tclsh
="${TCLSH}";
7960 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7961 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7962 TCLSH="${ac_cv_path_tclsh}"
7968 # Extract the first word of "zip", so it can be a program name with args.
7969 set dummy zip; ac_word=$2
7970 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
7971 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
7972 if test "${ac_cv_path_ZIP+set}" = set; then
7973 echo $ECHO_N "(cached
) $ECHO_C" >&6
7977 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7987 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7988 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7999 if test -n "$ZIP"; then
8000 { echo "$as_me:$LINENO: result
: $ZIP" >&5
8001 echo "${ECHO_T}$ZIP" >&6; }
8003 { echo "$as_me:$LINENO: result
: no
" >&5
8004 echo "${ECHO_T}no
" >&6; }
8008 for ac_prog in ocamlc.opt ocamlc
8010 # Extract the first word of "$ac_prog", so it can be a program name with args.
8011 set dummy $ac_prog; ac_word=$2
8012 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8013 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8014 if test "${ac_cv_path_OCAMLC+set}" = set; then
8015 echo $ECHO_N "(cached
) $ECHO_C" >&6
8019 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 test -z "$as_dir" && as_dir=.
8027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8029 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8030 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8040 OCAMLC=$ac_cv_path_OCAMLC
8041 if test -n "$OCAMLC"; then
8042 { echo "$as_me:$LINENO: result
: $OCAMLC" >&5
8043 echo "${ECHO_T}$OCAMLC" >&6; }
8045 { echo "$as_me:$LINENO: result
: no
" >&5
8046 echo "${ECHO_T}no
" >&6; }
8050 test -n "$OCAMLC" && break
8053 for ac_prog in ocamlopt.opt ocamlopt
8055 # Extract the first word of "$ac_prog", so it can be a program name with args.
8056 set dummy $ac_prog; ac_word=$2
8057 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8058 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8059 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8060 echo $ECHO_N "(cached
) $ECHO_C" >&6
8064 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 test -z "$as_dir" && as_dir=.
8072 for ac_exec_ext in '' $ac_executable_extensions; do
8073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8074 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8075 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8085 OCAMLOPT=$ac_cv_path_OCAMLOPT
8086 if test -n "$OCAMLOPT"; then
8087 { echo "$as_me:$LINENO: result
: $OCAMLOPT" >&5
8088 echo "${ECHO_T}$OCAMLOPT" >&6; }
8090 { echo "$as_me:$LINENO: result
: no
" >&5
8091 echo "${ECHO_T}no
" >&6; }
8095 test -n "$OCAMLOPT" && break
8098 for ac_prog in ocamldep.opt ocamldep
8100 # Extract the first word of "$ac_prog", so it can be a program name with args.
8101 set dummy $ac_prog; ac_word=$2
8102 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8103 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8104 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8105 echo $ECHO_N "(cached
) $ECHO_C" >&6
8109 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 test -z "$as_dir" && as_dir=.
8117 for ac_exec_ext in '' $ac_executable_extensions; do
8118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8119 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8120 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8130 OCAMLDEP=$ac_cv_path_OCAMLDEP
8131 if test -n "$OCAMLDEP"; then
8132 { echo "$as_me:$LINENO: result
: $OCAMLDEP" >&5
8133 echo "${ECHO_T}$OCAMLDEP" >&6; }
8135 { echo "$as_me:$LINENO: result
: no
" >&5
8136 echo "${ECHO_T}no
" >&6; }
8140 test -n "$OCAMLDEP" && break
8143 for ac_prog in ocamldoc.opt ocamldoc
8145 # Extract the first word of "$ac_prog", so it can be a program name with args.
8146 set dummy $ac_prog; ac_word=$2
8147 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8148 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8149 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8150 echo $ECHO_N "(cached
) $ECHO_C" >&6
8154 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8161 test -z "$as_dir" && as_dir=.
8162 for ac_exec_ext in '' $ac_executable_extensions; do
8163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8164 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8165 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8175 OCAMLDOC=$ac_cv_path_OCAMLDOC
8176 if test -n "$OCAMLDOC"; then
8177 { echo "$as_me:$LINENO: result
: $OCAMLDOC" >&5
8178 echo "${ECHO_T}$OCAMLDOC" >&6; }
8180 { echo "$as_me:$LINENO: result
: no
" >&5
8181 echo "${ECHO_T}no
" >&6; }
8185 test -n "$OCAMLDOC" && break
8189 { echo "$as_me:$LINENO: checking
for compiler
-Wl,-R<path
> option
" >&5
8190 echo $ECHO_N "checking
for compiler
-Wl,-R<path
> option...
$ECHO_C" >&6; }
8191 if test "${llvm_cv_link_use_r+set}" = set; then
8192 echo $ECHO_N "(cached
) $ECHO_C" >&6
8195 ac_cpp='$CPP $CPPFLAGS'
8196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8201 CFLAGS="$CFLAGS -Wl,-R.
"
8202 cat >conftest.$ac_ext <<_ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8212 int main() { return 0; }
8217 rm -f conftest.$ac_objext conftest$ac_exeext
8218 if { (ac_try="$ac_link"
8220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221 *) ac_try_echo=$ac_try;;
8223 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8224 (eval "$ac_link") 2>conftest.er1
8226 grep -v '^ *+' conftest.er1 >conftest.err
8228 cat conftest.err >&5
8229 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8230 (exit $ac_status); } &&
8231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8232 { (case "(($ac_try" in
8233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234 *) ac_try_echo=$ac_try;;
8236 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8237 (eval "$ac_try") 2>&5
8239 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8240 (exit $ac_status); }; } &&
8241 { ac_try='test -s conftest$ac_exeext'
8242 { (case "(($ac_try" in
8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244 *) ac_try_echo=$ac_try;;
8246 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8247 (eval "$ac_try") 2>&5
8249 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8250 (exit $ac_status); }; }; then
8251 llvm_cv_link_use_r=yes
8253 echo "$as_me: failed program was
:" >&5
8254 sed 's/^/| /' conftest.$ac_ext >&5
8256 llvm_cv_link_use_r=no
8259 rm -f core conftest.err conftest.$ac_objext \
8260 conftest$ac_exeext conftest.$ac_ext
8263 ac_cpp='$CPP $CPPFLAGS'
8264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8270 { echo "$as_me:$LINENO: result
: $llvm_cv_link_use_r" >&5
8271 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8272 if test "$llvm_cv_link_use_r" = yes ; then
8274 cat >>confdefs.h <<\_ACEOF
8275 #define HAVE_LINK_R 1
8283 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
8284 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
8285 if test "${ac_cv_c_const+set}" = set; then
8286 echo $ECHO_N "(cached
) $ECHO_C" >&6
8288 cat >conftest.$ac_ext <<_ACEOF
8291 cat confdefs.h >>conftest.$ac_ext
8292 cat >>conftest.$ac_ext <<_ACEOF
8293 /* end confdefs.h. */
8298 /* FIXME: Include the comments suggested by Paul. */
8300 /* Ultrix mips cc rejects this. */
8301 typedef int charset[2];
8303 /* SunOS 4.1.1 cc rejects this. */
8304 char const *const *ccp;
8306 /* NEC SVR4.0.2 mips cc rejects this. */
8307 struct point {int x, y;};
8308 static struct point const zero = {0,0};
8309 /* AIX XL C 1.02.0.0 rejects this.
8310 It does not let you subtract one const X* pointer from another in
8311 an arm of an if-expression whose if-part is not a constant
8313 const char *g = "string
";
8314 ccp = &g + (g ? g-g : 0);
8315 /* HPUX 7.0 cc rejects these. */
8318 ccp = (char const *const *) p;
8319 { /* SCO 3.2v4 cc rejects this. */
8321 char const *s = 0 ? (char *) 0 : (char const *) 0;
8326 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8328 const int *foo = &x[0];
8331 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8332 typedef const int *iptr;
8336 { /* AIX XL C 1.02.0.0 rejects this saying
8337 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8338 struct s { int j; const int *ap[3]; };
8339 struct s *b; b->j = 5;
8341 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8345 return !x[0] && !zero.x;
8352 rm -f conftest.$ac_objext
8353 if { (ac_try="$ac_compile"
8355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8356 *) ac_try_echo=$ac_try;;
8358 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8359 (eval "$ac_compile") 2>conftest.er1
8361 grep -v '^ *+' conftest.er1 >conftest.err
8363 cat conftest.err >&5
8364 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8365 (exit $ac_status); } &&
8366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8367 { (case "(($ac_try" in
8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8371 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8372 (eval "$ac_try") 2>&5
8374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8375 (exit $ac_status); }; } &&
8376 { ac_try='test -s conftest.$ac_objext'
8377 { (case "(($ac_try" in
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8381 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8382 (eval "$ac_try") 2>&5
8384 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8385 (exit $ac_status); }; }; then
8388 echo "$as_me: failed program was
:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8396 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
8397 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8398 if test $ac_cv_c_const = no; then
8400 cat >>confdefs.h <<\_ACEOF
8412 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8413 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
8414 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
8415 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
8416 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8417 echo $ECHO_N "(cached
) $ECHO_C" >&6
8419 cat >conftest.$ac_ext <<_ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h. */
8425 #include <sys/types.h>
8437 rm -f conftest.$ac_objext
8438 if { (ac_try="$ac_compile"
8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8443 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8444 (eval "$ac_compile") 2>conftest.er1
8446 grep -v '^ *+' conftest.er1 >conftest.err
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8450 (exit $ac_status); } &&
8451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8452 { (case "(($ac_try" in
8453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454 *) ac_try_echo=$ac_try;;
8456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8457 (eval "$ac_try") 2>&5
8459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8460 (exit $ac_status); }; } &&
8461 { ac_try='test -s conftest.$ac_objext'
8462 { (case "(($ac_try" in
8463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464 *) ac_try_echo=$ac_try;;
8466 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8467 (eval "$ac_try") 2>&5
8469 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8470 (exit $ac_status); }; }; then
8471 eval "$as_ac_Header=yes"
8473 echo "$as_me: failed program was
:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8476 eval "$as_ac_Header=no
"
8479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481 ac_res=`eval echo '${'$as_ac_Header'}'`
8482 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8483 echo "${ECHO_T}$ac_res" >&6; }
8484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8485 cat >>confdefs.h <<_ACEOF
8486 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
8489 ac_header_dirent=$ac_hdr; break
8493 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8494 if test $ac_header_dirent = dirent.h; then
8495 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
8496 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
8497 if test "${ac_cv_search_opendir+set}" = set; then
8498 echo $ECHO_N "(cached
) $ECHO_C" >&6
8500 ac_func_search_save_LIBS=$LIBS
8501 cat >conftest.$ac_ext <<_ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h. */
8508 /* Override any GCC internal prototype to avoid an error.
8509 Use char because int might match the return type of a GCC
8510 builtin and then its argument prototype would still apply. */
8523 for ac_lib in '' dir; do
8524 if test -z "$ac_lib"; then
8525 ac_res="none required
"
8528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8530 rm -f conftest.$ac_objext conftest$ac_exeext
8531 if { (ac_try="$ac_link"
8533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8534 *) ac_try_echo=$ac_try;;
8536 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8537 (eval "$ac_link") 2>conftest.er1
8539 grep -v '^ *+' conftest.er1 >conftest.err
8541 cat conftest.err >&5
8542 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8543 (exit $ac_status); } &&
8544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8545 { (case "(($ac_try" in
8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8549 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8550 (eval "$ac_try") 2>&5
8552 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8553 (exit $ac_status); }; } &&
8554 { ac_try='test -s conftest$ac_exeext'
8555 { (case "(($ac_try" in
8556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557 *) ac_try_echo=$ac_try;;
8559 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8560 (eval "$ac_try") 2>&5
8562 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8563 (exit $ac_status); }; }; then
8564 ac_cv_search_opendir=$ac_res
8566 echo "$as_me: failed program was
:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8572 rm -f core conftest.err conftest.$ac_objext \
8574 if test "${ac_cv_search_opendir+set}" = set; then
8578 if test "${ac_cv_search_opendir+set}" = set; then
8581 ac_cv_search_opendir=no
8584 LIBS=$ac_func_search_save_LIBS
8586 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
8587 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8588 ac_res=$ac_cv_search_opendir
8589 if test "$ac_res" != no; then
8590 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8595 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
8596 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
8597 if test "${ac_cv_search_opendir+set}" = set; then
8598 echo $ECHO_N "(cached
) $ECHO_C" >&6
8600 ac_func_search_save_LIBS=$LIBS
8601 cat >conftest.$ac_ext <<_ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8608 /* Override any GCC internal prototype to avoid an error.
8609 Use char because int might match the return type of a GCC
8610 builtin and then its argument prototype would still apply. */
8623 for ac_lib in '' x; do
8624 if test -z "$ac_lib"; then
8625 ac_res="none required
"
8628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8630 rm -f conftest.$ac_objext conftest$ac_exeext
8631 if { (ac_try="$ac_link"
8633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634 *) ac_try_echo=$ac_try;;
8636 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8637 (eval "$ac_link") 2>conftest.er1
8639 grep -v '^ *+' conftest.er1 >conftest.err
8641 cat conftest.err >&5
8642 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8643 (exit $ac_status); } &&
8644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8645 { (case "(($ac_try" in
8646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647 *) ac_try_echo=$ac_try;;
8649 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8650 (eval "$ac_try") 2>&5
8652 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8653 (exit $ac_status); }; } &&
8654 { ac_try='test -s conftest$ac_exeext'
8655 { (case "(($ac_try" in
8656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8657 *) ac_try_echo=$ac_try;;
8659 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8660 (eval "$ac_try") 2>&5
8662 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8663 (exit $ac_status); }; }; then
8664 ac_cv_search_opendir=$ac_res
8666 echo "$as_me: failed program was
:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8672 rm -f core conftest.err conftest.$ac_objext \
8674 if test "${ac_cv_search_opendir+set}" = set; then
8678 if test "${ac_cv_search_opendir+set}" = set; then
8681 ac_cv_search_opendir=no
8684 LIBS=$ac_func_search_save_LIBS
8686 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
8687 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8688 ac_res=$ac_cv_search_opendir
8689 if test "$ac_res" != no; then
8690 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8697 for ac_header in dlfcn.h
8699 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
8700 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8701 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8702 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8703 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8704 echo $ECHO_N "(cached
) $ECHO_C" >&6
8706 ac_res=`eval echo '${'$as_ac_Header'}'`
8707 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8708 echo "${ECHO_T}$ac_res" >&6; }
8710 # Is the header compilable?
8711 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
8712 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
8713 cat >conftest.$ac_ext <<_ACEOF
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h. */
8719 $ac_includes_default
8720 #include <$ac_header>
8722 rm -f conftest.$ac_objext
8723 if { (ac_try="$ac_compile"
8725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726 *) ac_try_echo=$ac_try;;
8728 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8729 (eval "$ac_compile") 2>conftest.er1
8731 grep -v '^ *+' conftest.er1 >conftest.err
8733 cat conftest.err >&5
8734 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8735 (exit $ac_status); } &&
8736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8737 { (case "(($ac_try" in
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8741 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8742 (eval "$ac_try") 2>&5
8744 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8745 (exit $ac_status); }; } &&
8746 { ac_try='test -s conftest.$ac_objext'
8747 { (case "(($ac_try" in
8748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8749 *) ac_try_echo=$ac_try;;
8751 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8752 (eval "$ac_try") 2>&5
8754 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8755 (exit $ac_status); }; }; then
8756 ac_header_compiler=yes
8758 echo "$as_me: failed program was
:" >&5
8759 sed 's/^/| /' conftest.$ac_ext >&5
8761 ac_header_compiler=no
8764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8765 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
8766 echo "${ECHO_T}$ac_header_compiler" >&6; }
8768 # Is the header present?
8769 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
8770 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
8771 cat >conftest.$ac_ext <<_ACEOF
8774 cat confdefs.h >>conftest.$ac_ext
8775 cat >>conftest.$ac_ext <<_ACEOF
8776 /* end confdefs.h. */
8777 #include <$ac_header>
8779 if { (ac_try="$ac_cpp conftest.
$ac_ext"
8781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8782 *) ac_try_echo=$ac_try;;
8784 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8785 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
8787 grep -v '^ *+' conftest.er1 >conftest.err
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8791 (exit $ac_status); } >/dev/null; then
8792 if test -s conftest.err; then
8793 ac_cpp_err=$ac_c_preproc_warn_flag
8794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8801 if test -z "$ac_cpp_err"; then
8802 ac_header_preproc=yes
8804 echo "$as_me: failed program was
:" >&5
8805 sed 's/^/| /' conftest.$ac_ext >&5
8807 ac_header_preproc=no
8810 rm -f conftest.err conftest.$ac_ext
8811 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
8812 echo "${ECHO_T}$ac_header_preproc" >&6; }
8814 # So? What about this header?
8815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8817 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
8818 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
8819 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
8820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
8821 ac_header_preproc=yes
8824 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
8825 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
8826 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
8827 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
8828 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
8829 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
8830 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
8831 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
8832 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
8833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
8834 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
8835 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
8837 ## ----------------------------------- ##
8838 ## Report this to llvmbugs@cs.uiuc.edu ##
8839 ## ----------------------------------- ##
8841 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
8844 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8845 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8846 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8847 echo $ECHO_N "(cached
) $ECHO_C" >&6
8849 eval "$as_ac_Header=\
$ac_header_preproc"
8851 ac_res=`eval echo '${'$as_ac_Header'}'`
8852 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8853 echo "${ECHO_T}$ac_res" >&6; }
8856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8857 cat >>confdefs.h <<_ACEOF
8858 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
8865 # Check whether --enable-ltdl-install was given.
8866 if test "${enable_ltdl_install+set}" = set; then
8867 enableval=$enable_ltdl_install;
8873 if test x"${enable_ltdl_install-no}" != xno; then
8875 INSTALL_LTDL_FALSE='#'
8877 INSTALL_LTDL_TRUE='#'
8883 if test x"${enable_ltdl_convenience-no}" != xno; then
8884 CONVENIENCE_LTDL_TRUE=
8885 CONVENIENCE_LTDL_FALSE='#'
8887 CONVENIENCE_LTDL_TRUE='#'
8888 CONVENIENCE_LTDL_FALSE=
8892 { echo "$as_me:$LINENO: checking dynamic linker characteristics
" >&5
8893 echo $ECHO_N "checking dynamic linker characteristics...
$ECHO_C" >&6; }
8895 libname_spec='lib$name'
8903 shlibpath_overrides_runpath=unknown
8905 dynamic_linker="$host_os ld.so
"
8906 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
"
8907 if test "$GCC" = yes; then
8908 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
8909 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8910 # if the path contains ";" then we assume it to be the separator
8911 # otherwise default to the standard path separator (i.e. ":") - it is
8912 # assumed that no part of a normal pathname contains ";" but that should
8913 # okay in the real world where ";" in dirpaths is itself problematic.
8914 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8916 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
8919 sys_lib_search_path_spec="/lib
/usr
/lib
/usr
/local
/lib
"
8921 need_lib_prefix=unknown
8922 hardcode_into_libs=no
8924 # when you set need_version to no, make sure it does not cause -set_version
8925 # flags to be left without arguments
8926 need_version=unknown
8931 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8932 shlibpath_var=LIBPATH
8934 # AIX 3 has no versioning support, so we append a major version to the name.
8935 soname_spec='${libname}${release}${shared_ext}$major'
8942 hardcode_into_libs=yes
8943 if test "$host_cpu" = ia64; then
8944 # AIX 5 supports IA64
8945 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8946 shlibpath_var=LD_LIBRARY_PATH
8948 # With GCC up to 2.95.x, collect2 would create an import file
8949 # for dependence libraries. The import file would start with
8950 # the line `#! .'. This would cause the generated library to
8951 # depend on `.', always an invalid library. This was fixed in
8952 # development snapshots of GCC prior to 3.0.
8954 aix4 | aix4.[01] | aix4.[01].*)
8955 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8957 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8964 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8965 # soname into executable. Probably we can add versioning support to
8966 # collect2, so additional links can be useful in future.
8967 if test "$aix_use_runtimelinking" = yes; then
8968 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8969 # instead of lib<name>.a to let people know that these are not
8970 # typical AIX shared libraries.
8971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8973 # We preserve .a as extension for shared libraries through AIX4.2
8974 # and later when we are not doing run time linking.
8975 library_names_spec='${libname}${release}.a $libname.a'
8976 soname_spec='${libname}${release}${shared_ext}$major'
8978 shlibpath_var=LIBPATH
8983 library_names_spec='$libname.ixlibrary $libname.a'
8984 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8985 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'
8989 library_names_spec='${libname}${shared_ext}'
8990 dynamic_linker="$host_os ld.so
"
8991 shlibpath_var=LIBRARY_PATH
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig $libdir'
9000 shlibpath_var=LD_LIBRARY_PATH
9001 sys_lib_search_path_spec="/shlib
/usr
/lib
/usr
/X11
/lib
/usr
/contrib
/lib
/lib
/usr
/local
/lib
"
9002 sys_lib_dlsearch_path_spec="/shlib
/usr
/lib
/usr
/local
/lib
"
9003 # the default ld.so.conf also contains /usr/contrib/lib and
9004 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9005 # libtool to hard-code these into programs
9008 cygwin* | mingw* | pw32*)
9009 version_type=windows
9014 case $GCC,$host_os in
9015 yes,cygwin* | yes,mingw* | yes,pw32*)
9016 library_names_spec='$libname.dll.a'
9017 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9018 postinstall_cmds='base_file=`basename \${file}`~
9019 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9020 dldir=$destdir/`dirname \$dlpath`~
9021 test -d \$dldir || mkdir -p \$dldir~
9022 $install_prog $dir/$dlname \$dldir/$dlname~
9023 chmod a+x \$dldir/$dlname'
9024 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9025 dlpath=$dir/\$dldll~
9027 shlibpath_overrides_runpath=yes
9031 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9032 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9033 sys_lib_search_path_spec="/usr
/lib
/lib
/w32api
/lib
/usr
/local
/lib
"
9036 # MinGW DLLs use traditional 'lib' prefix
9037 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9038 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
9039 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9040 # It is most probably a Windows format PATH printed by
9041 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9042 # path with ; separators, and with drive letters. We can handle the
9043 # drive letters (cygwin fileutils understands them), so leave them,
9044 # especially as we might pass files found there to a mingw objdump,
9045 # which wouldn't understand a cygwinified path. Ahh.
9046 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9048 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
9052 # pw32 DLLs use 'pw' prefix rather than 'lib'
9053 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9059 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9062 dynamic_linker='Win32 ld.exe'
9063 # FIXME: first we should search . and the directory the executable is in
9067 darwin* | rhapsody*)
9068 dynamic_linker="$host_os dyld
"
9072 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9073 soname_spec='${libname}${release}${major}$shared_ext'
9074 shlibpath_overrides_runpath=yes
9075 shlibpath_var=DYLD_LIBRARY_PATH
9076 shrext_cmds='.dylib'
9077 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9078 if test "$GCC" = yes; then
9079 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
"`
9081 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9083 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9091 soname_spec='${libname}${release}${shared_ext}$major'
9092 shlibpath_var=LD_LIBRARY_PATH
9103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9104 soname_spec='${libname}${release}${shared_ext}$major'
9105 shlibpath_var=LD_LIBRARY_PATH
9106 shlibpath_overrides_runpath=no
9107 hardcode_into_libs=yes
9108 dynamic_linker='GNU ld.so'
9111 freebsd* | dragonfly*)
9112 # DragonFly does not have aout. When/if they implement a new
9113 # versioning mechanism, adjust this.
9114 if test -x /usr/bin/objformat; then
9115 objformat=`/usr/bin/objformat`
9118 freebsd[123]*) objformat=aout ;;
9122 version_type=freebsd-$objformat
9123 case $version_type in
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9134 shlibpath_var=LD_LIBRARY_PATH
9137 shlibpath_overrides_runpath=yes
9139 freebsd3.[01]* | freebsdelf3.[01]*)
9140 shlibpath_overrides_runpath=yes
9141 hardcode_into_libs=yes
9143 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9144 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9145 shlibpath_overrides_runpath=no
9146 hardcode_into_libs=yes
9148 freebsd*) # from 4.6 on
9149 shlibpath_overrides_runpath=yes
9150 hardcode_into_libs=yes
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9160 soname_spec='${libname}${release}${shared_ext}$major'
9161 shlibpath_var=LD_LIBRARY_PATH
9162 hardcode_into_libs=yes
9165 hpux9* | hpux10* | hpux11*)
9166 # Give a soname corresponding to the major version so that dld.sl refuses to
9167 # link against other versions.
9174 hardcode_into_libs=yes
9175 dynamic_linker="$host_os dld.so
"
9176 shlibpath_var=LD_LIBRARY_PATH
9177 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179 soname_spec='${libname}${release}${shared_ext}$major'
9180 if test "X
$HPUX_IA64_MODE" = X32; then
9181 sys_lib_search_path_spec="/usr
/lib
/hpux32
/usr
/local
/lib
/hpux32
/usr
/local
/lib
"
9183 sys_lib_search_path_spec="/usr
/lib
/hpux64
/usr
/local
/lib
/hpux64
"
9185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9189 hardcode_into_libs=yes
9190 dynamic_linker="$host_os dld.sl
"
9191 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9192 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9194 soname_spec='${libname}${release}${shared_ext}$major'
9195 sys_lib_search_path_spec="/usr
/lib
/pa20_64
/usr
/ccs
/lib
/pa20_64
"
9196 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9200 dynamic_linker="$host_os dld.sl
"
9201 shlibpath_var=SHLIB_PATH
9202 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9204 soname_spec='${libname}${release}${shared_ext}$major'
9207 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9208 postinstall_cmds='chmod 555 $lib'
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9216 soname_spec='${libname}${release}${shared_ext}$major'
9217 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9218 shlibpath_var=LD_LIBRARY_PATH
9219 shlibpath_overrides_runpath=no
9220 hardcode_into_libs=yes
9223 irix5* | irix6* | nonstopux*)
9225 nonstopux*) version_type=nonstopux ;;
9227 if test "$lt_cv_prog_gnu_ld" = yes; then
9235 soname_spec='${libname}${release}${shared_ext}$major'
9236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9238 irix5* | nonstopux*)
9242 case $LD in # libtool.m4 will add one of these switches to LD
9243 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9244 libsuff= shlibsuff= libmagic=32-bit;;
9245 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9246 libsuff=32 shlibsuff=N32 libmagic=N32;;
9247 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9248 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9249 *) libsuff= shlibsuff= libmagic=never-match;;
9253 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9254 shlibpath_overrides_runpath=no
9255 sys_lib_search_path_spec="/usr
/lib
${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9256 sys_lib_dlsearch_path_spec="/usr
/lib
${libsuff} /lib
${libsuff}"
9257 hardcode_into_libs=yes
9260 # No shared lib support for Linux oldld, aout, or coff.
9261 linux*oldld* | linux*aout* | linux*coff*)
9265 # This must be Linux ELF.
9270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9271 soname_spec='${libname}${release}${shared_ext}$major'
9272 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -n $libdir'
9273 shlibpath_var=LD_LIBRARY_PATH
9274 shlibpath_overrides_runpath=no
9275 # This implies no fast_install, which is unacceptable.
9276 # Some rework will be needed to allow for fast_install
9277 # before this can be enabled.
9278 hardcode_into_libs=yes
9280 # Append ld.so.conf contents to the search path
9281 if test -f /etc/ld.so.conf; then
9282 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' ' '`
9283 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
$lt_ld_extra"
9286 # We used to test for /lib/ld.so.1 and disable shared libraries on
9287 # powerpc, because MkLinux only supported shared libraries with the
9288 # GNU dynamic linker. Since this was broken with cross compilers,
9289 # most powerpc-linux boxes support dynamic linking these days and
9290 # people can always --disable-shared, the test was removed, and we
9291 # assume the GNU/Linux dynamic linker is in use.
9292 dynamic_linker='GNU/Linux ld.so'
9299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9300 soname_spec='${libname}${release}${shared_ext}$major'
9301 shlibpath_var=LD_LIBRARY_PATH
9302 shlibpath_overrides_runpath=no
9303 hardcode_into_libs=yes
9304 dynamic_linker='GNU ld.so'
9311 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9313 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
9314 dynamic_linker='NetBSD (a.out) ld.so'
9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9317 soname_spec='${libname}${release}${shared_ext}$major'
9318 dynamic_linker='NetBSD ld.elf_so'
9320 shlibpath_var=LD_LIBRARY_PATH
9321 shlibpath_overrides_runpath=yes
9322 hardcode_into_libs=yes
9327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9328 shlibpath_var=LD_LIBRARY_PATH
9329 shlibpath_overrides_runpath=yes
9336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9337 soname_spec='${libname}${release}${shared_ext}$major'
9338 shlibpath_var=LD_LIBRARY_PATH
9339 shlibpath_overrides_runpath=yes
9344 sys_lib_dlsearch_path_spec="/usr
/lib
"
9346 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9348 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9349 *) need_version=no ;;
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9352 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
9353 shlibpath_var=LD_LIBRARY_PATH
9354 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
9356 openbsd2.[89] | openbsd2.[89].*)
9357 shlibpath_overrides_runpath=no
9360 shlibpath_overrides_runpath=yes
9364 shlibpath_overrides_runpath=yes
9369 libname_spec='$name'
9372 library_names_spec='$libname${shared_ext} $libname.a'
9373 dynamic_linker='OS/2 ld.exe'
9374 shlibpath_var=LIBPATH
9377 osf3* | osf4* | osf5*)
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383 shlibpath_var=LD_LIBRARY_PATH
9384 sys_lib_search_path_spec="/usr
/shlib
/usr
/ccs
/lib
/usr
/lib
/cmplrs
/cc
/usr
/lib
/usr
/local
/lib
/var
/shlib
"
9385 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9393 soname_spec='${libname}${release}${shared_ext}$major'
9394 shlibpath_var=LD_LIBRARY_PATH
9395 shlibpath_overrides_runpath=yes
9396 hardcode_into_libs=yes
9397 # ldd complains unless libraries are executable
9398 postinstall_cmds='chmod +x $lib'
9403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9404 finish_cmds='PATH="\
$PATH:/usr
/etc
" ldconfig $libdir'
9405 shlibpath_var=LD_LIBRARY_PATH
9406 shlibpath_overrides_runpath=yes
9407 if test "$with_gnu_ld" = yes; then
9415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9416 soname_spec='${libname}${release}${shared_ext}$major'
9417 shlibpath_var=LD_LIBRARY_PATH
9418 case $host_vendor in
9420 shlibpath_overrides_runpath=no
9422 export_dynamic_flag_spec='${wl}-Blargedynsym'
9423 runpath_var=LD_RUN_PATH
9431 shlibpath_overrides_runpath=no
9432 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9438 if test -d /usr/nec ;then
9440 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9441 soname_spec='$libname${shared_ext}.$major'
9442 shlibpath_var=LD_LIBRARY_PATH
9446 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9447 version_type=freebsd-elf
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9451 soname_spec='${libname}${release}${shared_ext}$major'
9452 shlibpath_var=LD_LIBRARY_PATH
9453 hardcode_into_libs=yes
9454 if test "$with_gnu_ld" = yes; then
9455 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9456 shlibpath_overrides_runpath=no
9458 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9459 shlibpath_overrides_runpath=yes
9462 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib
"
9466 sys_lib_dlsearch_path_spec='/usr/lib'
9471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9472 soname_spec='${libname}${release}${shared_ext}$major'
9473 shlibpath_var=LD_LIBRARY_PATH
9480 { echo "$as_me:$LINENO: result
: $dynamic_linker" >&5
9481 echo "${ECHO_T}$dynamic_linker" >&6; }
9482 test "$dynamic_linker" = no && can_build_shared=no
9484 variables_saved_for_relink="PATH
$shlibpath_var $runpath_var"
9485 if test "$GCC" = yes; then
9486 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH
"
9490 { echo "$as_me:$LINENO: checking
which extension is used
for loadable modules
" >&5
9491 echo $ECHO_N "checking
which extension is used
for loadable modules...
$ECHO_C" >&6; }
9492 if test "${libltdl_cv_shlibext+set}" = set; then
9493 echo $ECHO_N "(cached
) $ECHO_C" >&6
9497 eval libltdl_cv_shlibext=$shrext_cmds
9500 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibext" >&5
9501 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9502 if test -n "$libltdl_cv_shlibext"; then
9504 cat >>confdefs.h <<_ACEOF
9505 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9511 { echo "$as_me:$LINENO: checking
which variable specifies run-time library path
" >&5
9512 echo $ECHO_N "checking
which variable specifies run-time library path...
$ECHO_C" >&6; }
9513 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9514 echo $ECHO_N "(cached
) $ECHO_C" >&6
9516 libltdl_cv_shlibpath_var="$shlibpath_var"
9518 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibpath_var" >&5
9519 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9520 if test -n "$libltdl_cv_shlibpath_var"; then
9522 cat >>confdefs.h <<_ACEOF
9523 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9529 { echo "$as_me:$LINENO: checking
for the default library search path
" >&5
9530 echo $ECHO_N "checking
for the default library search path...
$ECHO_C" >&6; }
9531 if test "${libltdl_cv_sys_search_path+set}" = set; then
9532 echo $ECHO_N "(cached
) $ECHO_C" >&6
9534 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9536 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_search_path" >&5
9537 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9538 if test -n "$libltdl_cv_sys_search_path"; then
9540 for dir in $libltdl_cv_sys_search_path; do
9541 if test -z "$sys_search_path"; then
9542 sys_search_path="$dir"
9544 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9548 cat >>confdefs.h <<_ACEOF
9549 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9554 { echo "$as_me:$LINENO: checking
for objdir
" >&5
9555 echo $ECHO_N "checking
for objdir...
$ECHO_C" >&6; }
9556 if test "${libltdl_cv_objdir+set}" = set; then
9557 echo $ECHO_N "(cached
) $ECHO_C" >&6
9559 libltdl_cv_objdir="$objdir"
9560 if test -n "$objdir"; then
9563 rm -f .libs 2>/dev/null
9564 mkdir .libs 2>/dev/null
9565 if test -d .libs; then
9566 libltdl_cv_objdir=.libs
9568 # MS-DOS does not allow filenames that begin with a dot.
9569 libltdl_cv_objdir=_libs
9571 rmdir .libs 2>/dev/null
9575 { echo "$as_me:$LINENO: result
: $libltdl_cv_objdir" >&5
9576 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9578 cat >>confdefs.h <<_ACEOF
9579 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9587 # Check for command to grab the raw symbol name followed by C symbol from nm.
9588 { echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
9589 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6; }
9590 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9591 echo $ECHO_N "(cached
) $ECHO_C" >&6
9594 # These are sane defaults that work on at least a few old systems.
9595 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9597 # Character class describing NM global symbol codes.
9598 symcode='[BCDEGRST]'
9600 # Regexp to match symbols that can be accessed directly from C.
9601 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9603 # Transform an extracted symbol line into a proper C declaration
9604 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9606 # Transform an extracted symbol line into symbol name and symbol address
9607 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'"
9609 # Define system-specific variables.
9614 cygwin* | mingw* | pw32*)
9615 symcode='[ABCDGISTW]'
9617 hpux*) # Its linker distinguishes data from code symbols
9618 if test "$host_cpu" = ia64; then
9619 symcode='[ABCDEGRST]'
9621 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9622 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'"
9625 if test "$host_cpu" = ia64; then
9626 symcode='[ABCDGIRSTW]'
9627 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9628 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'"
9632 symcode='[BCDEGRST]'
9635 symcode='[BCDEGQRST]'
9646 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9654 # Handle CRLF in mingw tool chain
9658 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9662 # If we're using GNU nm, then use its standard symbol codes.
9663 case `$NM -V 2>&1` in
9664 *GNU* | *'with BFD'*)
9665 symcode='[ABCDGIRSTW]' ;;
9668 # Try without a prefix undercore, then with it.
9669 for ac_symprfx in "" "_
"; do
9671 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9672 symxfrm="\\1 $ac_symprfx\\2 \\2"
9674 # Write the raw and C identifiers.
9675 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9677 # Check to see that the pipe works correctly.
9681 cat > conftest.$ac_ext <<EOF
9686 void nm_test_func(){}
9690 int main(){nm_test_var='a';nm_test_func();return(0);}
9693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9694 (eval $ac_compile) 2>&5
9696 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9697 (exit $ac_status); }; then
9698 # Now try to grab the symbols.
9700 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
9701 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9703 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9704 (exit $ac_status); } && test -s "$nlist"; then
9705 # Try sorting and uniquifying the output.
9706 if sort "$nlist" | uniq > "$nlist"T; then
9707 mv -f "$nlist"T "$nlist"
9712 # Make sure that we snagged all the symbols we need.
9713 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9714 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9715 cat <<EOF > conftest.$ac_ext
9721 # Now generate the symbol file.
9722 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9724 cat <<EOF >> conftest.$ac_ext
9725 #if defined (__STDC__) && __STDC__
9726 # define lt_ptr_t void *
9728 # define lt_ptr_t char *
9732 /* The mapping between symbol names and symbols. */
9737 lt_preloaded_symbols[] =
9740 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (lt_ptr_t
) \
&\
2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9741 cat <<\EOF >> conftest.$ac_ext
9749 # Now try linking the two files.
9750 mv conftest.$ac_objext conftstm.$ac_objext
9751 lt_save_LIBS="$LIBS"
9752 lt_save_CFLAGS="$CFLAGS"
9753 LIBS="conftstm.
$ac_objext"
9754 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756 (eval $ac_link) 2>&5
9758 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9759 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9762 LIBS="$lt_save_LIBS"
9763 CFLAGS="$lt_save_CFLAGS"
9765 echo "cannot
find nm_test_func
in $nlist" >&5
9768 echo "cannot
find nm_test_var
in $nlist" >&5
9771 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
9774 echo "$progname: failed program was
:" >&5
9775 cat conftest.$ac_ext >&5
9777 rm -f conftest* conftst*
9779 # Do not use the global_symbol_pipe unless it works.
9780 if test "$pipe_works" = yes; then
9783 lt_cv_sys_global_symbol_pipe=
9789 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9790 lt_cv_sys_global_symbol_to_cdecl=
9792 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9793 { echo "$as_me:$LINENO: result
: failed
" >&5
9794 echo "${ECHO_T}failed
" >&6; }
9796 { echo "$as_me:$LINENO: result
: ok
" >&5
9797 echo "${ECHO_T}ok
" >&6; }
9801 { echo "$as_me:$LINENO: checking whether libtool supports
-dlopen/-dlpreopen" >&5
9802 echo $ECHO_N "checking whether libtool supports
-dlopen/-dlpreopen...
$ECHO_C" >&6; }
9803 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9804 echo $ECHO_N "(cached
) $ECHO_C" >&6
9806 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9807 libltdl_cv_preloaded_symbols=yes
9809 libltdl_cv_preloaded_symbols=no
9813 { echo "$as_me:$LINENO: result
: $libltdl_cv_preloaded_symbols" >&5
9814 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9815 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9817 cat >>confdefs.h <<\_ACEOF
9818 #define HAVE_PRELOADED_SYMBOLS 1
9826 ac_cpp='$CPP $CPPFLAGS'
9827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9832 { echo "$as_me:$LINENO: checking
for shl_load
" >&5
9833 echo $ECHO_N "checking
for shl_load...
$ECHO_C" >&6; }
9834 if test "${ac_cv_func_shl_load+set}" = set; then
9835 echo $ECHO_N "(cached
) $ECHO_C" >&6
9837 cat >conftest.$ac_ext <<_ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h. */
9843 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9845 #define shl_load innocuous_shl_load
9847 /* System header to define __stub macros and hopefully few prototypes,
9848 which can conflict with char shl_load (); below.
9849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9850 <limits.h> exists even on freestanding compilers. */
9853 # include <limits.h>
9855 # include <assert.h>
9860 /* Override any GCC internal prototype to avoid an error.
9861 Use char because int might match the return type of a GCC
9862 builtin and then its argument prototype would still apply. */
9867 /* The GNU C library defines this for functions which it implements
9868 to always fail with ENOSYS. Some functions are actually named
9869 something starting with __ and the normal name is an alias. */
9870 #if defined __stub_shl_load || defined __stub___shl_load
9882 rm -f conftest.$ac_objext conftest$ac_exeext
9883 if { (ac_try="$ac_link"
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9888 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_link") 2>conftest.er1
9891 grep -v '^ *+' conftest.er1 >conftest.err
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9895 (exit $ac_status); } &&
9896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9897 { (case "(($ac_try" in
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9901 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_try") 2>&5
9904 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (case "(($ac_try" in
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9911 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_try") 2>&5
9914 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9915 (exit $ac_status); }; }; then
9916 ac_cv_func_shl_load=yes
9918 echo "$as_me: failed program was
:" >&5
9919 sed 's/^/| /' conftest.$ac_ext >&5
9921 ac_cv_func_shl_load=no
9924 rm -f core conftest.err conftest.$ac_objext \
9925 conftest$ac_exeext conftest.$ac_ext
9927 { echo "$as_me:$LINENO: result
: $ac_cv_func_shl_load" >&5
9928 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9929 if test $ac_cv_func_shl_load = yes; then
9931 cat >>confdefs.h <<\_ACEOF
9932 #define HAVE_SHL_LOAD 1
9936 { echo "$as_me:$LINENO: checking
for shl_load
in -ldld" >&5
9937 echo $ECHO_N "checking
for shl_load
in -ldld...
$ECHO_C" >&6; }
9938 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9939 echo $ECHO_N "(cached
) $ECHO_C" >&6
9941 ac_check_lib_save_LIBS=$LIBS
9943 cat >conftest.$ac_ext <<_ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h. */
9950 /* Override any GCC internal prototype to avoid an error.
9951 Use char because int might match the return type of a GCC
9952 builtin and then its argument prototype would still apply. */
9965 rm -f conftest.$ac_objext conftest$ac_exeext
9966 if { (ac_try="$ac_link"
9968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969 *) ac_try_echo=$ac_try;;
9971 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9972 (eval "$ac_link") 2>conftest.er1
9974 grep -v '^ *+' conftest.er1 >conftest.err
9976 cat conftest.err >&5
9977 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9978 (exit $ac_status); } &&
9979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9980 { (case "(($ac_try" in
9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982 *) ac_try_echo=$ac_try;;
9984 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9985 (eval "$ac_try") 2>&5
9987 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9988 (exit $ac_status); }; } &&
9989 { ac_try='test -s conftest$ac_exeext'
9990 { (case "(($ac_try" in
9991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9992 *) ac_try_echo=$ac_try;;
9994 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9995 (eval "$ac_try") 2>&5
9997 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9998 (exit $ac_status); }; }; then
9999 ac_cv_lib_dld_shl_load=yes
10001 echo "$as_me: failed program was
:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10004 ac_cv_lib_dld_shl_load=no
10007 rm -f core conftest.err conftest.$ac_objext \
10008 conftest$ac_exeext conftest.$ac_ext
10009 LIBS=$ac_check_lib_save_LIBS
10011 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_shl_load" >&5
10012 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10013 if test $ac_cv_lib_dld_shl_load = yes; then
10015 cat >>confdefs.h <<\_ACEOF
10016 #define HAVE_SHL_LOAD 1
10019 LIBADD_DL="$LIBADD_DL -ldld"
10021 { echo "$as_me:$LINENO: checking
for dlopen
in -ldl" >&5
10022 echo $ECHO_N "checking
for dlopen
in -ldl...
$ECHO_C" >&6; }
10023 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10024 echo $ECHO_N "(cached
) $ECHO_C" >&6
10026 ac_check_lib_save_LIBS=$LIBS
10028 cat >conftest.$ac_ext <<_ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10035 /* Override any GCC internal prototype to avoid an error.
10036 Use char because int might match the return type of a GCC
10037 builtin and then its argument prototype would still apply. */
10050 rm -f conftest.$ac_objext conftest$ac_exeext
10051 if { (ac_try="$ac_link"
10052 case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10056 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_link") 2>conftest.er1
10059 grep -v '^ *+' conftest.er1 >conftest.err
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10063 (exit $ac_status); } &&
10064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10065 { (case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10069 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10070 (eval "$ac_try") 2>&5
10072 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10073 (exit $ac_status); }; } &&
10074 { ac_try='test -s conftest$ac_exeext'
10075 { (case "(($ac_try" in
10076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10077 *) ac_try_echo=$ac_try;;
10079 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10080 (eval "$ac_try") 2>&5
10082 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10083 (exit $ac_status); }; }; then
10084 ac_cv_lib_dl_dlopen=yes
10086 echo "$as_me: failed program was
:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10089 ac_cv_lib_dl_dlopen=no
10092 rm -f core conftest.err conftest.$ac_objext \
10093 conftest$ac_exeext conftest.$ac_ext
10094 LIBS=$ac_check_lib_save_LIBS
10096 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dl_dlopen" >&5
10097 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10098 if test $ac_cv_lib_dl_dlopen = yes; then
10100 cat >>confdefs.h <<\_ACEOF
10101 #define HAVE_LIBDL 1
10104 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10106 cat >conftest.$ac_ext <<_ACEOF
10109 cat confdefs.h >>conftest.$ac_ext
10110 cat >>conftest.$ac_ext <<_ACEOF
10111 /* end confdefs.h. */
10113 # include <dlfcn.h>
10124 rm -f conftest.$ac_objext conftest$ac_exeext
10125 if { (ac_try="$ac_link"
10126 case "(($ac_try" in
10127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128 *) ac_try_echo=$ac_try;;
10130 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10131 (eval "$ac_link") 2>conftest.er1
10133 grep -v '^ *+' conftest.er1 >conftest.err
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10137 (exit $ac_status); } &&
10138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10139 { (case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10143 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10144 (eval "$ac_try") 2>&5
10146 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10147 (exit $ac_status); }; } &&
10148 { ac_try='test -s conftest$ac_exeext'
10149 { (case "(($ac_try" in
10150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151 *) ac_try_echo=$ac_try;;
10153 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10154 (eval "$ac_try") 2>&5
10156 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10157 (exit $ac_status); }; }; then
10159 cat >>confdefs.h <<\_ACEOF
10160 #define HAVE_LIBDL 1
10162 libltdl_cv_func_dlopen="yes"
10164 echo "$as_me: failed program was
:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10167 { echo "$as_me:$LINENO: checking
for dlopen
in -lsvld" >&5
10168 echo $ECHO_N "checking
for dlopen
in -lsvld...
$ECHO_C" >&6; }
10169 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10170 echo $ECHO_N "(cached
) $ECHO_C" >&6
10172 ac_check_lib_save_LIBS=$LIBS
10173 LIBS="-lsvld $LIBS"
10174 cat >conftest.$ac_ext <<_ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h. */
10181 /* Override any GCC internal prototype to avoid an error.
10182 Use char because int might match the return type of a GCC
10183 builtin and then its argument prototype would still apply. */
10196 rm -f conftest.$ac_objext conftest$ac_exeext
10197 if { (ac_try="$ac_link"
10198 case "(($ac_try" in
10199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200 *) ac_try_echo=$ac_try;;
10202 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10203 (eval "$ac_link") 2>conftest.er1
10205 grep -v '^ *+' conftest.er1 >conftest.err
10207 cat conftest.err >&5
10208 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10209 (exit $ac_status); } &&
10210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10211 { (case "(($ac_try" in
10212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10213 *) ac_try_echo=$ac_try;;
10215 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10216 (eval "$ac_try") 2>&5
10218 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10219 (exit $ac_status); }; } &&
10220 { ac_try='test -s conftest$ac_exeext'
10221 { (case "(($ac_try" in
10222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10223 *) ac_try_echo=$ac_try;;
10225 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10226 (eval "$ac_try") 2>&5
10228 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10229 (exit $ac_status); }; }; then
10230 ac_cv_lib_svld_dlopen=yes
10232 echo "$as_me: failed program was
:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10235 ac_cv_lib_svld_dlopen=no
10238 rm -f core conftest.err conftest.$ac_objext \
10239 conftest$ac_exeext conftest.$ac_ext
10240 LIBS=$ac_check_lib_save_LIBS
10242 { echo "$as_me:$LINENO: result
: $ac_cv_lib_svld_dlopen" >&5
10243 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10244 if test $ac_cv_lib_svld_dlopen = yes; then
10246 cat >>confdefs.h <<\_ACEOF
10247 #define HAVE_LIBDL 1
10250 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10252 { echo "$as_me:$LINENO: checking
for dld_link
in -ldld" >&5
10253 echo $ECHO_N "checking
for dld_link
in -ldld...
$ECHO_C" >&6; }
10254 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10255 echo $ECHO_N "(cached
) $ECHO_C" >&6
10257 ac_check_lib_save_LIBS=$LIBS
10259 cat >conftest.$ac_ext <<_ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h. */
10266 /* Override any GCC internal prototype to avoid an error.
10267 Use char because int might match the return type of a GCC
10268 builtin and then its argument prototype would still apply. */
10276 return dld_link ();
10281 rm -f conftest.$ac_objext conftest$ac_exeext
10282 if { (ac_try="$ac_link"
10283 case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10287 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_link") 2>conftest.er1
10290 grep -v '^ *+' conftest.er1 >conftest.err
10292 cat conftest.err >&5
10293 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10294 (exit $ac_status); } &&
10295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10296 { (case "(($ac_try" in
10297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298 *) ac_try_echo=$ac_try;;
10300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10301 (eval "$ac_try") 2>&5
10303 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10304 (exit $ac_status); }; } &&
10305 { ac_try='test -s conftest$ac_exeext'
10306 { (case "(($ac_try" in
10307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308 *) ac_try_echo=$ac_try;;
10310 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10311 (eval "$ac_try") 2>&5
10313 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10314 (exit $ac_status); }; }; then
10315 ac_cv_lib_dld_dld_link=yes
10317 echo "$as_me: failed program was
:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10320 ac_cv_lib_dld_dld_link=no
10323 rm -f core conftest.err conftest.$ac_objext \
10324 conftest$ac_exeext conftest.$ac_ext
10325 LIBS=$ac_check_lib_save_LIBS
10327 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_dld_link" >&5
10328 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10329 if test $ac_cv_lib_dld_dld_link = yes; then
10331 cat >>confdefs.h <<\_ACEOF
10335 LIBADD_DL="$LIBADD_DL -ldld"
10337 { echo "$as_me:$LINENO: checking
for _dyld_func_lookup
" >&5
10338 echo $ECHO_N "checking
for _dyld_func_lookup...
$ECHO_C" >&6; }
10339 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10340 echo $ECHO_N "(cached
) $ECHO_C" >&6
10342 cat >conftest.$ac_ext <<_ACEOF
10345 cat confdefs.h >>conftest.$ac_ext
10346 cat >>conftest.$ac_ext <<_ACEOF
10347 /* end confdefs.h. */
10348 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10350 #define _dyld_func_lookup innocuous__dyld_func_lookup
10352 /* System header to define __stub macros and hopefully few prototypes,
10353 which can conflict with char _dyld_func_lookup (); below.
10354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10355 <limits.h> exists even on freestanding compilers. */
10358 # include <limits.h>
10360 # include <assert.h>
10363 #undef _dyld_func_lookup
10365 /* Override any GCC internal prototype to avoid an error.
10366 Use char because int might match the return type of a GCC
10367 builtin and then its argument prototype would still apply. */
10371 char _dyld_func_lookup ();
10372 /* The GNU C library defines this for functions which it implements
10373 to always fail with ENOSYS. Some functions are actually named
10374 something starting with __ and the normal name is an alias. */
10375 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10382 return _dyld_func_lookup ();
10387 rm -f conftest.$ac_objext conftest$ac_exeext
10388 if { (ac_try="$ac_link"
10389 case "(($ac_try" in
10390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391 *) ac_try_echo=$ac_try;;
10393 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_link") 2>conftest.er1
10396 grep -v '^ *+' conftest.er1 >conftest.err
10398 cat conftest.err >&5
10399 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10400 (exit $ac_status); } &&
10401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10402 { (case "(($ac_try" in
10403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404 *) ac_try_echo=$ac_try;;
10406 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10407 (eval "$ac_try") 2>&5
10409 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10410 (exit $ac_status); }; } &&
10411 { ac_try='test -s conftest$ac_exeext'
10412 { (case "(($ac_try" in
10413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10414 *) ac_try_echo=$ac_try;;
10416 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10417 (eval "$ac_try") 2>&5
10419 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10420 (exit $ac_status); }; }; then
10421 ac_cv_func__dyld_func_lookup=yes
10423 echo "$as_me: failed program was
:" >&5
10424 sed 's/^/| /' conftest.$ac_ext >&5
10426 ac_cv_func__dyld_func_lookup=no
10429 rm -f core conftest.err conftest.$ac_objext \
10430 conftest$ac_exeext conftest.$ac_ext
10432 { echo "$as_me:$LINENO: result
: $ac_cv_func__dyld_func_lookup" >&5
10433 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10434 if test $ac_cv_func__dyld_func_lookup = yes; then
10436 cat >>confdefs.h <<\_ACEOF
10437 #define HAVE_DYLD 1
10451 rm -f core conftest.err conftest.$ac_objext \
10452 conftest$ac_exeext conftest.$ac_ext
10463 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10465 lt_save_LIBS="$LIBS"
10466 LIBS="$LIBS $LIBADD_DL"
10468 for ac_func in dlerror
10470 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10471 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
10472 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
10473 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10474 echo $ECHO_N "(cached
) $ECHO_C" >&6
10476 cat >conftest.$ac_ext <<_ACEOF
10479 cat confdefs.h >>conftest.$ac_ext
10480 cat >>conftest.$ac_ext <<_ACEOF
10481 /* end confdefs.h. */
10482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10484 #define $ac_func innocuous_$ac_func
10486 /* System header to define __stub macros and hopefully few prototypes,
10487 which can conflict with char $ac_func (); below.
10488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10489 <limits.h> exists even on freestanding compilers. */
10492 # include <limits.h>
10494 # include <assert.h>
10499 /* Override any GCC internal prototype to avoid an error.
10500 Use char because int might match the return type of a GCC
10501 builtin and then its argument prototype would still apply. */
10506 /* The GNU C library defines this for functions which it implements
10507 to always fail with ENOSYS. Some functions are actually named
10508 something starting with __ and the normal name is an alias. */
10509 #if defined __stub_$ac_func || defined __stub___$ac_func
10516 return $ac_func ();
10521 rm -f conftest.$ac_objext conftest$ac_exeext
10522 if { (ac_try="$ac_link"
10523 case "(($ac_try" in
10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525 *) ac_try_echo=$ac_try;;
10527 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10528 (eval "$ac_link") 2>conftest.er1
10530 grep -v '^ *+' conftest.er1 >conftest.err
10532 cat conftest.err >&5
10533 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10534 (exit $ac_status); } &&
10535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10536 { (case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10540 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_try") 2>&5
10543 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10544 (exit $ac_status); }; } &&
10545 { ac_try='test -s conftest$ac_exeext'
10546 { (case "(($ac_try" in
10547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548 *) ac_try_echo=$ac_try;;
10550 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10551 (eval "$ac_try") 2>&5
10553 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10554 (exit $ac_status); }; }; then
10555 eval "$as_ac_var=yes"
10557 echo "$as_me: failed program was
:" >&5
10558 sed 's/^/| /' conftest.$ac_ext >&5
10560 eval "$as_ac_var=no
"
10563 rm -f core conftest.err conftest.$ac_objext \
10564 conftest$ac_exeext conftest.$ac_ext
10566 ac_res=`eval echo '${'$as_ac_var'}'`
10567 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10568 echo "${ECHO_T}$ac_res" >&6; }
10569 if test `eval echo '${'$as_ac_var'}'` = yes; then
10570 cat >>confdefs.h <<_ACEOF
10571 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10577 LIBS="$lt_save_LIBS"
10580 ac_cpp='$CPP $CPPFLAGS'
10581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10587 { echo "$as_me:$LINENO: checking
for _ prefix
in compiled symbols
" >&5
10588 echo $ECHO_N "checking
for _ prefix
in compiled symbols...
$ECHO_C" >&6; }
10589 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10590 echo $ECHO_N "(cached
) $ECHO_C" >&6
10592 ac_cv_sys_symbol_underscore=no
10593 cat > conftest.$ac_ext <<EOF
10594 void nm_test_func(){}
10595 int main(){nm_test_func;return 0;}
10597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10598 (eval $ac_compile) 2>&5
10600 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10601 (exit $ac_status); }; then
10602 # Now try to grab the symbols.
10603 ac_nlist=conftest.nm
10604 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist\"") >&5
10605 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10608 (exit $ac_status); } && test -s "$ac_nlist"; then
10609 # See whether the symbols have a leading underscore.
10610 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10611 ac_cv_sys_symbol_underscore=yes
10613 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10616 echo "configure
: cannot
find nm_test_func
in $ac_nlist" >&5
10620 echo "configure
: cannot run
$lt_cv_sys_global_symbol_pipe" >&5
10623 echo "configure
: failed program was
:" >&5
10629 { echo "$as_me:$LINENO: result
: $ac_cv_sys_symbol_underscore" >&5
10630 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10633 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10634 if test x"$libltdl_cv_func_dlopen" = xyes ||
10635 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10636 { echo "$as_me:$LINENO: checking whether we have to add an underscore
for dlsym
" >&5
10637 echo $ECHO_N "checking whether we have to add an underscore
for dlsym...
$ECHO_C" >&6; }
10638 if test "${libltdl_cv_need_uscore+set}" = set; then
10639 echo $ECHO_N "(cached
) $ECHO_C" >&6
10641 libltdl_cv_need_uscore=unknown
10643 LIBS="$LIBS $LIBADD_DL"
10644 if test "$cross_compiling" = yes; then :
10645 libltdl_cv_need_uscore=cross
10647 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10648 lt_status=$lt_dlunknown
10649 cat > conftest.$ac_ext <<EOF
10650 #line 10650 "configure
"
10651 #include "confdefs.h
"
10660 # define LT_DLGLOBAL RTLD_GLOBAL
10663 # define LT_DLGLOBAL DL_GLOBAL
10665 # define LT_DLGLOBAL 0
10669 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10670 find out it does not work in some platform. */
10671 #ifndef LT_DLLAZY_OR_NOW
10673 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10676 # define LT_DLLAZY_OR_NOW DL_LAZY
10679 # define LT_DLLAZY_OR_NOW RTLD_NOW
10682 # define LT_DLLAZY_OR_NOW DL_NOW
10684 # define LT_DLLAZY_OR_NOW 0
10692 extern "C
" void exit (int);
10695 void fnord() { int i=42;}
10698 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10699 int status = $lt_dlunknown;
10703 if (dlsym (self,"fnord
")) status = $lt_dlno_uscore;
10704 else if (dlsym( self,"_fnord
")) status = $lt_dlneed_uscore;
10705 /* dlclose (self); */
10713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10714 (eval $ac_link) 2>&5
10716 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10717 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10718 (./conftest; exit; ) >&5 2>/dev/null
10720 case x$lt_status in
10721 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10722 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10723 x$lt_dlunknown|x*) ;;
10726 # compilation failed
10735 { echo "$as_me:$LINENO: result
: $libltdl_cv_need_uscore" >&5
10736 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10740 if test x"$libltdl_cv_need_uscore" = xyes; then
10742 cat >>confdefs.h <<\_ACEOF
10743 #define NEED_USCORE 1
10749 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen
" >&5
10750 echo $ECHO_N "checking whether deplibs are loaded by dlopen...
$ECHO_C" >&6; }
10751 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10752 echo $ECHO_N "(cached
) $ECHO_C" >&6
10754 # PORTME does your system automatically load deplibs for dlopen?
10755 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10756 # For now, we just catch OSes we know something about -- in the
10757 # future, we'll try test this programmatically.
10758 libltdl_cv_sys_dlopen_deplibs=unknown
10760 aix3*|aix4.1.*|aix4.2.*)
10761 # Unknown whether this is true for these versions of AIX, but
10762 # we want this `case' here to explicitly catch those versions.
10763 libltdl_cv_sys_dlopen_deplibs=unknown
10766 libltdl_cv_sys_dlopen_deplibs=yes
10769 # Assuming the user has installed a libdl from somewhere, this is true
10770 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10771 libltdl_cv_sys_dlopen_deplibs=yes
10773 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10774 # GNU and its variants, using gnu ld.so (Glibc)
10775 libltdl_cv_sys_dlopen_deplibs=yes
10778 libltdl_cv_sys_dlopen_deplibs=yes
10781 libltdl_cv_sys_dlopen_deplibs=yes
10783 irix[12345]*|irix6.[01]*)
10784 # Catch all versions of IRIX before 6.2, and indicate that we don't
10785 # know how it worked for any of those versions.
10786 libltdl_cv_sys_dlopen_deplibs=unknown
10789 # The case above catches anything before 6.2, and it's known that
10790 # at 6.2 and later dlopen does load deplibs.
10791 libltdl_cv_sys_dlopen_deplibs=yes
10794 libltdl_cv_sys_dlopen_deplibs=yes
10797 libltdl_cv_sys_dlopen_deplibs=yes
10800 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10801 # it did *not* use an RPATH in a shared library to find objects the
10802 # library depends on, so we explictly say `no'.
10803 libltdl_cv_sys_dlopen_deplibs=no
10805 osf5.0|osf5.0a|osf5.1)
10806 # dlopen *does* load deplibs and with the right loader patch applied
10807 # it even uses RPATH in a shared library to search for shared objects
10808 # that the library depends on, but there's no easy way to know if that
10809 # patch is installed. Since this is the case, all we can really
10810 # say is unknown -- it depends on the patch being installed. If
10811 # it is, this changes to `yes'. Without it, it would be `no'.
10812 libltdl_cv_sys_dlopen_deplibs=unknown
10815 # the two cases above should catch all versions of osf <= 5.1. Read
10816 # the comments above for what we know about them.
10817 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10818 # is used to find them so we can finally say `yes'.
10819 libltdl_cv_sys_dlopen_deplibs=yes
10822 libltdl_cv_sys_dlopen_deplibs=yes
10824 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10825 libltdl_cv_sys_dlopen_deplibs=yes
10830 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_dlopen_deplibs" >&5
10831 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10832 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10834 cat >>confdefs.h <<\_ACEOF
10835 #define LTDL_DLOPEN_DEPLIBS 1
10841 for ac_header in argz.h
10843 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10844 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10845 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10846 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10847 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10848 echo $ECHO_N "(cached
) $ECHO_C" >&6
10850 ac_res=`eval echo '${'$as_ac_Header'}'`
10851 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10852 echo "${ECHO_T}$ac_res" >&6; }
10854 # Is the header compilable?
10855 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
10856 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
10857 cat >conftest.$ac_ext <<_ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10863 $ac_includes_default
10864 #include <$ac_header>
10866 rm -f conftest.$ac_objext
10867 if { (ac_try="$ac_compile"
10868 case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10872 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_compile") 2>conftest.er1
10875 grep -v '^ *+' conftest.er1 >conftest.err
10877 cat conftest.err >&5
10878 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10879 (exit $ac_status); } &&
10880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10881 { (case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_try") 2>&5
10888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10889 (exit $ac_status); }; } &&
10890 { ac_try='test -s conftest.$ac_objext'
10891 { (case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_try") 2>&5
10898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10899 (exit $ac_status); }; }; then
10900 ac_header_compiler=yes
10902 echo "$as_me: failed program was
:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10905 ac_header_compiler=no
10908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10909 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
10910 echo "${ECHO_T}$ac_header_compiler" >&6; }
10912 # Is the header present?
10913 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
10914 echo $ECHO_N "checking
$ac_header presence...
$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 #include <$ac_header>
10923 if { (ac_try="$ac_cpp conftest.
$ac_ext"
10924 case "(($ac_try" in
10925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926 *) ac_try_echo=$ac_try;;
10928 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10929 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
10931 grep -v '^ *+' conftest.er1 >conftest.err
10933 cat conftest.err >&5
10934 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10935 (exit $ac_status); } >/dev/null; then
10936 if test -s conftest.err; then
10937 ac_cpp_err=$ac_c_preproc_warn_flag
10938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10945 if test -z "$ac_cpp_err"; then
10946 ac_header_preproc=yes
10948 echo "$as_me: failed program was
:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10951 ac_header_preproc=no
10954 rm -f conftest.err conftest.$ac_ext
10955 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
10956 echo "${ECHO_T}$ac_header_preproc" >&6; }
10958 # So? What about this header?
10959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10961 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
10962 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
10963 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
10964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
10965 ac_header_preproc=yes
10968 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
10969 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
10970 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
10971 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
10972 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
10973 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
10974 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
10975 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
10976 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
10977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
10978 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
10979 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
10981 ## ----------------------------------- ##
10982 ## Report this to llvmbugs@cs.uiuc.edu ##
10983 ## ----------------------------------- ##
10985 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
10988 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10989 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10990 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10991 echo $ECHO_N "(cached
) $ECHO_C" >&6
10993 eval "$as_ac_Header=\
$ac_header_preproc"
10995 ac_res=`eval echo '${'$as_ac_Header'}'`
10996 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10997 echo "${ECHO_T}$ac_res" >&6; }
11000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11001 cat >>confdefs.h <<_ACEOF
11002 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11010 { echo "$as_me:$LINENO: checking
for error_t
" >&5
11011 echo $ECHO_N "checking
for error_t...
$ECHO_C" >&6; }
11012 if test "${ac_cv_type_error_t+set}" = set; then
11013 echo $ECHO_N "(cached
) $ECHO_C" >&6
11015 cat >conftest.$ac_ext <<_ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11025 typedef error_t ac__type_new_;
11029 if ((ac__type_new_ *) 0)
11031 if (sizeof (ac__type_new_))
11037 rm -f conftest.$ac_objext
11038 if { (ac_try="$ac_compile"
11039 case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11043 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_compile") 2>conftest.er1
11046 grep -v '^ *+' conftest.er1 >conftest.err
11048 cat conftest.err >&5
11049 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11050 (exit $ac_status); } &&
11051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11052 { (case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11056 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_try") 2>&5
11059 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11060 (exit $ac_status); }; } &&
11061 { ac_try='test -s conftest.$ac_objext'
11062 { (case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11066 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_try") 2>&5
11069 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11070 (exit $ac_status); }; }; then
11071 ac_cv_type_error_t=yes
11073 echo "$as_me: failed program was
:" >&5
11074 sed 's/^/| /' conftest.$ac_ext >&5
11076 ac_cv_type_error_t=no
11079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11081 { echo "$as_me:$LINENO: result
: $ac_cv_type_error_t" >&5
11082 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11083 if test $ac_cv_type_error_t = yes; then
11085 cat >>confdefs.h <<_ACEOF
11086 #define HAVE_ERROR_T 1
11092 cat >>confdefs.h <<\_ACEOF
11093 #define error_t int
11104 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11106 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11107 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11108 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11109 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11110 echo $ECHO_N "(cached
) $ECHO_C" >&6
11112 cat >conftest.$ac_ext <<_ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h. */
11118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11120 #define $ac_func innocuous_$ac_func
11122 /* System header to define __stub macros and hopefully few prototypes,
11123 which can conflict with char $ac_func (); below.
11124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11125 <limits.h> exists even on freestanding compilers. */
11128 # include <limits.h>
11130 # include <assert.h>
11135 /* Override any GCC internal prototype to avoid an error.
11136 Use char because int might match the return type of a GCC
11137 builtin and then its argument prototype would still apply. */
11142 /* The GNU C library defines this for functions which it implements
11143 to always fail with ENOSYS. Some functions are actually named
11144 something starting with __ and the normal name is an alias. */
11145 #if defined __stub_$ac_func || defined __stub___$ac_func
11152 return $ac_func ();
11157 rm -f conftest.$ac_objext conftest$ac_exeext
11158 if { (ac_try="$ac_link"
11159 case "(($ac_try" in
11160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161 *) ac_try_echo=$ac_try;;
11163 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11164 (eval "$ac_link") 2>conftest.er1
11166 grep -v '^ *+' conftest.er1 >conftest.err
11168 cat conftest.err >&5
11169 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11170 (exit $ac_status); } &&
11171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11172 { (case "(($ac_try" in
11173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174 *) ac_try_echo=$ac_try;;
11176 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11177 (eval "$ac_try") 2>&5
11179 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11180 (exit $ac_status); }; } &&
11181 { ac_try='test -s conftest$ac_exeext'
11182 { (case "(($ac_try" in
11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11186 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11187 (eval "$ac_try") 2>&5
11189 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 eval "$as_ac_var=yes"
11193 echo "$as_me: failed program was
:" >&5
11194 sed 's/^/| /' conftest.$ac_ext >&5
11196 eval "$as_ac_var=no
"
11199 rm -f core conftest.err conftest.$ac_objext \
11200 conftest$ac_exeext conftest.$ac_ext
11202 ac_res=`eval echo '${'$as_ac_var'}'`
11203 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11204 echo "${ECHO_T}$ac_res" >&6; }
11205 if test `eval echo '${'$as_ac_var'}'` = yes; then
11206 cat >>confdefs.h <<_ACEOF
11207 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11240 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.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
11413 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11415 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11416 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11417 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11418 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11419 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11420 echo $ECHO_N "(cached
) $ECHO_C" >&6
11422 ac_res=`eval echo '${'$as_ac_Header'}'`
11423 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11424 echo "${ECHO_T}$ac_res" >&6; }
11426 # Is the header compilable?
11427 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11428 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11429 cat >conftest.$ac_ext <<_ACEOF
11432 cat confdefs.h >>conftest.$ac_ext
11433 cat >>conftest.$ac_ext <<_ACEOF
11434 /* end confdefs.h. */
11435 $ac_includes_default
11436 #include <$ac_header>
11438 rm -f conftest.$ac_objext
11439 if { (ac_try="$ac_compile"
11440 case "(($ac_try" in
11441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 *) ac_try_echo=$ac_try;;
11444 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11445 (eval "$ac_compile") 2>conftest.er1
11447 grep -v '^ *+' conftest.er1 >conftest.err
11449 cat conftest.err >&5
11450 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11451 (exit $ac_status); } &&
11452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11453 { (case "(($ac_try" in
11454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11457 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11458 (eval "$ac_try") 2>&5
11460 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11461 (exit $ac_status); }; } &&
11462 { ac_try='test -s conftest.$ac_objext'
11463 { (case "(($ac_try" in
11464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465 *) ac_try_echo=$ac_try;;
11467 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11468 (eval "$ac_try") 2>&5
11470 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11471 (exit $ac_status); }; }; then
11472 ac_header_compiler=yes
11474 echo "$as_me: failed program was
:" >&5
11475 sed 's/^/| /' conftest.$ac_ext >&5
11477 ac_header_compiler=no
11480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11481 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11482 echo "${ECHO_T}$ac_header_compiler" >&6; }
11484 # Is the header present?
11485 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11486 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11487 cat >conftest.$ac_ext <<_ACEOF
11490 cat confdefs.h >>conftest.$ac_ext
11491 cat >>conftest.$ac_ext <<_ACEOF
11492 /* end confdefs.h. */
11493 #include <$ac_header>
11495 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11496 case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11500 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11501 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11503 grep -v '^ *+' conftest.er1 >conftest.err
11505 cat conftest.err >&5
11506 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11507 (exit $ac_status); } >/dev/null; then
11508 if test -s conftest.err; then
11509 ac_cpp_err=$ac_c_preproc_warn_flag
11510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11517 if test -z "$ac_cpp_err"; then
11518 ac_header_preproc=yes
11520 echo "$as_me: failed program was
:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11523 ac_header_preproc=no
11526 rm -f conftest.err conftest.$ac_ext
11527 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11528 echo "${ECHO_T}$ac_header_preproc" >&6; }
11530 # So? What about this header?
11531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11533 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11534 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11535 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11537 ac_header_preproc=yes
11540 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11541 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11542 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11543 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11544 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11545 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11546 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11547 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11548 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11550 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11551 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11553 ## ----------------------------------- ##
11554 ## Report this to llvmbugs@cs.uiuc.edu ##
11555 ## ----------------------------------- ##
11557 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11560 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11561 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11562 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11563 echo $ECHO_N "(cached
) $ECHO_C" >&6
11565 eval "$as_ac_Header=\
$ac_header_preproc"
11567 ac_res=`eval echo '${'$as_ac_Header'}'`
11568 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11569 echo "${ECHO_T}$ac_res" >&6; }
11572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11573 cat >>confdefs.h <<_ACEOF
11574 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11583 for ac_header in string.h strings.h
11585 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11586 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11587 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11588 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11589 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11590 echo $ECHO_N "(cached
) $ECHO_C" >&6
11592 ac_res=`eval echo '${'$as_ac_Header'}'`
11593 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11594 echo "${ECHO_T}$ac_res" >&6; }
11596 # Is the header compilable?
11597 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11598 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11599 cat >conftest.$ac_ext <<_ACEOF
11602 cat confdefs.h >>conftest.$ac_ext
11603 cat >>conftest.$ac_ext <<_ACEOF
11604 /* end confdefs.h. */
11605 $ac_includes_default
11606 #include <$ac_header>
11608 rm -f conftest.$ac_objext
11609 if { (ac_try="$ac_compile"
11610 case "(($ac_try" in
11611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612 *) ac_try_echo=$ac_try;;
11614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11615 (eval "$ac_compile") 2>conftest.er1
11617 grep -v '^ *+' conftest.er1 >conftest.err
11619 cat conftest.err >&5
11620 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11621 (exit $ac_status); } &&
11622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11623 { (case "(($ac_try" in
11624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11627 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11628 (eval "$ac_try") 2>&5
11630 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11631 (exit $ac_status); }; } &&
11632 { ac_try='test -s conftest.$ac_objext'
11633 { (case "(($ac_try" in
11634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635 *) ac_try_echo=$ac_try;;
11637 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11638 (eval "$ac_try") 2>&5
11640 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11641 (exit $ac_status); }; }; then
11642 ac_header_compiler=yes
11644 echo "$as_me: failed program was
:" >&5
11645 sed 's/^/| /' conftest.$ac_ext >&5
11647 ac_header_compiler=no
11650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11651 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11652 echo "${ECHO_T}$ac_header_compiler" >&6; }
11654 # Is the header present?
11655 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11656 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11657 cat >conftest.$ac_ext <<_ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11663 #include <$ac_header>
11665 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11666 case "(($ac_try" in
11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668 *) ac_try_echo=$ac_try;;
11670 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11671 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11673 grep -v '^ *+' conftest.er1 >conftest.err
11675 cat conftest.err >&5
11676 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11677 (exit $ac_status); } >/dev/null; then
11678 if test -s conftest.err; then
11679 ac_cpp_err=$ac_c_preproc_warn_flag
11680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11687 if test -z "$ac_cpp_err"; then
11688 ac_header_preproc=yes
11690 echo "$as_me: failed program was
:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11693 ac_header_preproc=no
11696 rm -f conftest.err conftest.$ac_ext
11697 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11698 echo "${ECHO_T}$ac_header_preproc" >&6; }
11700 # So? What about this header?
11701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11703 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11704 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11705 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11707 ac_header_preproc=yes
11710 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11711 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11712 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11713 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11714 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11715 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11716 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11717 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11718 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11720 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11721 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11723 ## ----------------------------------- ##
11724 ## Report this to llvmbugs@cs.uiuc.edu ##
11725 ## ----------------------------------- ##
11727 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11730 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11731 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11732 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11733 echo $ECHO_N "(cached
) $ECHO_C" >&6
11735 eval "$as_ac_Header=\
$ac_header_preproc"
11737 ac_res=`eval echo '${'$as_ac_Header'}'`
11738 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11739 echo "${ECHO_T}$ac_res" >&6; }
11742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11743 cat >>confdefs.h <<_ACEOF
11744 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11754 for ac_func in strchr index
11756 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11757 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11758 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11759 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11760 echo $ECHO_N "(cached
) $ECHO_C" >&6
11762 cat >conftest.$ac_ext <<_ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11770 #define $ac_func innocuous_$ac_func
11772 /* System header to define __stub macros and hopefully few prototypes,
11773 which can conflict with char $ac_func (); below.
11774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11775 <limits.h> exists even on freestanding compilers. */
11778 # include <limits.h>
11780 # include <assert.h>
11785 /* Override any GCC internal prototype to avoid an error.
11786 Use char because int might match the return type of a GCC
11787 builtin and then its argument prototype would still apply. */
11792 /* The GNU C library defines this for functions which it implements
11793 to always fail with ENOSYS. Some functions are actually named
11794 something starting with __ and the normal name is an alias. */
11795 #if defined __stub_$ac_func || defined __stub___$ac_func
11802 return $ac_func ();
11807 rm -f conftest.$ac_objext conftest$ac_exeext
11808 if { (ac_try="$ac_link"
11809 case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11813 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_link") 2>conftest.er1
11816 grep -v '^ *+' conftest.er1 >conftest.err
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11820 (exit $ac_status); } &&
11821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11822 { (case "(($ac_try" in
11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824 *) ac_try_echo=$ac_try;;
11826 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11827 (eval "$ac_try") 2>&5
11829 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11830 (exit $ac_status); }; } &&
11831 { ac_try='test -s conftest$ac_exeext'
11832 { (case "(($ac_try" in
11833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834 *) ac_try_echo=$ac_try;;
11836 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11837 (eval "$ac_try") 2>&5
11839 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11840 (exit $ac_status); }; }; then
11841 eval "$as_ac_var=yes"
11843 echo "$as_me: failed program was
:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11846 eval "$as_ac_var=no
"
11849 rm -f core conftest.err conftest.$ac_objext \
11850 conftest$ac_exeext conftest.$ac_ext
11852 ac_res=`eval echo '${'$as_ac_var'}'`
11853 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11854 echo "${ECHO_T}$ac_res" >&6; }
11855 if test `eval echo '${'$as_ac_var'}'` = yes; then
11856 cat >>confdefs.h <<_ACEOF
11857 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11865 for ac_func in strrchr rindex
11867 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11868 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11869 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11870 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11871 echo $ECHO_N "(cached
) $ECHO_C" >&6
11873 cat >conftest.$ac_ext <<_ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11881 #define $ac_func innocuous_$ac_func
11883 /* System header to define __stub macros and hopefully few prototypes,
11884 which can conflict with char $ac_func (); below.
11885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11886 <limits.h> exists even on freestanding compilers. */
11889 # include <limits.h>
11891 # include <assert.h>
11896 /* Override any GCC internal prototype to avoid an error.
11897 Use char because int might match the return type of a GCC
11898 builtin and then its argument prototype would still apply. */
11903 /* The GNU C library defines this for functions which it implements
11904 to always fail with ENOSYS. Some functions are actually named
11905 something starting with __ and the normal name is an alias. */
11906 #if defined __stub_$ac_func || defined __stub___$ac_func
11913 return $ac_func ();
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (ac_try="$ac_link"
11920 case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11924 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_link") 2>conftest.er1
11927 grep -v '^ *+' conftest.er1 >conftest.err
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11931 (exit $ac_status); } &&
11932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11933 { (case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11937 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_try") 2>&5
11940 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11941 (exit $ac_status); }; } &&
11942 { ac_try='test -s conftest$ac_exeext'
11943 { (case "(($ac_try" in
11944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945 *) ac_try_echo=$ac_try;;
11947 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11948 (eval "$ac_try") 2>&5
11950 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 eval "$as_ac_var=yes"
11954 echo "$as_me: failed program was
:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 eval "$as_ac_var=no
"
11960 rm -f core conftest.err conftest.$ac_objext \
11961 conftest$ac_exeext conftest.$ac_ext
11963 ac_res=`eval echo '${'$as_ac_var'}'`
11964 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11965 echo "${ECHO_T}$ac_res" >&6; }
11966 if test `eval echo '${'$as_ac_var'}'` = yes; then
11967 cat >>confdefs.h <<_ACEOF
11968 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11976 for ac_func in memcpy bcopy
11978 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11979 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11980 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11981 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11982 echo $ECHO_N "(cached
) $ECHO_C" >&6
11984 cat >conftest.$ac_ext <<_ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h. */
11990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11992 #define $ac_func innocuous_$ac_func
11994 /* System header to define __stub macros and hopefully few prototypes,
11995 which can conflict with char $ac_func (); below.
11996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11997 <limits.h> exists even on freestanding compilers. */
12000 # include <limits.h>
12002 # include <assert.h>
12007 /* Override any GCC internal prototype to avoid an error.
12008 Use char because int might match the return type of a GCC
12009 builtin and then its argument prototype would still apply. */
12014 /* The GNU C library defines this for functions which it implements
12015 to always fail with ENOSYS. Some functions are actually named
12016 something starting with __ and the normal name is an alias. */
12017 #if defined __stub_$ac_func || defined __stub___$ac_func
12024 return $ac_func ();
12029 rm -f conftest.$ac_objext conftest$ac_exeext
12030 if { (ac_try="$ac_link"
12031 case "(($ac_try" in
12032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033 *) ac_try_echo=$ac_try;;
12035 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12036 (eval "$ac_link") 2>conftest.er1
12038 grep -v '^ *+' conftest.er1 >conftest.err
12040 cat conftest.err >&5
12041 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12042 (exit $ac_status); } &&
12043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12044 { (case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12048 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_try") 2>&5
12051 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12052 (exit $ac_status); }; } &&
12053 { ac_try='test -s conftest$ac_exeext'
12054 { (case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12058 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_try") 2>&5
12061 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12062 (exit $ac_status); }; }; then
12063 eval "$as_ac_var=yes"
12065 echo "$as_me: failed program was
:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12068 eval "$as_ac_var=no
"
12071 rm -f core conftest.err conftest.$ac_objext \
12072 conftest$ac_exeext conftest.$ac_ext
12074 ac_res=`eval echo '${'$as_ac_var'}'`
12075 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12076 echo "${ECHO_T}$ac_res" >&6; }
12077 if test `eval echo '${'$as_ac_var'}'` = yes; then
12078 cat >>confdefs.h <<_ACEOF
12079 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12087 for ac_func in memmove strcmp
12089 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12090 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12091 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12092 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12093 echo $ECHO_N "(cached
) $ECHO_C" >&6
12095 cat >conftest.$ac_ext <<_ACEOF
12098 cat confdefs.h >>conftest.$ac_ext
12099 cat >>conftest.$ac_ext <<_ACEOF
12100 /* end confdefs.h. */
12101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12103 #define $ac_func innocuous_$ac_func
12105 /* System header to define __stub macros and hopefully few prototypes,
12106 which can conflict with char $ac_func (); below.
12107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12108 <limits.h> exists even on freestanding compilers. */
12111 # include <limits.h>
12113 # include <assert.h>
12118 /* Override any GCC internal prototype to avoid an error.
12119 Use char because int might match the return type of a GCC
12120 builtin and then its argument prototype would still apply. */
12125 /* The GNU C library defines this for functions which it implements
12126 to always fail with ENOSYS. Some functions are actually named
12127 something starting with __ and the normal name is an alias. */
12128 #if defined __stub_$ac_func || defined __stub___$ac_func
12135 return $ac_func ();
12140 rm -f conftest.$ac_objext conftest$ac_exeext
12141 if { (ac_try="$ac_link"
12142 case "(($ac_try" in
12143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12144 *) ac_try_echo=$ac_try;;
12146 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12147 (eval "$ac_link") 2>conftest.er1
12149 grep -v '^ *+' conftest.er1 >conftest.err
12151 cat conftest.err >&5
12152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12153 (exit $ac_status); } &&
12154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12155 { (case "(($ac_try" in
12156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12157 *) ac_try_echo=$ac_try;;
12159 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12160 (eval "$ac_try") 2>&5
12162 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12163 (exit $ac_status); }; } &&
12164 { ac_try='test -s conftest$ac_exeext'
12165 { (case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12169 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12170 (eval "$ac_try") 2>&5
12172 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12173 (exit $ac_status); }; }; then
12174 eval "$as_ac_var=yes"
12176 echo "$as_me: failed program was
:" >&5
12177 sed 's/^/| /' conftest.$ac_ext >&5
12179 eval "$as_ac_var=no
"
12182 rm -f core conftest.err conftest.$ac_objext \
12183 conftest$ac_exeext conftest.$ac_ext
12185 ac_res=`eval echo '${'$as_ac_var'}'`
12186 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12187 echo "${ECHO_T}$ac_res" >&6; }
12188 if test `eval echo '${'$as_ac_var'}'` = yes; then
12189 cat >>confdefs.h <<_ACEOF
12190 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12199 for ac_func in closedir opendir readdir
12201 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12202 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12203 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12204 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12205 echo $ECHO_N "(cached
) $ECHO_C" >&6
12207 cat >conftest.$ac_ext <<_ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h. */
12213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12215 #define $ac_func innocuous_$ac_func
12217 /* System header to define __stub macros and hopefully few prototypes,
12218 which can conflict with char $ac_func (); below.
12219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12220 <limits.h> exists even on freestanding compilers. */
12223 # include <limits.h>
12225 # include <assert.h>
12230 /* Override any GCC internal prototype to avoid an error.
12231 Use char because int might match the return type of a GCC
12232 builtin and then its argument prototype would still apply. */
12237 /* The GNU C library defines this for functions which it implements
12238 to always fail with ENOSYS. Some functions are actually named
12239 something starting with __ and the normal name is an alias. */
12240 #if defined __stub_$ac_func || defined __stub___$ac_func
12247 return $ac_func ();
12252 rm -f conftest.$ac_objext conftest$ac_exeext
12253 if { (ac_try="$ac_link"
12254 case "(($ac_try" in
12255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256 *) ac_try_echo=$ac_try;;
12258 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12259 (eval "$ac_link") 2>conftest.er1
12261 grep -v '^ *+' conftest.er1 >conftest.err
12263 cat conftest.err >&5
12264 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12265 (exit $ac_status); } &&
12266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12267 { (case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12271 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_try") 2>&5
12274 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12275 (exit $ac_status); }; } &&
12276 { ac_try='test -s conftest$ac_exeext'
12277 { (case "(($ac_try" in
12278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279 *) ac_try_echo=$ac_try;;
12281 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12282 (eval "$ac_try") 2>&5
12284 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12285 (exit $ac_status); }; }; then
12286 eval "$as_ac_var=yes"
12288 echo "$as_me: failed program was
:" >&5
12289 sed 's/^/| /' conftest.$ac_ext >&5
12291 eval "$as_ac_var=no
"
12294 rm -f core conftest.err conftest.$ac_objext \
12295 conftest$ac_exeext conftest.$ac_ext
12297 ac_res=`eval echo '${'$as_ac_var'}'`
12298 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12299 echo "${ECHO_T}$ac_res" >&6; }
12300 if test `eval echo '${'$as_ac_var'}'` = yes; then
12301 cat >>confdefs.h <<_ACEOF
12302 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12309 # Check whether --enable-shared was given.
12310 if test "${enable_shared+set}" = set; then
12311 enableval=$enable_shared; p=${PACKAGE-default}
12313 yes) enable_shared=yes ;;
12314 no) enable_shared=no ;;
12317 # Look at the argument we got. We use all the common list separators.
12318 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12319 for pkg in $enableval; do
12321 if test "X
$pkg" = "X
$p"; then
12333 # Check whether --enable-static was given.
12334 if test "${enable_static+set}" = set; then
12335 enableval=$enable_static; p=${PACKAGE-default}
12337 yes) enable_static=yes ;;
12338 no) enable_static=no ;;
12341 # Look at the argument we got. We use all the common list separators.
12342 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12343 for pkg in $enableval; do
12345 if test "X
$pkg" = "X
$p"; then
12357 # Check whether --enable-fast-install was given.
12358 if test "${enable_fast_install+set}" = set; then
12359 enableval=$enable_fast_install; p=${PACKAGE-default}
12361 yes) enable_fast_install=yes ;;
12362 no) enable_fast_install=no ;;
12364 enable_fast_install=no
12365 # Look at the argument we got. We use all the common list separators.
12366 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12367 for pkg in $enableval; do
12369 if test "X
$pkg" = "X
$p"; then
12370 enable_fast_install=yes
12377 enable_fast_install=yes
12381 { echo "$as_me:$LINENO: checking
for a
sed that does not truncate output
" >&5
12382 echo $ECHO_N "checking
for a
sed that does not truncate output...
$ECHO_C" >&6; }
12383 if test "${lt_cv_path_SED+set}" = set; then
12384 echo $ECHO_N "(cached
) $ECHO_C" >&6
12386 # Loop through the user's path and test for sed and gsed.
12387 # Then use that list of sed's as ones to test for truncation.
12388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12389 for as_dir in $PATH
12392 test -z "$as_dir" && as_dir=.
12393 for lt_ac_prog in sed gsed; do
12394 for ac_exec_ext in '' $ac_executable_extensions; do
12395 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12396 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12403 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12404 # along with /bin/sed that truncates output.
12405 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12406 test ! -f $lt_ac_sed && continue
12407 cat /dev/null > conftest.in
12409 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12410 # Check for GNU sed and select it if it is found.
12411 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12412 lt_cv_path_SED=$lt_ac_sed
12416 cat conftest.in conftest.in >conftest.tmp
12417 mv conftest.tmp conftest.in
12418 cp conftest.in conftest.nl
12420 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12421 cmp -s conftest.out conftest.nl || break
12422 # 10000 chars as input seems more than enough
12423 test $lt_ac_count -gt 10 && break
12424 lt_ac_count=`expr $lt_ac_count + 1`
12425 if test $lt_ac_count -gt $lt_ac_max; then
12426 lt_ac_max=$lt_ac_count
12427 lt_cv_path_SED=$lt_ac_sed
12434 SED=$lt_cv_path_SED
12435 { echo "$as_me:$LINENO: result
: $SED" >&5
12436 echo "${ECHO_T}$SED" >&6; }
12439 # Check whether --with-gnu-ld was given.
12440 if test "${with_gnu_ld+set}" = set; then
12441 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12447 if test "$GCC" = yes; then
12448 # Check if gcc -print-prog-name=ld gives a path.
12449 { echo "$as_me:$LINENO: checking
for ld used by
$CC" >&5
12450 echo $ECHO_N "checking
for ld used by
$CC...
$ECHO_C" >&6; }
12453 # gcc leaves a trailing carriage return which upsets mingw
12454 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12456 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12459 # Accept absolute paths.
12461 re_direlt='/[^/][^/]*/\.\./'
12462 # Canonicalize the pathname of ld
12463 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12464 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12465 ac_prog=`echo $ac_prog| $SED "s
%$re_direlt%/%"`
12467 test -z "$LD" && LD="$ac_prog"
12470 # If it fails, then pretend we aren't using GCC.
12474 # If it is relative, then search for the first ld in PATH.
12475 with_gnu_ld=unknown
12478 elif test "$with_gnu_ld" = yes; then
12479 { echo "$as_me:$LINENO: checking
for GNU ld
" >&5
12480 echo $ECHO_N "checking
for GNU ld...
$ECHO_C" >&6; }
12482 { echo "$as_me:$LINENO: checking
for non-GNU ld
" >&5
12483 echo $ECHO_N "checking
for non-GNU ld...
$ECHO_C" >&6; }
12485 if test "${lt_cv_path_LD+set}" = set; then
12486 echo $ECHO_N "(cached
) $ECHO_C" >&6
12488 if test -z "$LD"; then
12489 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12490 for ac_dir in $PATH; do
12492 test -z "$ac_dir" && ac_dir=.
12493 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12494 lt_cv_path_LD="$ac_dir/$ac_prog"
12495 # Check to see if the program is GNU ld. I'd rather use --version,
12496 # but apparently some variants of GNU ld only accept -v.
12497 # Break only if it was the GNU/non-GNU ld that we prefer.
12498 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12499 *GNU* | *'with BFD'*)
12500 test "$with_gnu_ld" != no && break
12503 test "$with_gnu_ld" != yes && break
12510 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12514 LD="$lt_cv_path_LD"
12515 if test -n "$LD"; then
12516 { echo "$as_me:$LINENO: result
: $LD" >&5
12517 echo "${ECHO_T}$LD" >&6; }
12519 { echo "$as_me:$LINENO: result
: no
" >&5
12520 echo "${ECHO_T}no
" >&6; }
12522 test -z "$LD" && { { echo "$as_me:$LINENO: error
: no acceptable ld found
in \
$PATH" >&5
12523 echo "$as_me: error
: no acceptable ld found
in \
$PATH" >&2;}
12524 { (exit 1); exit 1; }; }
12525 { echo "$as_me:$LINENO: checking
if the linker
($LD) is GNU ld
" >&5
12526 echo $ECHO_N "checking
if the linker
($LD) is GNU ld...
$ECHO_C" >&6; }
12527 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12528 echo $ECHO_N "(cached
) $ECHO_C" >&6
12530 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12531 case `$LD -v 2>&1 </dev/null` in
12532 *GNU* | *'with BFD'*)
12533 lt_cv_prog_gnu_ld=yes
12536 lt_cv_prog_gnu_ld=no
12540 { echo "$as_me:$LINENO: result
: $lt_cv_prog_gnu_ld" >&5
12541 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12542 with_gnu_ld=$lt_cv_prog_gnu_ld
12545 { echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
12546 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6; }
12547 if test "${lt_cv_ld_reload_flag+set}" = set; then
12548 echo $ECHO_N "(cached
) $ECHO_C" >&6
12550 lt_cv_ld_reload_flag='-r'
12552 { echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
12553 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12554 reload_flag=$lt_cv_ld_reload_flag
12555 case $reload_flag in
12557 *) reload_flag=" $reload_flag" ;;
12559 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12562 if test "$GCC" = yes; then
12563 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12565 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12570 { echo "$as_me:$LINENO: checking how to recognise dependent libraries
" >&5
12571 echo $ECHO_N "checking how to recognise dependent libraries...
$ECHO_C" >&6; }
12572 if test "${lt_cv_deplibs_check_method+set}" = set; then
12573 echo $ECHO_N "(cached
) $ECHO_C" >&6
12575 lt_cv_file_magic_cmd='$MAGIC_CMD'
12576 lt_cv_file_magic_test_file=
12577 lt_cv_deplibs_check_method='unknown'
12578 # Need to set the preceding variable on all platforms that support
12579 # interlibrary dependencies.
12580 # 'none' -- dependencies not supported.
12581 # `unknown' -- same as none, but documents that we really don't know.
12582 # 'pass_all' -- all dependencies passed with no checks.
12583 # 'test_compile' -- check by making test program.
12584 # 'file_magic [[regex]]' -- check by looking for files in library path
12585 # which responds to the $file_magic_cmd with a given extended regex.
12586 # If you have `file' or equivalent on your system and you're not sure
12587 # whether `pass_all' will *always* work, you probably want this one.
12591 lt_cv_deplibs_check_method=pass_all
12595 lt_cv_deplibs_check_method=pass_all
12599 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12600 lt_cv_file_magic_cmd='/usr/bin/file -L'
12601 lt_cv_file_magic_test_file=/shlib/libc.so
12605 # func_win32_libid is a shell function defined in ltmain.sh
12606 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12607 lt_cv_file_magic_cmd='func_win32_libid'
12611 # Base MSYS/MinGW do not provide the 'file' command needed by
12612 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12613 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12614 lt_cv_file_magic_cmd='$OBJDUMP -f'
12617 darwin* | rhapsody*)
12618 lt_cv_deplibs_check_method=pass_all
12621 freebsd* | kfreebsd*-gnu | dragonfly*)
12622 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12625 # Not sure whether the presence of OpenBSD here was a mistake.
12626 # Let's accept both of them until this is cleared up.
12627 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12628 lt_cv_file_magic_cmd=/usr/bin/file
12629 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12633 lt_cv_deplibs_check_method=pass_all
12638 lt_cv_deplibs_check_method=pass_all
12641 hpux10.20* | hpux11*)
12642 lt_cv_file_magic_cmd=/usr/bin/file
12645 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12646 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12649 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]'
12650 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12653 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12654 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12660 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12664 irix5* | irix6* | nonstopux*)
12666 *-32|*"-32 ") libmagic=32-bit;;
12667 *-n32|*"-n32 ") libmagic=N32;;
12668 *-64|*"-64 ") libmagic=64-bit;;
12669 *) libmagic=never-match;;
12671 lt_cv_deplibs_check_method=pass_all
12674 # This must be Linux ELF.
12676 lt_cv_deplibs_check_method=pass_all
12680 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12681 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12683 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12688 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12689 lt_cv_file_magic_cmd=/usr/bin/file
12690 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12694 lt_cv_deplibs_check_method=unknown
12698 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12699 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12705 osf3* | osf4* | osf5*)
12706 lt_cv_deplibs_check_method=pass_all
12710 lt_cv_deplibs_check_method=pass_all
12714 case $host_vendor in
12716 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]'
12717 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12720 lt_cv_deplibs_check_method=pass_all
12723 lt_cv_file_magic_cmd='/bin/file'
12724 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12727 lt_cv_file_magic_cmd='/bin/file'
12728 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12729 lt_cv_file_magic_test_file=/lib/libc.so
12732 lt_cv_deplibs_check_method=pass_all
12735 lt_cv_deplibs_check_method=pass_all
12740 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12741 lt_cv_deplibs_check_method=pass_all
12746 { echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
12747 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12748 file_magic_cmd=$lt_cv_file_magic_cmd
12749 deplibs_check_method=$lt_cv_deplibs_check_method
12750 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12754 # If no C compiler was specified, use CC.
12757 # If no C compiler flags were specified, use CFLAGS.
12758 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12760 # Allow CC to be a program name with arguments.
12763 # Check whether --enable-libtool-lock was given.
12764 if test "${enable_libtool_lock+set}" = set; then
12765 enableval=$enable_libtool_lock;
12768 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
12770 # Some flags need to be propagated to the compiler or linker for good
12774 # Find out which ABI we are using.
12775 echo 'int i;' > conftest.$ac_ext
12776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12777 (eval $ac_compile) 2>&5
12779 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12780 (exit $ac_status); }; then
12781 case `/usr/bin/file conftest.$ac_objext` in
12783 HPUX_IA64_MODE="32"
12786 HPUX_IA64_MODE="64"
12793 # Find out which ABI we are using.
12794 echo '#line 12794 "configure
"' > conftest.$ac_ext
12795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12796 (eval $ac_compile) 2>&5
12798 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12799 (exit $ac_status); }; then
12800 if test "$lt_cv_prog_gnu_ld" = yes; then
12801 case `/usr/bin/file conftest.$ac_objext` in
12803 LD="${LD-ld} -melf32bsmip"
12806 LD="${LD-ld} -melf32bmipn32"
12809 LD="${LD-ld} -melf64bmip"
12813 case `/usr/bin/file conftest.$ac_objext` in
12829 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12830 # Find out which ABI we are using.
12831 echo 'int i;' > conftest.$ac_ext
12832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12833 (eval $ac_compile) 2>&5
12835 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12836 (exit $ac_status); }; then
12837 case `/usr/bin/file conftest.o` in
12841 LD="${LD-ld} -m elf_i386
"
12843 ppc64-*linux*|powerpc64-*linux*)
12844 LD="${LD-ld} -m elf32ppclinux
"
12847 LD="${LD-ld} -m elf_s390
"
12850 LD="${LD-ld} -m elf32_sparc
"
12857 LD="${LD-ld} -m elf_x86_64
"
12859 ppc*-*linux*|powerpc*-*linux*)
12860 LD="${LD-ld} -m elf64ppc
"
12863 LD="${LD-ld} -m elf64_s390
"
12866 LD="${LD-ld} -m elf64_sparc
"
12876 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12877 SAVE_CFLAGS="$CFLAGS"
12878 CFLAGS="$CFLAGS -belf"
12879 { echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
12880 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6; }
12881 if test "${lt_cv_cc_needs_belf+set}" = set; then
12882 echo $ECHO_N "(cached
) $ECHO_C" >&6
12885 ac_cpp='$CPP $CPPFLAGS'
12886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12890 cat >conftest.$ac_ext <<_ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h. */
12905 rm -f conftest.$ac_objext conftest$ac_exeext
12906 if { (ac_try="$ac_link"
12907 case "(($ac_try" in
12908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909 *) ac_try_echo=$ac_try;;
12911 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12912 (eval "$ac_link") 2>conftest.er1
12914 grep -v '^ *+' conftest.er1 >conftest.err
12916 cat conftest.err >&5
12917 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12918 (exit $ac_status); } &&
12919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12920 { (case "(($ac_try" in
12921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12922 *) ac_try_echo=$ac_try;;
12924 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12925 (eval "$ac_try") 2>&5
12927 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12928 (exit $ac_status); }; } &&
12929 { ac_try='test -s conftest$ac_exeext'
12930 { (case "(($ac_try" in
12931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932 *) ac_try_echo=$ac_try;;
12934 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12935 (eval "$ac_try") 2>&5
12937 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12938 (exit $ac_status); }; }; then
12939 lt_cv_cc_needs_belf=yes
12941 echo "$as_me: failed program was
:" >&5
12942 sed 's/^/| /' conftest.$ac_ext >&5
12944 lt_cv_cc_needs_belf=no
12947 rm -f core conftest.err conftest.$ac_objext \
12948 conftest$ac_exeext conftest.$ac_ext
12950 ac_cpp='$CPP $CPPFLAGS'
12951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12956 { echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
12957 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12958 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12959 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12960 CFLAGS="$SAVE_CFLAGS"
12964 # Find out which ABI we are using.
12965 echo 'int i;' > conftest.$ac_ext
12966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12967 (eval $ac_compile) 2>&5
12969 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12970 (exit $ac_status); }; then
12971 case `/usr/bin/file conftest.o` in
12973 case $lt_cv_prog_gnu_ld in
12974 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
12975 *) LD="${LD-ld} -64" ;;
12986 need_locks="$enable_libtool_lock"
12991 if test -n "$CXX" && ( test "X
$CXX" != "Xno
" &&
12992 ( (test "X
$CXX" = "Xg
++" && `g++ -v >/dev/null 2>&1` ) ||
12993 (test "X
$CXX" != "Xg
++"))) ; then
12995 ac_cpp='$CXXCPP $CPPFLAGS'
12996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12999 { echo "$as_me:$LINENO: checking how to run the C
++ preprocessor
" >&5
13000 echo $ECHO_N "checking how to run the C
++ preprocessor...
$ECHO_C" >&6; }
13001 if test -z "$CXXCPP"; then
13002 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13003 echo $ECHO_N "(cached
) $ECHO_C" >&6
13005 # Double quotes because CXXCPP needs to be expanded
13006 for CXXCPP in "$CXX -E" "/lib
/cpp
"
13008 ac_preproc_ok=false
13009 for ac_cxx_preproc_warn_flag in '' yes
13011 # Use a header file that comes with gcc, so configuring glibc
13012 # with a fresh cross-compiler works.
13013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13014 # <limits.h> exists even on freestanding compilers.
13015 # On the NeXT, cc -E runs the code through the compiler's parser,
13016 # not just through cpp. "Syntax error
" is here to catch this case.
13017 cat >conftest.$ac_ext <<_ACEOF
13020 cat confdefs.h >>conftest.$ac_ext
13021 cat >>conftest.$ac_ext <<_ACEOF
13022 /* end confdefs.h. */
13024 # include <limits.h>
13026 # include <assert.h>
13030 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13031 case "(($ac_try" in
13032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13033 *) ac_try_echo=$ac_try;;
13035 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13036 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13038 grep -v '^ *+' conftest.er1 >conftest.err
13040 cat conftest.err >&5
13041 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13042 (exit $ac_status); } >/dev/null; then
13043 if test -s conftest.err; then
13044 ac_cpp_err=$ac_cxx_preproc_warn_flag
13045 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13052 if test -z "$ac_cpp_err"; then
13055 echo "$as_me: failed program was
:" >&5
13056 sed 's/^/| /' conftest.$ac_ext >&5
13058 # Broken: fails on valid input.
13062 rm -f conftest.err conftest.$ac_ext
13064 # OK, works on sane cases. Now check whether nonexistent headers
13065 # can be detected and how.
13066 cat >conftest.$ac_ext <<_ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13072 #include <ac_nonexistent.h>
13074 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13075 case "(($ac_try" in
13076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077 *) ac_try_echo=$ac_try;;
13079 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13080 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13082 grep -v '^ *+' conftest.er1 >conftest.err
13084 cat conftest.err >&5
13085 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13086 (exit $ac_status); } >/dev/null; then
13087 if test -s conftest.err; then
13088 ac_cpp_err=$ac_cxx_preproc_warn_flag
13089 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13096 if test -z "$ac_cpp_err"; then
13097 # Broken: success on invalid input.
13100 echo "$as_me: failed program was
:" >&5
13101 sed 's/^/| /' conftest.$ac_ext >&5
13103 # Passes both tests.
13108 rm -f conftest.err conftest.$ac_ext
13111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13112 rm -f conftest.err conftest.$ac_ext
13113 if $ac_preproc_ok; then
13118 ac_cv_prog_CXXCPP=$CXXCPP
13121 CXXCPP=$ac_cv_prog_CXXCPP
13123 ac_cv_prog_CXXCPP=$CXXCPP
13125 { echo "$as_me:$LINENO: result
: $CXXCPP" >&5
13126 echo "${ECHO_T}$CXXCPP" >&6; }
13127 ac_preproc_ok=false
13128 for ac_cxx_preproc_warn_flag in '' yes
13130 # Use a header file that comes with gcc, so configuring glibc
13131 # with a fresh cross-compiler works.
13132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13133 # <limits.h> exists even on freestanding compilers.
13134 # On the NeXT, cc -E runs the code through the compiler's parser,
13135 # not just through cpp. "Syntax error
" is here to catch this case.
13136 cat >conftest.$ac_ext <<_ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h. */
13143 # include <limits.h>
13145 # include <assert.h>
13149 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13150 case "(($ac_try" in
13151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13152 *) ac_try_echo=$ac_try;;
13154 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13155 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13157 grep -v '^ *+' conftest.er1 >conftest.err
13159 cat conftest.err >&5
13160 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13161 (exit $ac_status); } >/dev/null; then
13162 if test -s conftest.err; then
13163 ac_cpp_err=$ac_cxx_preproc_warn_flag
13164 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13171 if test -z "$ac_cpp_err"; then
13174 echo "$as_me: failed program was
:" >&5
13175 sed 's/^/| /' conftest.$ac_ext >&5
13177 # Broken: fails on valid input.
13181 rm -f conftest.err conftest.$ac_ext
13183 # OK, works on sane cases. Now check whether nonexistent headers
13184 # can be detected and how.
13185 cat >conftest.$ac_ext <<_ACEOF
13188 cat confdefs.h >>conftest.$ac_ext
13189 cat >>conftest.$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13191 #include <ac_nonexistent.h>
13193 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13194 case "(($ac_try" in
13195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196 *) ac_try_echo=$ac_try;;
13198 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13199 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13201 grep -v '^ *+' conftest.er1 >conftest.err
13203 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13205 (exit $ac_status); } >/dev/null; then
13206 if test -s conftest.err; then
13207 ac_cpp_err=$ac_cxx_preproc_warn_flag
13208 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13215 if test -z "$ac_cpp_err"; then
13216 # Broken: success on invalid input.
13219 echo "$as_me: failed program was
:" >&5
13220 sed 's/^/| /' conftest.$ac_ext >&5
13222 # Passes both tests.
13227 rm -f conftest.err conftest.$ac_ext
13230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13231 rm -f conftest.err conftest.$ac_ext
13232 if $ac_preproc_ok; then
13235 { { echo "$as_me:$LINENO: error
: C
++ preprocessor
\"$CXXCPP\" fails sanity check
13236 See \
`config.log' for more details." >&5
13237 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13238 See \`config.log
' for more details." >&2;}
13239 { (exit 1); exit 1; }; }
13243 ac_cpp='$CXXCPP $CPPFLAGS'
13244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
13245 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13252 ac_compile='$F77 -c $FFLAGS conftest.
$ac_ext >&5'
13253 ac_link='$F77 -o conftest
$ac_exeext $FFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13254 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13255 if test -n "$ac_tool_prefix"; then
13256 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
13258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13259 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13262 if test "${ac_cv_prog_F77+set}" = set; then
13263 echo $ECHO_N "(cached) $ECHO_C" >&6
13265 if test -n "$F77"; then
13266 ac_cv_prog_F77="$F77" # Let the user override the test.
13268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13269 for as_dir in $PATH
13272 test -z "$as_dir" && as_dir=.
13273 for ac_exec_ext in '' $ac_executable_extensions; do
13274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13275 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13285 F77=$ac_cv_prog_F77
13286 if test -n "$F77"; then
13287 { echo "$as_me:$LINENO: result: $F77" >&5
13288 echo "${ECHO_T}$F77" >&6; }
13290 { echo "$as_me:$LINENO: result: no" >&5
13291 echo "${ECHO_T}no" >&6; }
13295 test -n "$F77" && break
13298 if test -z "$F77"; then
13300 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
13302 # Extract the first word of "$ac_prog", so it can be a program name with args.
13303 set dummy $ac_prog; ac_word=$2
13304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13306 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13309 if test -n "$ac_ct_F77"; then
13310 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313 for as_dir in $PATH
13316 test -z "$as_dir" && as_dir=.
13317 for ac_exec_ext in '' $ac_executable_extensions; do
13318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13319 ac_cv_prog_ac_ct_F77="$ac_prog"
13320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13329 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13330 if test -n "$ac_ct_F77"; then
13331 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13332 echo "${ECHO_T}$ac_ct_F77" >&6; }
13334 { echo "$as_me:$LINENO: result: no" >&5
13335 echo "${ECHO_T}no" >&6; }
13339 test -n "$ac_ct_F77" && break
13342 if test "x$ac_ct_F77" = x; then
13345 case $cross_compiling:$ac_tool_warned in
13347 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13348 whose name does not start with the host triplet. If you think this
13349 configuration is useful to you, please write to autoconf@gnu.org." >&5
13350 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13351 whose name does not start with the host triplet. If you think this
13352 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13353 ac_tool_warned=yes ;;
13360 # Provide some information about the compiler.
13361 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13362 ac_compiler=`set X $ac_compile; echo $2`
13363 { (ac_try="$ac_compiler --version >&5"
13364 case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369 (eval "$ac_compiler --version >&5") 2>&5
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }
13373 { (ac_try="$ac_compiler -v >&5"
13374 case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_compiler -v >&5") 2>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }
13383 { (ac_try="$ac_compiler -V >&5"
13384 case "(($ac_try" in
13385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386 *) ac_try_echo=$ac_try;;
13388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389 (eval "$ac_compiler -V >&5") 2>&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }
13395 # If we don't use
`.F' as extension, the preprocessor is not run on the
13396 # input file. (Note that this only needs to work for GNU compilers.)
13397 ac_save_ext=$ac_ext
13399 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13400 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13401 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
13404 cat >conftest.$ac_ext <<_ACEOF
13412 rm -f conftest.$ac_objext
13413 if { (ac_try="$ac_compile"
13414 case "(($ac_try" in
13415 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13416 *) ac_try_echo
=$ac_try;;
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_compile") 2>conftest.er1
13421 grep -v '^ *+' conftest.er1
>conftest.err
13423 cat conftest.err
>&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } &&
13426 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13427 { (case "(($ac_try" in
13428 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; } &&
13436 { ac_try='test -s conftest.$ac_objext'
13437 { (case "(($ac_try" in
13438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13439 *) ac_try_echo
=$ac_try;;
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_try") 2>&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; }; then
13446 ac_compiler_gnu
=yes
13448 echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.
$ac_ext >&5
13454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13455 ac_cv_f77_compiler_gnu
=$ac_compiler_gnu
13458 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13459 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13460 ac_ext
=$ac_save_ext
13461 ac_test_FFLAGS
=${FFLAGS+set}
13462 ac_save_FFLAGS
=$FFLAGS
13464 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13465 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13466 if test "${ac_cv_prog_f77_g+set}" = set; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
13470 cat >conftest.
$ac_ext <<_ACEOF
13475 rm -f conftest.
$ac_objext
13476 if { (ac_try
="$ac_compile"
13477 case "(($ac_try" in
13478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482 (eval "$ac_compile") 2>conftest.er1
13484 grep -v '^ *+' conftest.er1 >conftest.err
13486 cat conftest.err >&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } &&
13489 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13490 { (case "(($ac_try" in
13491 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13492 *) ac_try_echo
=$ac_try;;
13494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13495 (eval "$ac_try") 2>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; } &&
13499 { ac_try
='test -s conftest.$ac_objext'
13500 { (case "(($ac_try" in
13501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13502 *) ac_try_echo=$ac_try;;
13504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13505 (eval "$ac_try") 2>&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
13509 ac_cv_prog_f77_g=yes
13511 echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13514 ac_cv_prog_f77_g=no
13517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13520 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13521 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13522 if test "$ac_test_FFLAGS" = set; then
13523 FFLAGS=$ac_save_FFLAGS
13524 elif test $ac_cv_prog_f77_g = yes; then
13525 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13531 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13538 G77=`test $ac_compiler_gnu = yes && echo yes`
13540 ac_cpp='$CPP $CPPFLAGS'
13541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13547 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13549 # find the maximum length of command line arguments
13550 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13551 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13552 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13553 echo $ECHO_N "(cached) $ECHO_C" >&6
13560 # On DJGPP, this test can blow up pretty badly due to problems in libc
13561 # (any single argument exceeding 2000 bytes causes a buffer overrun
13562 # during glob expansion). Even if it were fixed, the result of this
13563 # check would be larger than it should be.
13564 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13568 # Under GNU Hurd, this test is not required because there is
13569 # no limit to the length of command line arguments.
13570 # Libtool will interpret -1 as no limit whatsoever
13571 lt_cv_sys_max_cmd_len=-1;
13575 # On Win9x/ME, this test blows up -- it succeeds, but takes
13576 # about 5 minutes as the teststring grows exponentially.
13577 # Worse, since 9x/ME are not pre-emptively multitasking,
13578 # you end up with a "frozen" computer, even though with patience
13579 # the test eventually succeeds (with a max line length of 256k).
13580 # Instead, let's just punt: use the minimum linelength reported by
13581 # all of the supported platforms: 8192 (on NT/2K/XP).
13582 lt_cv_sys_max_cmd_len=8192;
13586 # On AmigaOS with pdksh, this test takes hours, literally.
13587 # So we just punt and use a minimum line length of 8192.
13588 lt_cv_sys_max_cmd_len=8192;
13591 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13592 # This has been around since 386BSD, at least. Likely further.
13593 if test -x /sbin/sysctl; then
13594 lt_cv_sys_max_cmd_len=`/sbin
/sysctl
-n kern.argmax
`
13595 elif test -x /usr/sbin/sysctl; then
13596 lt_cv_sys_max_cmd_len=`/usr
/sbin
/sysctl
-n kern.argmax
`
13598 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13600 # And add a safety zone
13601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 4`
13602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
* 3`
13606 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13607 lt_cv_sys_max_cmd_len=196608
13611 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13612 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13613 # nice to cause kernel panics so lets avoid the loop below.
13614 # First set a reasonable default.
13615 lt_cv_sys_max_cmd_len=16384
13617 if test -x /sbin/sysconfig; then
13618 case `/sbin
/sysconfig
-q proc exec_disable_arg_limit
` in
13619 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13624 lt_cv_sys_max_cmd_len=102400
13626 sysv5* | sco5v6* | sysv4.2uw2*)
13627 kargmax=`grep ARG_MAX
/etc
/conf
/cf.d
/stune
2>/dev
/null
`
13628 if test -n "$kargmax"; then
13629 lt_cv_sys_max_cmd_len=`echo $kargmax |
sed 's/.*[ ]//'`
13631 lt_cv_sys_max_cmd_len=32768
13635 # If test is not a shell built-in, we'll probably end up computing a
13636 # maximum length that is only half of the actual maximum length, but
13638 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13639 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev
/null
` \
13640 = "XX$teststring") >/dev/null 2>&1 &&
13641 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13642 lt_cv_sys_max_cmd_len=$new_result &&
13643 test $i != 17 # 1/2 MB should be enough
13646 teststring=$teststring$teststring
13649 # Add a significant safety factor because C++ compilers can tack on massive
13650 # amounts of additional arguments before passing them to the linker.
13651 # It appears as though 1/2 is a usable value.
13652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 2`
13658 if test -n $lt_cv_sys_max_cmd_len ; then
13659 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13660 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13662 { echo "$as_me:$LINENO: result: none" >&5
13663 echo "${ECHO_T}none" >&6; }
13669 # Check for command to grab the raw symbol name followed by C symbol from nm.
13670 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13671 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13672 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13676 # These are sane defaults that work on at least a few old systems.
13677 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13679 # Character class describing NM global symbol codes.
13680 symcode='[BCDEGRST]'
13682 # Regexp to match symbols that can be accessed directly from C.
13683 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13685 # Transform an extracted symbol line into a proper C declaration
13686 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13688 # Transform an extracted symbol line into symbol name and symbol address
13689 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'"
13691 # Define system-specific variables.
13696 cygwin* | mingw* | pw32*)
13697 symcode='[ABCDGISTW]'
13699 hpux*) # Its linker distinguishes data from code symbols
13700 if test "$host_cpu" = ia64; then
13701 symcode='[ABCDEGRST]'
13703 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13704 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'"
13707 if test "$host_cpu" = ia64; then
13708 symcode='[ABCDGIRSTW]'
13709 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13710 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'"
13713 irix* | nonstopux*)
13714 symcode='[BCDEGRST]'
13717 symcode='[BCDEGQRST]'
13728 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13736 # Handle CRLF in mingw tool chain
13740 opt_cr=`echo 'x\{0,1\}' |
tr x
'\015'` # option cr in regexp
13744 # If we're using GNU nm, then use its standard symbol codes.
13745 case `$NM -V 2>&1` in
13746 *GNU* | *'with BFD'*)
13747 symcode='[ABCDGIRSTW]' ;;
13750 # Try without a prefix undercore, then with it.
13751 for ac_symprfx in "" "_"; do
13753 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13754 symxfrm="\\1 $ac_symprfx\\2 \\2"
13756 # Write the raw and C identifiers.
13757 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13759 # Check to see that the pipe works correctly.
13763 cat > conftest.$ac_ext <<EOF
13768 void nm_test_func(){}
13772 int main(){nm_test_var='a';nm_test_func();return(0);}
13775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13776 (eval $ac_compile) 2>&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; then
13780 # Now try to grab the symbols.
13782 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13783 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); } && test -s "$nlist"; then
13787 # Try sorting and uniquifying the output.
13788 if sort "$nlist" | uniq > "$nlist"T; then
13789 mv -f "$nlist"T "$nlist"
13794 # Make sure that we snagged all the symbols we need.
13795 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13796 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13797 cat <<EOF > conftest.$ac_ext
13803 # Now generate the symbol file.
13804 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13806 cat <<EOF >> conftest.$ac_ext
13807 #if defined (__STDC__) && __STDC__
13808 # define lt_ptr_t void *
13810 # define lt_ptr_t char *
13814 /* The mapping between symbol names and symbols. */
13819 lt_preloaded_symbols[] =
13822 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13823 cat <<\EOF >> conftest.$ac_ext
13831 # Now try linking the two files.
13832 mv conftest.$ac_objext conftstm.$ac_objext
13833 lt_save_LIBS="$LIBS"
13834 lt_save_CFLAGS="$CFLAGS"
13835 LIBS="conftstm.$ac_objext"
13836 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13838 (eval $ac_link) 2>&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13844 LIBS="$lt_save_LIBS"
13845 CFLAGS="$lt_save_CFLAGS"
13847 echo "cannot find nm_test_func in $nlist" >&5
13850 echo "cannot find nm_test_var in $nlist" >&5
13853 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13856 echo "$progname: failed program was:" >&5
13857 cat conftest.$ac_ext >&5
13859 rm -f conftest* conftst*
13861 # Do not use the global_symbol_pipe unless it works.
13862 if test "$pipe_works" = yes; then
13865 lt_cv_sys_global_symbol_pipe=
13871 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13872 lt_cv_sys_global_symbol_to_cdecl=
13874 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13875 { echo "$as_me:$LINENO: result: failed" >&5
13876 echo "${ECHO_T}failed" >&6; }
13878 { echo "$as_me:$LINENO: result: ok" >&5
13879 echo "${ECHO_T}ok" >&6; }
13882 { echo "$as_me:$LINENO: checking for objdir" >&5
13883 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13884 if test "${lt_cv_objdir+set}" = set; then
13885 echo $ECHO_N "(cached) $ECHO_C" >&6
13887 rm -f .libs 2>/dev/null
13888 mkdir .libs 2>/dev/null
13889 if test -d .libs; then
13892 # MS-DOS does not allow filenames that begin with a dot.
13895 rmdir .libs 2>/dev/null
13897 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13898 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13899 objdir=$lt_cv_objdir
13907 # AIX sometimes has problems with the GCC collect2 program. For some
13908 # reason, if we set the COLLECT_NAMES environment variable, the problems
13909 # vanish in a puff of smoke.
13910 if test "X${COLLECT_NAMES+set}" != Xset; then
13912 export COLLECT_NAMES
13917 # Sed substitution that helps us do robust quoting. It backslashifies
13918 # metacharacters that are still active within double-quoted strings.
13919 Xsed='sed -e 1s/^X//'
13920 sed_quote_subst='s/\([\\"\\`$
\\\\]\
)/\\\
1/g
'
13922 # Same as above, but do not quote variable references.
13923 double_quote_subst='s
/\
([\\"\\`\\\\]\)/\\\1/g'
13925 # Sed substitution to delay expansion of an escaped shell variable in a
13926 # double_quote_subst'ed string.
13927 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13929 # Sed substitution to avoid accidental globbing in evaled expressions
13930 no_glob_subst='s/\*/\\\*/g'
13935 # Global variables:
13936 default_ofile=mklib
13937 can_build_shared=yes
13939 # All known linkers require a `.a' archive for static linking (except MSVC,
13940 # which needs '.lib').
13942 ltmain="$ac_aux_dir/ltmain.sh
"
13943 ofile="$default_ofile"
13944 with_gnu_ld="$lt_cv_prog_gnu_ld"
13946 if test -n "$ac_tool_prefix"; then
13947 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13948 set dummy ${ac_tool_prefix}ar; ac_word=$2
13949 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13950 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13951 if test "${ac_cv_prog_AR+set}" = set; then
13952 echo $ECHO_N "(cached
) $ECHO_C" >&6
13954 if test -n "$AR"; then
13955 ac_cv_prog_AR="$AR" # Let the user override the test.
13957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13958 for as_dir in $PATH
13961 test -z "$as_dir" && as_dir=.
13962 for ac_exec_ext in '' $ac_executable_extensions; do
13963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13964 ac_cv_prog_AR="${ac_tool_prefix}ar"
13965 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13975 if test -n "$AR"; then
13976 { echo "$as_me:$LINENO: result
: $AR" >&5
13977 echo "${ECHO_T}$AR" >&6; }
13979 { echo "$as_me:$LINENO: result
: no
" >&5
13980 echo "${ECHO_T}no
" >&6; }
13985 if test -z "$ac_cv_prog_AR"; then
13987 # Extract the first word of "ar", so it can be a program name with args.
13988 set dummy ar; ac_word=$2
13989 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13990 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13991 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13992 echo $ECHO_N "(cached
) $ECHO_C" >&6
13994 if test -n "$ac_ct_AR"; then
13995 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13998 for as_dir in $PATH
14001 test -z "$as_dir" && as_dir=.
14002 for ac_exec_ext in '' $ac_executable_extensions; do
14003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14004 ac_cv_prog_ac_ct_AR="ar"
14005 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14014 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14015 if test -n "$ac_ct_AR"; then
14016 { echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
14017 echo "${ECHO_T}$ac_ct_AR" >&6; }
14019 { echo "$as_me:$LINENO: result
: no
" >&5
14020 echo "${ECHO_T}no
" >&6; }
14023 if test "x
$ac_ct_AR" = x; then
14026 case $cross_compiling:$ac_tool_warned in
14028 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14029 whose name does not start with the
host triplet. If you think this
14030 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14031 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14032 whose name does not start with the
host triplet. If you think this
14033 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14034 ac_tool_warned=yes ;;
14039 AR="$ac_cv_prog_AR"
14042 if test -n "$ac_tool_prefix"; then
14043 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
14044 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14045 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14046 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14047 if test "${ac_cv_prog_RANLIB+set}" = set; then
14048 echo $ECHO_N "(cached
) $ECHO_C" >&6
14050 if test -n "$RANLIB"; then
14051 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14054 for as_dir in $PATH
14057 test -z "$as_dir" && as_dir=.
14058 for ac_exec_ext in '' $ac_executable_extensions; do
14059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14060 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
14061 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14070 RANLIB=$ac_cv_prog_RANLIB
14071 if test -n "$RANLIB"; then
14072 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
14073 echo "${ECHO_T}$RANLIB" >&6; }
14075 { echo "$as_me:$LINENO: result
: no
" >&5
14076 echo "${ECHO_T}no
" >&6; }
14081 if test -z "$ac_cv_prog_RANLIB"; then
14082 ac_ct_RANLIB=$RANLIB
14083 # Extract the first word of "ranlib
", so it can be a program name with args.
14084 set dummy ranlib; ac_word=$2
14085 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14086 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14087 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14088 echo $ECHO_N "(cached
) $ECHO_C" >&6
14090 if test -n "$ac_ct_RANLIB"; then
14091 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14094 for as_dir in $PATH
14097 test -z "$as_dir" && as_dir=.
14098 for ac_exec_ext in '' $ac_executable_extensions; do
14099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14100 ac_cv_prog_ac_ct_RANLIB="ranlib
"
14101 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14110 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14111 if test -n "$ac_ct_RANLIB"; then
14112 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
14113 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14115 { echo "$as_me:$LINENO: result
: no
" >&5
14116 echo "${ECHO_T}no
" >&6; }
14119 if test "x
$ac_ct_RANLIB" = x; then
14122 case $cross_compiling:$ac_tool_warned in
14124 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14125 whose name does not start with the
host triplet. If you think this
14126 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14127 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14128 whose name does not start with the
host triplet. If you think this
14129 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14130 ac_tool_warned=yes ;;
14132 RANLIB=$ac_ct_RANLIB
14135 RANLIB="$ac_cv_prog_RANLIB"
14138 if test -n "$ac_tool_prefix"; then
14139 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14140 set dummy ${ac_tool_prefix}strip; ac_word=$2
14141 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14142 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14143 if test "${ac_cv_prog_STRIP+set}" = set; then
14144 echo $ECHO_N "(cached
) $ECHO_C" >&6
14146 if test -n "$STRIP"; then
14147 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14150 for as_dir in $PATH
14153 test -z "$as_dir" && as_dir=.
14154 for ac_exec_ext in '' $ac_executable_extensions; do
14155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14156 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14157 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14166 STRIP=$ac_cv_prog_STRIP
14167 if test -n "$STRIP"; then
14168 { echo "$as_me:$LINENO: result
: $STRIP" >&5
14169 echo "${ECHO_T}$STRIP" >&6; }
14171 { echo "$as_me:$LINENO: result
: no
" >&5
14172 echo "${ECHO_T}no
" >&6; }
14177 if test -z "$ac_cv_prog_STRIP"; then
14179 # Extract the first word of "strip
", so it can be a program name with args.
14180 set dummy strip; ac_word=$2
14181 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14182 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14183 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14184 echo $ECHO_N "(cached
) $ECHO_C" >&6
14186 if test -n "$ac_ct_STRIP"; then
14187 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14190 for as_dir in $PATH
14193 test -z "$as_dir" && as_dir=.
14194 for ac_exec_ext in '' $ac_executable_extensions; do
14195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14196 ac_cv_prog_ac_ct_STRIP="strip
"
14197 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14206 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14207 if test -n "$ac_ct_STRIP"; then
14208 { echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
14209 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14211 { echo "$as_me:$LINENO: result
: no
" >&5
14212 echo "${ECHO_T}no
" >&6; }
14215 if test "x
$ac_ct_STRIP" = x; then
14218 case $cross_compiling:$ac_tool_warned in
14220 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14221 whose name does not start with the
host triplet. If you think this
14222 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14223 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14224 whose name does not start with the
host triplet. If you think this
14225 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14226 ac_tool_warned=yes ;;
14231 STRIP="$ac_cv_prog_STRIP"
14236 old_CFLAGS="$CFLAGS"
14238 # Set sane defaults for various variables
14239 test -z "$AR" && AR=ar
14240 test -z "$AR_FLAGS" && AR_FLAGS=cru
14241 test -z "$AS" && AS=as
14242 test -z "$CC" && CC=cc
14243 test -z "$LTCC" && LTCC=$CC
14244 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14245 test -z "$DLLTOOL" && DLLTOOL=dlltool
14246 test -z "$LD" && LD=ld
14247 test -z "$LN_S" && LN_S="ln -s"
14248 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14249 test -z "$NM" && NM=nm
14250 test -z "$SED" && SED=sed
14251 test -z "$OBJDUMP" && OBJDUMP=objdump
14252 test -z "$RANLIB" && RANLIB=:
14253 test -z "$STRIP" && STRIP=:
14254 test -z "$ac_objext" && ac_objext=o
14256 # Determine commands to create old-style static archives.
14257 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14258 old_postinstall_cmds='chmod 644 $oldlib'
14259 old_postuninstall_cmds=
14261 if test -n "$RANLIB"; then
14264 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
14267 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
14270 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
14273 for cc_temp in $compiler""; do
14275 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14276 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14281 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
14284 # Only perform the check for file, if the check method requires it
14285 case $deplibs_check_method in
14287 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14288 { echo "$as_me:$LINENO: checking
for ${ac_tool_prefix}file" >&5
14289 echo $ECHO_N "checking
for ${ac_tool_prefix}file...
$ECHO_C" >&6; }
14290 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14291 echo $ECHO_N "(cached
) $ECHO_C" >&6
14295 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14298 lt_save_MAGIC_CMD="$MAGIC_CMD"
14299 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14300 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14301 for ac_dir in $ac_dummy; do
14303 test -z "$ac_dir" && ac_dir=.
14304 if test -f $ac_dir/${ac_tool_prefix}file; then
14305 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14306 if test -n "$file_magic_test_file"; then
14307 case $deplibs_check_method in
14309 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14310 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14311 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14312 $EGREP "$file_magic_regex" > /dev/null; then
14317 *** Warning: the command libtool uses to detect shared libraries,
14318 *** $file_magic_cmd, produces output that libtool cannot recognize.
14319 *** The result is that libtool may fail to recognize shared libraries
14320 *** as such. This will affect the creation of libtool libraries that
14321 *** depend on shared libraries, but programs linked with such libtool
14322 *** libraries will work regardless of this problem. Nevertheless, you
14323 *** may want to report the problem to your system manager and/or to
14324 *** bug-libtool@gnu.org
14334 MAGIC_CMD="$lt_save_MAGIC_CMD"
14339 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14340 if test -n "$MAGIC_CMD"; then
14341 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
14342 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14344 { echo "$as_me:$LINENO: result
: no
" >&5
14345 echo "${ECHO_T}no
" >&6; }
14348 if test -z "$lt_cv_path_MAGIC_CMD"; then
14349 if test -n "$ac_tool_prefix"; then
14350 { echo "$as_me:$LINENO: checking
for file" >&5
14351 echo $ECHO_N "checking
for file...
$ECHO_C" >&6; }
14352 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14353 echo $ECHO_N "(cached
) $ECHO_C" >&6
14357 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14360 lt_save_MAGIC_CMD="$MAGIC_CMD"
14361 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14362 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14363 for ac_dir in $ac_dummy; do
14365 test -z "$ac_dir" && ac_dir=.
14366 if test -f $ac_dir/file; then
14367 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14368 if test -n "$file_magic_test_file"; then
14369 case $deplibs_check_method in
14371 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14372 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14373 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14374 $EGREP "$file_magic_regex" > /dev/null; then
14379 *** Warning: the command libtool uses to detect shared libraries,
14380 *** $file_magic_cmd, produces output that libtool cannot recognize.
14381 *** The result is that libtool may fail to recognize shared libraries
14382 *** as such. This will affect the creation of libtool libraries that
14383 *** depend on shared libraries, but programs linked with such libtool
14384 *** libraries will work regardless of this problem. Nevertheless, you
14385 *** may want to report the problem to your system manager and/or to
14386 *** bug-libtool@gnu.org
14396 MAGIC_CMD="$lt_save_MAGIC_CMD"
14401 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14402 if test -n "$MAGIC_CMD"; then
14403 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
14404 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14406 { echo "$as_me:$LINENO: result
: no
" >&5
14407 echo "${ECHO_T}no
" >&6; }
14420 enable_win32_dll=no
14422 # Check whether --enable-libtool-lock was given.
14423 if test "${enable_libtool_lock+set}" = set; then
14424 enableval=$enable_libtool_lock;
14427 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14430 # Check whether --with-pic was given.
14431 if test "${with_pic+set}" = set; then
14432 withval=$with_pic; pic_mode="$withval"
14437 test -z "$pic_mode" && pic_mode=default
14439 # Use C for the default configuration in the libtool script
14443 ac_cpp='$CPP $CPPFLAGS'
14444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14449 # Source file extension for C test sources.
14452 # Object file extension for compiled C test sources.
14456 # Code to be used in simple compile tests
14457 lt_simple_compile_test_code="int some_variable
= 0;\n"
14459 # Code to be used in simple link tests
14460 lt_simple_link_test_code='int main(){return(0);}\n'
14463 # If no C compiler was specified, use CC.
14466 # If no C compiler flags were specified, use CFLAGS.
14467 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14469 # Allow CC to be a program name with arguments.
14473 # save warnings/boilerplate of simple test code
14474 ac_outfile=conftest.$ac_objext
14475 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14476 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14477 _lt_compiler_boilerplate=`cat conftest.err`
14480 ac_outfile=conftest.$ac_objext
14481 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14482 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14483 _lt_linker_boilerplate=`cat conftest.err`
14488 lt_prog_compiler_no_builtin_flag=
14490 if test "$GCC" = yes; then
14491 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14494 { echo "$as_me:$LINENO: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14495 echo $ECHO_N "checking
if $compiler supports
-fno-rtti -fno-exceptions...
$ECHO_C" >&6; }
14496 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14497 echo $ECHO_N "(cached
) $ECHO_C" >&6
14499 lt_cv_prog_compiler_rtti_exceptions=no
14500 ac_outfile=conftest.$ac_objext
14501 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14502 lt_compiler_flag="-fno-rtti -fno-exceptions"
14503 # Insert the option either (1) after the last *FLAGS variable, or
14504 # (2) before a word containing "conftest.
", or (3) at the end.
14505 # Note that $ac_compile itself does not contain backslashes and begins
14506 # with a dollar sign (not a hyphen), so the echo should work correctly.
14507 # The option is referenced via a variable to avoid confusing sed.
14508 lt_compile=`echo "$ac_compile" | $SED \
14509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14511 -e 's:$: $lt_compiler_flag:'`
14512 (eval echo "\"\
$as_me:14512: $lt_compile\"" >&5)
14513 (eval "$lt_compile" 2>conftest.err)
14515 cat conftest.err >&5
14516 echo "$as_me:14516: \$?
= $ac_status" >&5
14517 if (exit $ac_status) && test -s "$ac_outfile"; then
14518 # The compiler can only warn and ignore the option if not recognized
14519 # So say no if there are warnings other than the usual output.
14520 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14522 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14523 lt_cv_prog_compiler_rtti_exceptions=yes
14529 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14530 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14532 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14533 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14540 lt_prog_compiler_wl=
14541 lt_prog_compiler_pic=
14542 lt_prog_compiler_static=
14544 { echo "$as_me:$LINENO: checking
for $compiler option to produce PIC
" >&5
14545 echo $ECHO_N "checking
for $compiler option to produce PIC...
$ECHO_C" >&6; }
14547 if test "$GCC" = yes; then
14548 lt_prog_compiler_wl='-Wl,'
14549 lt_prog_compiler_static='-static'
14553 # All AIX code is PIC.
14554 if test "$host_cpu" = ia64; then
14555 # AIX 5 now supports IA64 processor
14556 lt_prog_compiler_static='-Bstatic'
14561 # FIXME: we need at least 68020 code to build shared libraries, but
14562 # adding the `-m68020' flag to GCC prevents building anything better,
14564 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14567 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14568 # PIC is the default for these OSes.
14571 mingw* | pw32* | os2*)
14572 # This hack is so that the source file can tell whether it is being
14573 # built for inclusion in a dll (and should export symbols for example).
14574 lt_prog_compiler_pic='-DDLL_EXPORT'
14577 darwin* | rhapsody*)
14578 # PIC is the default on this platform
14579 # Common symbols not allowed in MH_DYLIB files
14580 lt_prog_compiler_pic='-fno-common'
14584 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14585 # Instead, we relocate shared libraries at runtime.
14589 # Just because we use GCC doesn't mean we suddenly get shared libraries
14590 # on systems that don't support them.
14591 lt_prog_compiler_can_build_shared=no
14596 if test -d /usr/nec; then
14597 lt_prog_compiler_pic=-Kconform_pic
14602 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14603 # not for PA HP-UX.
14609 lt_prog_compiler_pic='-fPIC'
14615 lt_prog_compiler_pic='-fPIC'
14619 # PORTME Check for flag to pass linker flags through the system compiler.
14622 lt_prog_compiler_wl='-Wl,'
14623 if test "$host_cpu" = ia64; then
14624 # AIX 5 now supports IA64 processor
14625 lt_prog_compiler_static='-Bstatic'
14627 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14631 # PIC is the default on this platform
14632 # Common symbols not allowed in MH_DYLIB files
14633 case $cc_basename in
14635 lt_prog_compiler_pic='-qnocommon'
14636 lt_prog_compiler_wl='-Wl,'
14641 mingw* | pw32* | os2*)
14642 # This hack is so that the source file can tell whether it is being
14643 # built for inclusion in a dll (and should export symbols for example).
14644 lt_prog_compiler_pic='-DDLL_EXPORT'
14647 hpux9* | hpux10* | hpux11*)
14648 lt_prog_compiler_wl='-Wl,'
14649 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14650 # not for PA HP-UX.
14656 lt_prog_compiler_pic='+Z'
14659 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14660 lt_prog_compiler_static='${wl}-a ${wl}archive'
14663 irix5* | irix6* | nonstopux*)
14664 lt_prog_compiler_wl='-Wl,'
14665 # PIC (with -KPIC) is the default.
14666 lt_prog_compiler_static='-non_shared'
14670 lt_prog_compiler_pic='-KPIC'
14671 lt_prog_compiler_static='-Bstatic'
14675 case $cc_basename in
14677 lt_prog_compiler_wl='-Wl,'
14678 lt_prog_compiler_pic='-KPIC'
14679 lt_prog_compiler_static='-static'
14681 pgcc* | pgf77* | pgf90* | pgf95*)
14682 # Portland Group compilers (*not* the Pentium gcc compiler,
14683 # which looks to be a dead project)
14684 lt_prog_compiler_wl='-Wl,'
14685 lt_prog_compiler_pic='-fpic'
14686 lt_prog_compiler_static='-Bstatic'
14689 lt_prog_compiler_wl='-Wl,'
14690 # All Alpha code is PIC.
14691 lt_prog_compiler_static='-non_shared'
14696 osf3* | osf4* | osf5*)
14697 lt_prog_compiler_wl='-Wl,'
14698 # All OSF/1 code is PIC.
14699 lt_prog_compiler_static='-non_shared'
14703 lt_prog_compiler_pic='-KPIC'
14704 lt_prog_compiler_static='-Bstatic'
14705 case $cc_basename in
14706 f77* | f90* | f95*)
14707 lt_prog_compiler_wl='-Qoption ld ';;
14709 lt_prog_compiler_wl='-Wl,';;
14714 lt_prog_compiler_wl='-Qoption ld '
14715 lt_prog_compiler_pic='-PIC'
14716 lt_prog_compiler_static='-Bstatic'
14719 sysv4 | sysv4.2uw2* | sysv4.3*)
14720 lt_prog_compiler_wl='-Wl,'
14721 lt_prog_compiler_pic='-KPIC'
14722 lt_prog_compiler_static='-Bstatic'
14726 if test -d /usr/nec ;then
14727 lt_prog_compiler_pic='-Kconform_pic'
14728 lt_prog_compiler_static='-Bstatic'
14732 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14733 lt_prog_compiler_wl='-Wl,'
14734 lt_prog_compiler_pic='-KPIC'
14735 lt_prog_compiler_static='-Bstatic'
14739 lt_prog_compiler_wl='-Wl,'
14740 lt_prog_compiler_can_build_shared=no
14744 lt_prog_compiler_pic='-pic'
14745 lt_prog_compiler_static='-Bstatic'
14749 lt_prog_compiler_can_build_shared=no
14754 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic" >&5
14755 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14758 # Check to make sure the PIC flag actually works.
14760 if test -n "$lt_prog_compiler_pic"; then
14762 { echo "$as_me:$LINENO: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
14763 echo $ECHO_N "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
$ECHO_C" >&6; }
14764 if test "${lt_prog_compiler_pic_works+set}" = set; then
14765 echo $ECHO_N "(cached
) $ECHO_C" >&6
14767 lt_prog_compiler_pic_works=no
14768 ac_outfile=conftest.$ac_objext
14769 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14770 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14771 # Insert the option either (1) after the last *FLAGS variable, or
14772 # (2) before a word containing "conftest.
", or (3) at the end.
14773 # Note that $ac_compile itself does not contain backslashes and begins
14774 # with a dollar sign (not a hyphen), so the echo should work correctly.
14775 # The option is referenced via a variable to avoid confusing sed.
14776 lt_compile=`echo "$ac_compile" | $SED \
14777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14779 -e 's:$: $lt_compiler_flag:'`
14780 (eval echo "\"\
$as_me:14780: $lt_compile\"" >&5)
14781 (eval "$lt_compile" 2>conftest.err)
14783 cat conftest.err >&5
14784 echo "$as_me:14784: \$?
= $ac_status" >&5
14785 if (exit $ac_status) && test -s "$ac_outfile"; then
14786 # The compiler can only warn and ignore the option if not recognized
14787 # So say no if there are warnings other than the usual output.
14788 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14790 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14791 lt_prog_compiler_pic_works=yes
14797 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic_works" >&5
14798 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14800 if test x"$lt_prog_compiler_pic_works" = xyes; then
14801 case $lt_prog_compiler_pic in
14803 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14806 lt_prog_compiler_pic=
14807 lt_prog_compiler_can_build_shared=no
14812 # For platforms which do not support PIC, -DPIC is meaningless:
14814 lt_prog_compiler_pic=
14817 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14822 # Check to make sure the static flag actually works.
14824 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14825 { echo "$as_me:$LINENO: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
14826 echo $ECHO_N "checking
if $compiler static flag
$lt_tmp_static_flag works...
$ECHO_C" >&6; }
14827 if test "${lt_prog_compiler_static_works+set}" = set; then
14828 echo $ECHO_N "(cached
) $ECHO_C" >&6
14830 lt_prog_compiler_static_works=no
14831 save_LDFLAGS="$LDFLAGS"
14832 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14833 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14834 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14835 # The linker can only warn and ignore the option if not recognized
14836 # So say no if there are warnings
14837 if test -s conftest.err; then
14838 # Append any errors to the config.log.
14839 cat conftest.err 1>&5
14840 $echo "X
$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14842 if diff conftest.exp conftest.er2 >/dev/null; then
14843 lt_prog_compiler_static_works=yes
14846 lt_prog_compiler_static_works=yes
14850 LDFLAGS="$save_LDFLAGS"
14853 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_static_works" >&5
14854 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14856 if test x"$lt_prog_compiler_static_works" = xyes; then
14859 lt_prog_compiler_static=
14863 { echo "$as_me:$LINENO: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
14864 echo $ECHO_N "checking
if $compiler supports
-c -o file.
$ac_objext...
$ECHO_C" >&6; }
14865 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14866 echo $ECHO_N "(cached
) $ECHO_C" >&6
14868 lt_cv_prog_compiler_c_o=no
14869 $rm -r conftest 2>/dev/null
14873 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14875 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
14876 # Insert the option either (1) after the last *FLAGS variable, or
14877 # (2) before a word containing "conftest.
", or (3) at the end.
14878 # Note that $ac_compile itself does not contain backslashes and begins
14879 # with a dollar sign (not a hyphen), so the echo should work correctly.
14880 lt_compile=`echo "$ac_compile" | $SED \
14881 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14883 -e 's:$: $lt_compiler_flag:'`
14884 (eval echo "\"\
$as_me:14884: $lt_compile\"" >&5)
14885 (eval "$lt_compile" 2>out/conftest.err)
14887 cat out/conftest.err >&5
14888 echo "$as_me:14888: \$?
= $ac_status" >&5
14889 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14891 # The compiler can only warn and ignore the option if not recognized
14892 # So say no if there are warnings
14893 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14894 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14895 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14896 lt_cv_prog_compiler_c_o=yes
14901 # SGI C++ compiler will create directory out/ii_files/ for
14902 # template instantiation
14903 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14904 $rm out/* && rmdir out
14910 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_c_o" >&5
14911 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14914 hard_links="nottested
"
14915 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14916 # do not overwrite the value of need_locks provided by the user
14917 { echo "$as_me:$LINENO: checking
if we can lock with hard links
" >&5
14918 echo $ECHO_N "checking
if we can lock with hard links...
$ECHO_C" >&6; }
14921 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14923 ln conftest.a conftest.b 2>&5 || hard_links=no
14924 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14925 { echo "$as_me:$LINENO: result
: $hard_links" >&5
14926 echo "${ECHO_T}$hard_links" >&6; }
14927 if test "$hard_links" = no; then
14928 { echo "$as_me:$LINENO: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
14929 echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
14936 { echo "$as_me:$LINENO: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
14937 echo $ECHO_N "checking whether the
$compiler linker
($LD) supports shared libraries...
$ECHO_C" >&6; }
14940 allow_undefined_flag=
14941 enable_shared_with_static_runtimes=no
14943 archive_expsym_cmds=
14944 old_archive_From_new_cmds=
14945 old_archive_from_expsyms_cmds=
14946 export_dynamic_flag_spec=
14947 whole_archive_flag_spec=
14948 thread_safe_flag_spec=
14949 hardcode_libdir_flag_spec=
14950 hardcode_libdir_flag_spec_ld=
14951 hardcode_libdir_separator=
14953 hardcode_minus_L=no
14954 hardcode_shlibpath_var=unsupported
14955 link_all_deplibs=unknown
14956 hardcode_automatic=no
14958 module_expsym_cmds=
14959 always_export_symbols=no
14960 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14961 # include_expsyms should be a list of space-separated symbols to be *always*
14962 # included in the symbol list
14964 # exclude_expsyms can be an extended regexp of symbols to exclude
14965 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14966 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14967 # as well as any symbol that contains `d'.
14968 exclude_expsyms="_GLOBAL_OFFSET_TABLE_
"
14969 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14970 # platforms (ab)use it in PIC code, but their linkers get confused if
14971 # the symbol is explicitly referenced. Since portable code cannot
14972 # rely on this symbol name, it's probably fine to never include it in
14973 # preloaded symbol tables.
14974 extract_expsyms_cmds=
14975 # Just being paranoid about ensuring that cc_basename is set.
14976 for cc_temp in $compiler""; do
14978 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14979 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14984 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
14987 cygwin* | mingw* | pw32*)
14988 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14989 # When not using gcc, we currently assume that we are using
14990 # Microsoft Visual C++.
14991 if test "$GCC" != yes; then
14996 # we just hope/assume this is gcc and not c89 (= MSVC++)
15005 if test "$with_gnu_ld" = yes; then
15006 # If archive_cmds runs LD, not CC, wlarc should be empty
15009 # Set some defaults for GNU ld with shared library support. These
15010 # are reset later if shared libraries are not supported. Putting them
15011 # here allows them to be overridden if necessary.
15012 runpath_var=LD_RUN_PATH
15013 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15014 export_dynamic_flag_spec='${wl}--export-dynamic'
15015 # ancient GNU ld didn't support --whole-archive et. al.
15016 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15017 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15019 whole_archive_flag_spec=
15021 supports_anon_versioning=no
15022 case `$LD -v 2>/dev/null` in
15023 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15024 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15025 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15026 *\ 2.11.*) ;; # other 2.11 versions
15027 *) supports_anon_versioning=yes ;;
15030 # See if GNU ld supports shared libraries.
15032 aix3* | aix4* | aix5*)
15033 # On AIX/PPC, the GNU linker is very broken
15034 if test "$host_cpu" != ia64; then
15038 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15039 *** to be unable to reliably create shared libraries on AIX.
15040 *** Therefore, libtool is disabling shared libraries support. If you
15041 *** really care for shared libraries, you may want to modify your PATH
15042 *** so that a non-GNU linker is found, and then restart.
15049 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)'
15050 hardcode_libdir_flag_spec
='-L$libdir'
15051 hardcode_minus_L
=yes
15053 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15054 # that the semantics of dynamic libraries on AmigaOS, at least up
15055 # to version 4, is to share data among multiple programs linked
15056 # with the same dynamic library. Since this doesn't match the
15057 # behavior of shared libraries on other platforms, we can't use
15063 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15064 allow_undefined_flag
=unsupported
15065 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15066 # support --undefined. This deserves some investigation. FIXME
15067 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15073 cygwin
* | mingw
* | pw32
*)
15074 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15075 # as there is no search path for DLLs.
15076 hardcode_libdir_flag_spec
='-L$libdir'
15077 allow_undefined_flag
=unsupported
15078 always_export_symbols
=no
15079 enable_shared_with_static_runtimes
=yes
15080 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15082 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
15083 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15084 # If the export-symbols file already is a .def file (1st line
15085 # is EXPORTS), use it as is; otherwise, prepend...
15086 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15087 cp $export_symbols $output_objdir/$soname.def;
15089 echo EXPORTS > $output_objdir/$soname.def;
15090 cat $export_symbols >> $output_objdir/$soname.def;
15092 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15100 hardcode_shlibpath_var
=no
15101 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15102 export_dynamic_flag_spec
='${wl}-E'
15103 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15104 # Instead, shared libraries are loaded at an image base (0x10000000 by
15105 # default) and relocated if they conflict, which is a slow very memory
15106 # consuming and fragmenting process. To avoid this, we pick a random,
15107 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15108 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15109 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15110 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'
15114 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15116 case $cc_basename,$host_cpu in
15117 pgcc
*) # Portland Group C compiler
15118 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'
15119 tmp_addflag
=' $pic_flag'
15121 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
15122 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'
15123 tmp_addflag
=' $pic_flag -Mnomain' ;;
15124 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15125 tmp_addflag
=' -i_dynamic' ;;
15126 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15127 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15128 ifc
* | ifort
*) # Intel Fortran compiler
15129 tmp_addflag
=' -nofor_main' ;;
15131 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15133 if test $supports_anon_versioning = yes; then
15134 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
15135 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15136 $echo "local: *; };" >> $output_objdir/$libname.ver~
15137 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15145 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15146 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15149 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15150 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15155 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
15159 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15160 *** create shared libraries on Solaris systems. Therefore, libtool
15161 *** is disabling shared libraries support. We urge you to upgrade GNU
15162 *** binutils to release 2.9.1 or newer. Another option is to modify
15163 *** your PATH or compiler configuration so that the native linker is
15164 *** used, and then restart.
15167 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15168 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15169 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15175 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15176 case `$LD -v 2>&1` in
15177 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15181 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15182 *** reliably create shared libraries on SCO systems. Therefore, libtool
15183 *** is disabling shared libraries support. We urge you to upgrade GNU
15184 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15185 *** your PATH or compiler configuration so that the native linker is
15186 *** used, and then restart.
15191 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15192 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15193 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15194 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15203 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15205 hardcode_direct
=yes
15206 hardcode_shlibpath_var
=no
15210 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15211 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15212 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15219 if test "$ld_shlibs" = no
; then
15221 hardcode_libdir_flag_spec
=
15222 export_dynamic_flag_spec
=
15223 whole_archive_flag_spec
=
15226 # PORTME fill in a description of your system's linker (not GNU ld)
15229 allow_undefined_flag
=unsupported
15230 always_export_symbols
=yes
15231 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'
15232 # Note: this linker hardcodes the directories in LIBPATH if there
15233 # are no directories specified by -L.
15234 hardcode_minus_L
=yes
15235 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15236 # Neither direct hardcoding nor static linking is supported with a
15238 hardcode_direct
=unsupported
15243 if test "$host_cpu" = ia64
; then
15244 # On IA64, the linker does run time linking by default, so we don't
15245 # have to do anything special.
15246 aix_use_runtimelinking
=no
15247 exp_sym_flag
='-Bexport'
15250 # If we're using GNU nm, then we don't want the "-C" option.
15251 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15252 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
15253 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'
15255 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'
15257 aix_use_runtimelinking
=no
15259 # Test if we are trying to use run time linking or normal
15260 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15261 # need to do runtime linking.
15262 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
15263 for ld_flag
in $LDFLAGS; do
15264 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15265 aix_use_runtimelinking
=yes
15272 exp_sym_flag
='-bexport'
15273 no_entry_flag
='-bnoentry'
15276 # When large executables or shared objects are built, AIX ld can
15277 # have problems creating the table of contents. If linking a library
15278 # or program results in "error TOC overflow" add -mminimal-toc to
15279 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15280 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15283 hardcode_direct
=yes
15284 hardcode_libdir_separator
=':'
15285 link_all_deplibs
=yes
15287 if test "$GCC" = yes; then
15288 case $host_os in aix4.
[012]|aix4.
[012].
*)
15289 # We only want to do this on AIX 4.2 and lower, the check
15290 # below for broken collect2 doesn't work under 4.3+
15291 collect2name
=`${CC} -print-prog-name=collect2`
15292 if test -f "$collect2name" && \
15293 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
15295 # We have reworked collect2
15296 hardcode_direct
=yes
15298 # We have old collect2
15299 hardcode_direct
=unsupported
15300 # It fails to find uninstalled libraries when the uninstalled
15301 # path is not listed in the libpath. Setting hardcode_minus_L
15302 # to unsupported forces relinking
15303 hardcode_minus_L
=yes
15304 hardcode_libdir_flag_spec
='-L$libdir'
15305 hardcode_libdir_separator
=
15309 shared_flag
='-shared'
15310 if test "$aix_use_runtimelinking" = yes; then
15311 shared_flag
="$shared_flag "'${wl}-G'
15315 if test "$host_cpu" = ia64
; then
15316 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15317 # chokes on -Wl,-G. The following line is correct:
15320 if test "$aix_use_runtimelinking" = yes; then
15321 shared_flag
='${wl}-G'
15323 shared_flag
='${wl}-bM:SRE'
15328 # It seems that -bexpall does not export symbols beginning with
15329 # underscore (_), so it is better to generate a list of symbols to export.
15330 always_export_symbols
=yes
15331 if test "$aix_use_runtimelinking" = yes; then
15332 # Warning - without using the other runtime loading flags (-brtl),
15333 # -berok will link without error, but may produce a broken library.
15334 allow_undefined_flag
='-berok'
15335 # Determine the default libpath from the value encoded in an empty executable.
15336 cat >conftest.
$ac_ext <<_ACEOF
15339 cat confdefs.h
>>conftest.
$ac_ext
15340 cat >>conftest.
$ac_ext <<_ACEOF
15341 /* end confdefs.h. */
15351 rm -f conftest.
$ac_objext conftest
$ac_exeext
15352 if { (ac_try
="$ac_link"
15353 case "(($ac_try" in
15354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15358 (eval "$ac_link") 2>conftest.er1
15360 grep -v '^ *+' conftest.er1 >conftest.err
15362 cat conftest.err >&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); } &&
15365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15366 { (case "(($ac_try" in
15367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15368 *) ac_try_echo
=$ac_try;;
15370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_try") 2>&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; } &&
15375 { ac_try
='test -s conftest$ac_exeext'
15376 { (case "(($ac_try" in
15377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15378 *) ac_try_echo=$ac_try;;
15380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381 (eval "$ac_try") 2>&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
15386 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15388 # Check for a 64-bit object if we didn't find anything.
15389 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; }
15392 echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.$ac_ext >&5
15398 rm -f core conftest.err conftest.$ac_objext \
15399 conftest$ac_exeext conftest.$ac_ext
15400 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15402 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15403 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"
15405 if test "$host_cpu" = ia64; then
15406 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15407 allow_undefined_flag="-z nodefs"
15408 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"
15410 # Determine the default libpath from the value encoded in an empty executable.
15411 cat >conftest.$ac_ext <<_ACEOF
15414 cat confdefs.h >>conftest.$ac_ext
15415 cat >>conftest.$ac_ext <<_ACEOF
15416 /* end confdefs.h. */
15426 rm -f conftest.$ac_objext conftest$ac_exeext
15427 if { (ac_try="$ac_link"
15428 case "(($ac_try" in
15429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15430 *) ac_try_echo
=$ac_try;;
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_link") 2>conftest.er1
15435 grep -v '^ *+' conftest.er1
>conftest.err
15437 cat conftest.err
>&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } &&
15440 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15441 { (case "(($ac_try" in
15442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15443 *) ac_try_echo=$ac_try;;
15445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15446 (eval "$ac_try") 2>&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; } &&
15450 { ac_try='test -s conftest$ac_exeext'
15451 { (case "(($ac_try" in
15452 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15453 *) ac_try_echo
=$ac_try;;
15455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15456 (eval "$ac_try") 2>&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; }; then
15461 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15463 # Check for a 64-bit object if we didn't find anything.
15464 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; }
15467 echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.
$ac_ext >&5
15473 rm -f core conftest.err conftest.
$ac_objext \
15474 conftest
$ac_exeext conftest.
$ac_ext
15475 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15477 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15478 # Warning - without using the other run time loading flags,
15479 # -berok will link without error, but may produce a broken library.
15480 no_undefined_flag
=' ${wl}-bernotok'
15481 allow_undefined_flag
=' ${wl}-berok'
15482 # Exported symbols can be pulled into shared objects from archives
15483 whole_archive_flag_spec
='$convenience'
15484 archive_cmds_need_lc
=yes
15485 # This is similar to how AIX traditionally builds its shared libraries.
15486 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'
15492 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)'
15493 hardcode_libdir_flag_spec
='-L$libdir'
15494 hardcode_minus_L
=yes
15495 # see comment about different semantics on the GNU ld section
15500 export_dynamic_flag_spec
=-rdynamic
15503 cygwin
* | mingw
* | pw32
*)
15504 # When not using gcc, we currently assume that we are using
15505 # Microsoft Visual C++.
15506 # hardcode_libdir_flag_spec is actually meaningless, as there is
15507 # no search path for DLLs.
15508 hardcode_libdir_flag_spec
=' '
15509 allow_undefined_flag
=unsupported
15510 # Tell ltmain to make .lib files, not .a files.
15512 # Tell ltmain to make .dll files, not .so files.
15514 # FIXME: Setting linknames here is a bad hack.
15515 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15516 # The linker will automatically build a .lib file if we build a DLL.
15517 old_archive_From_new_cmds
='true'
15518 # FIXME: Should let the user specify the lib program.
15519 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
15520 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15521 enable_shared_with_static_runtimes
=yes
15524 darwin
* | rhapsody
*)
15526 rhapsody
* | darwin1.
[012])
15527 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
15530 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15531 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15533 case ${MACOSX_DEPLOYMENT_TARGET} in
15535 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15538 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
15544 archive_cmds_need_lc
=no
15546 hardcode_automatic
=yes
15547 hardcode_shlibpath_var
=unsupported
15548 whole_archive_flag_spec
=''
15549 link_all_deplibs
=yes
15550 if test "$GCC" = yes ; then
15551 output_verbose_link_cmd
='echo'
15552 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15553 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15554 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15555 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}'
15556 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}'
15558 case $cc_basename in
15560 output_verbose_link_cmd
='echo'
15561 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15562 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15563 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15564 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}'
15565 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}'
15575 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15576 hardcode_libdir_flag_spec
='-L$libdir'
15577 hardcode_shlibpath_var
=no
15584 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15585 # support. Future versions do this automatically, but an explicit c++rt0.o
15586 # does not break anything, and helps significantly (at the cost of a little
15589 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15590 hardcode_libdir_flag_spec
='-R$libdir'
15591 hardcode_direct
=yes
15592 hardcode_shlibpath_var
=no
15595 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15597 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15598 hardcode_direct
=yes
15599 hardcode_minus_L
=yes
15600 hardcode_shlibpath_var
=no
15603 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15604 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
15605 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15606 hardcode_libdir_flag_spec
='-R$libdir'
15607 hardcode_direct
=yes
15608 hardcode_shlibpath_var
=no
15612 if test "$GCC" = yes; then
15613 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'
15615 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'
15617 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15618 hardcode_libdir_separator
=:
15619 hardcode_direct
=yes
15621 # hardcode_minus_L: Not really in the search PATH,
15622 # but as the default location of the library.
15623 hardcode_minus_L
=yes
15624 export_dynamic_flag_spec
='${wl}-E'
15628 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15629 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15631 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15633 if test "$with_gnu_ld" = no
; then
15634 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15635 hardcode_libdir_separator
=:
15637 hardcode_direct
=yes
15638 export_dynamic_flag_spec
='${wl}-E'
15640 # hardcode_minus_L: Not really in the search PATH,
15641 # but as the default location of the library.
15642 hardcode_minus_L
=yes
15647 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15650 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15653 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15656 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15662 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15665 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15668 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15672 if test "$with_gnu_ld" = no
; then
15673 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15674 hardcode_libdir_separator
=:
15678 hardcode_libdir_flag_spec_ld
='+b $libdir'
15680 hardcode_shlibpath_var
=no
15683 hardcode_direct
=yes
15684 export_dynamic_flag_spec
='${wl}-E'
15686 # hardcode_minus_L: Not really in the search PATH,
15687 # but as the default location of the library.
15688 hardcode_minus_L
=yes
15694 irix5
* | irix6
* | nonstopux
*)
15695 if test "$GCC" = yes; then
15696 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'
15698 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'
15699 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15701 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15702 hardcode_libdir_separator
=:
15703 link_all_deplibs
=yes
15707 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15708 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15710 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15712 hardcode_libdir_flag_spec
='-R$libdir'
15713 hardcode_direct
=yes
15714 hardcode_shlibpath_var
=no
15718 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15719 hardcode_direct
=yes
15720 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15721 hardcode_libdir_separator
=:
15722 hardcode_shlibpath_var
=no
15726 hardcode_direct
=yes
15727 hardcode_shlibpath_var
=no
15728 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15729 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15730 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15731 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15732 export_dynamic_flag_spec
='${wl}-E'
15735 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15736 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15737 hardcode_libdir_flag_spec
='-R$libdir'
15740 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15741 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15748 hardcode_libdir_flag_spec
='-L$libdir'
15749 hardcode_minus_L
=yes
15750 allow_undefined_flag
=unsupported
15751 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'
15752 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15756 if test "$GCC" = yes; then
15757 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15758 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'
15760 allow_undefined_flag
=' -expect_unresolved \*'
15761 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'
15763 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15764 hardcode_libdir_separator
=:
15767 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15768 if test "$GCC" = yes; then
15769 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15770 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'
15771 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15773 allow_undefined_flag
=' -expect_unresolved \*'
15774 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'
15775 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15776 $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'
15778 # Both c and cxx compiler support -rpath directly
15779 hardcode_libdir_flag_spec
='-rpath $libdir'
15781 hardcode_libdir_separator
=:
15785 no_undefined_flag
=' -z text'
15786 if test "$GCC" = yes; then
15788 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15789 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15790 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15793 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15794 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15795 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15797 hardcode_libdir_flag_spec
='-R$libdir'
15798 hardcode_shlibpath_var
=no
15800 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15802 # The compiler driver will combine linker options so we
15803 # cannot just pass the convience library names through
15804 # without $wl, iff we do not link with $LD.
15805 # Luckily, gcc supports the same syntax we need for Sun Studio.
15806 # Supported since Solaris 2.6 (maybe 2.5.1?)
15809 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
15811 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' ;;
15814 link_all_deplibs
=yes
15818 if test "x$host_vendor" = xsequent
; then
15819 # Use $CC to link under sequent, because it throws in some extra .o
15820 # files that make .init and .fini sections work.
15821 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15823 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15825 hardcode_libdir_flag_spec
='-L$libdir'
15826 hardcode_direct
=yes
15827 hardcode_minus_L
=yes
15828 hardcode_shlibpath_var
=no
15832 case $host_vendor in
15834 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15835 hardcode_direct
=yes # is this really true???
15838 ## LD is ld it makes a PLAMLIB
15839 ## CC just makes a GrossModule.
15840 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15841 reload_cmds
='$CC -r -o $output$reload_objs'
15845 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15846 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
15849 runpath_var
='LD_RUN_PATH'
15850 hardcode_shlibpath_var
=no
15854 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15855 hardcode_shlibpath_var
=no
15856 export_dynamic_flag_spec
='-Bexport'
15860 if test -d /usr
/nec
; then
15861 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15862 hardcode_shlibpath_var
=no
15863 runpath_var
=LD_RUN_PATH
15864 hardcode_runpath_var
=yes
15869 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
15870 no_undefined_flag
='${wl}-z,text'
15871 archive_cmds_need_lc
=no
15872 hardcode_shlibpath_var
=no
15873 runpath_var
='LD_RUN_PATH'
15875 if test "$GCC" = yes; then
15876 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15877 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15879 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15880 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15884 sysv5
* | sco3.2v5
* | sco5v6
*)
15885 # Note: We can NOT use -z defs as we might desire, because we do not
15886 # link with -lc, and that would cause any symbols used from libc to
15887 # always be unresolved, which means just about no library would
15888 # ever link correctly. If we're not using GNU ld we use -z text
15889 # though, which does catch some bad symbols but isn't as heavy-handed
15891 no_undefined_flag
='${wl}-z,text'
15892 allow_undefined_flag
='${wl}-z,nodefs'
15893 archive_cmds_need_lc
=no
15894 hardcode_shlibpath_var
=no
15895 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15896 hardcode_libdir_separator
=':'
15897 link_all_deplibs
=yes
15898 export_dynamic_flag_spec
='${wl}-Bexport'
15899 runpath_var
='LD_RUN_PATH'
15901 if test "$GCC" = yes; then
15902 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15903 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15905 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15906 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15911 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15912 hardcode_libdir_flag_spec
='-L$libdir'
15913 hardcode_shlibpath_var
=no
15922 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15923 echo "${ECHO_T}$ld_shlibs" >&6; }
15924 test "$ld_shlibs" = no
&& can_build_shared
=no
15927 # Do we need to explicitly link libc?
15929 case "x$archive_cmds_need_lc" in
15931 # Assume -lc should be added
15932 archive_cmds_need_lc
=yes
15934 if test "$enable_shared" = yes && test "$GCC" = yes; then
15935 case $archive_cmds in
15937 # FIXME: we may have to deal with multi-command sequences.
15940 # Test whether the compiler implicitly links with -lc since on some
15941 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15942 # to ld, don't add -lc before -lgcc.
15943 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15944 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15946 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15949 (eval $ac_compile) 2>&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } 2>conftest.err
; then
15955 libobjs
=conftest.
$ac_objext
15957 wl
=$lt_prog_compiler_wl
15958 pic_flag
=$lt_prog_compiler_pic
15964 lt_save_allow_undefined_flag
=$allow_undefined_flag
15965 allow_undefined_flag
=
15966 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15967 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }
15972 archive_cmds_need_lc
=no
15974 archive_cmds_need_lc
=yes
15976 allow_undefined_flag
=$lt_save_allow_undefined_flag
15978 cat conftest.err
1>&5
15981 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15982 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15989 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15990 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15991 library_names_spec
=
15992 libname_spec
='lib$name'
15996 postuninstall_cmds
=
16000 shlibpath_overrides_runpath
=unknown
16002 dynamic_linker
="$host_os ld.so"
16003 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16004 if test "$GCC" = yes; then
16005 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16006 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
16007 # if the path contains ";" then we assume it to be the separator
16008 # otherwise default to the standard path separator (i.e. ":") - it is
16009 # assumed that no part of a normal pathname contains ";" but that should
16010 # okay in the real world where ";" in dirpaths is itself problematic.
16011 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16013 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16016 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16018 need_lib_prefix
=unknown
16019 hardcode_into_libs
=no
16021 # when you set need_version to no, make sure it does not cause -set_version
16022 # flags to be left without arguments
16023 need_version
=unknown
16028 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16029 shlibpath_var
=LIBPATH
16031 # AIX 3 has no versioning support, so we append a major version to the name.
16032 soname_spec
='${libname}${release}${shared_ext}$major'
16039 hardcode_into_libs
=yes
16040 if test "$host_cpu" = ia64
; then
16041 # AIX 5 supports IA64
16042 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16043 shlibpath_var
=LD_LIBRARY_PATH
16045 # With GCC up to 2.95.x, collect2 would create an import file
16046 # for dependence libraries. The import file would start with
16047 # the line `#! .'. This would cause the generated library to
16048 # depend on `.', always an invalid library. This was fixed in
16049 # development snapshots of GCC prior to 3.0.
16051 aix4 | aix4.
[01] | aix4.
[01].
*)
16052 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16054 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
16057 can_build_shared
=no
16061 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16062 # soname into executable. Probably we can add versioning support to
16063 # collect2, so additional links can be useful in future.
16064 if test "$aix_use_runtimelinking" = yes; then
16065 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16066 # instead of lib<name>.a to let people know that these are not
16067 # typical AIX shared libraries.
16068 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16070 # We preserve .a as extension for shared libraries through AIX4.2
16071 # and later when we are not doing run time linking.
16072 library_names_spec
='${libname}${release}.a $libname.a'
16073 soname_spec
='${libname}${release}${shared_ext}$major'
16075 shlibpath_var
=LIBPATH
16080 library_names_spec
='$libname.ixlibrary $libname.a'
16081 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16082 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'
16086 library_names_spec
='${libname}${shared_ext}'
16087 dynamic_linker
="$host_os ld.so"
16088 shlibpath_var
=LIBRARY_PATH
16094 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095 soname_spec
='${libname}${release}${shared_ext}$major'
16096 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16097 shlibpath_var
=LD_LIBRARY_PATH
16098 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16099 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16100 # the default ld.so.conf also contains /usr/contrib/lib and
16101 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16102 # libtool to hard-code these into programs
16105 cygwin
* | mingw
* | pw32
*)
16106 version_type
=windows
16111 case $GCC,$host_os in
16112 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
16113 library_names_spec
='$libname.dll.a'
16114 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16115 postinstall_cmds
='base_file=`basename \${file}`~
16116 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16117 dldir=$destdir/`dirname \$dlpath`~
16118 test -d \$dldir || mkdir -p \$dldir~
16119 $install_prog $dir/$dlname \$dldir/$dlname~
16120 chmod a+x \$dldir/$dlname'
16121 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16122 dlpath=$dir/\$dldll~
16124 shlibpath_overrides_runpath
=yes
16128 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16129 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16130 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
16133 # MinGW DLLs use traditional 'lib' prefix
16134 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16135 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16136 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
16137 # It is most probably a Windows format PATH printed by
16138 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16139 # path with ; separators, and with drive letters. We can handle the
16140 # drive letters (cygwin fileutils understands them), so leave them,
16141 # especially as we might pass files found there to a mingw objdump,
16142 # which wouldn't understand a cygwinified path. Ahh.
16143 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16145 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16149 # pw32 DLLs use 'pw' prefix rather than 'lib'
16150 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16156 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16159 dynamic_linker
='Win32 ld.exe'
16160 # FIXME: first we should search . and the directory the executable is in
16164 darwin
* | rhapsody
*)
16165 dynamic_linker
="$host_os dyld"
16166 version_type
=darwin
16169 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16170 soname_spec
='${libname}${release}${major}$shared_ext'
16171 shlibpath_overrides_runpath
=yes
16172 shlibpath_var
=DYLD_LIBRARY_PATH
16173 shrext_cmds
='.dylib'
16174 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16175 if test "$GCC" = yes; then
16176 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"`
16178 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
16180 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16187 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16188 soname_spec
='${libname}${release}${shared_ext}$major'
16189 shlibpath_var
=LD_LIBRARY_PATH
16200 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16201 soname_spec
='${libname}${release}${shared_ext}$major'
16202 shlibpath_var
=LD_LIBRARY_PATH
16203 shlibpath_overrides_runpath
=no
16204 hardcode_into_libs
=yes
16205 dynamic_linker
='GNU ld.so'
16208 freebsd
* | dragonfly
*)
16209 # DragonFly does not have aout. When/if they implement a new
16210 # versioning mechanism, adjust this.
16211 if test -x /usr
/bin
/objformat
; then
16212 objformat
=`/usr/bin/objformat`
16215 freebsd
[123]*) objformat
=aout
;;
16216 *) objformat
=elf
;;
16219 version_type
=freebsd-
$objformat
16220 case $version_type in
16222 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16227 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16231 shlibpath_var
=LD_LIBRARY_PATH
16234 shlibpath_overrides_runpath
=yes
16236 freebsd3.
[01]* | freebsdelf3.
[01]*)
16237 shlibpath_overrides_runpath
=yes
16238 hardcode_into_libs
=yes
16240 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16241 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16242 shlibpath_overrides_runpath
=no
16243 hardcode_into_libs
=yes
16245 freebsd
*) # from 4.6 on
16246 shlibpath_overrides_runpath
=yes
16247 hardcode_into_libs
=yes
16256 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16257 soname_spec
='${libname}${release}${shared_ext}$major'
16258 shlibpath_var
=LD_LIBRARY_PATH
16259 hardcode_into_libs
=yes
16262 hpux9
* | hpux10
* | hpux11
*)
16263 # Give a soname corresponding to the major version so that dld.sl refuses to
16264 # link against other versions.
16271 hardcode_into_libs
=yes
16272 dynamic_linker
="$host_os dld.so"
16273 shlibpath_var
=LD_LIBRARY_PATH
16274 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16275 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16276 soname_spec
='${libname}${release}${shared_ext}$major'
16277 if test "X$HPUX_IA64_MODE" = X32
; then
16278 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16280 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16282 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16286 hardcode_into_libs
=yes
16287 dynamic_linker
="$host_os dld.sl"
16288 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16289 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16290 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16291 soname_spec
='${libname}${release}${shared_ext}$major'
16292 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16293 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16297 dynamic_linker
="$host_os dld.sl"
16298 shlibpath_var
=SHLIB_PATH
16299 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
16300 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16301 soname_spec
='${libname}${release}${shared_ext}$major'
16304 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16305 postinstall_cmds
='chmod 555 $lib'
16312 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16313 soname_spec
='${libname}${release}${shared_ext}$major'
16314 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16315 shlibpath_var
=LD_LIBRARY_PATH
16316 shlibpath_overrides_runpath
=no
16317 hardcode_into_libs
=yes
16320 irix5
* | irix6
* | nonstopux
*)
16322 nonstopux
*) version_type
=nonstopux
;;
16324 if test "$lt_cv_prog_gnu_ld" = yes; then
16332 soname_spec
='${libname}${release}${shared_ext}$major'
16333 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16335 irix5
* | nonstopux
*)
16336 libsuff
= shlibsuff
=
16339 case $LD in # libtool.m4 will add one of these switches to LD
16340 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16341 libsuff
= shlibsuff
= libmagic
=32-bit;;
16342 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16343 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16344 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16345 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16346 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16350 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16351 shlibpath_overrides_runpath
=no
16352 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16353 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16354 hardcode_into_libs
=yes
16357 # No shared lib support for Linux oldld, aout, or coff.
16358 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16362 # This must be Linux ELF.
16367 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16368 soname_spec
='${libname}${release}${shared_ext}$major'
16369 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16370 shlibpath_var
=LD_LIBRARY_PATH
16371 shlibpath_overrides_runpath
=no
16372 # This implies no fast_install, which is unacceptable.
16373 # Some rework will be needed to allow for fast_install
16374 # before this can be enabled.
16375 hardcode_into_libs
=yes
16377 # Append ld.so.conf contents to the search path
16378 if test -f /etc
/ld.so.conf
; then
16379 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' ' '`
16380 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16383 # We used to test for /lib/ld.so.1 and disable shared libraries on
16384 # powerpc, because MkLinux only supported shared libraries with the
16385 # GNU dynamic linker. Since this was broken with cross compilers,
16386 # most powerpc-linux boxes support dynamic linking these days and
16387 # people can always --disable-shared, the test was removed, and we
16388 # assume the GNU/Linux dynamic linker is in use.
16389 dynamic_linker
='GNU/Linux ld.so'
16396 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16397 soname_spec
='${libname}${release}${shared_ext}$major'
16398 shlibpath_var
=LD_LIBRARY_PATH
16399 shlibpath_overrides_runpath
=no
16400 hardcode_into_libs
=yes
16401 dynamic_linker
='GNU ld.so'
16408 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16409 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16410 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16411 dynamic_linker
='NetBSD (a.out) ld.so'
16413 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16414 soname_spec
='${libname}${release}${shared_ext}$major'
16415 dynamic_linker
='NetBSD ld.elf_so'
16417 shlibpath_var
=LD_LIBRARY_PATH
16418 shlibpath_overrides_runpath
=yes
16419 hardcode_into_libs
=yes
16424 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16425 shlibpath_var
=LD_LIBRARY_PATH
16426 shlibpath_overrides_runpath
=yes
16433 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16434 soname_spec
='${libname}${release}${shared_ext}$major'
16435 shlibpath_var
=LD_LIBRARY_PATH
16436 shlibpath_overrides_runpath
=yes
16441 sys_lib_dlsearch_path_spec
="/usr/lib"
16443 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16445 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16446 *) need_version
=no
;;
16448 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16449 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16450 shlibpath_var
=LD_LIBRARY_PATH
16451 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16453 openbsd2.
[89] | openbsd2.
[89].
*)
16454 shlibpath_overrides_runpath
=no
16457 shlibpath_overrides_runpath
=yes
16461 shlibpath_overrides_runpath
=yes
16466 libname_spec
='$name'
16469 library_names_spec
='$libname${shared_ext} $libname.a'
16470 dynamic_linker
='OS/2 ld.exe'
16471 shlibpath_var
=LIBPATH
16474 osf3
* | osf4
* | osf5
*)
16478 soname_spec
='${libname}${release}${shared_ext}$major'
16479 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16480 shlibpath_var
=LD_LIBRARY_PATH
16481 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16482 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16489 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16490 soname_spec
='${libname}${release}${shared_ext}$major'
16491 shlibpath_var
=LD_LIBRARY_PATH
16492 shlibpath_overrides_runpath
=yes
16493 hardcode_into_libs
=yes
16494 # ldd complains unless libraries are executable
16495 postinstall_cmds
='chmod +x $lib'
16500 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16501 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16502 shlibpath_var
=LD_LIBRARY_PATH
16503 shlibpath_overrides_runpath
=yes
16504 if test "$with_gnu_ld" = yes; then
16512 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16513 soname_spec
='${libname}${release}${shared_ext}$major'
16514 shlibpath_var
=LD_LIBRARY_PATH
16515 case $host_vendor in
16517 shlibpath_overrides_runpath
=no
16519 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16520 runpath_var
=LD_RUN_PATH
16528 shlibpath_overrides_runpath
=no
16529 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16535 if test -d /usr
/nec
;then
16537 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16538 soname_spec
='$libname${shared_ext}.$major'
16539 shlibpath_var
=LD_LIBRARY_PATH
16543 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16544 version_type
=freebsd-elf
16547 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16548 soname_spec
='${libname}${release}${shared_ext}$major'
16549 shlibpath_var
=LD_LIBRARY_PATH
16550 hardcode_into_libs
=yes
16551 if test "$with_gnu_ld" = yes; then
16552 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16553 shlibpath_overrides_runpath
=no
16555 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16556 shlibpath_overrides_runpath
=yes
16559 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16563 sys_lib_dlsearch_path_spec
='/usr/lib'
16568 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16569 soname_spec
='${libname}${release}${shared_ext}$major'
16570 shlibpath_var
=LD_LIBRARY_PATH
16577 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16578 echo "${ECHO_T}$dynamic_linker" >&6; }
16579 test "$dynamic_linker" = no
&& can_build_shared
=no
16581 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16582 if test "$GCC" = yes; then
16583 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16586 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16587 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16589 if test -n "$hardcode_libdir_flag_spec" || \
16590 test -n "$runpath_var" || \
16591 test "X$hardcode_automatic" = "Xyes" ; then
16593 # We can hardcode non-existant directories.
16594 if test "$hardcode_direct" != no
&&
16595 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16596 # have to relink, otherwise we might link with an installed library
16597 # when we should be linking with a yet-to-be-installed one
16598 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16599 test "$hardcode_minus_L" != no
; then
16600 # Linking always hardcodes the temporary library directory.
16601 hardcode_action
=relink
16603 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16604 hardcode_action
=immediate
16607 # We cannot hardcode anything, or else we can only hardcode existing
16609 hardcode_action
=unsupported
16611 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16612 echo "${ECHO_T}$hardcode_action" >&6; }
16614 if test "$hardcode_action" = relink
; then
16615 # Fast installation is not supported
16616 enable_fast_install
=no
16617 elif test "$shlibpath_overrides_runpath" = yes ||
16618 test "$enable_shared" = no
; then
16619 # Fast installation is not necessary
16620 enable_fast_install
=needless
16625 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16626 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16627 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
16628 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
16629 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
16630 { echo "$as_me:$LINENO: result: yes" >&5
16631 echo "${ECHO_T}yes" >&6; }
16633 # FIXME - insert some real tests, host_os isn't really good enough
16636 if test -n "$STRIP" ; then
16637 striplib
="$STRIP -x"
16638 { echo "$as_me:$LINENO: result: yes" >&5
16639 echo "${ECHO_T}yes" >&6; }
16641 { echo "$as_me:$LINENO: result: no" >&5
16642 echo "${ECHO_T}no" >&6; }
16646 { echo "$as_me:$LINENO: result: no" >&5
16647 echo "${ECHO_T}no" >&6; }
16652 if test "x$enable_dlopen" != xyes
; then
16653 enable_dlopen
=unknown
16654 enable_dlopen_self
=unknown
16655 enable_dlopen_self_static
=unknown
16662 lt_cv_dlopen
="load_add_on"
16664 lt_cv_dlopen_self
=yes
16668 lt_cv_dlopen
="LoadLibrary"
16673 lt_cv_dlopen
="dlopen"
16678 # if libdl is installed we need to link against it
16679 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16680 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16681 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16682 echo $ECHO_N "(cached) $ECHO_C" >&6
16684 ac_check_lib_save_LIBS
=$LIBS
16686 cat >conftest.
$ac_ext <<_ACEOF
16689 cat confdefs.h
>>conftest.
$ac_ext
16690 cat >>conftest.
$ac_ext <<_ACEOF
16691 /* end confdefs.h. */
16693 /* Override any GCC internal prototype to avoid an error.
16694 Use char because int might match the return type of a GCC
16695 builtin and then its argument prototype would still apply. */
16708 rm -f conftest.
$ac_objext conftest
$ac_exeext
16709 if { (ac_try
="$ac_link"
16710 case "(($ac_try" in
16711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_link") 2>conftest.er1
16717 grep -v '^ *+' conftest.er1 >conftest.err
16719 cat conftest.err >&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); } &&
16722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16723 { (case "(($ac_try" in
16724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16725 *) ac_try_echo
=$ac_try;;
16727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16728 (eval "$ac_try") 2>&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; } &&
16732 { ac_try
='test -s conftest$ac_exeext'
16733 { (case "(($ac_try" in
16734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16735 *) ac_try_echo=$ac_try;;
16737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738 (eval "$ac_try") 2>&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; }; then
16742 ac_cv_lib_dl_dlopen=yes
16744 echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16747 ac_cv_lib_dl_dlopen=no
16750 rm -f core conftest.err conftest.$ac_objext \
16751 conftest$ac_exeext conftest.$ac_ext
16752 LIBS=$ac_check_lib_save_LIBS
16754 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16755 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16756 if test $ac_cv_lib_dl_dlopen = yes; then
16757 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16760 lt_cv_dlopen="dyld"
16762 lt_cv_dlopen_self=yes
16769 { echo "$as_me:$LINENO: checking for shl_load" >&5
16770 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16771 if test "${ac_cv_func_shl_load+set}" = set; then
16772 echo $ECHO_N "(cached) $ECHO_C" >&6
16774 cat >conftest.$ac_ext <<_ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16780 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16782 #define shl_load innocuous_shl_load
16784 /* System header to define __stub macros and hopefully few prototypes,
16785 which can conflict with char shl_load (); below.
16786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16787 <limits.h> exists even on freestanding compilers. */
16790 # include <limits.h>
16792 # include <assert.h>
16797 /* Override any GCC internal prototype to avoid an error.
16798 Use char because int might match the return type of a GCC
16799 builtin and then its argument prototype would still apply. */
16804 /* The GNU C library defines this for functions which it implements
16805 to always fail with ENOSYS. Some functions are actually named
16806 something starting with __ and the normal name is an alias. */
16807 #if defined __stub_shl_load || defined __stub___shl_load
16814 return shl_load ();
16819 rm -f conftest.$ac_objext conftest$ac_exeext
16820 if { (ac_try="$ac_link"
16821 case "(($ac_try" in
16822 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16823 *) ac_try_echo
=$ac_try;;
16825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_link") 2>conftest.er1
16828 grep -v '^ *+' conftest.er1
>conftest.err
16830 cat conftest.err
>&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } &&
16833 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16834 { (case "(($ac_try" in
16835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16836 *) ac_try_echo=$ac_try;;
16838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16839 (eval "$ac_try") 2>&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; } &&
16843 { ac_try='test -s conftest$ac_exeext'
16844 { (case "(($ac_try" in
16845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16846 *) ac_try_echo
=$ac_try;;
16848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849 (eval "$ac_try") 2>&5
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; }; then
16853 ac_cv_func_shl_load
=yes
16855 echo "$as_me: failed program was:" >&5
16856 sed 's/^/| /' conftest.
$ac_ext >&5
16858 ac_cv_func_shl_load
=no
16861 rm -f core conftest.err conftest.
$ac_objext \
16862 conftest
$ac_exeext conftest.
$ac_ext
16864 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16865 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16866 if test $ac_cv_func_shl_load = yes; then
16867 lt_cv_dlopen
="shl_load"
16869 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16870 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16871 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16872 echo $ECHO_N "(cached) $ECHO_C" >&6
16874 ac_check_lib_save_LIBS
=$LIBS
16876 cat >conftest.
$ac_ext <<_ACEOF
16879 cat confdefs.h
>>conftest.
$ac_ext
16880 cat >>conftest.
$ac_ext <<_ACEOF
16881 /* end confdefs.h. */
16883 /* Override any GCC internal prototype to avoid an error.
16884 Use char because int might match the return type of a GCC
16885 builtin and then its argument prototype would still apply. */
16893 return shl_load ();
16898 rm -f conftest.
$ac_objext conftest
$ac_exeext
16899 if { (ac_try
="$ac_link"
16900 case "(($ac_try" in
16901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16902 *) ac_try_echo=$ac_try;;
16904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905 (eval "$ac_link") 2>conftest.er1
16907 grep -v '^ *+' conftest.er1 >conftest.err
16909 cat conftest.err >&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); } &&
16912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16913 { (case "(($ac_try" in
16914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16915 *) ac_try_echo
=$ac_try;;
16917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16918 (eval "$ac_try") 2>&5
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; } &&
16922 { ac_try
='test -s conftest$ac_exeext'
16923 { (case "(($ac_try" in
16924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16925 *) ac_try_echo=$ac_try;;
16927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16928 (eval "$ac_try") 2>&5
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); }; }; then
16932 ac_cv_lib_dld_shl_load=yes
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16937 ac_cv_lib_dld_shl_load=no
16940 rm -f core conftest.err conftest.$ac_objext \
16941 conftest$ac_exeext conftest.$ac_ext
16942 LIBS=$ac_check_lib_save_LIBS
16944 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16945 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16946 if test $ac_cv_lib_dld_shl_load = yes; then
16947 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16949 { echo "$as_me:$LINENO: checking for dlopen" >&5
16950 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16951 if test "${ac_cv_func_dlopen+set}" = set; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16954 cat >conftest.$ac_ext <<_ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h. */
16960 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16962 #define dlopen innocuous_dlopen
16964 /* System header to define __stub macros and hopefully few prototypes,
16965 which can conflict with char dlopen (); below.
16966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16967 <limits.h> exists even on freestanding compilers. */
16970 # include <limits.h>
16972 # include <assert.h>
16977 /* Override any GCC internal prototype to avoid an error.
16978 Use char because int might match the return type of a GCC
16979 builtin and then its argument prototype would still apply. */
16984 /* The GNU C library defines this for functions which it implements
16985 to always fail with ENOSYS. Some functions are actually named
16986 something starting with __ and the normal name is an alias. */
16987 #if defined __stub_dlopen || defined __stub___dlopen
16999 rm -f conftest.$ac_objext conftest$ac_exeext
17000 if { (ac_try="$ac_link"
17001 case "(($ac_try" in
17002 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17003 *) ac_try_echo
=$ac_try;;
17005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006 (eval "$ac_link") 2>conftest.er1
17008 grep -v '^ *+' conftest.er1
>conftest.err
17010 cat conftest.err
>&5
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); } &&
17013 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17014 { (case "(($ac_try" in
17015 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17016 *) ac_try_echo=$ac_try;;
17018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17019 (eval "$ac_try") 2>&5
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); }; } &&
17023 { ac_try='test -s conftest$ac_exeext'
17024 { (case "(($ac_try" in
17025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17026 *) ac_try_echo
=$ac_try;;
17028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17029 (eval "$ac_try") 2>&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; }; then
17033 ac_cv_func_dlopen
=yes
17035 echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.
$ac_ext >&5
17038 ac_cv_func_dlopen
=no
17041 rm -f core conftest.err conftest.
$ac_objext \
17042 conftest
$ac_exeext conftest.
$ac_ext
17044 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17045 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17046 if test $ac_cv_func_dlopen = yes; then
17047 lt_cv_dlopen
="dlopen"
17049 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17050 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17051 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17052 echo $ECHO_N "(cached) $ECHO_C" >&6
17054 ac_check_lib_save_LIBS
=$LIBS
17056 cat >conftest.
$ac_ext <<_ACEOF
17059 cat confdefs.h
>>conftest.
$ac_ext
17060 cat >>conftest.
$ac_ext <<_ACEOF
17061 /* end confdefs.h. */
17063 /* Override any GCC internal prototype to avoid an error.
17064 Use char because int might match the return type of a GCC
17065 builtin and then its argument prototype would still apply. */
17078 rm -f conftest.
$ac_objext conftest
$ac_exeext
17079 if { (ac_try
="$ac_link"
17080 case "(($ac_try" in
17081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17082 *) ac_try_echo=$ac_try;;
17084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085 (eval "$ac_link") 2>conftest.er1
17087 grep -v '^ *+' conftest.er1 >conftest.err
17089 cat conftest.err >&5
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); } &&
17092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17093 { (case "(($ac_try" in
17094 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17095 *) ac_try_echo
=$ac_try;;
17097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098 (eval "$ac_try") 2>&5
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; } &&
17102 { ac_try
='test -s conftest$ac_exeext'
17103 { (case "(($ac_try" in
17104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17105 *) ac_try_echo=$ac_try;;
17107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17108 (eval "$ac_try") 2>&5
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); }; }; then
17112 ac_cv_lib_dl_dlopen=yes
17114 echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17117 ac_cv_lib_dl_dlopen=no
17120 rm -f core conftest.err conftest.$ac_objext \
17121 conftest$ac_exeext conftest.$ac_ext
17122 LIBS=$ac_check_lib_save_LIBS
17124 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17125 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17126 if test $ac_cv_lib_dl_dlopen = yes; then
17127 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17129 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17130 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17131 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17134 ac_check_lib_save_LIBS=$LIBS
17135 LIBS="-lsvld $LIBS"
17136 cat >conftest.$ac_ext <<_ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17143 /* Override any GCC internal prototype to avoid an error.
17144 Use char because int might match the return type of a GCC
17145 builtin and then its argument prototype would still apply. */
17158 rm -f conftest.$ac_objext conftest$ac_exeext
17159 if { (ac_try="$ac_link"
17160 case "(($ac_try" in
17161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17162 *) ac_try_echo
=$ac_try;;
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_link") 2>conftest.er1
17167 grep -v '^ *+' conftest.er1
>conftest.err
17169 cat conftest.err
>&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } &&
17172 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17173 { (case "(($ac_try" in
17174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17175 *) ac_try_echo=$ac_try;;
17177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17178 (eval "$ac_try") 2>&5
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; } &&
17182 { ac_try='test -s conftest$ac_exeext'
17183 { (case "(($ac_try" in
17184 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17185 *) ac_try_echo
=$ac_try;;
17187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_try") 2>&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
17192 ac_cv_lib_svld_dlopen
=yes
17194 echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.
$ac_ext >&5
17197 ac_cv_lib_svld_dlopen
=no
17200 rm -f core conftest.err conftest.
$ac_objext \
17201 conftest
$ac_exeext conftest.
$ac_ext
17202 LIBS
=$ac_check_lib_save_LIBS
17204 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17205 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17206 if test $ac_cv_lib_svld_dlopen = yes; then
17207 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17209 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17210 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17211 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17212 echo $ECHO_N "(cached) $ECHO_C" >&6
17214 ac_check_lib_save_LIBS
=$LIBS
17216 cat >conftest.
$ac_ext <<_ACEOF
17219 cat confdefs.h
>>conftest.
$ac_ext
17220 cat >>conftest.
$ac_ext <<_ACEOF
17221 /* end confdefs.h. */
17223 /* Override any GCC internal prototype to avoid an error.
17224 Use char because int might match the return type of a GCC
17225 builtin and then its argument prototype would still apply. */
17233 return dld_link ();
17238 rm -f conftest.
$ac_objext conftest
$ac_exeext
17239 if { (ac_try
="$ac_link"
17240 case "(($ac_try" in
17241 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17242 *) ac_try_echo=$ac_try;;
17244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17245 (eval "$ac_link") 2>conftest.er1
17247 grep -v '^ *+' conftest.er1 >conftest.err
17249 cat conftest.err >&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); } &&
17252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17253 { (case "(($ac_try" in
17254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17255 *) ac_try_echo
=$ac_try;;
17257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17258 (eval "$ac_try") 2>&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; } &&
17262 { ac_try
='test -s conftest$ac_exeext'
17263 { (case "(($ac_try" in
17264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17265 *) ac_try_echo=$ac_try;;
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268 (eval "$ac_try") 2>&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; }; then
17272 ac_cv_lib_dld_dld_link=yes
17274 echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17277 ac_cv_lib_dld_dld_link=no
17280 rm -f core conftest.err conftest.$ac_objext \
17281 conftest$ac_exeext conftest.$ac_ext
17282 LIBS=$ac_check_lib_save_LIBS
17284 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17285 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17286 if test $ac_cv_lib_dld_dld_link = yes; then
17287 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17308 if test "x$lt_cv_dlopen" != xno; then
17314 case $lt_cv_dlopen in
17316 save_CPPFLAGS="$CPPFLAGS"
17317 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17319 save_LDFLAGS="$LDFLAGS"
17320 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17323 LIBS="$lt_cv_dlopen_libs $LIBS"
17325 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17326 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17327 if test "${lt_cv_dlopen_self+set}" = set; then
17328 echo $ECHO_N "(cached) $ECHO_C" >&6
17330 if test "$cross_compiling" = yes; then :
17331 lt_cv_dlopen_self=cross
17333 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17334 lt_status=$lt_dlunknown
17335 cat > conftest.$ac_ext <<EOF
17336 #line 17336 "configure"
17337 #include "confdefs.h"
17346 # define LT_DLGLOBAL RTLD_GLOBAL
17349 # define LT_DLGLOBAL DL_GLOBAL
17351 # define LT_DLGLOBAL 0
17355 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17356 find out it does not work in some platform. */
17357 #ifndef LT_DLLAZY_OR_NOW
17359 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17362 # define LT_DLLAZY_OR_NOW DL_LAZY
17365 # define LT_DLLAZY_OR_NOW RTLD_NOW
17368 # define LT_DLLAZY_OR_NOW DL_NOW
17370 # define LT_DLLAZY_OR_NOW 0
17378 extern "C" void exit (int);
17381 void fnord() { int i=42;}
17384 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17385 int status = $lt_dlunknown;
17389 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17390 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17391 /* dlclose (self); */
17399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17400 (eval $ac_link) 2>&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17404 (./conftest; exit; ) >&5 2>/dev/null
17406 case x$lt_status in
17407 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17408 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17409 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17412 # compilation failed
17413 lt_cv_dlopen_self=no
17420 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17421 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17423 if test "x$lt_cv_dlopen_self" = xyes; then
17424 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17425 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17426 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17427 if test "${lt_cv_dlopen_self_static+set}" = set; then
17428 echo $ECHO_N "(cached) $ECHO_C" >&6
17430 if test "$cross_compiling" = yes; then :
17431 lt_cv_dlopen_self_static=cross
17433 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17434 lt_status=$lt_dlunknown
17435 cat > conftest.$ac_ext <<EOF
17436 #line 17436 "configure"
17437 #include "confdefs.h"
17446 # define LT_DLGLOBAL RTLD_GLOBAL
17449 # define LT_DLGLOBAL DL_GLOBAL
17451 # define LT_DLGLOBAL 0
17455 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17456 find out it does not work in some platform. */
17457 #ifndef LT_DLLAZY_OR_NOW
17459 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17462 # define LT_DLLAZY_OR_NOW DL_LAZY
17465 # define LT_DLLAZY_OR_NOW RTLD_NOW
17468 # define LT_DLLAZY_OR_NOW DL_NOW
17470 # define LT_DLLAZY_OR_NOW 0
17478 extern "C" void exit (int);
17481 void fnord() { int i=42;}
17484 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17485 int status = $lt_dlunknown;
17489 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17490 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17491 /* dlclose (self); */
17499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17500 (eval $ac_link) 2>&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17504 (./conftest; exit; ) >&5 2>/dev/null
17506 case x$lt_status in
17507 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17508 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17509 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17512 # compilation failed
17513 lt_cv_dlopen_self_static=no
17520 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17521 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17524 CPPFLAGS="$save_CPPFLAGS"
17525 LDFLAGS="$save_LDFLAGS"
17530 case $lt_cv_dlopen_self in
17531 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17532 *) enable_dlopen_self=unknown ;;
17535 case $lt_cv_dlopen_self_static in
17536 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17537 *) enable_dlopen_self_static=unknown ;;
17542 # Report which library types will actually be built
17543 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17544 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17545 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17546 echo "${ECHO_T}$can_build_shared" >&6; }
17548 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17549 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17550 test "$can_build_shared" = "no" && enable_shared=no
17552 # On AIX, shared libraries and static libraries use the same namespace, and
17553 # are all built from PIC.
17556 test "$enable_shared" = yes && enable_static=no
17557 if test -n "$RANLIB"; then
17558 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17559 postinstall_cmds='$RANLIB $lib'
17564 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17565 test "$enable_shared" = yes && enable_static=no
17569 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17570 echo "${ECHO_T}$enable_shared" >&6; }
17572 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17573 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17574 # Make sure either enable_shared or enable_static is yes.
17575 test "$enable_shared" = yes || enable_static=yes
17576 { echo "$as_me:$LINENO: result: $enable_static" >&5
17577 echo "${ECHO_T}$enable_static" >&6; }
17579 # The else clause should only fire when bootstrapping the
17580 # libtool distribution, otherwise you forgot to ship ltmain.sh
17581 # with your package, and you will get complaints that there are
17582 # no rules to generate ltmain.sh.
17583 if test -f "$ltmain"; then
17584 # See if we are running on zsh, and set the options which allow our commands through
17585 # without removal of \ escapes.
17586 if test -n "${ZSH_VERSION+set}" ; then
17587 setopt NO_GLOB_SUBST
17589 # Now quote all the things that may contain metacharacters while being
17590 # careful not to overquote the AC_SUBSTed values. We take copies of the
17591 # variables and quote the copies for generation of the libtool script.
17592 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17594 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17595 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17596 deplibs_check_method reload_flag reload_cmds need_locks \
17597 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17598 lt_cv_sys_global_symbol_to_c_name_address \
17599 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17600 old_postinstall_cmds old_postuninstall_cmds \
17604 lt_prog_compiler_wl \
17605 lt_prog_compiler_pic \
17606 lt_prog_compiler_static \
17607 lt_prog_compiler_no_builtin_flag \
17608 export_dynamic_flag_spec \
17609 thread_safe_flag_spec \
17610 whole_archive_flag_spec \
17611 enable_shared_with_static_runtimes \
17613 old_archive_from_new_cmds \
17618 compiler_lib_search_path \
17620 archive_expsym_cmds \
17622 postuninstall_cmds \
17623 old_archive_from_expsyms_cmds \
17624 allow_undefined_flag \
17625 no_undefined_flag \
17626 export_symbols_cmds \
17627 hardcode_libdir_flag_spec \
17628 hardcode_libdir_flag_spec_ld \
17629 hardcode_libdir_separator \
17630 hardcode_automatic \
17632 module_expsym_cmds \
17633 lt_cv_prog_compiler_c_o \
17635 include_expsyms; do
17638 old_archive_cmds | \
17639 old_archive_from_new_cmds | \
17641 archive_expsym_cmds | \
17643 module_expsym_cmds | \
17644 old_archive_from_expsyms_cmds | \
17645 export_symbols_cmds | \
17646 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17647 postinstall_cmds | postuninstall_cmds | \
17648 old_postinstall_cmds | old_postuninstall_cmds | \
17649 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17650 # Double-quote double-evaled strings.
17651 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
17654 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
17660 *'\$0 --fallback-echo"')
17661 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17665 cfgfile="${ofile}T"
17666 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17668 { echo "$as_me:$LINENO: creating $ofile" >&5
17669 echo "$as_me: creating $ofile" >&6;}
17671 cat <<__EOF__ >> "$cfgfile"
17674 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
17675 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17676 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17678 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17679 # Free Software Foundation, Inc.
17681 # This file is part of GNU Libtool:
17682 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17684 # This program is free software; you can redistribute it and/or modify
17685 # it under the terms of the GNU General Public License as published by
17686 # the Free Software Foundation; either version 2 of the License, or
17687 # (at your option) any later version.
17689 # This program is distributed in the hope that it will be useful, but
17690 # WITHOUT ANY WARRANTY; without even the implied warranty of
17691 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17692 # General Public License for more details.
17694 # You should have received a copy of the GNU General Public License
17695 # along with this program; if not, write to the Free Software
17696 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17698 # As a special exception to the GNU General Public License, if you
17699 # distribute this file as part of a program that contains a
17700 # configuration script generated by Autoconf, you may include it under
17701 # the same distribution terms that you use for the rest of that program.
17703 # A sed program that does not truncate output.
17706 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17707 Xsed="$SED -e 1s/^X//"
17709 # The HP-UX ksh and POSIX shell print the target directory to stdout
17710 # if CDPATH is set.
17711 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17713 # The names of the tagged configurations supported by this script.
17716 # ### BEGIN LIBTOOL CONFIG
17718 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
17720 # Shell to use when invoking shell scripts.
17723 # Whether or not to build shared libraries.
17724 build_libtool_libs=$enable_shared
17726 # Whether or not to build static libraries.
17727 build_old_libs=$enable_static
17729 # Whether or not to add -lc for building shared libraries.
17730 build_libtool_need_lc=$archive_cmds_need_lc
17732 # Whether or not to disallow shared libs when runtime libs are static
17733 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17735 # Whether or not to optimize for fast installation.
17736 fast_install=$enable_fast_install
17739 host_alias=$host_alias
17743 # The build system.
17744 build_alias=$build_alias
17748 # An echo program that does not interpret backslashes.
17753 AR_FLAGS=$lt_AR_FLAGS
17758 # LTCC compiler flags.
17759 LTCFLAGS=$lt_LTCFLAGS
17761 # A language-specific compiler.
17764 # Is the compiler the GNU C compiler?
17770 # The linker used to build libraries.
17773 # Whether we need hard or soft links.
17776 # A BSD-compatible nm program.
17779 # A symbol stripping program
17782 # Used to examine libraries when file_magic_cmd begins "file"
17783 MAGIC_CMD=$MAGIC_CMD
17785 # Used on cygwin: DLL creation program.
17788 # Used on cygwin: object dumper.
17791 # Used on cygwin: assembler.
17794 # The name of the directory that contains temporary libtool files.
17797 # How to create reloadable object files.
17798 reload_flag=$lt_reload_flag
17799 reload_cmds=$lt_reload_cmds
17801 # How to pass a linker flag through the compiler.
17802 wl=$lt_lt_prog_compiler_wl
17804 # Object file suffix (normally "o").
17805 objext="$ac_objext"
17807 # Old archive suffix (normally "a").
17810 # Shared library suffix (normally ".so").
17811 shrext_cmds='$shrext_cmds'
17813 # Executable file suffix (normally "").
17816 # Additional compiler flags for building library objects.
17817 pic_flag=$lt_lt_prog_compiler_pic
17820 # What is the maximum length of a command?
17821 max_cmd_len=$lt_cv_sys_max_cmd_len
17823 # Does compiler simultaneously support -c and -o options?
17824 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17826 # Must we lock files when doing compilation?
17827 need_locks=$lt_need_locks
17829 # Do we need the lib prefix for modules?
17830 need_lib_prefix=$need_lib_prefix
17832 # Do we need a version for libraries?
17833 need_version=$need_version
17835 # Whether dlopen is supported.
17836 dlopen_support=$enable_dlopen
17838 # Whether dlopen of programs is supported.
17839 dlopen_self=$enable_dlopen_self
17841 # Whether dlopen of statically linked programs is supported.
17842 dlopen_self_static=$enable_dlopen_self_static
17844 # Compiler flag to prevent dynamic linking.
17845 link_static_flag=$lt_lt_prog_compiler_static
17847 # Compiler flag to turn off builtin functions.
17848 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17850 # Compiler flag to allow reflexive dlopens.
17851 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17853 # Compiler flag to generate shared objects directly from archives.
17854 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17856 # Compiler flag to generate thread-safe objects.
17857 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17859 # Library versioning type.
17860 version_type=$version_type
17862 # Format of library name prefix.
17863 libname_spec=$lt_libname_spec
17865 # List of archive names. First name is the real one, the rest are links.
17866 # The last name is the one that the linker finds with -lNAME.
17867 library_names_spec=$lt_library_names_spec
17869 # The coded name of the library, if different from the real name.
17870 soname_spec=$lt_soname_spec
17872 # Commands used to build and install an old-style archive.
17874 old_archive_cmds=$lt_old_archive_cmds
17875 old_postinstall_cmds=$lt_old_postinstall_cmds
17876 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17878 # Create an old-style archive from a shared archive.
17879 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17881 # Create a temporary old-style archive to link instead of a shared archive.
17882 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17884 # Commands used to build and install a shared archive.
17885 archive_cmds=$lt_archive_cmds
17886 archive_expsym_cmds=$lt_archive_expsym_cmds
17887 postinstall_cmds=$lt_postinstall_cmds
17888 postuninstall_cmds=$lt_postuninstall_cmds
17890 # Commands used to build a loadable module (assumed same as above if empty)
17891 module_cmds=$lt_module_cmds
17892 module_expsym_cmds=$lt_module_expsym_cmds
17894 # Commands to strip libraries.
17895 old_striplib=$lt_old_striplib
17896 striplib=$lt_striplib
17898 # Dependencies to place before the objects being linked to create a
17900 predep_objects=$lt_predep_objects
17902 # Dependencies to place after the objects being linked to create a
17904 postdep_objects=$lt_postdep_objects
17906 # Dependencies to place before the objects being linked to create a
17908 predeps=$lt_predeps
17910 # Dependencies to place after the objects being linked to create a
17912 postdeps=$lt_postdeps
17914 # The library search path used internally by the compiler when linking
17915 # a shared library.
17916 compiler_lib_search_path=$lt_compiler_lib_search_path
17918 # Method to check whether dependent libraries are shared objects.
17919 deplibs_check_method=$lt_deplibs_check_method
17921 # Command to use when deplibs_check_method == file_magic.
17922 file_magic_cmd=$lt_file_magic_cmd
17924 # Flag that allows shared libraries with undefined symbols to be built.
17925 allow_undefined_flag=$lt_allow_undefined_flag
17927 # Flag that forces no undefined symbols.
17928 no_undefined_flag=$lt_no_undefined_flag
17930 # Commands used to finish a libtool library installation in a directory.
17931 finish_cmds=$lt_finish_cmds
17933 # Same as above, but a single script fragment to be evaled but not shown.
17934 finish_eval=$lt_finish_eval
17936 # Take the output of nm and produce a listing of raw symbols and C names.
17937 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17939 # Transform the output of nm in a proper C declaration
17940 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17942 # Transform the output of nm in a C name address pair
17943 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17945 # This is the shared library runtime path variable.
17946 runpath_var=$runpath_var
17948 # This is the shared library path variable.
17949 shlibpath_var=$shlibpath_var
17951 # Is shlibpath searched before the hard-coded library search path?
17952 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17954 # How to hardcode a shared library path into an executable.
17955 hardcode_action=$hardcode_action
17957 # Whether we should hardcode library paths into libraries.
17958 hardcode_into_libs=$hardcode_into_libs
17960 # Flag to hardcode \$libdir into a binary during linking.
17961 # This must work even if \$libdir does not exist.
17962 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17964 # If ld is used when linking, flag to hardcode \$libdir into
17965 # a binary during linking. This must work even if \$libdir does
17967 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17969 # Whether we need a single -rpath flag with a separated argument.
17970 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17972 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17973 # resulting binary.
17974 hardcode_direct=$hardcode_direct
17976 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17977 # resulting binary.
17978 hardcode_minus_L=$hardcode_minus_L
17980 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17981 # the resulting binary.
17982 hardcode_shlibpath_var=$hardcode_shlibpath_var
17984 # Set to yes if building a shared library automatically hardcodes DIR into the library
17985 # and all subsequent libraries and executables linked against it.
17986 hardcode_automatic=$hardcode_automatic
17988 # Variables whose values should be saved in libtool wrapper scripts and
17989 # restored at relink time.
17990 variables_saved_for_relink="$variables_saved_for_relink"
17992 # Whether libtool must link a program against all its dependency libraries.
17993 link_all_deplibs=$link_all_deplibs
17995 # Compile-time system search path for libraries
17996 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17998 # Run-time system search path for libraries
17999 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18001 # Fix the shell variable \$srcfile for the compiler.
18002 fix_srcfile_path="$fix_srcfile_path"
18004 # Set to yes if exported symbols are required.
18005 always_export_symbols=$always_export_symbols
18007 # The commands to list exported symbols.
18008 export_symbols_cmds=$lt_export_symbols_cmds
18010 # The commands to extract the exported symbol list from a shared archive.
18011 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18013 # Symbols that should not be listed in the preloaded symbols.
18014 exclude_expsyms=$lt_exclude_expsyms
18016 # Symbols that must always be exported.
18017 include_expsyms=$lt_include_expsyms
18019 # ### END LIBTOOL CONFIG
18026 cat <<\EOF >> "$cfgfile"
18028 # AIX sometimes has problems with the GCC collect2 program. For some
18029 # reason, if we set the COLLECT_NAMES environment variable, the problems
18030 # vanish in a puff of smoke.
18031 if test "X${COLLECT_NAMES+set}" != Xset; then
18033 export COLLECT_NAMES
18039 # We use sed instead of cat because bash on DJGPP gets confused if
18040 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18041 # text mode, it properly converts lines to CR/LF. This bash problem
18042 # is reportedly fixed, but why not run on old versions too?
18043 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18045 mv -f "$cfgfile" "$ofile" || \
18046 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18050 # If there is no Makefile yet, we rely on a make rule to execute
18051 # `config.status
--recheck' to rerun these tests and create the
18052 # libtool script then.
18053 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
18054 if test -f "$ltmain_in"; then
18055 test -f Makefile && make "$ltmain"
18061 ac_cpp='$CPP $CPPFLAGS'
18062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
18063 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
18064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18069 # Check whether --with-tags was given.
18070 if test "${with_tags+set}" = set; then
18071 withval=$with_tags; tagnames="$withval"
18075 if test -f "$ltmain" && test -n "$tagnames"; then
18076 if test ! -f "${ofile}"; then
18077 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
18078 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
18081 if test -z "$LTCC"; then
18082 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
18083 if test -z "$LTCC"; then
18084 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18085 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
18087 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
18088 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
18091 if test -z "$LTCFLAGS"; then
18092 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
18095 # Extract list of available tagged configurations in $ofile.
18096 # Note that this assumes the entire list is on one line.
18097 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18099 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18100 for tagname in $tagnames; do
18102 # Check whether tagname contains only valid characters
18103 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18105 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18106 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18107 { (exit 1); exit 1; }; }
18111 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18113 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18114 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18115 { (exit 1); exit 1; }; }
18118 # Update the list of available tags.
18119 if test -n "$tagname"; then
18120 echo appending configuration tag \"$tagname\" to $ofile
18124 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18125 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
18126 (test "X$CXX" != "Xg++"))) ; then
18128 ac_cpp='$CXXCPP $CPPFLAGS'
18129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18136 archive_cmds_need_lc_CXX=no
18137 allow_undefined_flag_CXX=
18138 always_export_symbols_CXX=no
18139 archive_expsym_cmds_CXX=
18140 export_dynamic_flag_spec_CXX=
18141 hardcode_direct_CXX=no
18142 hardcode_libdir_flag_spec_CXX=
18143 hardcode_libdir_flag_spec_ld_CXX=
18144 hardcode_libdir_separator_CXX=
18145 hardcode_minus_L_CXX=no
18146 hardcode_shlibpath_var_CXX=unsupported
18147 hardcode_automatic_CXX=no
18149 module_expsym_cmds_CXX=
18150 link_all_deplibs_CXX=unknown
18151 old_archive_cmds_CXX=$old_archive_cmds
18152 no_undefined_flag_CXX=
18153 whole_archive_flag_spec_CXX=
18154 enable_shared_with_static_runtimes_CXX=no
18156 # Dependencies to place before and after the object being linked:
18157 predep_objects_CXX=
18158 postdep_objects_CXX=
18161 compiler_lib_search_path_CXX=
18163 # Source file extension for C++ test sources.
18166 # Object file extension for compiled C++ test sources.
18170 # Code to be used in simple compile tests
18171 lt_simple_compile_test_code="int some_variable = 0;\n"
18173 # Code to be used in simple link tests
18174 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18176 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18178 # If no C compiler was specified, use CC.
18181 # If no C compiler flags were specified, use CFLAGS.
18182 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18184 # Allow CC to be a program name with arguments.
18188 # save warnings/boilerplate of simple test code
18189 ac_outfile=conftest.$ac_objext
18190 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18191 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18192 _lt_compiler_boilerplate=`cat conftest.err
`
18195 ac_outfile=conftest.$ac_objext
18196 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18197 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18198 _lt_linker_boilerplate=`cat conftest.err
`
18202 # Allow CC to be a program name with arguments.
18207 lt_save_with_gnu_ld=$with_gnu_ld
18208 lt_save_path_LD=$lt_cv_path_LD
18209 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18210 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18212 $as_unset lt_cv_prog_gnu_ld
18214 if test -n "${lt_cv_path_LDCXX+set}"; then
18215 lt_cv_path_LD=$lt_cv_path_LDCXX
18217 $as_unset lt_cv_path_LD
18219 test -z "${LDCXX+set}" || LD=$LDCXX
18223 for cc_temp in $compiler""; do
18225 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18226 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18231 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18234 # We don't want -fno-exception wen compiling C++ code, so set the
18235 # no_builtin_flag separately
18236 if test "$GXX" = yes; then
18237 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18239 lt_prog_compiler_no_builtin_flag_CXX=
18242 if test "$GXX" = yes; then
18243 # Set up default GNU C++ configuration
18246 # Check whether --with-gnu-ld was given.
18247 if test "${with_gnu_ld+set}" = set; then
18248 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18254 if test "$GCC" = yes; then
18255 # Check if gcc -print-prog-name=ld gives a path.
18256 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18257 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18260 # gcc leaves a trailing carriage return which upsets mingw
18261 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
18263 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
18266 # Accept absolute paths.
18268 re_direlt='/[^/][^/]*/\.\./'
18269 # Canonicalize the pathname of ld
18270 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
18271 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18272 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
18274 test -z "$LD" && LD="$ac_prog"
18277 # If it fails, then pretend we aren't using GCC.
18281 # If it is relative, then search for the first ld in PATH.
18282 with_gnu_ld=unknown
18285 elif test "$with_gnu_ld" = yes; then
18286 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18287 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18289 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18290 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18292 if test "${lt_cv_path_LD+set}" = set; then
18293 echo $ECHO_N "(cached) $ECHO_C" >&6
18295 if test -z "$LD"; then
18296 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18297 for ac_dir in $PATH; do
18299 test -z "$ac_dir" && ac_dir=.
18300 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18301 lt_cv_path_LD="$ac_dir/$ac_prog"
18302 # Check to see if the program is GNU ld. I'd rather use --version,
18303 # but apparently some variants of GNU ld only accept -v.
18304 # Break only if it was the GNU/non-GNU ld that we prefer.
18305 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
18306 *GNU* | *'with BFD'*)
18307 test "$with_gnu_ld" != no && break
18310 test "$with_gnu_ld" != yes && break
18317 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18321 LD="$lt_cv_path_LD"
18322 if test -n "$LD"; then
18323 { echo "$as_me:$LINENO: result: $LD" >&5
18324 echo "${ECHO_T}$LD" >&6; }
18326 { echo "$as_me:$LINENO: result: no" >&5
18327 echo "${ECHO_T}no" >&6; }
18329 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18330 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18331 { (exit 1); exit 1; }; }
18332 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18333 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18334 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18335 echo $ECHO_N "(cached) $ECHO_C" >&6
18337 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18338 case `$LD -v 2>&1 </dev
/null
` in
18339 *GNU* | *'with BFD'*)
18340 lt_cv_prog_gnu_ld=yes
18343 lt_cv_prog_gnu_ld=no
18347 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18348 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18349 with_gnu_ld=$lt_cv_prog_gnu_ld
18353 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18354 # archiving commands below assume that GNU ld is being used.
18355 if test "$with_gnu_ld" = yes; then
18356 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18357 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'
18359 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18360 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18362 # If archive_cmds runs LD, not CC, wlarc should be empty
18363 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18364 # investigate it a little bit more. (MM)
18367 # ancient GNU ld didn't support --whole-archive et. al.
18368 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
18369 grep 'no-whole-archive' > /dev/null; then
18370 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18372 whole_archive_flag_spec_CXX=
18378 # A generic and very simple default shared library creation
18379 # command for GNU C++ for the case where it uses the native
18380 # linker, instead of GNU ld. If possible, this setting should
18381 # overridden to take advantage of the native linker features on
18382 # the platform it is being used on.
18383 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18386 # Commands to make compiler produce verbose output that lists
18387 # what "hidden" libraries, object files and flags are used when
18388 # linking a shared library.
18389 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18397 # PORTME: fill in a description of your system's C++ link characteristics
18398 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18399 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18403 # FIXME: insert proper C++ library support
18407 if test "$host_cpu" = ia64; then
18408 # On IA64, the linker does run time linking by default, so we don't
18409 # have to do anything special.
18410 aix_use_runtimelinking=no
18411 exp_sym_flag='-Bexport'
18414 aix_use_runtimelinking=no
18416 # Test if we are trying to use run time linking or normal
18417 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18418 # need to do runtime linking.
18419 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18420 for ld_flag in $LDFLAGS; do
18423 aix_use_runtimelinking=yes
18431 exp_sym_flag='-bexport'
18432 no_entry_flag='-bnoentry'
18435 # When large executables or shared objects are built, AIX ld can
18436 # have problems creating the table of contents. If linking a library
18437 # or program results in "error TOC overflow" add -mminimal-toc to
18438 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18439 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18441 archive_cmds_CXX=''
18442 hardcode_direct_CXX=yes
18443 hardcode_libdir_separator_CXX=':'
18444 link_all_deplibs_CXX=yes
18446 if test "$GXX" = yes; then
18447 case $host_os in aix4.[012]|aix4.[012].*)
18448 # We only want to do this on AIX 4.2 and lower, the check
18449 # below for broken collect2 doesn't work under 4.3+
18450 collect2name=`${CC} -print-prog-name=collect2
`
18451 if test -f "$collect2name" && \
18452 strings "$collect2name" | grep resolve_lib_name >/dev/null
18454 # We have reworked collect2
18455 hardcode_direct_CXX=yes
18457 # We have old collect2
18458 hardcode_direct_CXX=unsupported
18459 # It fails to find uninstalled libraries when the uninstalled
18460 # path is not listed in the libpath. Setting hardcode_minus_L
18461 # to unsupported forces relinking
18462 hardcode_minus_L_CXX=yes
18463 hardcode_libdir_flag_spec_CXX='-L$libdir'
18464 hardcode_libdir_separator_CXX=
18468 shared_flag='-shared'
18469 if test "$aix_use_runtimelinking" = yes; then
18470 shared_flag="$shared_flag "'${wl}-G'
18474 if test "$host_cpu" = ia64; then
18475 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18476 # chokes on -Wl,-G. The following line is correct:
18479 if test "$aix_use_runtimelinking" = yes; then
18480 shared_flag='${wl}-G'
18482 shared_flag='${wl}-bM:SRE'
18487 # It seems that -bexpall does not export symbols beginning with
18488 # underscore (_), so it is better to generate a list of symbols to export.
18489 always_export_symbols_CXX=yes
18490 if test "$aix_use_runtimelinking" = yes; then
18491 # Warning - without using the other runtime loading flags (-brtl),
18492 # -berok will link without error, but may produce a broken library.
18493 allow_undefined_flag_CXX='-berok'
18494 # Determine the default libpath from the value encoded in an empty executable.
18495 cat >conftest.$ac_ext <<_ACEOF
18498 cat confdefs.h >>conftest.$ac_ext
18499 cat >>conftest.$ac_ext <<_ACEOF
18500 /* end confdefs.h. */
18510 rm -f conftest.$ac_objext conftest$ac_exeext
18511 if { (ac_try="$ac_link"
18512 case "(($ac_try" in
18513 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18514 *) ac_try_echo
=$ac_try;;
18516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18517 (eval "$ac_link") 2>conftest.er1
18519 grep -v '^ *+' conftest.er1
>conftest.err
18521 cat conftest.err
>&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); } &&
18524 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18525 { (case "(($ac_try" in
18526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18527 *) ac_try_echo=$ac_try;;
18529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530 (eval "$ac_try") 2>&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); }; } &&
18534 { ac_try='test -s conftest$ac_exeext'
18535 { (case "(($ac_try" in
18536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18537 *) ac_try_echo
=$ac_try;;
18539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18540 (eval "$ac_try") 2>&5
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; }; then
18545 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18547 # Check for a 64-bit object if we didn't find anything.
18548 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; }
18551 echo "$as_me: failed program was:" >&5
18552 sed 's/^/| /' conftest.
$ac_ext >&5
18557 rm -f core conftest.err conftest.
$ac_objext \
18558 conftest
$ac_exeext conftest.
$ac_ext
18559 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18561 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18563 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"
18565 if test "$host_cpu" = ia64
; then
18566 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18567 allow_undefined_flag_CXX
="-z nodefs"
18568 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"
18570 # Determine the default libpath from the value encoded in an empty executable.
18571 cat >conftest.
$ac_ext <<_ACEOF
18574 cat confdefs.h
>>conftest.
$ac_ext
18575 cat >>conftest.
$ac_ext <<_ACEOF
18576 /* end confdefs.h. */
18586 rm -f conftest.
$ac_objext conftest
$ac_exeext
18587 if { (ac_try
="$ac_link"
18588 case "(($ac_try" in
18589 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18590 *) ac_try_echo=$ac_try;;
18592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18593 (eval "$ac_link") 2>conftest.er1
18595 grep -v '^ *+' conftest.er1 >conftest.err
18597 cat conftest.err >&5
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); } &&
18600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18601 { (case "(($ac_try" in
18602 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18603 *) ac_try_echo
=$ac_try;;
18605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18606 (eval "$ac_try") 2>&5
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); }; } &&
18610 { ac_try
='test -s conftest$ac_exeext'
18611 { (case "(($ac_try" in
18612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616 (eval "$ac_try") 2>&5
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); }; }; then
18621 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18623 # Check for a 64-bit object if we didn't find anything.
18624 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; }
18627 echo "$as_me: failed program was:" >&5
18628 sed 's/^/| /' conftest.$ac_ext >&5
18633 rm -f core conftest.err conftest.$ac_objext \
18634 conftest$ac_exeext conftest.$ac_ext
18635 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18637 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18638 # Warning - without using the other run time loading flags,
18639 # -berok will link without error, but may produce a broken library.
18640 no_undefined_flag_CXX=' ${wl}-bernotok'
18641 allow_undefined_flag_CXX=' ${wl}-berok'
18642 # Exported symbols can be pulled into shared objects from archives
18643 whole_archive_flag_spec_CXX='$convenience'
18644 archive_cmds_need_lc_CXX=yes
18645 # This is similar to how AIX traditionally builds its shared libraries.
18646 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'
18652 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18653 allow_undefined_flag_CXX=unsupported
18654 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18655 # support --undefined. This deserves some investigation. FIXME
18656 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18663 case $cc_basename in
18665 # FIXME: insert proper C++ library support
18671 cygwin* | mingw* | pw32*)
18672 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18673 # as there is no search path for DLLs.
18674 hardcode_libdir_flag_spec_CXX='-L$libdir'
18675 allow_undefined_flag_CXX=unsupported
18676 always_export_symbols_CXX=no
18677 enable_shared_with_static_runtimes_CXX=yes
18679 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18680 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'
18681 # If the export-symbols file already is a .def file (1st line
18682 # is EXPORTS), use it as is; otherwise, prepend...
18683 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
18684 cp $export_symbols $output_objdir/$soname.def;
18686 echo EXPORTS > $output_objdir/$soname.def;
18687 cat $export_symbols >> $output_objdir/$soname.def;
18689 $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'
18694 darwin* | rhapsody*)
18696 rhapsody* | darwin1.[012])
18697 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18700 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18701 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18703 case ${MACOSX_DEPLOYMENT_TARGET} in
18705 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18708 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18714 archive_cmds_need_lc_CXX=no
18715 hardcode_direct_CXX=no
18716 hardcode_automatic_CXX=yes
18717 hardcode_shlibpath_var_CXX=unsupported
18718 whole_archive_flag_spec_CXX=''
18719 link_all_deplibs_CXX=yes
18721 if test "$GXX" = yes ; then
18722 lt_int_apple_cc_single_mod=no
18723 output_verbose_link_cmd='echo'
18724 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18725 lt_int_apple_cc_single_mod=yes
18727 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18728 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18730 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'
18732 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18733 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18734 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18735 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}'
18737 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}'
18739 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}'
18741 case $cc_basename in
18743 output_verbose_link_cmd='echo'
18744 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'
18745 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18746 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18747 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}'
18748 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}'
18758 case $cc_basename in
18760 # FIXME: insert proper C++ library support
18764 # Green Hills C++ Compiler
18765 # FIXME: insert proper C++ library support
18769 # FIXME: insert proper C++ library support
18775 # C++ shared libraries reported to be fairly broken before switch to ELF
18779 archive_cmds_need_lc_CXX=no
18781 freebsd* | kfreebsd*-gnu | dragonfly*)
18782 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18789 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18790 hardcode_libdir_separator_CXX=:
18791 export_dynamic_flag_spec_CXX='${wl}-E'
18792 hardcode_direct_CXX=yes
18793 hardcode_minus_L_CXX=yes # Not in the search PATH,
18794 # but as the default
18795 # location of the library.
18797 case $cc_basename in
18799 # FIXME: insert proper C++ library support
18803 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'
18804 # Commands to make compiler produce verbose output that lists
18805 # what "hidden" libraries, object files and flags are used when
18806 # linking a shared library.
18808 # There doesn't appear to be a way to prevent this compiler from
18809 # explicitly linking system object files so we need to strip them
18810 # from the output so that they don't get included in the library
18812 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'
18815 if test "$GXX" = yes; then
18816 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'
18818 # FIXME: insert proper C++ library support
18825 if test $with_gnu_ld = no; then
18826 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18827 hardcode_libdir_separator_CXX=:
18831 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18834 export_dynamic_flag_spec_CXX='${wl}-E'
18840 hardcode_direct_CXX=no
18841 hardcode_shlibpath_var_CXX=no
18844 hardcode_direct_CXX=yes
18845 hardcode_minus_L_CXX=yes # Not in the search PATH,
18846 # but as the default
18847 # location of the library.
18851 case $cc_basename in
18853 # FIXME: insert proper C++ library support
18859 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18862 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18865 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18868 # Commands to make compiler produce verbose output that lists
18869 # what "hidden" libraries, object files and flags are used when
18870 # linking a shared library.
18872 # There doesn't appear to be a way to prevent this compiler from
18873 # explicitly linking system object files so we need to strip them
18874 # from the output so that they don't get included in the library
18876 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'
18879 if test "$GXX" = yes; then
18880 if test $with_gnu_ld = no; then
18883 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18886 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18889 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'
18894 # FIXME: insert proper C++ library support
18901 hardcode_direct_CXX=no
18902 hardcode_shlibpath_var_CXX=no
18903 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18904 export_dynamic_flag_spec_CXX='${wl}-E'
18905 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18906 # Instead, shared libraries are loaded at an image base (0x10000000 by
18907 # default) and relocated if they conflict, which is a slow very memory
18908 # consuming and fragmenting process. To avoid this, we pick a random,
18909 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18910 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18911 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'
18912 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'
18915 case $cc_basename in
18918 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'
18920 # Archives containing C++ object files must be created using
18921 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18922 # necessary to make sure instantiated templates are included
18924 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18927 if test "$GXX" = yes; then
18928 if test "$with_gnu_ld" = no; then
18929 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'
18931 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'
18934 link_all_deplibs_CXX=yes
18937 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18938 hardcode_libdir_separator_CXX=:
18941 case $cc_basename in
18943 # Kuck and Associates, Inc. (KAI) C++ Compiler
18945 # KCC will only create a shared library if the output file
18946 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18947 # to its proper name (with version) after linking.
18948 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'
18949 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'
18950 # Commands to make compiler produce verbose output that lists
18951 # what "hidden" libraries, object files and flags are used when
18952 # linking a shared library.
18954 # There doesn't appear to be a way to prevent this compiler from
18955 # explicitly linking system object files so we need to strip them
18956 # from the output so that they don't get included in the library
18958 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'
18960 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
18961 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18963 # Archives containing C++ object files must be created using
18964 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18965 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
18970 # version 8.0 and above of icpc choke on multiply defined symbols
18971 # if we add $predep_objects and $postdep_objects, however 7.1 and
18972 # earlier do not add the objects themselves.
18973 case `$CC -V 2>&1` in
18975 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18976 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'
18978 *) # Version 8.0 or newer
18981 ia64
*) tmp_idyn
=' -i_dynamic';;
18983 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18984 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'
18987 archive_cmds_need_lc_CXX
=no
18988 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18989 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18990 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18993 # Portland Group C++ compiler
18994 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18995 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'
18997 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
18998 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18999 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'
19003 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19004 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'
19006 runpath_var
=LD_RUN_PATH
19007 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19008 hardcode_libdir_separator_CXX
=:
19010 # Commands to make compiler produce verbose output that lists
19011 # what "hidden" libraries, object files and flags are used when
19012 # linking a shared library.
19014 # There doesn't appear to be a way to prevent this compiler from
19015 # explicitly linking system object files so we need to strip them
19016 # from the output so that they don't get included in the library
19018 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'
19023 # FIXME: insert proper C++ library support
19027 # FIXME: insert proper C++ library support
19031 case $cc_basename in
19033 # FIXME: insert proper C++ library support
19037 # FIXME: insert proper C++ library support
19043 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
19044 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19046 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19047 hardcode_direct_CXX
=yes
19048 hardcode_shlibpath_var_CXX
=no
19050 # Workaround some broken pre-1.5 toolchains
19051 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19054 # C++ shared libraries are fairly broken
19058 hardcode_direct_CXX
=yes
19059 hardcode_shlibpath_var_CXX
=no
19060 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19061 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19062 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19063 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19064 export_dynamic_flag_spec_CXX
='${wl}-E'
19065 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19067 output_verbose_link_cmd
='echo'
19070 case $cc_basename in
19072 # Kuck and Associates, Inc. (KAI) C++ Compiler
19074 # KCC will only create a shared library if the output file
19075 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19076 # to its proper name (with version) after linking.
19077 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'
19079 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19080 hardcode_libdir_separator_CXX
=:
19082 # Archives containing C++ object files must be created using
19083 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19084 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19088 # Rational C++ 2.4.1
19089 # FIXME: insert proper C++ library support
19093 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19094 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'
19096 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19097 hardcode_libdir_separator_CXX
=:
19099 # Commands to make compiler produce verbose output that lists
19100 # what "hidden" libraries, object files and flags are used when
19101 # linking a shared library.
19103 # There doesn't appear to be a way to prevent this compiler from
19104 # explicitly linking system object files so we need to strip them
19105 # from the output so that they don't get included in the library
19107 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'
19110 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19111 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19112 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'
19114 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19115 hardcode_libdir_separator_CXX
=:
19117 # Commands to make compiler produce verbose output that lists
19118 # what "hidden" libraries, object files and flags are used when
19119 # linking a shared library.
19120 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19123 # FIXME: insert proper C++ library support
19130 case $cc_basename in
19132 # Kuck and Associates, Inc. (KAI) C++ Compiler
19134 # KCC will only create a shared library if the output file
19135 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19136 # to its proper name (with version) after linking.
19137 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'
19139 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19140 hardcode_libdir_separator_CXX
=:
19142 # Archives containing C++ object files must be created using
19143 # the KAI C++ compiler.
19144 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
19147 # Rational C++ 2.4.1
19148 # FIXME: insert proper C++ library support
19152 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19153 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'
19154 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19155 echo "-hidden">> $lib.exp~
19156 $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~
19159 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19160 hardcode_libdir_separator_CXX
=:
19162 # Commands to make compiler produce verbose output that lists
19163 # what "hidden" libraries, object files and flags are used when
19164 # linking a shared library.
19166 # There doesn't appear to be a way to prevent this compiler from
19167 # explicitly linking system object files so we need to strip them
19168 # from the output so that they don't get included in the library
19170 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'
19173 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19174 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19175 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'
19177 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19178 hardcode_libdir_separator_CXX
=:
19180 # Commands to make compiler produce verbose output that lists
19181 # what "hidden" libraries, object files and flags are used when
19182 # linking a shared library.
19183 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19186 # FIXME: insert proper C++ library support
19193 # FIXME: insert proper C++ library support
19197 case $cc_basename in
19200 # FIXME: insert proper C++ library support
19205 # FIXME: insert proper C++ library support
19209 # FIXME: insert proper C++ library support
19215 case $cc_basename in
19217 # Sun C++ 4.2, 5.x and Centerline C++
19218 archive_cmds_need_lc_CXX
=yes
19219 no_undefined_flag_CXX
=' -zdefs'
19220 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19221 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19222 $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'
19224 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19225 hardcode_shlibpath_var_CXX
=no
19227 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19229 # The C++ compiler is used as linker so we must use $wl
19230 # flag to pass the commands to the underlying system
19231 # linker. We must also pass each convience library through
19232 # to the system linker between allextract/defaultextract.
19233 # The C++ compiler will combine linker options so we
19234 # cannot just pass the convience library names through
19236 # Supported since Solaris 2.6 (maybe 2.5.1?)
19237 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'
19240 link_all_deplibs_CXX
=yes
19242 output_verbose_link_cmd
='echo'
19244 # Archives containing C++ object files must be created using
19245 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19246 # necessary to make sure instantiated templates are included
19248 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19251 # Green Hills C++ Compiler
19252 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19254 # The C++ compiler must be used to create the archive.
19255 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19258 # GNU C++ compiler with Solaris linker
19259 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19260 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19261 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
19262 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19263 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19264 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19266 # Commands to make compiler produce verbose output that lists
19267 # what "hidden" libraries, object files and flags are used when
19268 # linking a shared library.
19269 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19271 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19273 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19274 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19275 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19277 # Commands to make compiler produce verbose output that lists
19278 # what "hidden" libraries, object files and flags are used when
19279 # linking a shared library.
19280 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19283 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19288 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19289 no_undefined_flag_CXX
='${wl}-z,text'
19290 archive_cmds_need_lc_CXX
=no
19291 hardcode_shlibpath_var_CXX
=no
19292 runpath_var
='LD_RUN_PATH'
19294 case $cc_basename in
19296 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19297 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19300 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19301 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19305 sysv5
* | sco3.2v5
* | sco5v6
*)
19306 # Note: We can NOT use -z defs as we might desire, because we do not
19307 # link with -lc, and that would cause any symbols used from libc to
19308 # always be unresolved, which means just about no library would
19309 # ever link correctly. If we're not using GNU ld we use -z text
19310 # though, which does catch some bad symbols but isn't as heavy-handed
19312 # For security reasons, it is highly recommended that you always
19313 # use absolute paths for naming shared libraries, and exclude the
19314 # DT_RUNPATH tag from executables and libraries. But doing so
19315 # requires that you compile everything twice, which is a pain.
19316 # So that behaviour is only enabled if SCOABSPATH is set to a
19317 # non-empty value in the environment. Most likely only useful for
19318 # creating official distributions of packages.
19319 # This is a hack until libtool officially supports absolute path
19320 # names for shared libraries.
19321 no_undefined_flag_CXX
='${wl}-z,text'
19322 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19323 archive_cmds_need_lc_CXX
=no
19324 hardcode_shlibpath_var_CXX
=no
19325 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19326 hardcode_libdir_separator_CXX
=':'
19327 link_all_deplibs_CXX
=yes
19328 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19329 runpath_var
='LD_RUN_PATH'
19331 case $cc_basename in
19333 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19334 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19337 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19338 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19343 case $cc_basename in
19345 # NonStop-UX NCC 3.20
19346 # FIXME: insert proper C++ library support
19350 # FIXME: insert proper C++ library support
19356 # FIXME: insert proper C++ library support
19360 # FIXME: insert proper C++ library support
19364 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19365 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19366 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19372 cat > conftest.
$ac_ext <<EOF
19376 Foo (void) { a = 0; }
19382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19383 (eval $ac_compile) 2>&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; then
19387 # Parse the compiler output and extract the necessary
19388 # objects, libraries and library flags.
19390 # Sentinel used to keep track of whether or not we are before
19391 # the conftest object file.
19392 pre_test_object_deps_done
=no
19394 # The `*' in the case matches for architectures that use `case' in
19395 # $output_verbose_cmd can trigger glob expansion during the loop
19396 # eval without this substitution.
19397 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19399 for p
in `eval $output_verbose_link_cmd`; do
19403 # Some compilers place space between "-{L,R}" and the path.
19404 # Remove the space.
19405 if test $p = "-L" \
19406 ||
test $p = "-R"; then
19413 if test "$pre_test_object_deps_done" = no
; then
19416 # Internal compiler library paths should come after those
19417 # provided the user. The postdeps already come after the
19418 # user supplied libs so there is no need to process them.
19419 if test -z "$compiler_lib_search_path_CXX"; then
19420 compiler_lib_search_path_CXX
="${prev}${p}"
19422 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19425 # The "-l" case would never come before the object being
19426 # linked, so don't bother handling this case.
19429 if test -z "$postdeps_CXX"; then
19430 postdeps_CXX
="${prev}${p}"
19432 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19438 # This assumes that the test object file only shows up
19439 # once in the compiler output.
19440 if test "$p" = "conftest.$objext"; then
19441 pre_test_object_deps_done
=yes
19445 if test "$pre_test_object_deps_done" = no
; then
19446 if test -z "$predep_objects_CXX"; then
19447 predep_objects_CXX
="$p"
19449 predep_objects_CXX
="$predep_objects_CXX $p"
19452 if test -z "$postdep_objects_CXX"; then
19453 postdep_objects_CXX
="$p"
19455 postdep_objects_CXX
="$postdep_objects_CXX $p"
19460 *) ;; # Ignore the rest.
19468 echo "libtool.m4: error: problem compiling CXX test program"
19471 $rm -f confest.
$objext
19473 # PORTME: override above test on systems where it is broken
19476 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19477 # hack all around it, let's just trust "g++" to DTRT.
19478 predep_objects_CXX
=
19479 postdep_objects_CXX
=
19484 case $cc_basename in
19486 # Adding this requires a known-good setup of shared libraries for
19487 # Sun compiler versions before 5.6, else PIC objects from an old
19488 # archive will be linked into the output, leading to subtle bugs.
19489 postdeps_CXX
='-lCstd -lCrun'
19496 case " $postdeps_CXX " in
19497 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19500 lt_prog_compiler_wl_CXX
=
19501 lt_prog_compiler_pic_CXX
=
19502 lt_prog_compiler_static_CXX
=
19504 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19505 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19507 # C++ specific cases for pic, static, wl, etc.
19508 if test "$GXX" = yes; then
19509 lt_prog_compiler_wl_CXX
='-Wl,'
19510 lt_prog_compiler_static_CXX
='-static'
19514 # All AIX code is PIC.
19515 if test "$host_cpu" = ia64
; then
19516 # AIX 5 now supports IA64 processor
19517 lt_prog_compiler_static_CXX
='-Bstatic'
19521 # FIXME: we need at least 68020 code to build shared libraries, but
19522 # adding the `-m68020' flag to GCC prevents building anything better,
19524 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19526 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19527 # PIC is the default for these OSes.
19529 mingw
* | os2
* | pw32
*)
19530 # This hack is so that the source file can tell whether it is being
19531 # built for inclusion in a dll (and should export symbols for example).
19532 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19534 darwin
* | rhapsody
*)
19535 # PIC is the default on this platform
19536 # Common symbols not allowed in MH_DYLIB files
19537 lt_prog_compiler_pic_CXX
='-fno-common'
19540 # DJGPP does not support shared libraries at all
19541 lt_prog_compiler_pic_CXX
=
19544 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19545 # Instead, we relocate shared libraries at runtime.
19548 if test -d /usr
/nec
; then
19549 lt_prog_compiler_pic_CXX
=-Kconform_pic
19553 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19554 # not for PA HP-UX.
19559 lt_prog_compiler_pic_CXX
='-fPIC'
19564 lt_prog_compiler_pic_CXX
='-fPIC'
19570 # All AIX code is PIC.
19571 if test "$host_cpu" = ia64
; then
19572 # AIX 5 now supports IA64 processor
19573 lt_prog_compiler_static_CXX
='-Bstatic'
19575 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19579 case $cc_basename in
19581 # Green Hills C++ Compiler
19582 # _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"
19587 # PIC is the default on this platform
19588 # Common symbols not allowed in MH_DYLIB files
19589 case $cc_basename in
19591 lt_prog_compiler_pic_CXX
='-qnocommon'
19592 lt_prog_compiler_wl_CXX
='-Wl,'
19597 case $cc_basename in
19599 lt_prog_compiler_pic_CXX
='-KPIC'
19602 # Green Hills C++ Compiler
19603 lt_prog_compiler_pic_CXX
='-pic'
19609 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
19610 # FreeBSD uses GNU C++
19612 hpux9
* | hpux10
* | hpux11
*)
19613 case $cc_basename in
19615 lt_prog_compiler_wl_CXX
='-Wl,'
19616 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19617 if test "$host_cpu" != ia64
; then
19618 lt_prog_compiler_pic_CXX
='+Z'
19622 lt_prog_compiler_wl_CXX
='-Wl,'
19623 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19629 lt_prog_compiler_pic_CXX
='+Z'
19638 # This is c89, which is MS Visual C++ (no shared libs)
19639 # Anyone wants to do a port?
19641 irix5
* | irix6
* | nonstopux
*)
19642 case $cc_basename in
19644 lt_prog_compiler_wl_CXX
='-Wl,'
19645 lt_prog_compiler_static_CXX
='-non_shared'
19646 # CC pic flag -KPIC is the default.
19653 case $cc_basename in
19656 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19657 lt_prog_compiler_pic_CXX
='-fPIC'
19661 lt_prog_compiler_wl_CXX
='-Wl,'
19662 lt_prog_compiler_pic_CXX
='-KPIC'
19663 lt_prog_compiler_static_CXX
='-static'
19666 # Portland Group C++ compiler.
19667 lt_prog_compiler_wl_CXX
='-Wl,'
19668 lt_prog_compiler_pic_CXX
='-fpic'
19669 lt_prog_compiler_static_CXX
='-Bstatic'
19673 # Make sure the PIC flag is empty. It appears that all Alpha
19674 # Linux and Compaq Tru64 Unix objects are PIC.
19675 lt_prog_compiler_pic_CXX
=
19676 lt_prog_compiler_static_CXX
='-non_shared'
19687 case $cc_basename in
19689 lt_prog_compiler_pic_CXX
='-W c,exportall'
19697 osf3
* | osf4
* | osf5
*)
19698 case $cc_basename in
19700 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19703 # Rational C++ 2.4.1
19704 lt_prog_compiler_pic_CXX
='-pic'
19707 # Digital/Compaq C++
19708 lt_prog_compiler_wl_CXX
='-Wl,'
19709 # Make sure the PIC flag is empty. It appears that all Alpha
19710 # Linux and Compaq Tru64 Unix objects are PIC.
19711 lt_prog_compiler_pic_CXX
=
19712 lt_prog_compiler_static_CXX
='-non_shared'
19721 case $cc_basename in
19723 # Sun C++ 4.2, 5.x and Centerline C++
19724 lt_prog_compiler_pic_CXX
='-KPIC'
19725 lt_prog_compiler_static_CXX
='-Bstatic'
19726 lt_prog_compiler_wl_CXX
='-Qoption ld '
19729 # Green Hills C++ Compiler
19730 lt_prog_compiler_pic_CXX
='-PIC'
19737 case $cc_basename in
19740 lt_prog_compiler_pic_CXX
='-pic'
19741 lt_prog_compiler_static_CXX
='-Bstatic'
19745 lt_prog_compiler_pic_CXX
='-pic'
19752 case $cc_basename in
19754 # NonStop-UX NCC 3.20
19755 lt_prog_compiler_pic_CXX
='-KPIC'
19761 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
19762 case $cc_basename in
19764 lt_prog_compiler_wl_CXX
='-Wl,'
19765 lt_prog_compiler_pic_CXX
='-KPIC'
19766 lt_prog_compiler_static_CXX
='-Bstatic'
19773 lt_prog_compiler_can_build_shared_CXX
=no
19778 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19779 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19782 # Check to make sure the PIC flag actually works.
19784 if test -n "$lt_prog_compiler_pic_CXX"; then
19786 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19787 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19788 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19789 echo $ECHO_N "(cached) $ECHO_C" >&6
19791 lt_prog_compiler_pic_works_CXX
=no
19792 ac_outfile
=conftest.
$ac_objext
19793 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
19794 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
19795 # Insert the option either (1) after the last *FLAGS variable, or
19796 # (2) before a word containing "conftest.", or (3) at the end.
19797 # Note that $ac_compile itself does not contain backslashes and begins
19798 # with a dollar sign (not a hyphen), so the echo should work correctly.
19799 # The option is referenced via a variable to avoid confusing sed.
19800 lt_compile
=`echo "$ac_compile" | $SED \
19801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19803 -e 's:$: $lt_compiler_flag:'`
19804 (eval echo "\"\$as_me:19804: $lt_compile\"" >&5)
19805 (eval "$lt_compile" 2>conftest.err
)
19807 cat conftest.err
>&5
19808 echo "$as_me:19808: \$? = $ac_status" >&5
19809 if (exit $ac_status) && test -s "$ac_outfile"; then
19810 # The compiler can only warn and ignore the option if not recognized
19811 # So say no if there are warnings other than the usual output.
19812 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
19813 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19814 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
19815 lt_prog_compiler_pic_works_CXX
=yes
19821 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19822 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19824 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
19825 case $lt_prog_compiler_pic_CXX in
19827 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
19830 lt_prog_compiler_pic_CXX
=
19831 lt_prog_compiler_can_build_shared_CXX
=no
19836 # For platforms which do not support PIC, -DPIC is meaningless:
19838 lt_prog_compiler_pic_CXX
=
19841 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
19846 # Check to make sure the static flag actually works.
19848 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
19849 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19850 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19851 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19854 lt_prog_compiler_static_works_CXX
=no
19855 save_LDFLAGS
="$LDFLAGS"
19856 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
19857 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
19858 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
19859 # The linker can only warn and ignore the option if not recognized
19860 # So say no if there are warnings
19861 if test -s conftest.err
; then
19862 # Append any errors to the config.log.
19863 cat conftest.err
1>&5
19864 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
19865 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19866 if diff conftest.exp conftest.er2
>/dev
/null
; then
19867 lt_prog_compiler_static_works_CXX
=yes
19870 lt_prog_compiler_static_works_CXX
=yes
19874 LDFLAGS
="$save_LDFLAGS"
19877 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19878 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19880 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
19883 lt_prog_compiler_static_CXX
=
19887 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19888 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19889 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19890 echo $ECHO_N "(cached) $ECHO_C" >&6
19892 lt_cv_prog_compiler_c_o_CXX
=no
19893 $rm -r conftest
2>/dev
/null
19897 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
19899 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19900 # Insert the option either (1) after the last *FLAGS variable, or
19901 # (2) before a word containing "conftest.", or (3) at the end.
19902 # Note that $ac_compile itself does not contain backslashes and begins
19903 # with a dollar sign (not a hyphen), so the echo should work correctly.
19904 lt_compile
=`echo "$ac_compile" | $SED \
19905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19907 -e 's:$: $lt_compiler_flag:'`
19908 (eval echo "\"\$as_me:19908: $lt_compile\"" >&5)
19909 (eval "$lt_compile" 2>out
/conftest.err
)
19911 cat out
/conftest.err
>&5
19912 echo "$as_me:19912: \$? = $ac_status" >&5
19913 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19915 # The compiler can only warn and ignore the option if not recognized
19916 # So say no if there are warnings
19917 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
19918 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19919 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19920 lt_cv_prog_compiler_c_o_CXX
=yes
19925 # SGI C++ compiler will create directory out/ii_files/ for
19926 # template instantiation
19927 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
19928 $rm out
/* && rmdir out
19934 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19935 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19938 hard_links
="nottested"
19939 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
19940 # do not overwrite the value of need_locks provided by the user
19941 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19942 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19945 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19947 ln conftest.a conftest.b
2>&5 || hard_links
=no
19948 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19949 { echo "$as_me:$LINENO: result: $hard_links" >&5
19950 echo "${ECHO_T}$hard_links" >&6; }
19951 if test "$hard_links" = no
; then
19952 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19953 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19960 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19961 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19963 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19966 # If we're using GNU nm, then we don't want the "-C" option.
19967 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19968 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
19969 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'
19971 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'
19975 export_symbols_cmds_CXX
="$ltdll_cmds"
19978 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'
19981 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19985 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19986 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19987 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19990 # Do we need to explicitly link libc?
19992 case "x$archive_cmds_need_lc_CXX" in
19994 # Assume -lc should be added
19995 archive_cmds_need_lc_CXX
=yes
19997 if test "$enable_shared" = yes && test "$GCC" = yes; then
19998 case $archive_cmds_CXX in
20000 # FIXME: we may have to deal with multi-command sequences.
20003 # Test whether the compiler implicitly links with -lc since on some
20004 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20005 # to ld, don't add -lc before -lgcc.
20006 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20007 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20009 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20012 (eval $ac_compile) 2>&5
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); } 2>conftest.err
; then
20018 libobjs
=conftest.
$ac_objext
20020 wl
=$lt_prog_compiler_wl_CXX
20021 pic_flag
=$lt_prog_compiler_pic_CXX
20027 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20028 allow_undefined_flag_CXX
=
20029 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20030 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); }
20035 archive_cmds_need_lc_CXX
=no
20037 archive_cmds_need_lc_CXX
=yes
20039 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20041 cat conftest.err
1>&5
20044 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20045 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20052 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20053 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20054 library_names_spec
=
20055 libname_spec
='lib$name'
20059 postuninstall_cmds
=
20063 shlibpath_overrides_runpath
=unknown
20065 dynamic_linker
="$host_os ld.so"
20066 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20067 if test "$GCC" = yes; then
20068 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20069 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
20070 # if the path contains ";" then we assume it to be the separator
20071 # otherwise default to the standard path separator (i.e. ":") - it is
20072 # assumed that no part of a normal pathname contains ";" but that should
20073 # okay in the real world where ";" in dirpaths is itself problematic.
20074 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20076 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20079 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
20081 need_lib_prefix
=unknown
20082 hardcode_into_libs
=no
20084 # when you set need_version to no, make sure it does not cause -set_version
20085 # flags to be left without arguments
20086 need_version
=unknown
20091 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20092 shlibpath_var
=LIBPATH
20094 # AIX 3 has no versioning support, so we append a major version to the name.
20095 soname_spec
='${libname}${release}${shared_ext}$major'
20102 hardcode_into_libs
=yes
20103 if test "$host_cpu" = ia64
; then
20104 # AIX 5 supports IA64
20105 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20106 shlibpath_var
=LD_LIBRARY_PATH
20108 # With GCC up to 2.95.x, collect2 would create an import file
20109 # for dependence libraries. The import file would start with
20110 # the line `#! .'. This would cause the generated library to
20111 # depend on `.', always an invalid library. This was fixed in
20112 # development snapshots of GCC prior to 3.0.
20114 aix4 | aix4.
[01] | aix4.
[01].
*)
20115 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20117 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
20120 can_build_shared
=no
20124 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20125 # soname into executable. Probably we can add versioning support to
20126 # collect2, so additional links can be useful in future.
20127 if test "$aix_use_runtimelinking" = yes; then
20128 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20129 # instead of lib<name>.a to let people know that these are not
20130 # typical AIX shared libraries.
20131 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20133 # We preserve .a as extension for shared libraries through AIX4.2
20134 # and later when we are not doing run time linking.
20135 library_names_spec
='${libname}${release}.a $libname.a'
20136 soname_spec
='${libname}${release}${shared_ext}$major'
20138 shlibpath_var
=LIBPATH
20143 library_names_spec
='$libname.ixlibrary $libname.a'
20144 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20145 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'
20149 library_names_spec
='${libname}${shared_ext}'
20150 dynamic_linker
="$host_os ld.so"
20151 shlibpath_var
=LIBRARY_PATH
20157 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20158 soname_spec
='${libname}${release}${shared_ext}$major'
20159 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20160 shlibpath_var
=LD_LIBRARY_PATH
20161 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20162 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20163 # the default ld.so.conf also contains /usr/contrib/lib and
20164 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20165 # libtool to hard-code these into programs
20168 cygwin
* | mingw
* | pw32
*)
20169 version_type
=windows
20174 case $GCC,$host_os in
20175 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
20176 library_names_spec
='$libname.dll.a'
20177 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20178 postinstall_cmds
='base_file=`basename \${file}`~
20179 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20180 dldir=$destdir/`dirname \$dlpath`~
20181 test -d \$dldir || mkdir -p \$dldir~
20182 $install_prog $dir/$dlname \$dldir/$dlname~
20183 chmod a+x \$dldir/$dlname'
20184 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20185 dlpath=$dir/\$dldll~
20187 shlibpath_overrides_runpath
=yes
20191 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20192 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20193 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
20196 # MinGW DLLs use traditional 'lib' prefix
20197 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20198 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20199 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
20200 # It is most probably a Windows format PATH printed by
20201 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20202 # path with ; separators, and with drive letters. We can handle the
20203 # drive letters (cygwin fileutils understands them), so leave them,
20204 # especially as we might pass files found there to a mingw objdump,
20205 # which wouldn't understand a cygwinified path. Ahh.
20206 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20208 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20212 # pw32 DLLs use 'pw' prefix rather than 'lib'
20213 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20219 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20222 dynamic_linker
='Win32 ld.exe'
20223 # FIXME: first we should search . and the directory the executable is in
20227 darwin
* | rhapsody
*)
20228 dynamic_linker
="$host_os dyld"
20229 version_type
=darwin
20232 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20233 soname_spec
='${libname}${release}${major}$shared_ext'
20234 shlibpath_overrides_runpath
=yes
20235 shlibpath_var
=DYLD_LIBRARY_PATH
20236 shrext_cmds
='.dylib'
20237 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20238 if test "$GCC" = yes; then
20239 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"`
20241 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
20243 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20250 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20251 soname_spec
='${libname}${release}${shared_ext}$major'
20252 shlibpath_var
=LD_LIBRARY_PATH
20263 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20264 soname_spec
='${libname}${release}${shared_ext}$major'
20265 shlibpath_var
=LD_LIBRARY_PATH
20266 shlibpath_overrides_runpath
=no
20267 hardcode_into_libs
=yes
20268 dynamic_linker
='GNU ld.so'
20271 freebsd
* | dragonfly
*)
20272 # DragonFly does not have aout. When/if they implement a new
20273 # versioning mechanism, adjust this.
20274 if test -x /usr
/bin
/objformat
; then
20275 objformat
=`/usr/bin/objformat`
20278 freebsd
[123]*) objformat
=aout
;;
20279 *) objformat
=elf
;;
20282 version_type
=freebsd-
$objformat
20283 case $version_type in
20285 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20290 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20294 shlibpath_var
=LD_LIBRARY_PATH
20297 shlibpath_overrides_runpath
=yes
20299 freebsd3.
[01]* | freebsdelf3.
[01]*)
20300 shlibpath_overrides_runpath
=yes
20301 hardcode_into_libs
=yes
20303 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20304 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20305 shlibpath_overrides_runpath
=no
20306 hardcode_into_libs
=yes
20308 freebsd
*) # from 4.6 on
20309 shlibpath_overrides_runpath
=yes
20310 hardcode_into_libs
=yes
20319 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20320 soname_spec
='${libname}${release}${shared_ext}$major'
20321 shlibpath_var
=LD_LIBRARY_PATH
20322 hardcode_into_libs
=yes
20325 hpux9
* | hpux10
* | hpux11
*)
20326 # Give a soname corresponding to the major version so that dld.sl refuses to
20327 # link against other versions.
20334 hardcode_into_libs
=yes
20335 dynamic_linker
="$host_os dld.so"
20336 shlibpath_var
=LD_LIBRARY_PATH
20337 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20338 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20339 soname_spec
='${libname}${release}${shared_ext}$major'
20340 if test "X$HPUX_IA64_MODE" = X32
; then
20341 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20343 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20345 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20349 hardcode_into_libs
=yes
20350 dynamic_linker
="$host_os dld.sl"
20351 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20352 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20353 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20354 soname_spec
='${libname}${release}${shared_ext}$major'
20355 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20356 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20360 dynamic_linker
="$host_os dld.sl"
20361 shlibpath_var
=SHLIB_PATH
20362 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20363 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20364 soname_spec
='${libname}${release}${shared_ext}$major'
20367 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20368 postinstall_cmds
='chmod 555 $lib'
20375 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20376 soname_spec
='${libname}${release}${shared_ext}$major'
20377 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20378 shlibpath_var
=LD_LIBRARY_PATH
20379 shlibpath_overrides_runpath
=no
20380 hardcode_into_libs
=yes
20383 irix5
* | irix6
* | nonstopux
*)
20385 nonstopux
*) version_type
=nonstopux
;;
20387 if test "$lt_cv_prog_gnu_ld" = yes; then
20395 soname_spec
='${libname}${release}${shared_ext}$major'
20396 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20398 irix5
* | nonstopux
*)
20399 libsuff
= shlibsuff
=
20402 case $LD in # libtool.m4 will add one of these switches to LD
20403 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20404 libsuff
= shlibsuff
= libmagic
=32-bit;;
20405 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20406 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20407 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20408 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20409 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20413 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20414 shlibpath_overrides_runpath
=no
20415 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20416 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20417 hardcode_into_libs
=yes
20420 # No shared lib support for Linux oldld, aout, or coff.
20421 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20425 # This must be Linux ELF.
20430 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20431 soname_spec
='${libname}${release}${shared_ext}$major'
20432 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20433 shlibpath_var
=LD_LIBRARY_PATH
20434 shlibpath_overrides_runpath
=no
20435 # This implies no fast_install, which is unacceptable.
20436 # Some rework will be needed to allow for fast_install
20437 # before this can be enabled.
20438 hardcode_into_libs
=yes
20440 # Append ld.so.conf contents to the search path
20441 if test -f /etc
/ld.so.conf
; then
20442 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' ' '`
20443 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20446 # We used to test for /lib/ld.so.1 and disable shared libraries on
20447 # powerpc, because MkLinux only supported shared libraries with the
20448 # GNU dynamic linker. Since this was broken with cross compilers,
20449 # most powerpc-linux boxes support dynamic linking these days and
20450 # people can always --disable-shared, the test was removed, and we
20451 # assume the GNU/Linux dynamic linker is in use.
20452 dynamic_linker
='GNU/Linux ld.so'
20459 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20460 soname_spec
='${libname}${release}${shared_ext}$major'
20461 shlibpath_var
=LD_LIBRARY_PATH
20462 shlibpath_overrides_runpath
=no
20463 hardcode_into_libs
=yes
20464 dynamic_linker
='GNU ld.so'
20471 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
20472 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20473 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20474 dynamic_linker
='NetBSD (a.out) ld.so'
20476 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20477 soname_spec
='${libname}${release}${shared_ext}$major'
20478 dynamic_linker
='NetBSD ld.elf_so'
20480 shlibpath_var
=LD_LIBRARY_PATH
20481 shlibpath_overrides_runpath
=yes
20482 hardcode_into_libs
=yes
20487 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20488 shlibpath_var
=LD_LIBRARY_PATH
20489 shlibpath_overrides_runpath
=yes
20496 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20497 soname_spec
='${libname}${release}${shared_ext}$major'
20498 shlibpath_var
=LD_LIBRARY_PATH
20499 shlibpath_overrides_runpath
=yes
20504 sys_lib_dlsearch_path_spec
="/usr/lib"
20506 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20508 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20509 *) need_version
=no
;;
20511 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20512 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20513 shlibpath_var
=LD_LIBRARY_PATH
20514 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20516 openbsd2.
[89] | openbsd2.
[89].
*)
20517 shlibpath_overrides_runpath
=no
20520 shlibpath_overrides_runpath
=yes
20524 shlibpath_overrides_runpath
=yes
20529 libname_spec
='$name'
20532 library_names_spec
='$libname${shared_ext} $libname.a'
20533 dynamic_linker
='OS/2 ld.exe'
20534 shlibpath_var
=LIBPATH
20537 osf3
* | osf4
* | osf5
*)
20541 soname_spec
='${libname}${release}${shared_ext}$major'
20542 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20543 shlibpath_var
=LD_LIBRARY_PATH
20544 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20545 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20552 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20553 soname_spec
='${libname}${release}${shared_ext}$major'
20554 shlibpath_var
=LD_LIBRARY_PATH
20555 shlibpath_overrides_runpath
=yes
20556 hardcode_into_libs
=yes
20557 # ldd complains unless libraries are executable
20558 postinstall_cmds
='chmod +x $lib'
20563 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20564 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20565 shlibpath_var
=LD_LIBRARY_PATH
20566 shlibpath_overrides_runpath
=yes
20567 if test "$with_gnu_ld" = yes; then
20575 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20576 soname_spec
='${libname}${release}${shared_ext}$major'
20577 shlibpath_var
=LD_LIBRARY_PATH
20578 case $host_vendor in
20580 shlibpath_overrides_runpath
=no
20582 export_dynamic_flag_spec
='${wl}-Blargedynsym'
20583 runpath_var
=LD_RUN_PATH
20591 shlibpath_overrides_runpath
=no
20592 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20598 if test -d /usr
/nec
;then
20600 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20601 soname_spec
='$libname${shared_ext}.$major'
20602 shlibpath_var
=LD_LIBRARY_PATH
20606 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20607 version_type
=freebsd-elf
20610 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20611 soname_spec
='${libname}${release}${shared_ext}$major'
20612 shlibpath_var
=LD_LIBRARY_PATH
20613 hardcode_into_libs
=yes
20614 if test "$with_gnu_ld" = yes; then
20615 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20616 shlibpath_overrides_runpath
=no
20618 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20619 shlibpath_overrides_runpath
=yes
20622 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20626 sys_lib_dlsearch_path_spec
='/usr/lib'
20631 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20632 soname_spec
='${libname}${release}${shared_ext}$major'
20633 shlibpath_var
=LD_LIBRARY_PATH
20640 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20641 echo "${ECHO_T}$dynamic_linker" >&6; }
20642 test "$dynamic_linker" = no
&& can_build_shared
=no
20644 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20645 if test "$GCC" = yes; then
20646 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20649 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20650 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20651 hardcode_action_CXX
=
20652 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20653 test -n "$runpath_var_CXX" || \
20654 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20656 # We can hardcode non-existant directories.
20657 if test "$hardcode_direct_CXX" != no
&&
20658 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20659 # have to relink, otherwise we might link with an installed library
20660 # when we should be linking with a yet-to-be-installed one
20661 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20662 test "$hardcode_minus_L_CXX" != no
; then
20663 # Linking always hardcodes the temporary library directory.
20664 hardcode_action_CXX
=relink
20666 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20667 hardcode_action_CXX
=immediate
20670 # We cannot hardcode anything, or else we can only hardcode existing
20672 hardcode_action_CXX
=unsupported
20674 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20675 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20677 if test "$hardcode_action_CXX" = relink
; then
20678 # Fast installation is not supported
20679 enable_fast_install
=no
20680 elif test "$shlibpath_overrides_runpath" = yes ||
20681 test "$enable_shared" = no
; then
20682 # Fast installation is not necessary
20683 enable_fast_install
=needless
20687 # The else clause should only fire when bootstrapping the
20688 # libtool distribution, otherwise you forgot to ship ltmain.sh
20689 # with your package, and you will get complaints that there are
20690 # no rules to generate ltmain.sh.
20691 if test -f "$ltmain"; then
20692 # See if we are running on zsh, and set the options which allow our commands through
20693 # without removal of \ escapes.
20694 if test -n "${ZSH_VERSION+set}" ; then
20695 setopt NO_GLOB_SUBST
20697 # Now quote all the things that may contain metacharacters while being
20698 # careful not to overquote the AC_SUBSTed values. We take copies of the
20699 # variables and quote the copies for generation of the libtool script.
20700 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20702 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20703 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20704 deplibs_check_method reload_flag reload_cmds need_locks \
20705 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20706 lt_cv_sys_global_symbol_to_c_name_address \
20707 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20708 old_postinstall_cmds old_postuninstall_cmds \
20712 lt_prog_compiler_wl_CXX \
20713 lt_prog_compiler_pic_CXX \
20714 lt_prog_compiler_static_CXX \
20715 lt_prog_compiler_no_builtin_flag_CXX \
20716 export_dynamic_flag_spec_CXX \
20717 thread_safe_flag_spec_CXX \
20718 whole_archive_flag_spec_CXX \
20719 enable_shared_with_static_runtimes_CXX \
20720 old_archive_cmds_CXX \
20721 old_archive_from_new_cmds_CXX \
20722 predep_objects_CXX \
20723 postdep_objects_CXX \
20726 compiler_lib_search_path_CXX \
20728 archive_expsym_cmds_CXX \
20729 postinstall_cmds_CXX \
20730 postuninstall_cmds_CXX \
20731 old_archive_from_expsyms_cmds_CXX \
20732 allow_undefined_flag_CXX \
20733 no_undefined_flag_CXX \
20734 export_symbols_cmds_CXX \
20735 hardcode_libdir_flag_spec_CXX \
20736 hardcode_libdir_flag_spec_ld_CXX \
20737 hardcode_libdir_separator_CXX \
20738 hardcode_automatic_CXX \
20740 module_expsym_cmds_CXX \
20741 lt_cv_prog_compiler_c_o_CXX \
20742 exclude_expsyms_CXX \
20743 include_expsyms_CXX
; do
20746 old_archive_cmds_CXX | \
20747 old_archive_from_new_cmds_CXX | \
20748 archive_cmds_CXX | \
20749 archive_expsym_cmds_CXX | \
20750 module_cmds_CXX | \
20751 module_expsym_cmds_CXX | \
20752 old_archive_from_expsyms_cmds_CXX | \
20753 export_symbols_cmds_CXX | \
20754 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20755 postinstall_cmds | postuninstall_cmds | \
20756 old_postinstall_cmds | old_postuninstall_cmds | \
20757 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
20758 # Double-quote double-evaled strings.
20759 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20762 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20768 *'\$0 --fallback-echo"')
20769 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20775 cat <<__EOF__ >> "$cfgfile"
20776 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20778 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20780 # Shell to use when invoking shell scripts.
20783 # Whether or not to build shared libraries.
20784 build_libtool_libs=$enable_shared
20786 # Whether or not to build static libraries.
20787 build_old_libs=$enable_static
20789 # Whether or not to add -lc for building shared libraries.
20790 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20792 # Whether or not to disallow shared libs when runtime libs are static
20793 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20795 # Whether or not to optimize for fast installation.
20796 fast_install=$enable_fast_install
20799 host_alias=$host_alias
20803 # The build system.
20804 build_alias=$build_alias
20808 # An echo program that does not interpret backslashes.
20813 AR_FLAGS=$lt_AR_FLAGS
20818 # LTCC compiler flags.
20819 LTCFLAGS=$lt_LTCFLAGS
20821 # A language-specific compiler.
20822 CC=$lt_compiler_CXX
20824 # Is the compiler the GNU C compiler?
20830 # The linker used to build libraries.
20833 # Whether we need hard or soft links.
20836 # A BSD-compatible nm program.
20839 # A symbol stripping program
20842 # Used to examine libraries when file_magic_cmd begins "file"
20843 MAGIC_CMD=$MAGIC_CMD
20845 # Used on cygwin: DLL creation program.
20848 # Used on cygwin: object dumper.
20851 # Used on cygwin: assembler.
20854 # The name of the directory that contains temporary libtool files.
20857 # How to create reloadable object files.
20858 reload_flag=$lt_reload_flag
20859 reload_cmds=$lt_reload_cmds
20861 # How to pass a linker flag through the compiler.
20862 wl=$lt_lt_prog_compiler_wl_CXX
20864 # Object file suffix (normally "o").
20865 objext="$ac_objext"
20867 # Old archive suffix (normally "a").
20870 # Shared library suffix (normally ".so").
20871 shrext_cmds='$shrext_cmds'
20873 # Executable file suffix (normally "").
20876 # Additional compiler flags for building library objects.
20877 pic_flag=$lt_lt_prog_compiler_pic_CXX
20880 # What is the maximum length of a command?
20881 max_cmd_len=$lt_cv_sys_max_cmd_len
20883 # Does compiler simultaneously support -c and -o options?
20884 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20886 # Must we lock files when doing compilation?
20887 need_locks=$lt_need_locks
20889 # Do we need the lib prefix for modules?
20890 need_lib_prefix=$need_lib_prefix
20892 # Do we need a version for libraries?
20893 need_version=$need_version
20895 # Whether dlopen is supported.
20896 dlopen_support=$enable_dlopen
20898 # Whether dlopen of programs is supported.
20899 dlopen_self=$enable_dlopen_self
20901 # Whether dlopen of statically linked programs is supported.
20902 dlopen_self_static=$enable_dlopen_self_static
20904 # Compiler flag to prevent dynamic linking.
20905 link_static_flag=$lt_lt_prog_compiler_static_CXX
20907 # Compiler flag to turn off builtin functions.
20908 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20910 # Compiler flag to allow reflexive dlopens.
20911 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20913 # Compiler flag to generate shared objects directly from archives.
20914 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20916 # Compiler flag to generate thread-safe objects.
20917 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20919 # Library versioning type.
20920 version_type=$version_type
20922 # Format of library name prefix.
20923 libname_spec=$lt_libname_spec
20925 # List of archive names. First name is the real one, the rest are links.
20926 # The last name is the one that the linker finds with -lNAME.
20927 library_names_spec=$lt_library_names_spec
20929 # The coded name of the library, if different from the real name.
20930 soname_spec=$lt_soname_spec
20932 # Commands used to build and install an old-style archive.
20934 old_archive_cmds=$lt_old_archive_cmds_CXX
20935 old_postinstall_cmds=$lt_old_postinstall_cmds
20936 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20938 # Create an old-style archive from a shared archive.
20939 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20941 # Create a temporary old-style archive to link instead of a shared archive.
20942 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20944 # Commands used to build and install a shared archive.
20945 archive_cmds=$lt_archive_cmds_CXX
20946 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20947 postinstall_cmds=$lt_postinstall_cmds
20948 postuninstall_cmds=$lt_postuninstall_cmds
20950 # Commands used to build a loadable module (assumed same as above if empty)
20951 module_cmds=$lt_module_cmds_CXX
20952 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20954 # Commands to strip libraries.
20955 old_striplib=$lt_old_striplib
20956 striplib=$lt_striplib
20958 # Dependencies to place before the objects being linked to create a
20960 predep_objects=$lt_predep_objects_CXX
20962 # Dependencies to place after the objects being linked to create a
20964 postdep_objects=$lt_postdep_objects_CXX
20966 # Dependencies to place before the objects being linked to create a
20968 predeps=$lt_predeps_CXX
20970 # Dependencies to place after the objects being linked to create a
20972 postdeps=$lt_postdeps_CXX
20974 # The library search path used internally by the compiler when linking
20975 # a shared library.
20976 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20978 # Method to check whether dependent libraries are shared objects.
20979 deplibs_check_method=$lt_deplibs_check_method
20981 # Command to use when deplibs_check_method == file_magic.
20982 file_magic_cmd=$lt_file_magic_cmd
20984 # Flag that allows shared libraries with undefined symbols to be built.
20985 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20987 # Flag that forces no undefined symbols.
20988 no_undefined_flag=$lt_no_undefined_flag_CXX
20990 # Commands used to finish a libtool library installation in a directory.
20991 finish_cmds=$lt_finish_cmds
20993 # Same as above, but a single script fragment to be evaled but not shown.
20994 finish_eval=$lt_finish_eval
20996 # Take the output of nm and produce a listing of raw symbols and C names.
20997 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20999 # Transform the output of nm in a proper C declaration
21000 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21002 # Transform the output of nm in a C name address pair
21003 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21005 # This is the shared library runtime path variable.
21006 runpath_var=$runpath_var
21008 # This is the shared library path variable.
21009 shlibpath_var=$shlibpath_var
21011 # Is shlibpath searched before the hard-coded library search path?
21012 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21014 # How to hardcode a shared library path into an executable.
21015 hardcode_action=$hardcode_action_CXX
21017 # Whether we should hardcode library paths into libraries.
21018 hardcode_into_libs=$hardcode_into_libs
21020 # Flag to hardcode \$libdir into a binary during linking.
21021 # This must work even if \$libdir does not exist.
21022 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21024 # If ld is used when linking, flag to hardcode \$libdir into
21025 # a binary during linking. This must work even if \$libdir does
21027 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21029 # Whether we need a single -rpath flag with a separated argument.
21030 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21032 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21033 # resulting binary.
21034 hardcode_direct=$hardcode_direct_CXX
21036 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21037 # resulting binary.
21038 hardcode_minus_L=$hardcode_minus_L_CXX
21040 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21041 # the resulting binary.
21042 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21044 # Set to yes if building a shared library automatically hardcodes DIR into the library
21045 # and all subsequent libraries and executables linked against it.
21046 hardcode_automatic=$hardcode_automatic_CXX
21048 # Variables whose values should be saved in libtool wrapper scripts and
21049 # restored at relink time.
21050 variables_saved_for_relink="$variables_saved_for_relink"
21052 # Whether libtool must link a program against all its dependency libraries.
21053 link_all_deplibs=$link_all_deplibs_CXX
21055 # Compile-time system search path for libraries
21056 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21058 # Run-time system search path for libraries
21059 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21061 # Fix the shell variable \$srcfile for the compiler.
21062 fix_srcfile_path="$fix_srcfile_path_CXX"
21064 # Set to yes if exported symbols are required.
21065 always_export_symbols=$always_export_symbols_CXX
21067 # The commands to list exported symbols.
21068 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21070 # The commands to extract the exported symbol list from a shared archive.
21071 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21073 # Symbols that should not be listed in the preloaded symbols.
21074 exclude_expsyms=$lt_exclude_expsyms_CXX
21076 # Symbols that must always be exported.
21077 include_expsyms=$lt_include_expsyms_CXX
21079 # ### END LIBTOOL TAG CONFIG: $tagname
21085 # If there is no Makefile yet, we rely on a make rule to execute
21086 # `config.status --recheck' to rerun these tests and create the
21087 # libtool script then.
21088 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21089 if test -f "$ltmain_in"; then
21090 test -f Makefile
&& make "$ltmain"
21096 ac_cpp
='$CPP $CPPFLAGS'
21097 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21098 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21099 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21105 with_gnu_ldcxx
=$with_gnu_ld
21106 with_gnu_ld
=$lt_save_with_gnu_ld
21107 lt_cv_path_LDCXX
=$lt_cv_path_LD
21108 lt_cv_path_LD
=$lt_save_path_LD
21109 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21110 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21118 if test -n "$F77" && test "X$F77" != "Xno"; then
21121 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21122 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21123 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
21126 archive_cmds_need_lc_F77
=no
21127 allow_undefined_flag_F77
=
21128 always_export_symbols_F77
=no
21129 archive_expsym_cmds_F77
=
21130 export_dynamic_flag_spec_F77
=
21131 hardcode_direct_F77
=no
21132 hardcode_libdir_flag_spec_F77
=
21133 hardcode_libdir_flag_spec_ld_F77
=
21134 hardcode_libdir_separator_F77
=
21135 hardcode_minus_L_F77
=no
21136 hardcode_automatic_F77
=no
21138 module_expsym_cmds_F77
=
21139 link_all_deplibs_F77
=unknown
21140 old_archive_cmds_F77
=$old_archive_cmds
21141 no_undefined_flag_F77
=
21142 whole_archive_flag_spec_F77
=
21143 enable_shared_with_static_runtimes_F77
=no
21145 # Source file extension for f77 test sources.
21148 # Object file extension for compiled f77 test sources.
21152 # Code to be used in simple compile tests
21153 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
21155 # Code to be used in simple link tests
21156 lt_simple_link_test_code
=" program t\n end\n"
21158 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21160 # If no C compiler was specified, use CC.
21163 # If no C compiler flags were specified, use CFLAGS.
21164 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
21166 # Allow CC to be a program name with arguments.
21170 # save warnings/boilerplate of simple test code
21171 ac_outfile
=conftest.
$ac_objext
21172 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
21173 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
21174 _lt_compiler_boilerplate
=`cat conftest.err`
21177 ac_outfile
=conftest.
$ac_objext
21178 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
21179 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
21180 _lt_linker_boilerplate
=`cat conftest.err`
21184 # Allow CC to be a program name with arguments.
21189 for cc_temp
in $compiler""; do
21191 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
21192 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
21197 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21200 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21201 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21202 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21203 echo "${ECHO_T}$can_build_shared" >&6; }
21205 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21206 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21207 test "$can_build_shared" = "no" && enable_shared
=no
21209 # On AIX, shared libraries and static libraries use the same namespace, and
21210 # are all built from PIC.
21213 test "$enable_shared" = yes && enable_static
=no
21214 if test -n "$RANLIB"; then
21215 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
21216 postinstall_cmds
='$RANLIB $lib'
21220 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
21221 test "$enable_shared" = yes && enable_static
=no
21225 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21226 echo "${ECHO_T}$enable_shared" >&6; }
21228 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21229 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21230 # Make sure either enable_shared or enable_static is yes.
21231 test "$enable_shared" = yes || enable_static
=yes
21232 { echo "$as_me:$LINENO: result: $enable_static" >&5
21233 echo "${ECHO_T}$enable_static" >&6; }
21238 lt_prog_compiler_wl_F77
=
21239 lt_prog_compiler_pic_F77
=
21240 lt_prog_compiler_static_F77
=
21242 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21243 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21245 if test "$GCC" = yes; then
21246 lt_prog_compiler_wl_F77
='-Wl,'
21247 lt_prog_compiler_static_F77
='-static'
21251 # All AIX code is PIC.
21252 if test "$host_cpu" = ia64
; then
21253 # AIX 5 now supports IA64 processor
21254 lt_prog_compiler_static_F77
='-Bstatic'
21259 # FIXME: we need at least 68020 code to build shared libraries, but
21260 # adding the `-m68020' flag to GCC prevents building anything better,
21262 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
21265 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
21266 # PIC is the default for these OSes.
21269 mingw
* | pw32
* | os2
*)
21270 # This hack is so that the source file can tell whether it is being
21271 # built for inclusion in a dll (and should export symbols for example).
21272 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
21275 darwin
* | rhapsody
*)
21276 # PIC is the default on this platform
21277 # Common symbols not allowed in MH_DYLIB files
21278 lt_prog_compiler_pic_F77
='-fno-common'
21282 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21283 # Instead, we relocate shared libraries at runtime.
21287 # Just because we use GCC doesn't mean we suddenly get shared libraries
21288 # on systems that don't support them.
21289 lt_prog_compiler_can_build_shared_F77
=no
21294 if test -d /usr
/nec
; then
21295 lt_prog_compiler_pic_F77
=-Kconform_pic
21300 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21301 # not for PA HP-UX.
21307 lt_prog_compiler_pic_F77
='-fPIC'
21313 lt_prog_compiler_pic_F77
='-fPIC'
21317 # PORTME Check for flag to pass linker flags through the system compiler.
21320 lt_prog_compiler_wl_F77
='-Wl,'
21321 if test "$host_cpu" = ia64
; then
21322 # AIX 5 now supports IA64 processor
21323 lt_prog_compiler_static_F77
='-Bstatic'
21325 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
21329 # PIC is the default on this platform
21330 # Common symbols not allowed in MH_DYLIB files
21331 case $cc_basename in
21333 lt_prog_compiler_pic_F77
='-qnocommon'
21334 lt_prog_compiler_wl_F77
='-Wl,'
21339 mingw
* | pw32
* | os2
*)
21340 # This hack is so that the source file can tell whether it is being
21341 # built for inclusion in a dll (and should export symbols for example).
21342 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
21345 hpux9
* | hpux10
* | hpux11
*)
21346 lt_prog_compiler_wl_F77
='-Wl,'
21347 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21348 # not for PA HP-UX.
21354 lt_prog_compiler_pic_F77
='+Z'
21357 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21358 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
21361 irix5
* | irix6
* | nonstopux
*)
21362 lt_prog_compiler_wl_F77
='-Wl,'
21363 # PIC (with -KPIC) is the default.
21364 lt_prog_compiler_static_F77
='-non_shared'
21368 lt_prog_compiler_pic_F77
='-KPIC'
21369 lt_prog_compiler_static_F77
='-Bstatic'
21373 case $cc_basename in
21375 lt_prog_compiler_wl_F77
='-Wl,'
21376 lt_prog_compiler_pic_F77
='-KPIC'
21377 lt_prog_compiler_static_F77
='-static'
21379 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
21380 # Portland Group compilers (*not* the Pentium gcc compiler,
21381 # which looks to be a dead project)
21382 lt_prog_compiler_wl_F77
='-Wl,'
21383 lt_prog_compiler_pic_F77
='-fpic'
21384 lt_prog_compiler_static_F77
='-Bstatic'
21387 lt_prog_compiler_wl_F77
='-Wl,'
21388 # All Alpha code is PIC.
21389 lt_prog_compiler_static_F77
='-non_shared'
21394 osf3
* | osf4
* | osf5
*)
21395 lt_prog_compiler_wl_F77
='-Wl,'
21396 # All OSF/1 code is PIC.
21397 lt_prog_compiler_static_F77
='-non_shared'
21401 lt_prog_compiler_pic_F77
='-KPIC'
21402 lt_prog_compiler_static_F77
='-Bstatic'
21403 case $cc_basename in
21404 f77
* | f90
* | f95
*)
21405 lt_prog_compiler_wl_F77
='-Qoption ld ';;
21407 lt_prog_compiler_wl_F77
='-Wl,';;
21412 lt_prog_compiler_wl_F77
='-Qoption ld '
21413 lt_prog_compiler_pic_F77
='-PIC'
21414 lt_prog_compiler_static_F77
='-Bstatic'
21417 sysv4 | sysv4.2uw2
* | sysv4.3
*)
21418 lt_prog_compiler_wl_F77
='-Wl,'
21419 lt_prog_compiler_pic_F77
='-KPIC'
21420 lt_prog_compiler_static_F77
='-Bstatic'
21424 if test -d /usr
/nec
;then
21425 lt_prog_compiler_pic_F77
='-Kconform_pic'
21426 lt_prog_compiler_static_F77
='-Bstatic'
21430 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21431 lt_prog_compiler_wl_F77
='-Wl,'
21432 lt_prog_compiler_pic_F77
='-KPIC'
21433 lt_prog_compiler_static_F77
='-Bstatic'
21437 lt_prog_compiler_wl_F77
='-Wl,'
21438 lt_prog_compiler_can_build_shared_F77
=no
21442 lt_prog_compiler_pic_F77
='-pic'
21443 lt_prog_compiler_static_F77
='-Bstatic'
21447 lt_prog_compiler_can_build_shared_F77
=no
21452 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21453 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21456 # Check to make sure the PIC flag actually works.
21458 if test -n "$lt_prog_compiler_pic_F77"; then
21460 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21461 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21462 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21463 echo $ECHO_N "(cached) $ECHO_C" >&6
21465 lt_prog_compiler_pic_works_F77
=no
21466 ac_outfile
=conftest.
$ac_objext
21467 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
21468 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
21469 # Insert the option either (1) after the last *FLAGS variable, or
21470 # (2) before a word containing "conftest.", or (3) at the end.
21471 # Note that $ac_compile itself does not contain backslashes and begins
21472 # with a dollar sign (not a hyphen), so the echo should work correctly.
21473 # The option is referenced via a variable to avoid confusing sed.
21474 lt_compile
=`echo "$ac_compile" | $SED \
21475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21477 -e 's:$: $lt_compiler_flag:'`
21478 (eval echo "\"\$as_me:21478: $lt_compile\"" >&5)
21479 (eval "$lt_compile" 2>conftest.err
)
21481 cat conftest.err
>&5
21482 echo "$as_me:21482: \$? = $ac_status" >&5
21483 if (exit $ac_status) && test -s "$ac_outfile"; then
21484 # The compiler can only warn and ignore the option if not recognized
21485 # So say no if there are warnings other than the usual output.
21486 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
21487 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21488 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21489 lt_prog_compiler_pic_works_F77
=yes
21495 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21496 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21498 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
21499 case $lt_prog_compiler_pic_F77 in
21501 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
21504 lt_prog_compiler_pic_F77
=
21505 lt_prog_compiler_can_build_shared_F77
=no
21510 # For platforms which do not support PIC, -DPIC is meaningless:
21512 lt_prog_compiler_pic_F77
=
21515 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
21520 # Check to make sure the static flag actually works.
21522 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
21523 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21524 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21525 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21526 echo $ECHO_N "(cached) $ECHO_C" >&6
21528 lt_prog_compiler_static_works_F77
=no
21529 save_LDFLAGS
="$LDFLAGS"
21530 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21531 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
21532 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21533 # The linker can only warn and ignore the option if not recognized
21534 # So say no if there are warnings
21535 if test -s conftest.err
; then
21536 # Append any errors to the config.log.
21537 cat conftest.err
1>&5
21538 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
21539 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21540 if diff conftest.exp conftest.er2
>/dev
/null
; then
21541 lt_prog_compiler_static_works_F77
=yes
21544 lt_prog_compiler_static_works_F77
=yes
21548 LDFLAGS
="$save_LDFLAGS"
21551 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21552 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21554 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
21557 lt_prog_compiler_static_F77
=
21561 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21562 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21563 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21564 echo $ECHO_N "(cached) $ECHO_C" >&6
21566 lt_cv_prog_compiler_c_o_F77
=no
21567 $rm -r conftest
2>/dev
/null
21571 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
21573 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21574 # Insert the option either (1) after the last *FLAGS variable, or
21575 # (2) before a word containing "conftest.", or (3) at the end.
21576 # Note that $ac_compile itself does not contain backslashes and begins
21577 # with a dollar sign (not a hyphen), so the echo should work correctly.
21578 lt_compile
=`echo "$ac_compile" | $SED \
21579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21581 -e 's:$: $lt_compiler_flag:'`
21582 (eval echo "\"\$as_me:21582: $lt_compile\"" >&5)
21583 (eval "$lt_compile" 2>out
/conftest.err
)
21585 cat out
/conftest.err
>&5
21586 echo "$as_me:21586: \$? = $ac_status" >&5
21587 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21589 # The compiler can only warn and ignore the option if not recognized
21590 # So say no if there are warnings
21591 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
21592 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21593 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21594 lt_cv_prog_compiler_c_o_F77
=yes
21599 # SGI C++ compiler will create directory out/ii_files/ for
21600 # template instantiation
21601 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
21602 $rm out
/* && rmdir out
21608 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21609 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21612 hard_links
="nottested"
21613 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
21614 # do not overwrite the value of need_locks provided by the user
21615 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21616 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21619 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21621 ln conftest.a conftest.b
2>&5 || hard_links
=no
21622 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21623 { echo "$as_me:$LINENO: result: $hard_links" >&5
21624 echo "${ECHO_T}$hard_links" >&6; }
21625 if test "$hard_links" = no
; then
21626 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21627 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21634 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21635 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21638 allow_undefined_flag_F77
=
21639 enable_shared_with_static_runtimes_F77
=no
21641 archive_expsym_cmds_F77
=
21642 old_archive_From_new_cmds_F77
=
21643 old_archive_from_expsyms_cmds_F77
=
21644 export_dynamic_flag_spec_F77
=
21645 whole_archive_flag_spec_F77
=
21646 thread_safe_flag_spec_F77
=
21647 hardcode_libdir_flag_spec_F77
=
21648 hardcode_libdir_flag_spec_ld_F77
=
21649 hardcode_libdir_separator_F77
=
21650 hardcode_direct_F77
=no
21651 hardcode_minus_L_F77
=no
21652 hardcode_shlibpath_var_F77
=unsupported
21653 link_all_deplibs_F77
=unknown
21654 hardcode_automatic_F77
=no
21656 module_expsym_cmds_F77
=
21657 always_export_symbols_F77
=no
21658 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21659 # include_expsyms should be a list of space-separated symbols to be *always*
21660 # included in the symbol list
21661 include_expsyms_F77
=
21662 # exclude_expsyms can be an extended regexp of symbols to exclude
21663 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21664 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21665 # as well as any symbol that contains `d'.
21666 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
21667 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21668 # platforms (ab)use it in PIC code, but their linkers get confused if
21669 # the symbol is explicitly referenced. Since portable code cannot
21670 # rely on this symbol name, it's probably fine to never include it in
21671 # preloaded symbol tables.
21672 extract_expsyms_cmds
=
21673 # Just being paranoid about ensuring that cc_basename is set.
21674 for cc_temp
in $compiler""; do
21676 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
21677 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
21682 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21685 cygwin
* | mingw
* | pw32
*)
21686 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21687 # When not using gcc, we currently assume that we are using
21688 # Microsoft Visual C++.
21689 if test "$GCC" != yes; then
21694 # we just hope/assume this is gcc and not c89 (= MSVC++)
21703 if test "$with_gnu_ld" = yes; then
21704 # If archive_cmds runs LD, not CC, wlarc should be empty
21707 # Set some defaults for GNU ld with shared library support. These
21708 # are reset later if shared libraries are not supported. Putting them
21709 # here allows them to be overridden if necessary.
21710 runpath_var
=LD_RUN_PATH
21711 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
21712 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
21713 # ancient GNU ld didn't support --whole-archive et. al.
21714 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
21715 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21717 whole_archive_flag_spec_F77
=
21719 supports_anon_versioning
=no
21720 case `$LD -v 2>/dev/null` in
21721 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
21722 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
21723 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
21724 *\
2.11.
*) ;; # other 2.11 versions
21725 *) supports_anon_versioning
=yes ;;
21728 # See if GNU ld supports shared libraries.
21730 aix3
* | aix4
* | aix5
*)
21731 # On AIX/PPC, the GNU linker is very broken
21732 if test "$host_cpu" != ia64
; then
21736 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21737 *** to be unable to reliably create shared libraries on AIX.
21738 *** Therefore, libtool is disabling shared libraries support. If you
21739 *** really care for shared libraries, you may want to modify your PATH
21740 *** so that a non-GNU linker is found, and then restart.
21747 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)'
21748 hardcode_libdir_flag_spec_F77
='-L$libdir'
21749 hardcode_minus_L_F77
=yes
21751 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21752 # that the semantics of dynamic libraries on AmigaOS, at least up
21753 # to version 4, is to share data among multiple programs linked
21754 # with the same dynamic library. Since this doesn't match the
21755 # behavior of shared libraries on other platforms, we can't use
21761 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
21762 allow_undefined_flag_F77
=unsupported
21763 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21764 # support --undefined. This deserves some investigation. FIXME
21765 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21771 cygwin
* | mingw
* | pw32
*)
21772 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21773 # as there is no search path for DLLs.
21774 hardcode_libdir_flag_spec_F77
='-L$libdir'
21775 allow_undefined_flag_F77
=unsupported
21776 always_export_symbols_F77
=no
21777 enable_shared_with_static_runtimes_F77
=yes
21778 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21780 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
21781 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21782 # If the export-symbols file already is a .def file (1st line
21783 # is EXPORTS), use it as is; otherwise, prepend...
21784 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21785 cp $export_symbols $output_objdir/$soname.def;
21787 echo EXPORTS > $output_objdir/$soname.def;
21788 cat $export_symbols >> $output_objdir/$soname.def;
21790 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21797 hardcode_direct_F77
=no
21798 hardcode_shlibpath_var_F77
=no
21799 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
21800 export_dynamic_flag_spec_F77
='${wl}-E'
21801 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21802 # Instead, shared libraries are loaded at an image base (0x10000000 by
21803 # default) and relocated if they conflict, which is a slow very memory
21804 # consuming and fragmenting process. To avoid this, we pick a random,
21805 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21806 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21807 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'
21808 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'
21812 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
21814 case $cc_basename,$host_cpu in
21815 pgcc
*) # Portland Group C compiler
21816 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'
21817 tmp_addflag
=' $pic_flag'
21819 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
21820 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'
21821 tmp_addflag
=' $pic_flag -Mnomain' ;;
21822 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
21823 tmp_addflag
=' -i_dynamic' ;;
21824 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
21825 tmp_addflag
=' -i_dynamic -nofor_main' ;;
21826 ifc
* | ifort
*) # Intel Fortran compiler
21827 tmp_addflag
=' -nofor_main' ;;
21829 archive_cmds_F77
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21831 if test $supports_anon_versioning = yes; then
21832 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
21833 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21834 $echo "local: *; };" >> $output_objdir/$libname.ver~
21835 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21843 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
21844 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21847 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21848 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21853 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
21857 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21858 *** create shared libraries on Solaris systems. Therefore, libtool
21859 *** is disabling shared libraries support. We urge you to upgrade GNU
21860 *** binutils to release 2.9.1 or newer. Another option is to modify
21861 *** your PATH or compiler configuration so that the native linker is
21862 *** used, and then restart.
21865 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
21866 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21867 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21873 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
21874 case `$LD -v 2>&1` in
21875 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
21879 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21880 *** reliably create shared libraries on SCO systems. Therefore, libtool
21881 *** is disabling shared libraries support. We urge you to upgrade GNU
21882 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21883 *** your PATH or compiler configuration so that the native linker is
21884 *** used, and then restart.
21889 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
21890 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21891 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21892 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21901 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21903 hardcode_direct_F77
=yes
21904 hardcode_shlibpath_var_F77
=no
21908 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
21909 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21910 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21917 if test "$ld_shlibs_F77" = no
; then
21919 hardcode_libdir_flag_spec_F77
=
21920 export_dynamic_flag_spec_F77
=
21921 whole_archive_flag_spec_F77
=
21924 # PORTME fill in a description of your system's linker (not GNU ld)
21927 allow_undefined_flag_F77
=unsupported
21928 always_export_symbols_F77
=yes
21929 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'
21930 # Note: this linker hardcodes the directories in LIBPATH if there
21931 # are no directories specified by -L.
21932 hardcode_minus_L_F77
=yes
21933 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21934 # Neither direct hardcoding nor static linking is supported with a
21936 hardcode_direct_F77
=unsupported
21941 if test "$host_cpu" = ia64
; then
21942 # On IA64, the linker does run time linking by default, so we don't
21943 # have to do anything special.
21944 aix_use_runtimelinking
=no
21945 exp_sym_flag
='-Bexport'
21948 # If we're using GNU nm, then we don't want the "-C" option.
21949 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21950 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
21951 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'
21953 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'
21955 aix_use_runtimelinking
=no
21957 # Test if we are trying to use run time linking or normal
21958 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21959 # need to do runtime linking.
21960 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
21961 for ld_flag
in $LDFLAGS; do
21962 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
21963 aix_use_runtimelinking
=yes
21970 exp_sym_flag
='-bexport'
21971 no_entry_flag
='-bnoentry'
21974 # When large executables or shared objects are built, AIX ld can
21975 # have problems creating the table of contents. If linking a library
21976 # or program results in "error TOC overflow" add -mminimal-toc to
21977 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21978 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21980 archive_cmds_F77
=''
21981 hardcode_direct_F77
=yes
21982 hardcode_libdir_separator_F77
=':'
21983 link_all_deplibs_F77
=yes
21985 if test "$GCC" = yes; then
21986 case $host_os in aix4.
[012]|aix4.
[012].
*)
21987 # We only want to do this on AIX 4.2 and lower, the check
21988 # below for broken collect2 doesn't work under 4.3+
21989 collect2name
=`${CC} -print-prog-name=collect2`
21990 if test -f "$collect2name" && \
21991 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
21993 # We have reworked collect2
21994 hardcode_direct_F77
=yes
21996 # We have old collect2
21997 hardcode_direct_F77
=unsupported
21998 # It fails to find uninstalled libraries when the uninstalled
21999 # path is not listed in the libpath. Setting hardcode_minus_L
22000 # to unsupported forces relinking
22001 hardcode_minus_L_F77
=yes
22002 hardcode_libdir_flag_spec_F77
='-L$libdir'
22003 hardcode_libdir_separator_F77
=
22007 shared_flag
='-shared'
22008 if test "$aix_use_runtimelinking" = yes; then
22009 shared_flag
="$shared_flag "'${wl}-G'
22013 if test "$host_cpu" = ia64
; then
22014 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22015 # chokes on -Wl,-G. The following line is correct:
22018 if test "$aix_use_runtimelinking" = yes; then
22019 shared_flag
='${wl}-G'
22021 shared_flag
='${wl}-bM:SRE'
22026 # It seems that -bexpall does not export symbols beginning with
22027 # underscore (_), so it is better to generate a list of symbols to export.
22028 always_export_symbols_F77
=yes
22029 if test "$aix_use_runtimelinking" = yes; then
22030 # Warning - without using the other runtime loading flags (-brtl),
22031 # -berok will link without error, but may produce a broken library.
22032 allow_undefined_flag_F77
='-berok'
22033 # Determine the default libpath from the value encoded in an empty executable.
22034 cat >conftest.
$ac_ext <<_ACEOF
22039 rm -f conftest.
$ac_objext conftest
$ac_exeext
22040 if { (ac_try
="$ac_link"
22041 case "(($ac_try" in
22042 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22043 *) ac_try_echo=$ac_try;;
22045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22046 (eval "$ac_link") 2>conftest.er1
22048 grep -v '^ *+' conftest.er1 >conftest.err
22050 cat conftest.err >&5
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); } &&
22053 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22054 { (case "(($ac_try" in
22055 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22056 *) ac_try_echo
=$ac_try;;
22058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22059 (eval "$ac_try") 2>&5
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); }; } &&
22063 { ac_try
='test -s conftest$ac_exeext'
22064 { (case "(($ac_try" in
22065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22066 *) ac_try_echo=$ac_try;;
22068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22069 (eval "$ac_try") 2>&5
22071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); }; }; then
22074 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22076 # Check for a 64-bit object if we didn't find anything.
22077 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; }
22080 echo "$as_me: failed program was:" >&5
22081 sed 's/^/| /' conftest.$ac_ext >&5
22086 rm -f core conftest.err conftest.$ac_objext \
22087 conftest$ac_exeext conftest.$ac_ext
22088 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22090 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22091 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"
22093 if test "$host_cpu" = ia64; then
22094 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22095 allow_undefined_flag_F77="-z nodefs"
22096 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"
22098 # Determine the default libpath from the value encoded in an empty executable.
22099 cat >conftest.$ac_ext <<_ACEOF
22104 rm -f conftest.$ac_objext conftest$ac_exeext
22105 if { (ac_try="$ac_link"
22106 case "(($ac_try" in
22107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22108 *) ac_try_echo
=$ac_try;;
22110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22111 (eval "$ac_link") 2>conftest.er1
22113 grep -v '^ *+' conftest.er1
>conftest.err
22115 cat conftest.err
>&5
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); } &&
22118 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22119 { (case "(($ac_try" in
22120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22121 *) ac_try_echo=$ac_try;;
22123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22124 (eval "$ac_try") 2>&5
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); }; } &&
22128 { ac_try='test -s conftest$ac_exeext'
22129 { (case "(($ac_try" in
22130 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22131 *) ac_try_echo
=$ac_try;;
22133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22134 (eval "$ac_try") 2>&5
22136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); }; }; then
22139 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22141 # Check for a 64-bit object if we didn't find anything.
22142 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; }
22145 echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.
$ac_ext >&5
22151 rm -f core conftest.err conftest.
$ac_objext \
22152 conftest
$ac_exeext conftest.
$ac_ext
22153 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
22155 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
22156 # Warning - without using the other run time loading flags,
22157 # -berok will link without error, but may produce a broken library.
22158 no_undefined_flag_F77
=' ${wl}-bernotok'
22159 allow_undefined_flag_F77
=' ${wl}-berok'
22160 # Exported symbols can be pulled into shared objects from archives
22161 whole_archive_flag_spec_F77
='$convenience'
22162 archive_cmds_need_lc_F77
=yes
22163 # This is similar to how AIX traditionally builds its shared libraries.
22164 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'
22170 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)'
22171 hardcode_libdir_flag_spec_F77
='-L$libdir'
22172 hardcode_minus_L_F77
=yes
22173 # see comment about different semantics on the GNU ld section
22178 export_dynamic_flag_spec_F77
=-rdynamic
22181 cygwin
* | mingw
* | pw32
*)
22182 # When not using gcc, we currently assume that we are using
22183 # Microsoft Visual C++.
22184 # hardcode_libdir_flag_spec is actually meaningless, as there is
22185 # no search path for DLLs.
22186 hardcode_libdir_flag_spec_F77
=' '
22187 allow_undefined_flag_F77
=unsupported
22188 # Tell ltmain to make .lib files, not .a files.
22190 # Tell ltmain to make .dll files, not .so files.
22192 # FIXME: Setting linknames here is a bad hack.
22193 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22194 # The linker will automatically build a .lib file if we build a DLL.
22195 old_archive_From_new_cmds_F77
='true'
22196 # FIXME: Should let the user specify the lib program.
22197 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
22198 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
22199 enable_shared_with_static_runtimes_F77
=yes
22202 darwin
* | rhapsody
*)
22204 rhapsody
* | darwin1.
[012])
22205 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
22208 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22209 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22211 case ${MACOSX_DEPLOYMENT_TARGET} in
22213 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22216 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
22222 archive_cmds_need_lc_F77
=no
22223 hardcode_direct_F77
=no
22224 hardcode_automatic_F77
=yes
22225 hardcode_shlibpath_var_F77
=unsupported
22226 whole_archive_flag_spec_F77
=''
22227 link_all_deplibs_F77
=yes
22228 if test "$GCC" = yes ; then
22229 output_verbose_link_cmd
='echo'
22230 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22231 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22232 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22233 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}'
22234 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}'
22236 case $cc_basename in
22238 output_verbose_link_cmd
='echo'
22239 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22240 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22241 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22242 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}'
22243 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}'
22253 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22254 hardcode_libdir_flag_spec_F77
='-L$libdir'
22255 hardcode_shlibpath_var_F77
=no
22262 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22263 # support. Future versions do this automatically, but an explicit c++rt0.o
22264 # does not break anything, and helps significantly (at the cost of a little
22267 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22268 hardcode_libdir_flag_spec_F77
='-R$libdir'
22269 hardcode_direct_F77
=yes
22270 hardcode_shlibpath_var_F77
=no
22273 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22275 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22276 hardcode_direct_F77
=yes
22277 hardcode_minus_L_F77
=yes
22278 hardcode_shlibpath_var_F77
=no
22281 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22282 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
22283 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22284 hardcode_libdir_flag_spec_F77
='-R$libdir'
22285 hardcode_direct_F77
=yes
22286 hardcode_shlibpath_var_F77
=no
22290 if test "$GCC" = yes; then
22291 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'
22293 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'
22295 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22296 hardcode_libdir_separator_F77
=:
22297 hardcode_direct_F77
=yes
22299 # hardcode_minus_L: Not really in the search PATH,
22300 # but as the default location of the library.
22301 hardcode_minus_L_F77
=yes
22302 export_dynamic_flag_spec_F77
='${wl}-E'
22306 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
22307 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22309 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22311 if test "$with_gnu_ld" = no
; then
22312 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22313 hardcode_libdir_separator_F77
=:
22315 hardcode_direct_F77
=yes
22316 export_dynamic_flag_spec_F77
='${wl}-E'
22318 # hardcode_minus_L: Not really in the search PATH,
22319 # but as the default location of the library.
22320 hardcode_minus_L_F77
=yes
22325 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
22328 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22331 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22334 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22340 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22343 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22346 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22350 if test "$with_gnu_ld" = no
; then
22351 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22352 hardcode_libdir_separator_F77
=:
22356 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
22357 hardcode_direct_F77
=no
22358 hardcode_shlibpath_var_F77
=no
22361 hardcode_direct_F77
=yes
22362 export_dynamic_flag_spec_F77
='${wl}-E'
22364 # hardcode_minus_L: Not really in the search PATH,
22365 # but as the default location of the library.
22366 hardcode_minus_L_F77
=yes
22372 irix5
* | irix6
* | nonstopux
*)
22373 if test "$GCC" = yes; then
22374 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'
22376 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'
22377 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
22379 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22380 hardcode_libdir_separator_F77
=:
22381 link_all_deplibs_F77
=yes
22385 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
22386 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22388 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22390 hardcode_libdir_flag_spec_F77
='-R$libdir'
22391 hardcode_direct_F77
=yes
22392 hardcode_shlibpath_var_F77
=no
22396 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22397 hardcode_direct_F77
=yes
22398 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22399 hardcode_libdir_separator_F77
=:
22400 hardcode_shlibpath_var_F77
=no
22404 hardcode_direct_F77
=yes
22405 hardcode_shlibpath_var_F77
=no
22406 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22407 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22408 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22409 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22410 export_dynamic_flag_spec_F77
='${wl}-E'
22413 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
22414 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22415 hardcode_libdir_flag_spec_F77
='-R$libdir'
22418 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22419 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22426 hardcode_libdir_flag_spec_F77
='-L$libdir'
22427 hardcode_minus_L_F77
=yes
22428 allow_undefined_flag_F77
=unsupported
22429 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'
22430 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22434 if test "$GCC" = yes; then
22435 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
22436 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'
22438 allow_undefined_flag_F77
=' -expect_unresolved \*'
22439 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'
22441 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22442 hardcode_libdir_separator_F77
=:
22445 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
22446 if test "$GCC" = yes; then
22447 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
22448 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'
22449 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22451 allow_undefined_flag_F77
=' -expect_unresolved \*'
22452 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'
22453 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~
22454 $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'
22456 # Both c and cxx compiler support -rpath directly
22457 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
22459 hardcode_libdir_separator_F77
=:
22463 no_undefined_flag_F77
=' -z text'
22464 if test "$GCC" = yes; then
22466 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22467 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22468 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22471 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22472 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22473 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22475 hardcode_libdir_flag_spec_F77
='-R$libdir'
22476 hardcode_shlibpath_var_F77
=no
22478 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
22480 # The compiler driver will combine linker options so we
22481 # cannot just pass the convience library names through
22482 # without $wl, iff we do not link with $LD.
22483 # Luckily, gcc supports the same syntax we need for Sun Studio.
22484 # Supported since Solaris 2.6 (maybe 2.5.1?)
22487 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
22489 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' ;;
22492 link_all_deplibs_F77
=yes
22496 if test "x$host_vendor" = xsequent
; then
22497 # Use $CC to link under sequent, because it throws in some extra .o
22498 # files that make .init and .fini sections work.
22499 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22501 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22503 hardcode_libdir_flag_spec_F77
='-L$libdir'
22504 hardcode_direct_F77
=yes
22505 hardcode_minus_L_F77
=yes
22506 hardcode_shlibpath_var_F77
=no
22510 case $host_vendor in
22512 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22513 hardcode_direct_F77
=yes # is this really true???
22516 ## LD is ld it makes a PLAMLIB
22517 ## CC just makes a GrossModule.
22518 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22519 reload_cmds_F77
='$CC -r -o $output$reload_objs'
22520 hardcode_direct_F77
=no
22523 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22524 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
22527 runpath_var
='LD_RUN_PATH'
22528 hardcode_shlibpath_var_F77
=no
22532 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22533 hardcode_shlibpath_var_F77
=no
22534 export_dynamic_flag_spec_F77
='-Bexport'
22538 if test -d /usr
/nec
; then
22539 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22540 hardcode_shlibpath_var_F77
=no
22541 runpath_var
=LD_RUN_PATH
22542 hardcode_runpath_var
=yes
22547 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
22548 no_undefined_flag_F77
='${wl}-z,text'
22549 archive_cmds_need_lc_F77
=no
22550 hardcode_shlibpath_var_F77
=no
22551 runpath_var
='LD_RUN_PATH'
22553 if test "$GCC" = yes; then
22554 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22555 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22557 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22558 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22562 sysv5
* | sco3.2v5
* | sco5v6
*)
22563 # Note: We can NOT use -z defs as we might desire, because we do not
22564 # link with -lc, and that would cause any symbols used from libc to
22565 # always be unresolved, which means just about no library would
22566 # ever link correctly. If we're not using GNU ld we use -z text
22567 # though, which does catch some bad symbols but isn't as heavy-handed
22569 no_undefined_flag_F77
='${wl}-z,text'
22570 allow_undefined_flag_F77
='${wl}-z,nodefs'
22571 archive_cmds_need_lc_F77
=no
22572 hardcode_shlibpath_var_F77
=no
22573 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22574 hardcode_libdir_separator_F77
=':'
22575 link_all_deplibs_F77
=yes
22576 export_dynamic_flag_spec_F77
='${wl}-Bexport'
22577 runpath_var
='LD_RUN_PATH'
22579 if test "$GCC" = yes; then
22580 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22581 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22583 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22584 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22589 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22590 hardcode_libdir_flag_spec_F77
='-L$libdir'
22591 hardcode_shlibpath_var_F77
=no
22600 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22601 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22602 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
22605 # Do we need to explicitly link libc?
22607 case "x$archive_cmds_need_lc_F77" in
22609 # Assume -lc should be added
22610 archive_cmds_need_lc_F77
=yes
22612 if test "$enable_shared" = yes && test "$GCC" = yes; then
22613 case $archive_cmds_F77 in
22615 # FIXME: we may have to deal with multi-command sequences.
22618 # Test whether the compiler implicitly links with -lc since on some
22619 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22620 # to ld, don't add -lc before -lgcc.
22621 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22622 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22624 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
22626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22627 (eval $ac_compile) 2>&5
22629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630 (exit $ac_status); } 2>conftest.err
; then
22633 libobjs
=conftest.
$ac_objext
22635 wl
=$lt_prog_compiler_wl_F77
22636 pic_flag
=$lt_prog_compiler_pic_F77
22642 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
22643 allow_undefined_flag_F77
=
22644 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22645 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
22647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 (exit $ac_status); }
22650 archive_cmds_need_lc_F77
=no
22652 archive_cmds_need_lc_F77
=yes
22654 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
22656 cat conftest.err
1>&5
22659 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22660 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22667 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22668 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22669 library_names_spec
=
22670 libname_spec
='lib$name'
22674 postuninstall_cmds
=
22678 shlibpath_overrides_runpath
=unknown
22680 dynamic_linker
="$host_os ld.so"
22681 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
22682 if test "$GCC" = yes; then
22683 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22684 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
22685 # if the path contains ";" then we assume it to be the separator
22686 # otherwise default to the standard path separator (i.e. ":") - it is
22687 # assumed that no part of a normal pathname contains ";" but that should
22688 # okay in the real world where ";" in dirpaths is itself problematic.
22689 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22691 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22694 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
22696 need_lib_prefix
=unknown
22697 hardcode_into_libs
=no
22699 # when you set need_version to no, make sure it does not cause -set_version
22700 # flags to be left without arguments
22701 need_version
=unknown
22706 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
22707 shlibpath_var
=LIBPATH
22709 # AIX 3 has no versioning support, so we append a major version to the name.
22710 soname_spec
='${libname}${release}${shared_ext}$major'
22717 hardcode_into_libs
=yes
22718 if test "$host_cpu" = ia64
; then
22719 # AIX 5 supports IA64
22720 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22721 shlibpath_var
=LD_LIBRARY_PATH
22723 # With GCC up to 2.95.x, collect2 would create an import file
22724 # for dependence libraries. The import file would start with
22725 # the line `#! .'. This would cause the generated library to
22726 # depend on `.', always an invalid library. This was fixed in
22727 # development snapshots of GCC prior to 3.0.
22729 aix4 | aix4.
[01] | aix4.
[01].
*)
22730 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22732 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
22735 can_build_shared
=no
22739 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22740 # soname into executable. Probably we can add versioning support to
22741 # collect2, so additional links can be useful in future.
22742 if test "$aix_use_runtimelinking" = yes; then
22743 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22744 # instead of lib<name>.a to let people know that these are not
22745 # typical AIX shared libraries.
22746 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22748 # We preserve .a as extension for shared libraries through AIX4.2
22749 # and later when we are not doing run time linking.
22750 library_names_spec
='${libname}${release}.a $libname.a'
22751 soname_spec
='${libname}${release}${shared_ext}$major'
22753 shlibpath_var
=LIBPATH
22758 library_names_spec
='$libname.ixlibrary $libname.a'
22759 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22760 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'
22764 library_names_spec
='${libname}${shared_ext}'
22765 dynamic_linker
="$host_os ld.so"
22766 shlibpath_var
=LIBRARY_PATH
22772 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22773 soname_spec
='${libname}${release}${shared_ext}$major'
22774 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
22775 shlibpath_var
=LD_LIBRARY_PATH
22776 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22777 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
22778 # the default ld.so.conf also contains /usr/contrib/lib and
22779 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22780 # libtool to hard-code these into programs
22783 cygwin
* | mingw
* | pw32
*)
22784 version_type
=windows
22789 case $GCC,$host_os in
22790 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
22791 library_names_spec
='$libname.dll.a'
22792 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22793 postinstall_cmds
='base_file=`basename \${file}`~
22794 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22795 dldir=$destdir/`dirname \$dlpath`~
22796 test -d \$dldir || mkdir -p \$dldir~
22797 $install_prog $dir/$dlname \$dldir/$dlname~
22798 chmod a+x \$dldir/$dlname'
22799 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22800 dlpath=$dir/\$dldll~
22802 shlibpath_overrides_runpath
=yes
22806 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22807 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22808 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
22811 # MinGW DLLs use traditional 'lib' prefix
22812 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22813 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22814 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
22815 # It is most probably a Windows format PATH printed by
22816 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22817 # path with ; separators, and with drive letters. We can handle the
22818 # drive letters (cygwin fileutils understands them), so leave them,
22819 # especially as we might pass files found there to a mingw objdump,
22820 # which wouldn't understand a cygwinified path. Ahh.
22821 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22823 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22827 # pw32 DLLs use 'pw' prefix rather than 'lib'
22828 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22834 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22837 dynamic_linker
='Win32 ld.exe'
22838 # FIXME: first we should search . and the directory the executable is in
22842 darwin
* | rhapsody
*)
22843 dynamic_linker
="$host_os dyld"
22844 version_type
=darwin
22847 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22848 soname_spec
='${libname}${release}${major}$shared_ext'
22849 shlibpath_overrides_runpath
=yes
22850 shlibpath_var
=DYLD_LIBRARY_PATH
22851 shrext_cmds
='.dylib'
22852 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22853 if test "$GCC" = yes; then
22854 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"`
22856 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
22858 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
22865 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22866 soname_spec
='${libname}${release}${shared_ext}$major'
22867 shlibpath_var
=LD_LIBRARY_PATH
22878 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22879 soname_spec
='${libname}${release}${shared_ext}$major'
22880 shlibpath_var
=LD_LIBRARY_PATH
22881 shlibpath_overrides_runpath
=no
22882 hardcode_into_libs
=yes
22883 dynamic_linker
='GNU ld.so'
22886 freebsd
* | dragonfly
*)
22887 # DragonFly does not have aout. When/if they implement a new
22888 # versioning mechanism, adjust this.
22889 if test -x /usr
/bin
/objformat
; then
22890 objformat
=`/usr/bin/objformat`
22893 freebsd
[123]*) objformat
=aout
;;
22894 *) objformat
=elf
;;
22897 version_type
=freebsd-
$objformat
22898 case $version_type in
22900 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22905 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22909 shlibpath_var
=LD_LIBRARY_PATH
22912 shlibpath_overrides_runpath
=yes
22914 freebsd3.
[01]* | freebsdelf3.
[01]*)
22915 shlibpath_overrides_runpath
=yes
22916 hardcode_into_libs
=yes
22918 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
22919 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
22920 shlibpath_overrides_runpath
=no
22921 hardcode_into_libs
=yes
22923 freebsd
*) # from 4.6 on
22924 shlibpath_overrides_runpath
=yes
22925 hardcode_into_libs
=yes
22934 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22935 soname_spec
='${libname}${release}${shared_ext}$major'
22936 shlibpath_var
=LD_LIBRARY_PATH
22937 hardcode_into_libs
=yes
22940 hpux9
* | hpux10
* | hpux11
*)
22941 # Give a soname corresponding to the major version so that dld.sl refuses to
22942 # link against other versions.
22949 hardcode_into_libs
=yes
22950 dynamic_linker
="$host_os dld.so"
22951 shlibpath_var
=LD_LIBRARY_PATH
22952 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22953 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22954 soname_spec
='${libname}${release}${shared_ext}$major'
22955 if test "X$HPUX_IA64_MODE" = X32
; then
22956 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22958 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
22960 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22964 hardcode_into_libs
=yes
22965 dynamic_linker
="$host_os dld.sl"
22966 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
22967 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22968 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22969 soname_spec
='${libname}${release}${shared_ext}$major'
22970 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22971 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22975 dynamic_linker
="$host_os dld.sl"
22976 shlibpath_var
=SHLIB_PATH
22977 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
22978 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22979 soname_spec
='${libname}${release}${shared_ext}$major'
22982 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22983 postinstall_cmds
='chmod 555 $lib'
22990 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22991 soname_spec
='${libname}${release}${shared_ext}$major'
22992 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
22993 shlibpath_var
=LD_LIBRARY_PATH
22994 shlibpath_overrides_runpath
=no
22995 hardcode_into_libs
=yes
22998 irix5
* | irix6
* | nonstopux
*)
23000 nonstopux
*) version_type
=nonstopux
;;
23002 if test "$lt_cv_prog_gnu_ld" = yes; then
23010 soname_spec
='${libname}${release}${shared_ext}$major'
23011 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23013 irix5
* | nonstopux
*)
23014 libsuff
= shlibsuff
=
23017 case $LD in # libtool.m4 will add one of these switches to LD
23018 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
23019 libsuff
= shlibsuff
= libmagic
=32-bit;;
23020 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
23021 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
23022 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
23023 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
23024 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
23028 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
23029 shlibpath_overrides_runpath
=no
23030 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23031 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
23032 hardcode_into_libs
=yes
23035 # No shared lib support for Linux oldld, aout, or coff.
23036 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
23040 # This must be Linux ELF.
23045 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23046 soname_spec
='${libname}${release}${shared_ext}$major'
23047 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23048 shlibpath_var
=LD_LIBRARY_PATH
23049 shlibpath_overrides_runpath
=no
23050 # This implies no fast_install, which is unacceptable.
23051 # Some rework will be needed to allow for fast_install
23052 # before this can be enabled.
23053 hardcode_into_libs
=yes
23055 # Append ld.so.conf contents to the search path
23056 if test -f /etc
/ld.so.conf
; then
23057 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' ' '`
23058 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
23061 # We used to test for /lib/ld.so.1 and disable shared libraries on
23062 # powerpc, because MkLinux only supported shared libraries with the
23063 # GNU dynamic linker. Since this was broken with cross compilers,
23064 # most powerpc-linux boxes support dynamic linking these days and
23065 # people can always --disable-shared, the test was removed, and we
23066 # assume the GNU/Linux dynamic linker is in use.
23067 dynamic_linker
='GNU/Linux ld.so'
23074 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23075 soname_spec
='${libname}${release}${shared_ext}$major'
23076 shlibpath_var
=LD_LIBRARY_PATH
23077 shlibpath_overrides_runpath
=no
23078 hardcode_into_libs
=yes
23079 dynamic_linker
='GNU ld.so'
23086 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
23087 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23088 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23089 dynamic_linker
='NetBSD (a.out) ld.so'
23091 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23092 soname_spec
='${libname}${release}${shared_ext}$major'
23093 dynamic_linker
='NetBSD ld.elf_so'
23095 shlibpath_var
=LD_LIBRARY_PATH
23096 shlibpath_overrides_runpath
=yes
23097 hardcode_into_libs
=yes
23102 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23103 shlibpath_var
=LD_LIBRARY_PATH
23104 shlibpath_overrides_runpath
=yes
23111 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23112 soname_spec
='${libname}${release}${shared_ext}$major'
23113 shlibpath_var
=LD_LIBRARY_PATH
23114 shlibpath_overrides_runpath
=yes
23119 sys_lib_dlsearch_path_spec
="/usr/lib"
23121 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23123 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
23124 *) need_version
=no
;;
23126 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23127 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23128 shlibpath_var
=LD_LIBRARY_PATH
23129 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23131 openbsd2.
[89] | openbsd2.
[89].
*)
23132 shlibpath_overrides_runpath
=no
23135 shlibpath_overrides_runpath
=yes
23139 shlibpath_overrides_runpath
=yes
23144 libname_spec
='$name'
23147 library_names_spec
='$libname${shared_ext} $libname.a'
23148 dynamic_linker
='OS/2 ld.exe'
23149 shlibpath_var
=LIBPATH
23152 osf3
* | osf4
* | osf5
*)
23156 soname_spec
='${libname}${release}${shared_ext}$major'
23157 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23158 shlibpath_var
=LD_LIBRARY_PATH
23159 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23160 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
23167 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23168 soname_spec
='${libname}${release}${shared_ext}$major'
23169 shlibpath_var
=LD_LIBRARY_PATH
23170 shlibpath_overrides_runpath
=yes
23171 hardcode_into_libs
=yes
23172 # ldd complains unless libraries are executable
23173 postinstall_cmds
='chmod +x $lib'
23178 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23179 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23180 shlibpath_var
=LD_LIBRARY_PATH
23181 shlibpath_overrides_runpath
=yes
23182 if test "$with_gnu_ld" = yes; then
23190 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23191 soname_spec
='${libname}${release}${shared_ext}$major'
23192 shlibpath_var
=LD_LIBRARY_PATH
23193 case $host_vendor in
23195 shlibpath_overrides_runpath
=no
23197 export_dynamic_flag_spec
='${wl}-Blargedynsym'
23198 runpath_var
=LD_RUN_PATH
23206 shlibpath_overrides_runpath
=no
23207 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
23213 if test -d /usr
/nec
;then
23215 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23216 soname_spec
='$libname${shared_ext}.$major'
23217 shlibpath_var
=LD_LIBRARY_PATH
23221 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
23222 version_type
=freebsd-elf
23225 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23226 soname_spec
='${libname}${release}${shared_ext}$major'
23227 shlibpath_var
=LD_LIBRARY_PATH
23228 hardcode_into_libs
=yes
23229 if test "$with_gnu_ld" = yes; then
23230 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23231 shlibpath_overrides_runpath
=no
23233 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
23234 shlibpath_overrides_runpath
=yes
23237 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
23241 sys_lib_dlsearch_path_spec
='/usr/lib'
23246 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23247 soname_spec
='${libname}${release}${shared_ext}$major'
23248 shlibpath_var
=LD_LIBRARY_PATH
23255 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23256 echo "${ECHO_T}$dynamic_linker" >&6; }
23257 test "$dynamic_linker" = no
&& can_build_shared
=no
23259 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
23260 if test "$GCC" = yes; then
23261 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23264 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23265 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23266 hardcode_action_F77
=
23267 if test -n "$hardcode_libdir_flag_spec_F77" || \
23268 test -n "$runpath_var_F77" || \
23269 test "X$hardcode_automatic_F77" = "Xyes" ; then
23271 # We can hardcode non-existant directories.
23272 if test "$hardcode_direct_F77" != no
&&
23273 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23274 # have to relink, otherwise we might link with an installed library
23275 # when we should be linking with a yet-to-be-installed one
23276 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23277 test "$hardcode_minus_L_F77" != no
; then
23278 # Linking always hardcodes the temporary library directory.
23279 hardcode_action_F77
=relink
23281 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23282 hardcode_action_F77
=immediate
23285 # We cannot hardcode anything, or else we can only hardcode existing
23287 hardcode_action_F77
=unsupported
23289 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23290 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23292 if test "$hardcode_action_F77" = relink
; then
23293 # Fast installation is not supported
23294 enable_fast_install
=no
23295 elif test "$shlibpath_overrides_runpath" = yes ||
23296 test "$enable_shared" = no
; then
23297 # Fast installation is not necessary
23298 enable_fast_install
=needless
23302 # The else clause should only fire when bootstrapping the
23303 # libtool distribution, otherwise you forgot to ship ltmain.sh
23304 # with your package, and you will get complaints that there are
23305 # no rules to generate ltmain.sh.
23306 if test -f "$ltmain"; then
23307 # See if we are running on zsh, and set the options which allow our commands through
23308 # without removal of \ escapes.
23309 if test -n "${ZSH_VERSION+set}" ; then
23310 setopt NO_GLOB_SUBST
23312 # Now quote all the things that may contain metacharacters while being
23313 # careful not to overquote the AC_SUBSTed values. We take copies of the
23314 # variables and quote the copies for generation of the libtool script.
23315 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23317 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23318 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23319 deplibs_check_method reload_flag reload_cmds need_locks \
23320 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23321 lt_cv_sys_global_symbol_to_c_name_address \
23322 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23323 old_postinstall_cmds old_postuninstall_cmds \
23327 lt_prog_compiler_wl_F77 \
23328 lt_prog_compiler_pic_F77 \
23329 lt_prog_compiler_static_F77 \
23330 lt_prog_compiler_no_builtin_flag_F77 \
23331 export_dynamic_flag_spec_F77 \
23332 thread_safe_flag_spec_F77 \
23333 whole_archive_flag_spec_F77 \
23334 enable_shared_with_static_runtimes_F77 \
23335 old_archive_cmds_F77 \
23336 old_archive_from_new_cmds_F77 \
23337 predep_objects_F77 \
23338 postdep_objects_F77 \
23341 compiler_lib_search_path_F77 \
23343 archive_expsym_cmds_F77 \
23344 postinstall_cmds_F77 \
23345 postuninstall_cmds_F77 \
23346 old_archive_from_expsyms_cmds_F77 \
23347 allow_undefined_flag_F77 \
23348 no_undefined_flag_F77 \
23349 export_symbols_cmds_F77 \
23350 hardcode_libdir_flag_spec_F77 \
23351 hardcode_libdir_flag_spec_ld_F77 \
23352 hardcode_libdir_separator_F77 \
23353 hardcode_automatic_F77 \
23355 module_expsym_cmds_F77 \
23356 lt_cv_prog_compiler_c_o_F77 \
23357 exclude_expsyms_F77 \
23358 include_expsyms_F77
; do
23361 old_archive_cmds_F77 | \
23362 old_archive_from_new_cmds_F77 | \
23363 archive_cmds_F77 | \
23364 archive_expsym_cmds_F77 | \
23365 module_cmds_F77 | \
23366 module_expsym_cmds_F77 | \
23367 old_archive_from_expsyms_cmds_F77 | \
23368 export_symbols_cmds_F77 | \
23369 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23370 postinstall_cmds | postuninstall_cmds | \
23371 old_postinstall_cmds | old_postuninstall_cmds | \
23372 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
23373 # Double-quote double-evaled strings.
23374 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23377 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23383 *'\$0 --fallback-echo"')
23384 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23390 cat <<__EOF__ >> "$cfgfile"
23391 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23393 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23395 # Shell to use when invoking shell scripts.
23398 # Whether or not to build shared libraries.
23399 build_libtool_libs=$enable_shared
23401 # Whether or not to build static libraries.
23402 build_old_libs=$enable_static
23404 # Whether or not to add -lc for building shared libraries.
23405 build_libtool_need_lc=$archive_cmds_need_lc_F77
23407 # Whether or not to disallow shared libs when runtime libs are static
23408 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23410 # Whether or not to optimize for fast installation.
23411 fast_install=$enable_fast_install
23414 host_alias=$host_alias
23418 # The build system.
23419 build_alias=$build_alias
23423 # An echo program that does not interpret backslashes.
23428 AR_FLAGS=$lt_AR_FLAGS
23433 # LTCC compiler flags.
23434 LTCFLAGS=$lt_LTCFLAGS
23436 # A language-specific compiler.
23437 CC=$lt_compiler_F77
23439 # Is the compiler the GNU C compiler?
23445 # The linker used to build libraries.
23448 # Whether we need hard or soft links.
23451 # A BSD-compatible nm program.
23454 # A symbol stripping program
23457 # Used to examine libraries when file_magic_cmd begins "file"
23458 MAGIC_CMD=$MAGIC_CMD
23460 # Used on cygwin: DLL creation program.
23463 # Used on cygwin: object dumper.
23466 # Used on cygwin: assembler.
23469 # The name of the directory that contains temporary libtool files.
23472 # How to create reloadable object files.
23473 reload_flag=$lt_reload_flag
23474 reload_cmds=$lt_reload_cmds
23476 # How to pass a linker flag through the compiler.
23477 wl=$lt_lt_prog_compiler_wl_F77
23479 # Object file suffix (normally "o").
23480 objext="$ac_objext"
23482 # Old archive suffix (normally "a").
23485 # Shared library suffix (normally ".so").
23486 shrext_cmds='$shrext_cmds'
23488 # Executable file suffix (normally "").
23491 # Additional compiler flags for building library objects.
23492 pic_flag=$lt_lt_prog_compiler_pic_F77
23495 # What is the maximum length of a command?
23496 max_cmd_len=$lt_cv_sys_max_cmd_len
23498 # Does compiler simultaneously support -c and -o options?
23499 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23501 # Must we lock files when doing compilation?
23502 need_locks=$lt_need_locks
23504 # Do we need the lib prefix for modules?
23505 need_lib_prefix=$need_lib_prefix
23507 # Do we need a version for libraries?
23508 need_version=$need_version
23510 # Whether dlopen is supported.
23511 dlopen_support=$enable_dlopen
23513 # Whether dlopen of programs is supported.
23514 dlopen_self=$enable_dlopen_self
23516 # Whether dlopen of statically linked programs is supported.
23517 dlopen_self_static=$enable_dlopen_self_static
23519 # Compiler flag to prevent dynamic linking.
23520 link_static_flag=$lt_lt_prog_compiler_static_F77
23522 # Compiler flag to turn off builtin functions.
23523 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23525 # Compiler flag to allow reflexive dlopens.
23526 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23528 # Compiler flag to generate shared objects directly from archives.
23529 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23531 # Compiler flag to generate thread-safe objects.
23532 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23534 # Library versioning type.
23535 version_type=$version_type
23537 # Format of library name prefix.
23538 libname_spec=$lt_libname_spec
23540 # List of archive names. First name is the real one, the rest are links.
23541 # The last name is the one that the linker finds with -lNAME.
23542 library_names_spec=$lt_library_names_spec
23544 # The coded name of the library, if different from the real name.
23545 soname_spec=$lt_soname_spec
23547 # Commands used to build and install an old-style archive.
23549 old_archive_cmds=$lt_old_archive_cmds_F77
23550 old_postinstall_cmds=$lt_old_postinstall_cmds
23551 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23553 # Create an old-style archive from a shared archive.
23554 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23556 # Create a temporary old-style archive to link instead of a shared archive.
23557 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23559 # Commands used to build and install a shared archive.
23560 archive_cmds=$lt_archive_cmds_F77
23561 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23562 postinstall_cmds=$lt_postinstall_cmds
23563 postuninstall_cmds=$lt_postuninstall_cmds
23565 # Commands used to build a loadable module (assumed same as above if empty)
23566 module_cmds=$lt_module_cmds_F77
23567 module_expsym_cmds=$lt_module_expsym_cmds_F77
23569 # Commands to strip libraries.
23570 old_striplib=$lt_old_striplib
23571 striplib=$lt_striplib
23573 # Dependencies to place before the objects being linked to create a
23575 predep_objects=$lt_predep_objects_F77
23577 # Dependencies to place after the objects being linked to create a
23579 postdep_objects=$lt_postdep_objects_F77
23581 # Dependencies to place before the objects being linked to create a
23583 predeps=$lt_predeps_F77
23585 # Dependencies to place after the objects being linked to create a
23587 postdeps=$lt_postdeps_F77
23589 # The library search path used internally by the compiler when linking
23590 # a shared library.
23591 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23593 # Method to check whether dependent libraries are shared objects.
23594 deplibs_check_method=$lt_deplibs_check_method
23596 # Command to use when deplibs_check_method == file_magic.
23597 file_magic_cmd=$lt_file_magic_cmd
23599 # Flag that allows shared libraries with undefined symbols to be built.
23600 allow_undefined_flag=$lt_allow_undefined_flag_F77
23602 # Flag that forces no undefined symbols.
23603 no_undefined_flag=$lt_no_undefined_flag_F77
23605 # Commands used to finish a libtool library installation in a directory.
23606 finish_cmds=$lt_finish_cmds
23608 # Same as above, but a single script fragment to be evaled but not shown.
23609 finish_eval=$lt_finish_eval
23611 # Take the output of nm and produce a listing of raw symbols and C names.
23612 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23614 # Transform the output of nm in a proper C declaration
23615 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23617 # Transform the output of nm in a C name address pair
23618 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23620 # This is the shared library runtime path variable.
23621 runpath_var=$runpath_var
23623 # This is the shared library path variable.
23624 shlibpath_var=$shlibpath_var
23626 # Is shlibpath searched before the hard-coded library search path?
23627 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23629 # How to hardcode a shared library path into an executable.
23630 hardcode_action=$hardcode_action_F77
23632 # Whether we should hardcode library paths into libraries.
23633 hardcode_into_libs=$hardcode_into_libs
23635 # Flag to hardcode \$libdir into a binary during linking.
23636 # This must work even if \$libdir does not exist.
23637 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23639 # If ld is used when linking, flag to hardcode \$libdir into
23640 # a binary during linking. This must work even if \$libdir does
23642 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23644 # Whether we need a single -rpath flag with a separated argument.
23645 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23647 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23648 # resulting binary.
23649 hardcode_direct=$hardcode_direct_F77
23651 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23652 # resulting binary.
23653 hardcode_minus_L=$hardcode_minus_L_F77
23655 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23656 # the resulting binary.
23657 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23659 # Set to yes if building a shared library automatically hardcodes DIR into the library
23660 # and all subsequent libraries and executables linked against it.
23661 hardcode_automatic=$hardcode_automatic_F77
23663 # Variables whose values should be saved in libtool wrapper scripts and
23664 # restored at relink time.
23665 variables_saved_for_relink="$variables_saved_for_relink"
23667 # Whether libtool must link a program against all its dependency libraries.
23668 link_all_deplibs=$link_all_deplibs_F77
23670 # Compile-time system search path for libraries
23671 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23673 # Run-time system search path for libraries
23674 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23676 # Fix the shell variable \$srcfile for the compiler.
23677 fix_srcfile_path="$fix_srcfile_path_F77"
23679 # Set to yes if exported symbols are required.
23680 always_export_symbols=$always_export_symbols_F77
23682 # The commands to list exported symbols.
23683 export_symbols_cmds=$lt_export_symbols_cmds_F77
23685 # The commands to extract the exported symbol list from a shared archive.
23686 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23688 # Symbols that should not be listed in the preloaded symbols.
23689 exclude_expsyms=$lt_exclude_expsyms_F77
23691 # Symbols that must always be exported.
23692 include_expsyms=$lt_include_expsyms_F77
23694 # ### END LIBTOOL TAG CONFIG: $tagname
23700 # If there is no Makefile yet, we rely on a make rule to execute
23701 # `config.status --recheck' to rerun these tests and create the
23702 # libtool script then.
23703 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23704 if test -f "$ltmain_in"; then
23705 test -f Makefile
&& make "$ltmain"
23711 ac_cpp
='$CPP $CPPFLAGS'
23712 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23713 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23714 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
23724 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23726 ac_cpp
='$CPP $CPPFLAGS'
23727 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23728 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23729 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
23732 # Source file extension for Java test sources.
23735 # Object file extension for compiled Java test sources.
23739 # Code to be used in simple compile tests
23740 lt_simple_compile_test_code
="class foo {}\n"
23742 # Code to be used in simple link tests
23743 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
23745 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23747 # If no C compiler was specified, use CC.
23750 # If no C compiler flags were specified, use CFLAGS.
23751 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
23753 # Allow CC to be a program name with arguments.
23757 # save warnings/boilerplate of simple test code
23758 ac_outfile
=conftest.
$ac_objext
23759 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
23760 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
23761 _lt_compiler_boilerplate
=`cat conftest.err`
23764 ac_outfile
=conftest.
$ac_objext
23765 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
23766 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
23767 _lt_linker_boilerplate
=`cat conftest.err`
23771 # Allow CC to be a program name with arguments.
23776 for cc_temp
in $compiler""; do
23778 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
23779 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
23784 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23787 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23788 archive_cmds_need_lc_GCJ
=no
23790 old_archive_cmds_GCJ
=$old_archive_cmds
23793 lt_prog_compiler_no_builtin_flag_GCJ
=
23795 if test "$GCC" = yes; then
23796 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
23799 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23800 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23801 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23802 echo $ECHO_N "(cached) $ECHO_C" >&6
23804 lt_cv_prog_compiler_rtti_exceptions
=no
23805 ac_outfile
=conftest.
$ac_objext
23806 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
23807 lt_compiler_flag
="-fno-rtti -fno-exceptions"
23808 # Insert the option either (1) after the last *FLAGS variable, or
23809 # (2) before a word containing "conftest.", or (3) at the end.
23810 # Note that $ac_compile itself does not contain backslashes and begins
23811 # with a dollar sign (not a hyphen), so the echo should work correctly.
23812 # The option is referenced via a variable to avoid confusing sed.
23813 lt_compile
=`echo "$ac_compile" | $SED \
23814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23816 -e 's:$: $lt_compiler_flag:'`
23817 (eval echo "\"\$as_me:23817: $lt_compile\"" >&5)
23818 (eval "$lt_compile" 2>conftest.err
)
23820 cat conftest.err
>&5
23821 echo "$as_me:23821: \$? = $ac_status" >&5
23822 if (exit $ac_status) && test -s "$ac_outfile"; then
23823 # The compiler can only warn and ignore the option if not recognized
23824 # So say no if there are warnings other than the usual output.
23825 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
23826 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
23827 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
23828 lt_cv_prog_compiler_rtti_exceptions
=yes
23834 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23835 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23837 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
23838 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23845 lt_prog_compiler_wl_GCJ
=
23846 lt_prog_compiler_pic_GCJ
=
23847 lt_prog_compiler_static_GCJ
=
23849 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23850 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23852 if test "$GCC" = yes; then
23853 lt_prog_compiler_wl_GCJ
='-Wl,'
23854 lt_prog_compiler_static_GCJ
='-static'
23858 # All AIX code is PIC.
23859 if test "$host_cpu" = ia64
; then
23860 # AIX 5 now supports IA64 processor
23861 lt_prog_compiler_static_GCJ
='-Bstatic'
23866 # FIXME: we need at least 68020 code to build shared libraries, but
23867 # adding the `-m68020' flag to GCC prevents building anything better,
23869 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
23872 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
23873 # PIC is the default for these OSes.
23876 mingw
* | pw32
* | os2
*)
23877 # This hack is so that the source file can tell whether it is being
23878 # built for inclusion in a dll (and should export symbols for example).
23879 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
23882 darwin
* | rhapsody
*)
23883 # PIC is the default on this platform
23884 # Common symbols not allowed in MH_DYLIB files
23885 lt_prog_compiler_pic_GCJ
='-fno-common'
23889 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23890 # Instead, we relocate shared libraries at runtime.
23894 # Just because we use GCC doesn't mean we suddenly get shared libraries
23895 # on systems that don't support them.
23896 lt_prog_compiler_can_build_shared_GCJ
=no
23901 if test -d /usr
/nec
; then
23902 lt_prog_compiler_pic_GCJ
=-Kconform_pic
23907 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23908 # not for PA HP-UX.
23914 lt_prog_compiler_pic_GCJ
='-fPIC'
23920 lt_prog_compiler_pic_GCJ
='-fPIC'
23924 # PORTME Check for flag to pass linker flags through the system compiler.
23927 lt_prog_compiler_wl_GCJ
='-Wl,'
23928 if test "$host_cpu" = ia64
; then
23929 # AIX 5 now supports IA64 processor
23930 lt_prog_compiler_static_GCJ
='-Bstatic'
23932 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
23936 # PIC is the default on this platform
23937 # Common symbols not allowed in MH_DYLIB files
23938 case $cc_basename in
23940 lt_prog_compiler_pic_GCJ
='-qnocommon'
23941 lt_prog_compiler_wl_GCJ
='-Wl,'
23946 mingw
* | pw32
* | os2
*)
23947 # This hack is so that the source file can tell whether it is being
23948 # built for inclusion in a dll (and should export symbols for example).
23949 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
23952 hpux9
* | hpux10
* | hpux11
*)
23953 lt_prog_compiler_wl_GCJ
='-Wl,'
23954 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23955 # not for PA HP-UX.
23961 lt_prog_compiler_pic_GCJ
='+Z'
23964 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23965 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
23968 irix5
* | irix6
* | nonstopux
*)
23969 lt_prog_compiler_wl_GCJ
='-Wl,'
23970 # PIC (with -KPIC) is the default.
23971 lt_prog_compiler_static_GCJ
='-non_shared'
23975 lt_prog_compiler_pic_GCJ
='-KPIC'
23976 lt_prog_compiler_static_GCJ
='-Bstatic'
23980 case $cc_basename in
23982 lt_prog_compiler_wl_GCJ
='-Wl,'
23983 lt_prog_compiler_pic_GCJ
='-KPIC'
23984 lt_prog_compiler_static_GCJ
='-static'
23986 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
23987 # Portland Group compilers (*not* the Pentium gcc compiler,
23988 # which looks to be a dead project)
23989 lt_prog_compiler_wl_GCJ
='-Wl,'
23990 lt_prog_compiler_pic_GCJ
='-fpic'
23991 lt_prog_compiler_static_GCJ
='-Bstatic'
23994 lt_prog_compiler_wl_GCJ
='-Wl,'
23995 # All Alpha code is PIC.
23996 lt_prog_compiler_static_GCJ
='-non_shared'
24001 osf3
* | osf4
* | osf5
*)
24002 lt_prog_compiler_wl_GCJ
='-Wl,'
24003 # All OSF/1 code is PIC.
24004 lt_prog_compiler_static_GCJ
='-non_shared'
24008 lt_prog_compiler_pic_GCJ
='-KPIC'
24009 lt_prog_compiler_static_GCJ
='-Bstatic'
24010 case $cc_basename in
24011 f77
* | f90
* | f95
*)
24012 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
24014 lt_prog_compiler_wl_GCJ
='-Wl,';;
24019 lt_prog_compiler_wl_GCJ
='-Qoption ld '
24020 lt_prog_compiler_pic_GCJ
='-PIC'
24021 lt_prog_compiler_static_GCJ
='-Bstatic'
24024 sysv4 | sysv4.2uw2
* | sysv4.3
*)
24025 lt_prog_compiler_wl_GCJ
='-Wl,'
24026 lt_prog_compiler_pic_GCJ
='-KPIC'
24027 lt_prog_compiler_static_GCJ
='-Bstatic'
24031 if test -d /usr
/nec
;then
24032 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
24033 lt_prog_compiler_static_GCJ
='-Bstatic'
24037 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
24038 lt_prog_compiler_wl_GCJ
='-Wl,'
24039 lt_prog_compiler_pic_GCJ
='-KPIC'
24040 lt_prog_compiler_static_GCJ
='-Bstatic'
24044 lt_prog_compiler_wl_GCJ
='-Wl,'
24045 lt_prog_compiler_can_build_shared_GCJ
=no
24049 lt_prog_compiler_pic_GCJ
='-pic'
24050 lt_prog_compiler_static_GCJ
='-Bstatic'
24054 lt_prog_compiler_can_build_shared_GCJ
=no
24059 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24060 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24063 # Check to make sure the PIC flag actually works.
24065 if test -n "$lt_prog_compiler_pic_GCJ"; then
24067 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24068 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24069 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24070 echo $ECHO_N "(cached) $ECHO_C" >&6
24072 lt_prog_compiler_pic_works_GCJ
=no
24073 ac_outfile
=conftest.
$ac_objext
24074 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24075 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
24076 # Insert the option either (1) after the last *FLAGS variable, or
24077 # (2) before a word containing "conftest.", or (3) at the end.
24078 # Note that $ac_compile itself does not contain backslashes and begins
24079 # with a dollar sign (not a hyphen), so the echo should work correctly.
24080 # The option is referenced via a variable to avoid confusing sed.
24081 lt_compile
=`echo "$ac_compile" | $SED \
24082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24084 -e 's:$: $lt_compiler_flag:'`
24085 (eval echo "\"\$as_me:24085: $lt_compile\"" >&5)
24086 (eval "$lt_compile" 2>conftest.err
)
24088 cat conftest.err
>&5
24089 echo "$as_me:24089: \$? = $ac_status" >&5
24090 if (exit $ac_status) && test -s "$ac_outfile"; then
24091 # The compiler can only warn and ignore the option if not recognized
24092 # So say no if there are warnings other than the usual output.
24093 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
24094 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24095 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
24096 lt_prog_compiler_pic_works_GCJ
=yes
24102 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24103 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24105 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
24106 case $lt_prog_compiler_pic_GCJ in
24108 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
24111 lt_prog_compiler_pic_GCJ
=
24112 lt_prog_compiler_can_build_shared_GCJ
=no
24117 # For platforms which do not support PIC, -DPIC is meaningless:
24119 lt_prog_compiler_pic_GCJ
=
24122 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
24127 # Check to make sure the static flag actually works.
24129 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
24130 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24131 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24132 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24133 echo $ECHO_N "(cached) $ECHO_C" >&6
24135 lt_prog_compiler_static_works_GCJ
=no
24136 save_LDFLAGS
="$LDFLAGS"
24137 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
24138 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
24139 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
24140 # The linker can only warn and ignore the option if not recognized
24141 # So say no if there are warnings
24142 if test -s conftest.err
; then
24143 # Append any errors to the config.log.
24144 cat conftest.err
1>&5
24145 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
24146 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24147 if diff conftest.exp conftest.er2
>/dev
/null
; then
24148 lt_prog_compiler_static_works_GCJ
=yes
24151 lt_prog_compiler_static_works_GCJ
=yes
24155 LDFLAGS
="$save_LDFLAGS"
24158 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24159 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24161 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
24164 lt_prog_compiler_static_GCJ
=
24168 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24169 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24170 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24171 echo $ECHO_N "(cached) $ECHO_C" >&6
24173 lt_cv_prog_compiler_c_o_GCJ
=no
24174 $rm -r conftest
2>/dev
/null
24178 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24180 lt_compiler_flag
="-o out/conftest2.$ac_objext"
24181 # Insert the option either (1) after the last *FLAGS variable, or
24182 # (2) before a word containing "conftest.", or (3) at the end.
24183 # Note that $ac_compile itself does not contain backslashes and begins
24184 # with a dollar sign (not a hyphen), so the echo should work correctly.
24185 lt_compile
=`echo "$ac_compile" | $SED \
24186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24188 -e 's:$: $lt_compiler_flag:'`
24189 (eval echo "\"\$as_me:24189: $lt_compile\"" >&5)
24190 (eval "$lt_compile" 2>out
/conftest.err
)
24192 cat out
/conftest.err
>&5
24193 echo "$as_me:24193: \$? = $ac_status" >&5
24194 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
24196 # The compiler can only warn and ignore the option if not recognized
24197 # So say no if there are warnings
24198 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
24199 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
24200 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
24201 lt_cv_prog_compiler_c_o_GCJ
=yes
24206 # SGI C++ compiler will create directory out/ii_files/ for
24207 # template instantiation
24208 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
24209 $rm out
/* && rmdir out
24215 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24216 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24219 hard_links
="nottested"
24220 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
24221 # do not overwrite the value of need_locks provided by the user
24222 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24223 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24226 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
24228 ln conftest.a conftest.b
2>&5 || hard_links
=no
24229 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
24230 { echo "$as_me:$LINENO: result: $hard_links" >&5
24231 echo "${ECHO_T}$hard_links" >&6; }
24232 if test "$hard_links" = no
; then
24233 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24234 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24241 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24242 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24245 allow_undefined_flag_GCJ
=
24246 enable_shared_with_static_runtimes_GCJ
=no
24248 archive_expsym_cmds_GCJ
=
24249 old_archive_From_new_cmds_GCJ
=
24250 old_archive_from_expsyms_cmds_GCJ
=
24251 export_dynamic_flag_spec_GCJ
=
24252 whole_archive_flag_spec_GCJ
=
24253 thread_safe_flag_spec_GCJ
=
24254 hardcode_libdir_flag_spec_GCJ
=
24255 hardcode_libdir_flag_spec_ld_GCJ
=
24256 hardcode_libdir_separator_GCJ
=
24257 hardcode_direct_GCJ
=no
24258 hardcode_minus_L_GCJ
=no
24259 hardcode_shlibpath_var_GCJ
=unsupported
24260 link_all_deplibs_GCJ
=unknown
24261 hardcode_automatic_GCJ
=no
24263 module_expsym_cmds_GCJ
=
24264 always_export_symbols_GCJ
=no
24265 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24266 # include_expsyms should be a list of space-separated symbols to be *always*
24267 # included in the symbol list
24268 include_expsyms_GCJ
=
24269 # exclude_expsyms can be an extended regexp of symbols to exclude
24270 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24271 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24272 # as well as any symbol that contains `d'.
24273 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
24274 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24275 # platforms (ab)use it in PIC code, but their linkers get confused if
24276 # the symbol is explicitly referenced. Since portable code cannot
24277 # rely on this symbol name, it's probably fine to never include it in
24278 # preloaded symbol tables.
24279 extract_expsyms_cmds
=
24280 # Just being paranoid about ensuring that cc_basename is set.
24281 for cc_temp
in $compiler""; do
24283 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
24284 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
24289 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24292 cygwin
* | mingw
* | pw32
*)
24293 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24294 # When not using gcc, we currently assume that we are using
24295 # Microsoft Visual C++.
24296 if test "$GCC" != yes; then
24301 # we just hope/assume this is gcc and not c89 (= MSVC++)
24310 if test "$with_gnu_ld" = yes; then
24311 # If archive_cmds runs LD, not CC, wlarc should be empty
24314 # Set some defaults for GNU ld with shared library support. These
24315 # are reset later if shared libraries are not supported. Putting them
24316 # here allows them to be overridden if necessary.
24317 runpath_var
=LD_RUN_PATH
24318 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
24319 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
24320 # ancient GNU ld didn't support --whole-archive et. al.
24321 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
24322 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24324 whole_archive_flag_spec_GCJ
=
24326 supports_anon_versioning
=no
24327 case `$LD -v 2>/dev/null` in
24328 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
24329 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
24330 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
24331 *\
2.11.
*) ;; # other 2.11 versions
24332 *) supports_anon_versioning
=yes ;;
24335 # See if GNU ld supports shared libraries.
24337 aix3
* | aix4
* | aix5
*)
24338 # On AIX/PPC, the GNU linker is very broken
24339 if test "$host_cpu" != ia64
; then
24343 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24344 *** to be unable to reliably create shared libraries on AIX.
24345 *** Therefore, libtool is disabling shared libraries support. If you
24346 *** really care for shared libraries, you may want to modify your PATH
24347 *** so that a non-GNU linker is found, and then restart.
24354 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)'
24355 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24356 hardcode_minus_L_GCJ
=yes
24358 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24359 # that the semantics of dynamic libraries on AmigaOS, at least up
24360 # to version 4, is to share data among multiple programs linked
24361 # with the same dynamic library. Since this doesn't match the
24362 # behavior of shared libraries on other platforms, we can't use
24368 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24369 allow_undefined_flag_GCJ
=unsupported
24370 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24371 # support --undefined. This deserves some investigation. FIXME
24372 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24378 cygwin
* | mingw
* | pw32
*)
24379 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24380 # as there is no search path for DLLs.
24381 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24382 allow_undefined_flag_GCJ
=unsupported
24383 always_export_symbols_GCJ
=no
24384 enable_shared_with_static_runtimes_GCJ
=yes
24385 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24387 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
24388 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24389 # If the export-symbols file already is a .def file (1st line
24390 # is EXPORTS), use it as is; otherwise, prepend...
24391 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24392 cp $export_symbols $output_objdir/$soname.def;
24394 echo EXPORTS > $output_objdir/$soname.def;
24395 cat $export_symbols >> $output_objdir/$soname.def;
24397 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24404 hardcode_direct_GCJ
=no
24405 hardcode_shlibpath_var_GCJ
=no
24406 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
24407 export_dynamic_flag_spec_GCJ
='${wl}-E'
24408 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24409 # Instead, shared libraries are loaded at an image base (0x10000000 by
24410 # default) and relocated if they conflict, which is a slow very memory
24411 # consuming and fragmenting process. To avoid this, we pick a random,
24412 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24413 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24414 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'
24415 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'
24419 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24421 case $cc_basename,$host_cpu in
24422 pgcc
*) # Portland Group C compiler
24423 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'
24424 tmp_addflag
=' $pic_flag'
24426 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
24427 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'
24428 tmp_addflag
=' $pic_flag -Mnomain' ;;
24429 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
24430 tmp_addflag
=' -i_dynamic' ;;
24431 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
24432 tmp_addflag
=' -i_dynamic -nofor_main' ;;
24433 ifc
* | ifort
*) # Intel Fortran compiler
24434 tmp_addflag
=' -nofor_main' ;;
24436 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24438 if test $supports_anon_versioning = yes; then
24439 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
24440 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24441 $echo "local: *; };" >> $output_objdir/$libname.ver~
24442 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24450 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
24451 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24454 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24455 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24460 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
24464 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24465 *** create shared libraries on Solaris systems. Therefore, libtool
24466 *** is disabling shared libraries support. We urge you to upgrade GNU
24467 *** binutils to release 2.9.1 or newer. Another option is to modify
24468 *** your PATH or compiler configuration so that the native linker is
24469 *** used, and then restart.
24472 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24473 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24474 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24480 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
24481 case `$LD -v 2>&1` in
24482 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
24486 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24487 *** reliably create shared libraries on SCO systems. Therefore, libtool
24488 *** is disabling shared libraries support. We urge you to upgrade GNU
24489 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24490 *** your PATH or compiler configuration so that the native linker is
24491 *** used, and then restart.
24496 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24497 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24498 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24499 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24508 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24510 hardcode_direct_GCJ
=yes
24511 hardcode_shlibpath_var_GCJ
=no
24515 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24516 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24517 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24524 if test "$ld_shlibs_GCJ" = no
; then
24526 hardcode_libdir_flag_spec_GCJ
=
24527 export_dynamic_flag_spec_GCJ
=
24528 whole_archive_flag_spec_GCJ
=
24531 # PORTME fill in a description of your system's linker (not GNU ld)
24534 allow_undefined_flag_GCJ
=unsupported
24535 always_export_symbols_GCJ
=yes
24536 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'
24537 # Note: this linker hardcodes the directories in LIBPATH if there
24538 # are no directories specified by -L.
24539 hardcode_minus_L_GCJ
=yes
24540 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24541 # Neither direct hardcoding nor static linking is supported with a
24543 hardcode_direct_GCJ
=unsupported
24548 if test "$host_cpu" = ia64
; then
24549 # On IA64, the linker does run time linking by default, so we don't
24550 # have to do anything special.
24551 aix_use_runtimelinking
=no
24552 exp_sym_flag
='-Bexport'
24555 # If we're using GNU nm, then we don't want the "-C" option.
24556 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24557 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
24558 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'
24560 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'
24562 aix_use_runtimelinking
=no
24564 # Test if we are trying to use run time linking or normal
24565 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24566 # need to do runtime linking.
24567 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
24568 for ld_flag
in $LDFLAGS; do
24569 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
24570 aix_use_runtimelinking
=yes
24577 exp_sym_flag
='-bexport'
24578 no_entry_flag
='-bnoentry'
24581 # When large executables or shared objects are built, AIX ld can
24582 # have problems creating the table of contents. If linking a library
24583 # or program results in "error TOC overflow" add -mminimal-toc to
24584 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24585 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24587 archive_cmds_GCJ
=''
24588 hardcode_direct_GCJ
=yes
24589 hardcode_libdir_separator_GCJ
=':'
24590 link_all_deplibs_GCJ
=yes
24592 if test "$GCC" = yes; then
24593 case $host_os in aix4.
[012]|aix4.
[012].
*)
24594 # We only want to do this on AIX 4.2 and lower, the check
24595 # below for broken collect2 doesn't work under 4.3+
24596 collect2name
=`${CC} -print-prog-name=collect2`
24597 if test -f "$collect2name" && \
24598 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
24600 # We have reworked collect2
24601 hardcode_direct_GCJ
=yes
24603 # We have old collect2
24604 hardcode_direct_GCJ
=unsupported
24605 # It fails to find uninstalled libraries when the uninstalled
24606 # path is not listed in the libpath. Setting hardcode_minus_L
24607 # to unsupported forces relinking
24608 hardcode_minus_L_GCJ
=yes
24609 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24610 hardcode_libdir_separator_GCJ
=
24614 shared_flag
='-shared'
24615 if test "$aix_use_runtimelinking" = yes; then
24616 shared_flag
="$shared_flag "'${wl}-G'
24620 if test "$host_cpu" = ia64
; then
24621 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24622 # chokes on -Wl,-G. The following line is correct:
24625 if test "$aix_use_runtimelinking" = yes; then
24626 shared_flag
='${wl}-G'
24628 shared_flag
='${wl}-bM:SRE'
24633 # It seems that -bexpall does not export symbols beginning with
24634 # underscore (_), so it is better to generate a list of symbols to export.
24635 always_export_symbols_GCJ
=yes
24636 if test "$aix_use_runtimelinking" = yes; then
24637 # Warning - without using the other runtime loading flags (-brtl),
24638 # -berok will link without error, but may produce a broken library.
24639 allow_undefined_flag_GCJ
='-berok'
24640 # Determine the default libpath from the value encoded in an empty executable.
24641 cat >conftest.
$ac_ext <<_ACEOF
24644 cat confdefs.h
>>conftest.
$ac_ext
24645 cat >>conftest.
$ac_ext <<_ACEOF
24646 /* end confdefs.h. */
24656 rm -f conftest.
$ac_objext conftest
$ac_exeext
24657 if { (ac_try
="$ac_link"
24658 case "(($ac_try" in
24659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24660 *) ac_try_echo=$ac_try;;
24662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24663 (eval "$ac_link") 2>conftest.er1
24665 grep -v '^ *+' conftest.er1 >conftest.err
24667 cat conftest.err >&5
24668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669 (exit $ac_status); } &&
24670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24671 { (case "(($ac_try" in
24672 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24673 *) ac_try_echo
=$ac_try;;
24675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24676 (eval "$ac_try") 2>&5
24678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679 (exit $ac_status); }; } &&
24680 { ac_try
='test -s conftest$ac_exeext'
24681 { (case "(($ac_try" in
24682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24683 *) ac_try_echo=$ac_try;;
24685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24686 (eval "$ac_try") 2>&5
24688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); }; }; then
24691 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24693 # Check for a 64-bit object if we didn't find anything.
24694 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; }
24697 echo "$as_me: failed program was:" >&5
24698 sed 's/^/| /' conftest.$ac_ext >&5
24703 rm -f core conftest.err conftest.$ac_objext \
24704 conftest$ac_exeext conftest.$ac_ext
24705 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24707 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24708 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"
24710 if test "$host_cpu" = ia64; then
24711 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24712 allow_undefined_flag_GCJ="-z nodefs"
24713 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"
24715 # Determine the default libpath from the value encoded in an empty executable.
24716 cat >conftest.$ac_ext <<_ACEOF
24719 cat confdefs.h >>conftest.$ac_ext
24720 cat >>conftest.$ac_ext <<_ACEOF
24721 /* end confdefs.h. */
24731 rm -f conftest.$ac_objext conftest$ac_exeext
24732 if { (ac_try="$ac_link"
24733 case "(($ac_try" in
24734 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24735 *) ac_try_echo
=$ac_try;;
24737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24738 (eval "$ac_link") 2>conftest.er1
24740 grep -v '^ *+' conftest.er1
>conftest.err
24742 cat conftest.err
>&5
24743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744 (exit $ac_status); } &&
24745 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24746 { (case "(($ac_try" in
24747 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24748 *) ac_try_echo=$ac_try;;
24750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24751 (eval "$ac_try") 2>&5
24753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754 (exit $ac_status); }; } &&
24755 { ac_try='test -s conftest$ac_exeext'
24756 { (case "(($ac_try" in
24757 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24758 *) ac_try_echo
=$ac_try;;
24760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24761 (eval "$ac_try") 2>&5
24763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764 (exit $ac_status); }; }; then
24766 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24768 # Check for a 64-bit object if we didn't find anything.
24769 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; }
24772 echo "$as_me: failed program was:" >&5
24773 sed 's/^/| /' conftest.
$ac_ext >&5
24778 rm -f core conftest.err conftest.
$ac_objext \
24779 conftest
$ac_exeext conftest.
$ac_ext
24780 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
24782 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
24783 # Warning - without using the other run time loading flags,
24784 # -berok will link without error, but may produce a broken library.
24785 no_undefined_flag_GCJ
=' ${wl}-bernotok'
24786 allow_undefined_flag_GCJ
=' ${wl}-berok'
24787 # Exported symbols can be pulled into shared objects from archives
24788 whole_archive_flag_spec_GCJ
='$convenience'
24789 archive_cmds_need_lc_GCJ
=yes
24790 # This is similar to how AIX traditionally builds its shared libraries.
24791 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'
24797 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)'
24798 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24799 hardcode_minus_L_GCJ
=yes
24800 # see comment about different semantics on the GNU ld section
24805 export_dynamic_flag_spec_GCJ
=-rdynamic
24808 cygwin
* | mingw
* | pw32
*)
24809 # When not using gcc, we currently assume that we are using
24810 # Microsoft Visual C++.
24811 # hardcode_libdir_flag_spec is actually meaningless, as there is
24812 # no search path for DLLs.
24813 hardcode_libdir_flag_spec_GCJ
=' '
24814 allow_undefined_flag_GCJ
=unsupported
24815 # Tell ltmain to make .lib files, not .a files.
24817 # Tell ltmain to make .dll files, not .so files.
24819 # FIXME: Setting linknames here is a bad hack.
24820 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24821 # The linker will automatically build a .lib file if we build a DLL.
24822 old_archive_From_new_cmds_GCJ
='true'
24823 # FIXME: Should let the user specify the lib program.
24824 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
24825 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
24826 enable_shared_with_static_runtimes_GCJ
=yes
24829 darwin
* | rhapsody
*)
24831 rhapsody
* | darwin1.
[012])
24832 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
24835 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24836 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24838 case ${MACOSX_DEPLOYMENT_TARGET} in
24840 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24843 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
24849 archive_cmds_need_lc_GCJ
=no
24850 hardcode_direct_GCJ
=no
24851 hardcode_automatic_GCJ
=yes
24852 hardcode_shlibpath_var_GCJ
=unsupported
24853 whole_archive_flag_spec_GCJ
=''
24854 link_all_deplibs_GCJ
=yes
24855 if test "$GCC" = yes ; then
24856 output_verbose_link_cmd
='echo'
24857 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24858 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24859 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24860 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}'
24861 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}'
24863 case $cc_basename in
24865 output_verbose_link_cmd
='echo'
24866 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24867 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24868 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24869 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}'
24870 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}'
24880 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24881 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24882 hardcode_shlibpath_var_GCJ
=no
24889 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24890 # support. Future versions do this automatically, but an explicit c++rt0.o
24891 # does not break anything, and helps significantly (at the cost of a little
24894 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24895 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
24896 hardcode_direct_GCJ
=yes
24897 hardcode_shlibpath_var_GCJ
=no
24900 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24902 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24903 hardcode_direct_GCJ
=yes
24904 hardcode_minus_L_GCJ
=yes
24905 hardcode_shlibpath_var_GCJ
=no
24908 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24909 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
24910 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24911 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
24912 hardcode_direct_GCJ
=yes
24913 hardcode_shlibpath_var_GCJ
=no
24917 if test "$GCC" = yes; then
24918 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'
24920 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'
24922 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
24923 hardcode_libdir_separator_GCJ
=:
24924 hardcode_direct_GCJ
=yes
24926 # hardcode_minus_L: Not really in the search PATH,
24927 # but as the default location of the library.
24928 hardcode_minus_L_GCJ
=yes
24929 export_dynamic_flag_spec_GCJ
='${wl}-E'
24933 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
24934 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24936 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24938 if test "$with_gnu_ld" = no
; then
24939 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
24940 hardcode_libdir_separator_GCJ
=:
24942 hardcode_direct_GCJ
=yes
24943 export_dynamic_flag_spec_GCJ
='${wl}-E'
24945 # hardcode_minus_L: Not really in the search PATH,
24946 # but as the default location of the library.
24947 hardcode_minus_L_GCJ
=yes
24952 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
24955 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24958 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24961 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24967 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24970 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24973 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24977 if test "$with_gnu_ld" = no
; then
24978 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
24979 hardcode_libdir_separator_GCJ
=:
24983 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
24984 hardcode_direct_GCJ
=no
24985 hardcode_shlibpath_var_GCJ
=no
24988 hardcode_direct_GCJ
=yes
24989 export_dynamic_flag_spec_GCJ
='${wl}-E'
24991 # hardcode_minus_L: Not really in the search PATH,
24992 # but as the default location of the library.
24993 hardcode_minus_L_GCJ
=yes
24999 irix5
* | irix6
* | nonstopux
*)
25000 if test "$GCC" = yes; then
25001 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'
25003 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'
25004 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
25006 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25007 hardcode_libdir_separator_GCJ
=:
25008 link_all_deplibs_GCJ
=yes
25012 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
25013 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25015 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25017 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25018 hardcode_direct_GCJ
=yes
25019 hardcode_shlibpath_var_GCJ
=no
25023 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25024 hardcode_direct_GCJ
=yes
25025 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25026 hardcode_libdir_separator_GCJ
=:
25027 hardcode_shlibpath_var_GCJ
=no
25031 hardcode_direct_GCJ
=yes
25032 hardcode_shlibpath_var_GCJ
=no
25033 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25034 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25035 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25036 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
25037 export_dynamic_flag_spec_GCJ
='${wl}-E'
25040 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
25041 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25042 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25045 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25046 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
25053 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25054 hardcode_minus_L_GCJ
=yes
25055 allow_undefined_flag_GCJ
=unsupported
25056 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'
25057 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25061 if test "$GCC" = yes; then
25062 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
25063 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'
25065 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
25066 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'
25068 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25069 hardcode_libdir_separator_GCJ
=:
25072 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
25073 if test "$GCC" = yes; then
25074 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
25075 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'
25076 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25078 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
25079 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'
25080 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~
25081 $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'
25083 # Both c and cxx compiler support -rpath directly
25084 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
25086 hardcode_libdir_separator_GCJ
=:
25090 no_undefined_flag_GCJ
=' -z text'
25091 if test "$GCC" = yes; then
25093 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25094 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25095 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25098 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25099 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25100 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25102 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25103 hardcode_shlibpath_var_GCJ
=no
25105 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
25107 # The compiler driver will combine linker options so we
25108 # cannot just pass the convience library names through
25109 # without $wl, iff we do not link with $LD.
25110 # Luckily, gcc supports the same syntax we need for Sun Studio.
25111 # Supported since Solaris 2.6 (maybe 2.5.1?)
25114 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
25116 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' ;;
25119 link_all_deplibs_GCJ
=yes
25123 if test "x$host_vendor" = xsequent
; then
25124 # Use $CC to link under sequent, because it throws in some extra .o
25125 # files that make .init and .fini sections work.
25126 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25128 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25130 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25131 hardcode_direct_GCJ
=yes
25132 hardcode_minus_L_GCJ
=yes
25133 hardcode_shlibpath_var_GCJ
=no
25137 case $host_vendor in
25139 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25140 hardcode_direct_GCJ
=yes # is this really true???
25143 ## LD is ld it makes a PLAMLIB
25144 ## CC just makes a GrossModule.
25145 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25146 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
25147 hardcode_direct_GCJ
=no
25150 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25151 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
25154 runpath_var
='LD_RUN_PATH'
25155 hardcode_shlibpath_var_GCJ
=no
25159 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25160 hardcode_shlibpath_var_GCJ
=no
25161 export_dynamic_flag_spec_GCJ
='-Bexport'
25165 if test -d /usr
/nec
; then
25166 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25167 hardcode_shlibpath_var_GCJ
=no
25168 runpath_var
=LD_RUN_PATH
25169 hardcode_runpath_var
=yes
25174 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
25175 no_undefined_flag_GCJ
='${wl}-z,text'
25176 archive_cmds_need_lc_GCJ
=no
25177 hardcode_shlibpath_var_GCJ
=no
25178 runpath_var
='LD_RUN_PATH'
25180 if test "$GCC" = yes; then
25181 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25182 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25184 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25185 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25189 sysv5
* | sco3.2v5
* | sco5v6
*)
25190 # Note: We can NOT use -z defs as we might desire, because we do not
25191 # link with -lc, and that would cause any symbols used from libc to
25192 # always be unresolved, which means just about no library would
25193 # ever link correctly. If we're not using GNU ld we use -z text
25194 # though, which does catch some bad symbols but isn't as heavy-handed
25196 no_undefined_flag_GCJ
='${wl}-z,text'
25197 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
25198 archive_cmds_need_lc_GCJ
=no
25199 hardcode_shlibpath_var_GCJ
=no
25200 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25201 hardcode_libdir_separator_GCJ
=':'
25202 link_all_deplibs_GCJ
=yes
25203 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
25204 runpath_var
='LD_RUN_PATH'
25206 if test "$GCC" = yes; then
25207 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25208 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25210 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25211 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25216 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25217 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25218 hardcode_shlibpath_var_GCJ
=no
25227 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25228 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25229 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
25232 # Do we need to explicitly link libc?
25234 case "x$archive_cmds_need_lc_GCJ" in
25236 # Assume -lc should be added
25237 archive_cmds_need_lc_GCJ
=yes
25239 if test "$enable_shared" = yes && test "$GCC" = yes; then
25240 case $archive_cmds_GCJ in
25242 # FIXME: we may have to deal with multi-command sequences.
25245 # Test whether the compiler implicitly links with -lc since on some
25246 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25247 # to ld, don't add -lc before -lgcc.
25248 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25249 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25251 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
25253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25254 (eval $ac_compile) 2>&5
25256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257 (exit $ac_status); } 2>conftest.err
; then
25260 libobjs
=conftest.
$ac_objext
25262 wl
=$lt_prog_compiler_wl_GCJ
25263 pic_flag
=$lt_prog_compiler_pic_GCJ
25269 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
25270 allow_undefined_flag_GCJ
=
25271 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25272 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
25274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275 (exit $ac_status); }
25277 archive_cmds_need_lc_GCJ
=no
25279 archive_cmds_need_lc_GCJ
=yes
25281 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
25283 cat conftest.err
1>&5
25286 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25287 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25294 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25295 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25296 library_names_spec
=
25297 libname_spec
='lib$name'
25301 postuninstall_cmds
=
25305 shlibpath_overrides_runpath
=unknown
25307 dynamic_linker
="$host_os ld.so"
25308 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
25309 if test "$GCC" = yes; then
25310 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25311 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
25312 # if the path contains ";" then we assume it to be the separator
25313 # otherwise default to the standard path separator (i.e. ":") - it is
25314 # assumed that no part of a normal pathname contains ";" but that should
25315 # okay in the real world where ";" in dirpaths is itself problematic.
25316 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25318 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25321 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
25323 need_lib_prefix
=unknown
25324 hardcode_into_libs
=no
25326 # when you set need_version to no, make sure it does not cause -set_version
25327 # flags to be left without arguments
25328 need_version
=unknown
25333 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
25334 shlibpath_var
=LIBPATH
25336 # AIX 3 has no versioning support, so we append a major version to the name.
25337 soname_spec
='${libname}${release}${shared_ext}$major'
25344 hardcode_into_libs
=yes
25345 if test "$host_cpu" = ia64
; then
25346 # AIX 5 supports IA64
25347 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25348 shlibpath_var
=LD_LIBRARY_PATH
25350 # With GCC up to 2.95.x, collect2 would create an import file
25351 # for dependence libraries. The import file would start with
25352 # the line `#! .'. This would cause the generated library to
25353 # depend on `.', always an invalid library. This was fixed in
25354 # development snapshots of GCC prior to 3.0.
25356 aix4 | aix4.
[01] | aix4.
[01].
*)
25357 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25359 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
25362 can_build_shared
=no
25366 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25367 # soname into executable. Probably we can add versioning support to
25368 # collect2, so additional links can be useful in future.
25369 if test "$aix_use_runtimelinking" = yes; then
25370 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25371 # instead of lib<name>.a to let people know that these are not
25372 # typical AIX shared libraries.
25373 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25375 # We preserve .a as extension for shared libraries through AIX4.2
25376 # and later when we are not doing run time linking.
25377 library_names_spec
='${libname}${release}.a $libname.a'
25378 soname_spec
='${libname}${release}${shared_ext}$major'
25380 shlibpath_var
=LIBPATH
25385 library_names_spec
='$libname.ixlibrary $libname.a'
25386 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25387 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'
25391 library_names_spec
='${libname}${shared_ext}'
25392 dynamic_linker
="$host_os ld.so"
25393 shlibpath_var
=LIBRARY_PATH
25399 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25400 soname_spec
='${libname}${release}${shared_ext}$major'
25401 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
25402 shlibpath_var
=LD_LIBRARY_PATH
25403 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25404 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
25405 # the default ld.so.conf also contains /usr/contrib/lib and
25406 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25407 # libtool to hard-code these into programs
25410 cygwin
* | mingw
* | pw32
*)
25411 version_type
=windows
25416 case $GCC,$host_os in
25417 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
25418 library_names_spec
='$libname.dll.a'
25419 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25420 postinstall_cmds
='base_file=`basename \${file}`~
25421 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25422 dldir=$destdir/`dirname \$dlpath`~
25423 test -d \$dldir || mkdir -p \$dldir~
25424 $install_prog $dir/$dlname \$dldir/$dlname~
25425 chmod a+x \$dldir/$dlname'
25426 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25427 dlpath=$dir/\$dldll~
25429 shlibpath_overrides_runpath
=yes
25433 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25434 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25435 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
25438 # MinGW DLLs use traditional 'lib' prefix
25439 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25440 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25441 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
25442 # It is most probably a Windows format PATH printed by
25443 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25444 # path with ; separators, and with drive letters. We can handle the
25445 # drive letters (cygwin fileutils understands them), so leave them,
25446 # especially as we might pass files found there to a mingw objdump,
25447 # which wouldn't understand a cygwinified path. Ahh.
25448 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25450 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25454 # pw32 DLLs use 'pw' prefix rather than 'lib'
25455 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25461 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25464 dynamic_linker
='Win32 ld.exe'
25465 # FIXME: first we should search . and the directory the executable is in
25469 darwin
* | rhapsody
*)
25470 dynamic_linker
="$host_os dyld"
25471 version_type
=darwin
25474 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25475 soname_spec
='${libname}${release}${major}$shared_ext'
25476 shlibpath_overrides_runpath
=yes
25477 shlibpath_var
=DYLD_LIBRARY_PATH
25478 shrext_cmds
='.dylib'
25479 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25480 if test "$GCC" = yes; then
25481 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"`
25483 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
25485 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
25492 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25493 soname_spec
='${libname}${release}${shared_ext}$major'
25494 shlibpath_var
=LD_LIBRARY_PATH
25505 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25506 soname_spec
='${libname}${release}${shared_ext}$major'
25507 shlibpath_var
=LD_LIBRARY_PATH
25508 shlibpath_overrides_runpath
=no
25509 hardcode_into_libs
=yes
25510 dynamic_linker
='GNU ld.so'
25513 freebsd
* | dragonfly
*)
25514 # DragonFly does not have aout. When/if they implement a new
25515 # versioning mechanism, adjust this.
25516 if test -x /usr
/bin
/objformat
; then
25517 objformat
=`/usr/bin/objformat`
25520 freebsd
[123]*) objformat
=aout
;;
25521 *) objformat
=elf
;;
25524 version_type
=freebsd-
$objformat
25525 case $version_type in
25527 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25532 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25536 shlibpath_var
=LD_LIBRARY_PATH
25539 shlibpath_overrides_runpath
=yes
25541 freebsd3.
[01]* | freebsdelf3.
[01]*)
25542 shlibpath_overrides_runpath
=yes
25543 hardcode_into_libs
=yes
25545 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
25546 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
25547 shlibpath_overrides_runpath
=no
25548 hardcode_into_libs
=yes
25550 freebsd
*) # from 4.6 on
25551 shlibpath_overrides_runpath
=yes
25552 hardcode_into_libs
=yes
25561 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25562 soname_spec
='${libname}${release}${shared_ext}$major'
25563 shlibpath_var
=LD_LIBRARY_PATH
25564 hardcode_into_libs
=yes
25567 hpux9
* | hpux10
* | hpux11
*)
25568 # Give a soname corresponding to the major version so that dld.sl refuses to
25569 # link against other versions.
25576 hardcode_into_libs
=yes
25577 dynamic_linker
="$host_os dld.so"
25578 shlibpath_var
=LD_LIBRARY_PATH
25579 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
25580 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25581 soname_spec
='${libname}${release}${shared_ext}$major'
25582 if test "X$HPUX_IA64_MODE" = X32
; then
25583 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25585 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
25587 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
25591 hardcode_into_libs
=yes
25592 dynamic_linker
="$host_os dld.sl"
25593 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
25594 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
25595 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25596 soname_spec
='${libname}${release}${shared_ext}$major'
25597 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25598 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
25602 dynamic_linker
="$host_os dld.sl"
25603 shlibpath_var
=SHLIB_PATH
25604 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
25605 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25606 soname_spec
='${libname}${release}${shared_ext}$major'
25609 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25610 postinstall_cmds
='chmod 555 $lib'
25617 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25618 soname_spec
='${libname}${release}${shared_ext}$major'
25619 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
25620 shlibpath_var
=LD_LIBRARY_PATH
25621 shlibpath_overrides_runpath
=no
25622 hardcode_into_libs
=yes
25625 irix5
* | irix6
* | nonstopux
*)
25627 nonstopux
*) version_type
=nonstopux
;;
25629 if test "$lt_cv_prog_gnu_ld" = yes; then
25637 soname_spec
='${libname}${release}${shared_ext}$major'
25638 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25640 irix5
* | nonstopux
*)
25641 libsuff
= shlibsuff
=
25644 case $LD in # libtool.m4 will add one of these switches to LD
25645 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
25646 libsuff
= shlibsuff
= libmagic
=32-bit;;
25647 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
25648 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
25649 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
25650 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
25651 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
25655 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
25656 shlibpath_overrides_runpath
=no
25657 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25658 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
25659 hardcode_into_libs
=yes
25662 # No shared lib support for Linux oldld, aout, or coff.
25663 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
25667 # This must be Linux ELF.
25672 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25673 soname_spec
='${libname}${release}${shared_ext}$major'
25674 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25675 shlibpath_var
=LD_LIBRARY_PATH
25676 shlibpath_overrides_runpath
=no
25677 # This implies no fast_install, which is unacceptable.
25678 # Some rework will be needed to allow for fast_install
25679 # before this can be enabled.
25680 hardcode_into_libs
=yes
25682 # Append ld.so.conf contents to the search path
25683 if test -f /etc
/ld.so.conf
; then
25684 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' ' '`
25685 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
25688 # We used to test for /lib/ld.so.1 and disable shared libraries on
25689 # powerpc, because MkLinux only supported shared libraries with the
25690 # GNU dynamic linker. Since this was broken with cross compilers,
25691 # most powerpc-linux boxes support dynamic linking these days and
25692 # people can always --disable-shared, the test was removed, and we
25693 # assume the GNU/Linux dynamic linker is in use.
25694 dynamic_linker
='GNU/Linux ld.so'
25701 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25702 soname_spec
='${libname}${release}${shared_ext}$major'
25703 shlibpath_var
=LD_LIBRARY_PATH
25704 shlibpath_overrides_runpath
=no
25705 hardcode_into_libs
=yes
25706 dynamic_linker
='GNU ld.so'
25713 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
25714 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25715 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25716 dynamic_linker
='NetBSD (a.out) ld.so'
25718 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25719 soname_spec
='${libname}${release}${shared_ext}$major'
25720 dynamic_linker
='NetBSD ld.elf_so'
25722 shlibpath_var
=LD_LIBRARY_PATH
25723 shlibpath_overrides_runpath
=yes
25724 hardcode_into_libs
=yes
25729 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25730 shlibpath_var
=LD_LIBRARY_PATH
25731 shlibpath_overrides_runpath
=yes
25738 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25739 soname_spec
='${libname}${release}${shared_ext}$major'
25740 shlibpath_var
=LD_LIBRARY_PATH
25741 shlibpath_overrides_runpath
=yes
25746 sys_lib_dlsearch_path_spec
="/usr/lib"
25748 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25750 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
25751 *) need_version
=no
;;
25753 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25754 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25755 shlibpath_var
=LD_LIBRARY_PATH
25756 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25758 openbsd2.
[89] | openbsd2.
[89].
*)
25759 shlibpath_overrides_runpath
=no
25762 shlibpath_overrides_runpath
=yes
25766 shlibpath_overrides_runpath
=yes
25771 libname_spec
='$name'
25774 library_names_spec
='$libname${shared_ext} $libname.a'
25775 dynamic_linker
='OS/2 ld.exe'
25776 shlibpath_var
=LIBPATH
25779 osf3
* | osf4
* | osf5
*)
25783 soname_spec
='${libname}${release}${shared_ext}$major'
25784 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25785 shlibpath_var
=LD_LIBRARY_PATH
25786 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25787 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
25794 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25795 soname_spec
='${libname}${release}${shared_ext}$major'
25796 shlibpath_var
=LD_LIBRARY_PATH
25797 shlibpath_overrides_runpath
=yes
25798 hardcode_into_libs
=yes
25799 # ldd complains unless libraries are executable
25800 postinstall_cmds
='chmod +x $lib'
25805 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25806 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25807 shlibpath_var
=LD_LIBRARY_PATH
25808 shlibpath_overrides_runpath
=yes
25809 if test "$with_gnu_ld" = yes; then
25817 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25818 soname_spec
='${libname}${release}${shared_ext}$major'
25819 shlibpath_var
=LD_LIBRARY_PATH
25820 case $host_vendor in
25822 shlibpath_overrides_runpath
=no
25824 export_dynamic_flag_spec
='${wl}-Blargedynsym'
25825 runpath_var
=LD_RUN_PATH
25833 shlibpath_overrides_runpath
=no
25834 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
25840 if test -d /usr
/nec
;then
25842 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25843 soname_spec
='$libname${shared_ext}.$major'
25844 shlibpath_var
=LD_LIBRARY_PATH
25848 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
25849 version_type
=freebsd-elf
25852 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25853 soname_spec
='${libname}${release}${shared_ext}$major'
25854 shlibpath_var
=LD_LIBRARY_PATH
25855 hardcode_into_libs
=yes
25856 if test "$with_gnu_ld" = yes; then
25857 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25858 shlibpath_overrides_runpath
=no
25860 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
25861 shlibpath_overrides_runpath
=yes
25864 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
25868 sys_lib_dlsearch_path_spec
='/usr/lib'
25873 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25874 soname_spec
='${libname}${release}${shared_ext}$major'
25875 shlibpath_var
=LD_LIBRARY_PATH
25882 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25883 echo "${ECHO_T}$dynamic_linker" >&6; }
25884 test "$dynamic_linker" = no
&& can_build_shared
=no
25886 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
25887 if test "$GCC" = yes; then
25888 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25891 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25892 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25893 hardcode_action_GCJ
=
25894 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25895 test -n "$runpath_var_GCJ" || \
25896 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25898 # We can hardcode non-existant directories.
25899 if test "$hardcode_direct_GCJ" != no
&&
25900 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25901 # have to relink, otherwise we might link with an installed library
25902 # when we should be linking with a yet-to-be-installed one
25903 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25904 test "$hardcode_minus_L_GCJ" != no
; then
25905 # Linking always hardcodes the temporary library directory.
25906 hardcode_action_GCJ
=relink
25908 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25909 hardcode_action_GCJ
=immediate
25912 # We cannot hardcode anything, or else we can only hardcode existing
25914 hardcode_action_GCJ
=unsupported
25916 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25917 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25919 if test "$hardcode_action_GCJ" = relink
; then
25920 # Fast installation is not supported
25921 enable_fast_install
=no
25922 elif test "$shlibpath_overrides_runpath" = yes ||
25923 test "$enable_shared" = no
; then
25924 # Fast installation is not necessary
25925 enable_fast_install
=needless
25929 # The else clause should only fire when bootstrapping the
25930 # libtool distribution, otherwise you forgot to ship ltmain.sh
25931 # with your package, and you will get complaints that there are
25932 # no rules to generate ltmain.sh.
25933 if test -f "$ltmain"; then
25934 # See if we are running on zsh, and set the options which allow our commands through
25935 # without removal of \ escapes.
25936 if test -n "${ZSH_VERSION+set}" ; then
25937 setopt NO_GLOB_SUBST
25939 # Now quote all the things that may contain metacharacters while being
25940 # careful not to overquote the AC_SUBSTed values. We take copies of the
25941 # variables and quote the copies for generation of the libtool script.
25942 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25944 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25945 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25946 deplibs_check_method reload_flag reload_cmds need_locks \
25947 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25948 lt_cv_sys_global_symbol_to_c_name_address \
25949 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25950 old_postinstall_cmds old_postuninstall_cmds \
25954 lt_prog_compiler_wl_GCJ \
25955 lt_prog_compiler_pic_GCJ \
25956 lt_prog_compiler_static_GCJ \
25957 lt_prog_compiler_no_builtin_flag_GCJ \
25958 export_dynamic_flag_spec_GCJ \
25959 thread_safe_flag_spec_GCJ \
25960 whole_archive_flag_spec_GCJ \
25961 enable_shared_with_static_runtimes_GCJ \
25962 old_archive_cmds_GCJ \
25963 old_archive_from_new_cmds_GCJ \
25964 predep_objects_GCJ \
25965 postdep_objects_GCJ \
25968 compiler_lib_search_path_GCJ \
25970 archive_expsym_cmds_GCJ \
25971 postinstall_cmds_GCJ \
25972 postuninstall_cmds_GCJ \
25973 old_archive_from_expsyms_cmds_GCJ \
25974 allow_undefined_flag_GCJ \
25975 no_undefined_flag_GCJ \
25976 export_symbols_cmds_GCJ \
25977 hardcode_libdir_flag_spec_GCJ \
25978 hardcode_libdir_flag_spec_ld_GCJ \
25979 hardcode_libdir_separator_GCJ \
25980 hardcode_automatic_GCJ \
25982 module_expsym_cmds_GCJ \
25983 lt_cv_prog_compiler_c_o_GCJ \
25984 exclude_expsyms_GCJ \
25985 include_expsyms_GCJ
; do
25988 old_archive_cmds_GCJ | \
25989 old_archive_from_new_cmds_GCJ | \
25990 archive_cmds_GCJ | \
25991 archive_expsym_cmds_GCJ | \
25992 module_cmds_GCJ | \
25993 module_expsym_cmds_GCJ | \
25994 old_archive_from_expsyms_cmds_GCJ | \
25995 export_symbols_cmds_GCJ | \
25996 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25997 postinstall_cmds | postuninstall_cmds | \
25998 old_postinstall_cmds | old_postuninstall_cmds | \
25999 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
26000 # Double-quote double-evaled strings.
26001 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26004 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26010 *'\$0 --fallback-echo"')
26011 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26017 cat <<__EOF__ >> "$cfgfile"
26018 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26020 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26022 # Shell to use when invoking shell scripts.
26025 # Whether or not to build shared libraries.
26026 build_libtool_libs=$enable_shared
26028 # Whether or not to build static libraries.
26029 build_old_libs=$enable_static
26031 # Whether or not to add -lc for building shared libraries.
26032 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26034 # Whether or not to disallow shared libs when runtime libs are static
26035 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26037 # Whether or not to optimize for fast installation.
26038 fast_install=$enable_fast_install
26041 host_alias=$host_alias
26045 # The build system.
26046 build_alias=$build_alias
26050 # An echo program that does not interpret backslashes.
26055 AR_FLAGS=$lt_AR_FLAGS
26060 # LTCC compiler flags.
26061 LTCFLAGS=$lt_LTCFLAGS
26063 # A language-specific compiler.
26064 CC=$lt_compiler_GCJ
26066 # Is the compiler the GNU C compiler?
26072 # The linker used to build libraries.
26075 # Whether we need hard or soft links.
26078 # A BSD-compatible nm program.
26081 # A symbol stripping program
26084 # Used to examine libraries when file_magic_cmd begins "file"
26085 MAGIC_CMD=$MAGIC_CMD
26087 # Used on cygwin: DLL creation program.
26090 # Used on cygwin: object dumper.
26093 # Used on cygwin: assembler.
26096 # The name of the directory that contains temporary libtool files.
26099 # How to create reloadable object files.
26100 reload_flag=$lt_reload_flag
26101 reload_cmds=$lt_reload_cmds
26103 # How to pass a linker flag through the compiler.
26104 wl=$lt_lt_prog_compiler_wl_GCJ
26106 # Object file suffix (normally "o").
26107 objext="$ac_objext"
26109 # Old archive suffix (normally "a").
26112 # Shared library suffix (normally ".so").
26113 shrext_cmds='$shrext_cmds'
26115 # Executable file suffix (normally "").
26118 # Additional compiler flags for building library objects.
26119 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26122 # What is the maximum length of a command?
26123 max_cmd_len=$lt_cv_sys_max_cmd_len
26125 # Does compiler simultaneously support -c and -o options?
26126 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26128 # Must we lock files when doing compilation?
26129 need_locks=$lt_need_locks
26131 # Do we need the lib prefix for modules?
26132 need_lib_prefix=$need_lib_prefix
26134 # Do we need a version for libraries?
26135 need_version=$need_version
26137 # Whether dlopen is supported.
26138 dlopen_support=$enable_dlopen
26140 # Whether dlopen of programs is supported.
26141 dlopen_self=$enable_dlopen_self
26143 # Whether dlopen of statically linked programs is supported.
26144 dlopen_self_static=$enable_dlopen_self_static
26146 # Compiler flag to prevent dynamic linking.
26147 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26149 # Compiler flag to turn off builtin functions.
26150 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26152 # Compiler flag to allow reflexive dlopens.
26153 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26155 # Compiler flag to generate shared objects directly from archives.
26156 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26158 # Compiler flag to generate thread-safe objects.
26159 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26161 # Library versioning type.
26162 version_type=$version_type
26164 # Format of library name prefix.
26165 libname_spec=$lt_libname_spec
26167 # List of archive names. First name is the real one, the rest are links.
26168 # The last name is the one that the linker finds with -lNAME.
26169 library_names_spec=$lt_library_names_spec
26171 # The coded name of the library, if different from the real name.
26172 soname_spec=$lt_soname_spec
26174 # Commands used to build and install an old-style archive.
26176 old_archive_cmds=$lt_old_archive_cmds_GCJ
26177 old_postinstall_cmds=$lt_old_postinstall_cmds
26178 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26180 # Create an old-style archive from a shared archive.
26181 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26183 # Create a temporary old-style archive to link instead of a shared archive.
26184 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26186 # Commands used to build and install a shared archive.
26187 archive_cmds=$lt_archive_cmds_GCJ
26188 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26189 postinstall_cmds=$lt_postinstall_cmds
26190 postuninstall_cmds=$lt_postuninstall_cmds
26192 # Commands used to build a loadable module (assumed same as above if empty)
26193 module_cmds=$lt_module_cmds_GCJ
26194 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26196 # Commands to strip libraries.
26197 old_striplib=$lt_old_striplib
26198 striplib=$lt_striplib
26200 # Dependencies to place before the objects being linked to create a
26202 predep_objects=$lt_predep_objects_GCJ
26204 # Dependencies to place after the objects being linked to create a
26206 postdep_objects=$lt_postdep_objects_GCJ
26208 # Dependencies to place before the objects being linked to create a
26210 predeps=$lt_predeps_GCJ
26212 # Dependencies to place after the objects being linked to create a
26214 postdeps=$lt_postdeps_GCJ
26216 # The library search path used internally by the compiler when linking
26217 # a shared library.
26218 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26220 # Method to check whether dependent libraries are shared objects.
26221 deplibs_check_method=$lt_deplibs_check_method
26223 # Command to use when deplibs_check_method == file_magic.
26224 file_magic_cmd=$lt_file_magic_cmd
26226 # Flag that allows shared libraries with undefined symbols to be built.
26227 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26229 # Flag that forces no undefined symbols.
26230 no_undefined_flag=$lt_no_undefined_flag_GCJ
26232 # Commands used to finish a libtool library installation in a directory.
26233 finish_cmds=$lt_finish_cmds
26235 # Same as above, but a single script fragment to be evaled but not shown.
26236 finish_eval=$lt_finish_eval
26238 # Take the output of nm and produce a listing of raw symbols and C names.
26239 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26241 # Transform the output of nm in a proper C declaration
26242 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26244 # Transform the output of nm in a C name address pair
26245 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26247 # This is the shared library runtime path variable.
26248 runpath_var=$runpath_var
26250 # This is the shared library path variable.
26251 shlibpath_var=$shlibpath_var
26253 # Is shlibpath searched before the hard-coded library search path?
26254 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26256 # How to hardcode a shared library path into an executable.
26257 hardcode_action=$hardcode_action_GCJ
26259 # Whether we should hardcode library paths into libraries.
26260 hardcode_into_libs=$hardcode_into_libs
26262 # Flag to hardcode \$libdir into a binary during linking.
26263 # This must work even if \$libdir does not exist.
26264 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26266 # If ld is used when linking, flag to hardcode \$libdir into
26267 # a binary during linking. This must work even if \$libdir does
26269 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26271 # Whether we need a single -rpath flag with a separated argument.
26272 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26274 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26275 # resulting binary.
26276 hardcode_direct=$hardcode_direct_GCJ
26278 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26279 # resulting binary.
26280 hardcode_minus_L=$hardcode_minus_L_GCJ
26282 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26283 # the resulting binary.
26284 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26286 # Set to yes if building a shared library automatically hardcodes DIR into the library
26287 # and all subsequent libraries and executables linked against it.
26288 hardcode_automatic=$hardcode_automatic_GCJ
26290 # Variables whose values should be saved in libtool wrapper scripts and
26291 # restored at relink time.
26292 variables_saved_for_relink="$variables_saved_for_relink"
26294 # Whether libtool must link a program against all its dependency libraries.
26295 link_all_deplibs=$link_all_deplibs_GCJ
26297 # Compile-time system search path for libraries
26298 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26300 # Run-time system search path for libraries
26301 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26303 # Fix the shell variable \$srcfile for the compiler.
26304 fix_srcfile_path="$fix_srcfile_path_GCJ"
26306 # Set to yes if exported symbols are required.
26307 always_export_symbols=$always_export_symbols_GCJ
26309 # The commands to list exported symbols.
26310 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26312 # The commands to extract the exported symbol list from a shared archive.
26313 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26315 # Symbols that should not be listed in the preloaded symbols.
26316 exclude_expsyms=$lt_exclude_expsyms_GCJ
26318 # Symbols that must always be exported.
26319 include_expsyms=$lt_include_expsyms_GCJ
26321 # ### END LIBTOOL TAG CONFIG: $tagname
26327 # If there is no Makefile yet, we rely on a make rule to execute
26328 # `config.status --recheck' to rerun these tests and create the
26329 # libtool script then.
26330 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26331 if test -f "$ltmain_in"; then
26332 test -f Makefile
&& make "$ltmain"
26338 ac_cpp
='$CPP $CPPFLAGS'
26339 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26340 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26341 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26352 ac_cpp
='$CPP $CPPFLAGS'
26353 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26354 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26355 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26358 # Source file extension for RC test sources.
26361 # Object file extension for compiled RC test sources.
26365 # Code to be used in simple compile tests
26366 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26368 # Code to be used in simple link tests
26369 lt_simple_link_test_code
="$lt_simple_compile_test_code"
26371 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26373 # If no C compiler was specified, use CC.
26376 # If no C compiler flags were specified, use CFLAGS.
26377 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
26379 # Allow CC to be a program name with arguments.
26383 # save warnings/boilerplate of simple test code
26384 ac_outfile
=conftest.
$ac_objext
26385 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
26386 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
26387 _lt_compiler_boilerplate
=`cat conftest.err`
26390 ac_outfile
=conftest.
$ac_objext
26391 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
26392 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
26393 _lt_linker_boilerplate
=`cat conftest.err`
26397 # Allow CC to be a program name with arguments.
26402 for cc_temp
in $compiler""; do
26404 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
26405 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
26410 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26412 lt_cv_prog_compiler_c_o_RC
=yes
26414 # The else clause should only fire when bootstrapping the
26415 # libtool distribution, otherwise you forgot to ship ltmain.sh
26416 # with your package, and you will get complaints that there are
26417 # no rules to generate ltmain.sh.
26418 if test -f "$ltmain"; then
26419 # See if we are running on zsh, and set the options which allow our commands through
26420 # without removal of \ escapes.
26421 if test -n "${ZSH_VERSION+set}" ; then
26422 setopt NO_GLOB_SUBST
26424 # Now quote all the things that may contain metacharacters while being
26425 # careful not to overquote the AC_SUBSTed values. We take copies of the
26426 # variables and quote the copies for generation of the libtool script.
26427 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26429 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26430 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26431 deplibs_check_method reload_flag reload_cmds need_locks \
26432 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26433 lt_cv_sys_global_symbol_to_c_name_address \
26434 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26435 old_postinstall_cmds old_postuninstall_cmds \
26439 lt_prog_compiler_wl_RC \
26440 lt_prog_compiler_pic_RC \
26441 lt_prog_compiler_static_RC \
26442 lt_prog_compiler_no_builtin_flag_RC \
26443 export_dynamic_flag_spec_RC \
26444 thread_safe_flag_spec_RC \
26445 whole_archive_flag_spec_RC \
26446 enable_shared_with_static_runtimes_RC \
26447 old_archive_cmds_RC \
26448 old_archive_from_new_cmds_RC \
26449 predep_objects_RC \
26450 postdep_objects_RC \
26453 compiler_lib_search_path_RC \
26455 archive_expsym_cmds_RC \
26456 postinstall_cmds_RC \
26457 postuninstall_cmds_RC \
26458 old_archive_from_expsyms_cmds_RC \
26459 allow_undefined_flag_RC \
26460 no_undefined_flag_RC \
26461 export_symbols_cmds_RC \
26462 hardcode_libdir_flag_spec_RC \
26463 hardcode_libdir_flag_spec_ld_RC \
26464 hardcode_libdir_separator_RC \
26465 hardcode_automatic_RC \
26467 module_expsym_cmds_RC \
26468 lt_cv_prog_compiler_c_o_RC \
26469 exclude_expsyms_RC \
26470 include_expsyms_RC
; do
26473 old_archive_cmds_RC | \
26474 old_archive_from_new_cmds_RC | \
26475 archive_cmds_RC | \
26476 archive_expsym_cmds_RC | \
26478 module_expsym_cmds_RC | \
26479 old_archive_from_expsyms_cmds_RC | \
26480 export_symbols_cmds_RC | \
26481 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26482 postinstall_cmds | postuninstall_cmds | \
26483 old_postinstall_cmds | old_postuninstall_cmds | \
26484 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
26485 # Double-quote double-evaled strings.
26486 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26489 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26495 *'\$0 --fallback-echo"')
26496 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26502 cat <<__EOF__ >> "$cfgfile"
26503 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26505 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26507 # Shell to use when invoking shell scripts.
26510 # Whether or not to build shared libraries.
26511 build_libtool_libs=$enable_shared
26513 # Whether or not to build static libraries.
26514 build_old_libs=$enable_static
26516 # Whether or not to add -lc for building shared libraries.
26517 build_libtool_need_lc=$archive_cmds_need_lc_RC
26519 # Whether or not to disallow shared libs when runtime libs are static
26520 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26522 # Whether or not to optimize for fast installation.
26523 fast_install=$enable_fast_install
26526 host_alias=$host_alias
26530 # The build system.
26531 build_alias=$build_alias
26535 # An echo program that does not interpret backslashes.
26540 AR_FLAGS=$lt_AR_FLAGS
26545 # LTCC compiler flags.
26546 LTCFLAGS=$lt_LTCFLAGS
26548 # A language-specific compiler.
26551 # Is the compiler the GNU C compiler?
26557 # The linker used to build libraries.
26560 # Whether we need hard or soft links.
26563 # A BSD-compatible nm program.
26566 # A symbol stripping program
26569 # Used to examine libraries when file_magic_cmd begins "file"
26570 MAGIC_CMD=$MAGIC_CMD
26572 # Used on cygwin: DLL creation program.
26575 # Used on cygwin: object dumper.
26578 # Used on cygwin: assembler.
26581 # The name of the directory that contains temporary libtool files.
26584 # How to create reloadable object files.
26585 reload_flag=$lt_reload_flag
26586 reload_cmds=$lt_reload_cmds
26588 # How to pass a linker flag through the compiler.
26589 wl=$lt_lt_prog_compiler_wl_RC
26591 # Object file suffix (normally "o").
26592 objext="$ac_objext"
26594 # Old archive suffix (normally "a").
26597 # Shared library suffix (normally ".so").
26598 shrext_cmds='$shrext_cmds'
26600 # Executable file suffix (normally "").
26603 # Additional compiler flags for building library objects.
26604 pic_flag=$lt_lt_prog_compiler_pic_RC
26607 # What is the maximum length of a command?
26608 max_cmd_len=$lt_cv_sys_max_cmd_len
26610 # Does compiler simultaneously support -c and -o options?
26611 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26613 # Must we lock files when doing compilation?
26614 need_locks=$lt_need_locks
26616 # Do we need the lib prefix for modules?
26617 need_lib_prefix=$need_lib_prefix
26619 # Do we need a version for libraries?
26620 need_version=$need_version
26622 # Whether dlopen is supported.
26623 dlopen_support=$enable_dlopen
26625 # Whether dlopen of programs is supported.
26626 dlopen_self=$enable_dlopen_self
26628 # Whether dlopen of statically linked programs is supported.
26629 dlopen_self_static=$enable_dlopen_self_static
26631 # Compiler flag to prevent dynamic linking.
26632 link_static_flag=$lt_lt_prog_compiler_static_RC
26634 # Compiler flag to turn off builtin functions.
26635 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26637 # Compiler flag to allow reflexive dlopens.
26638 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26640 # Compiler flag to generate shared objects directly from archives.
26641 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26643 # Compiler flag to generate thread-safe objects.
26644 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26646 # Library versioning type.
26647 version_type=$version_type
26649 # Format of library name prefix.
26650 libname_spec=$lt_libname_spec
26652 # List of archive names. First name is the real one, the rest are links.
26653 # The last name is the one that the linker finds with -lNAME.
26654 library_names_spec=$lt_library_names_spec
26656 # The coded name of the library, if different from the real name.
26657 soname_spec=$lt_soname_spec
26659 # Commands used to build and install an old-style archive.
26661 old_archive_cmds=$lt_old_archive_cmds_RC
26662 old_postinstall_cmds=$lt_old_postinstall_cmds
26663 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26665 # Create an old-style archive from a shared archive.
26666 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26668 # Create a temporary old-style archive to link instead of a shared archive.
26669 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26671 # Commands used to build and install a shared archive.
26672 archive_cmds=$lt_archive_cmds_RC
26673 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26674 postinstall_cmds=$lt_postinstall_cmds
26675 postuninstall_cmds=$lt_postuninstall_cmds
26677 # Commands used to build a loadable module (assumed same as above if empty)
26678 module_cmds=$lt_module_cmds_RC
26679 module_expsym_cmds=$lt_module_expsym_cmds_RC
26681 # Commands to strip libraries.
26682 old_striplib=$lt_old_striplib
26683 striplib=$lt_striplib
26685 # Dependencies to place before the objects being linked to create a
26687 predep_objects=$lt_predep_objects_RC
26689 # Dependencies to place after the objects being linked to create a
26691 postdep_objects=$lt_postdep_objects_RC
26693 # Dependencies to place before the objects being linked to create a
26695 predeps=$lt_predeps_RC
26697 # Dependencies to place after the objects being linked to create a
26699 postdeps=$lt_postdeps_RC
26701 # The library search path used internally by the compiler when linking
26702 # a shared library.
26703 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26705 # Method to check whether dependent libraries are shared objects.
26706 deplibs_check_method=$lt_deplibs_check_method
26708 # Command to use when deplibs_check_method == file_magic.
26709 file_magic_cmd=$lt_file_magic_cmd
26711 # Flag that allows shared libraries with undefined symbols to be built.
26712 allow_undefined_flag=$lt_allow_undefined_flag_RC
26714 # Flag that forces no undefined symbols.
26715 no_undefined_flag=$lt_no_undefined_flag_RC
26717 # Commands used to finish a libtool library installation in a directory.
26718 finish_cmds=$lt_finish_cmds
26720 # Same as above, but a single script fragment to be evaled but not shown.
26721 finish_eval=$lt_finish_eval
26723 # Take the output of nm and produce a listing of raw symbols and C names.
26724 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26726 # Transform the output of nm in a proper C declaration
26727 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26729 # Transform the output of nm in a C name address pair
26730 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26732 # This is the shared library runtime path variable.
26733 runpath_var=$runpath_var
26735 # This is the shared library path variable.
26736 shlibpath_var=$shlibpath_var
26738 # Is shlibpath searched before the hard-coded library search path?
26739 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26741 # How to hardcode a shared library path into an executable.
26742 hardcode_action=$hardcode_action_RC
26744 # Whether we should hardcode library paths into libraries.
26745 hardcode_into_libs=$hardcode_into_libs
26747 # Flag to hardcode \$libdir into a binary during linking.
26748 # This must work even if \$libdir does not exist.
26749 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26751 # If ld is used when linking, flag to hardcode \$libdir into
26752 # a binary during linking. This must work even if \$libdir does
26754 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26756 # Whether we need a single -rpath flag with a separated argument.
26757 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26759 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26760 # resulting binary.
26761 hardcode_direct=$hardcode_direct_RC
26763 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26764 # resulting binary.
26765 hardcode_minus_L=$hardcode_minus_L_RC
26767 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26768 # the resulting binary.
26769 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26771 # Set to yes if building a shared library automatically hardcodes DIR into the library
26772 # and all subsequent libraries and executables linked against it.
26773 hardcode_automatic=$hardcode_automatic_RC
26775 # Variables whose values should be saved in libtool wrapper scripts and
26776 # restored at relink time.
26777 variables_saved_for_relink="$variables_saved_for_relink"
26779 # Whether libtool must link a program against all its dependency libraries.
26780 link_all_deplibs=$link_all_deplibs_RC
26782 # Compile-time system search path for libraries
26783 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26785 # Run-time system search path for libraries
26786 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26788 # Fix the shell variable \$srcfile for the compiler.
26789 fix_srcfile_path="$fix_srcfile_path_RC"
26791 # Set to yes if exported symbols are required.
26792 always_export_symbols=$always_export_symbols_RC
26794 # The commands to list exported symbols.
26795 export_symbols_cmds=$lt_export_symbols_cmds_RC
26797 # The commands to extract the exported symbol list from a shared archive.
26798 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26800 # Symbols that should not be listed in the preloaded symbols.
26801 exclude_expsyms=$lt_exclude_expsyms_RC
26803 # Symbols that must always be exported.
26804 include_expsyms=$lt_include_expsyms_RC
26806 # ### END LIBTOOL TAG CONFIG: $tagname
26812 # If there is no Makefile yet, we rely on a make rule to execute
26813 # `config.status --recheck' to rerun these tests and create the
26814 # libtool script then.
26815 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26816 if test -f "$ltmain_in"; then
26817 test -f Makefile
&& make "$ltmain"
26823 ac_cpp
='$CPP $CPPFLAGS'
26824 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26825 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26826 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26833 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26834 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26835 { (exit 1); exit 1; }; }
26839 # Append the new tag name to the list of available tags.
26840 if test -n "$tagname" ; then
26841 available_tags
="$available_tags $tagname"
26847 # Now substitute the updated list of available tags.
26848 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26849 mv "${ofile}T" "$ofile"
26853 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26854 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26855 { (exit 1); exit 1; }; }
26861 # This can be used to rebuild libtool when needed
26862 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
26864 # Always use our own libtool.
26865 LIBTOOL
='$(SHELL) $(top_builddir)/mklib'
26867 # Prevent multiple expansion
26889 if test "$lt_cv_dlopen_self" = "yes" ; then
26891 cat >>confdefs.h
<<\_ACEOF
26892 #define CAN_DLOPEN_SELF 1
26897 if test "$WITH_LLVMGCCDIR" = "default" ; then
26898 LLVMGCC
="llvm-gcc${EXEEXT}"
26899 LLVMGXX
="llvm-g++${EXEEXT}"
26900 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26901 set dummy
$LLVMGCC; ac_word
=$2
26902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26904 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26905 echo $ECHO_N "(cached) $ECHO_C" >&6
26909 ac_cv_path_LLVMGCC
="$LLVMGCC" # Let the user override the test with a path.
26912 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26913 for as_dir
in $PATH
26916 test -z "$as_dir" && as_dir
=.
26917 for ac_exec_ext
in '' $ac_executable_extensions; do
26918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26919 ac_cv_path_LLVMGCC
="$as_dir/$ac_word$ac_exec_ext"
26920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26930 LLVMGCC
=$ac_cv_path_LLVMGCC
26931 if test -n "$LLVMGCC"; then
26932 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26933 echo "${ECHO_T}$LLVMGCC" >&6; }
26935 { echo "$as_me:$LINENO: result: no" >&5
26936 echo "${ECHO_T}no" >&6; }
26940 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26941 set dummy
$LLVMGXX; ac_word
=$2
26942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26944 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26945 echo $ECHO_N "(cached) $ECHO_C" >&6
26949 ac_cv_path_LLVMGXX
="$LLVMGXX" # Let the user override the test with a path.
26952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26953 for as_dir
in $PATH
26956 test -z "$as_dir" && as_dir
=.
26957 for ac_exec_ext
in '' $ac_executable_extensions; do
26958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26959 ac_cv_path_LLVMGXX
="$as_dir/$ac_word$ac_exec_ext"
26960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26970 LLVMGXX
=$ac_cv_path_LLVMGXX
26971 if test -n "$LLVMGXX"; then
26972 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26973 echo "${ECHO_T}$LLVMGXX" >&6; }
26975 { echo "$as_me:$LINENO: result: no" >&5
26976 echo "${ECHO_T}no" >&6; }
26981 if test -z "$LLVMGCC"; then
26982 LLVMGCC
="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26984 if test -z "$LLVMGXX"; then
26985 LLVMGXX
="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26993 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26994 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27007 if test "$GCC" != "yes" && test "$ICC" != "yes"
27009 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27010 echo "$as_me: error: gcc|icc required but not found" >&2;}
27011 { (exit 1); exit 1; }; }
27014 if test "$GXX" != "yes" && test "$IXX" != "yes"
27016 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27017 echo "$as_me: error: g++|icc required but not found" >&2;}
27018 { (exit 1); exit 1; }; }
27021 if test "$GCC" = "yes"
27023 cat >conftest.
$ac_ext <<_ACEOF
27024 #if !defined(__GNUC__) || __GNUC__ < 3
27025 #error Unsupported GCC version
27029 rm -f conftest.
$ac_objext
27030 if { (ac_try
="$ac_compile"
27031 case "(($ac_try" in
27032 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27033 *) ac_try_echo=$ac_try;;
27035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27036 (eval "$ac_compile") 2>conftest.er1
27038 grep -v '^ *+' conftest.er1 >conftest.err
27040 cat conftest.err >&5
27041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042 (exit $ac_status); } &&
27043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27044 { (case "(($ac_try" in
27045 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27046 *) ac_try_echo
=$ac_try;;
27048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27049 (eval "$ac_try") 2>&5
27051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052 (exit $ac_status); }; } &&
27053 { ac_try
='test -s conftest.$ac_objext'
27054 { (case "(($ac_try" in
27055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27056 *) ac_try_echo=$ac_try;;
27058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27059 (eval "$ac_try") 2>&5
27061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); }; }; then
27065 echo "$as_me: failed program was:" >&5
27066 sed 's/^/| /' conftest.$ac_ext >&5
27068 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27069 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27070 { (exit 1); exit 1; }; }
27073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27076 if test -z "$llvm_cv_gnu_make_command"
27078 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27079 echo "$as_me: error: GNU Make required but not found" >&2;}
27080 { (exit 1); exit 1; }; }
27083 { echo "$as_me:$LINENO: result: ok" >&5
27084 echo "${ECHO_T}ok" >&6; }
27088 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27089 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27090 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27091 echo $ECHO_N "(cached) $ECHO_C" >&6
27093 ac_check_lib_save_LIBS=$LIBS
27095 cat >conftest.$ac_ext <<_ACEOF
27098 cat confdefs.h >>conftest.$ac_ext
27099 cat >>conftest.$ac_ext <<_ACEOF
27100 /* end confdefs.h. */
27102 /* Override any GCC internal prototype to avoid an error.
27103 Use char because int might match the return type of a GCC
27104 builtin and then its argument prototype would still apply. */
27112 return elf_begin ();
27117 rm -f conftest.$ac_objext conftest$ac_exeext
27118 if { (ac_try="$ac_link"
27119 case "(($ac_try" in
27120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27121 *) ac_try_echo
=$ac_try;;
27123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27124 (eval "$ac_link") 2>conftest.er1
27126 grep -v '^ *+' conftest.er1
>conftest.err
27128 cat conftest.err
>&5
27129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130 (exit $ac_status); } &&
27131 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27132 { (case "(($ac_try" in
27133 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27134 *) ac_try_echo=$ac_try;;
27136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27137 (eval "$ac_try") 2>&5
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); }; } &&
27141 { ac_try='test -s conftest$ac_exeext'
27142 { (case "(($ac_try" in
27143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27144 *) ac_try_echo
=$ac_try;;
27146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27147 (eval "$ac_try") 2>&5
27149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150 (exit $ac_status); }; }; then
27151 ac_cv_lib_elf_elf_begin
=yes
27153 echo "$as_me: failed program was:" >&5
27154 sed 's/^/| /' conftest.
$ac_ext >&5
27156 ac_cv_lib_elf_elf_begin
=no
27159 rm -f core conftest.err conftest.
$ac_objext \
27160 conftest
$ac_exeext conftest.
$ac_ext
27161 LIBS
=$ac_check_lib_save_LIBS
27163 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27164 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27165 if test $ac_cv_lib_elf_elf_begin = yes; then
27166 cat >>confdefs.h
<<_ACEOF
27167 #define HAVE_LIBELF 1
27175 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27176 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27177 if test "${ac_cv_lib_m_sin+set}" = set; then
27178 echo $ECHO_N "(cached) $ECHO_C" >&6
27180 ac_check_lib_save_LIBS
=$LIBS
27182 cat >conftest.
$ac_ext <<_ACEOF
27185 cat confdefs.h
>>conftest.
$ac_ext
27186 cat >>conftest.
$ac_ext <<_ACEOF
27187 /* end confdefs.h. */
27189 /* Override any GCC internal prototype to avoid an error.
27190 Use char because int might match the return type of a GCC
27191 builtin and then its argument prototype would still apply. */
27204 rm -f conftest.
$ac_objext conftest
$ac_exeext
27205 if { (ac_try
="$ac_link"
27206 case "(($ac_try" in
27207 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27208 *) ac_try_echo=$ac_try;;
27210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27211 (eval "$ac_link") 2>conftest.er1
27213 grep -v '^ *+' conftest.er1 >conftest.err
27215 cat conftest.err >&5
27216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27217 (exit $ac_status); } &&
27218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27219 { (case "(($ac_try" in
27220 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27221 *) ac_try_echo
=$ac_try;;
27223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27224 (eval "$ac_try") 2>&5
27226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27227 (exit $ac_status); }; } &&
27228 { ac_try
='test -s conftest$ac_exeext'
27229 { (case "(($ac_try" in
27230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27231 *) ac_try_echo=$ac_try;;
27233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27234 (eval "$ac_try") 2>&5
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); }; }; then
27238 ac_cv_lib_m_sin=yes
27240 echo "$as_me: failed program was:" >&5
27241 sed 's/^/| /' conftest.$ac_ext >&5
27246 rm -f core conftest.err conftest.$ac_objext \
27247 conftest$ac_exeext conftest.$ac_ext
27248 LIBS=$ac_check_lib_save_LIBS
27250 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27251 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27252 if test $ac_cv_lib_m_sin = yes; then
27253 cat >>confdefs.h <<_ACEOF
27254 #define HAVE_LIBM 1
27261 if test "$llvm_cv_os_type" = "MingW" ; then
27263 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27264 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27265 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27266 echo $ECHO_N "(cached) $ECHO_C" >&6
27268 ac_check_lib_save_LIBS=$LIBS
27269 LIBS="-limagehlp $LIBS"
27270 cat >conftest.$ac_ext <<_ACEOF
27273 cat confdefs.h >>conftest.$ac_ext
27274 cat >>conftest.$ac_ext <<_ACEOF
27275 /* end confdefs.h. */
27286 rm -f conftest.$ac_objext conftest$ac_exeext
27287 if { (ac_try="$ac_link"
27288 case "(($ac_try" in
27289 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27290 *) ac_try_echo
=$ac_try;;
27292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27293 (eval "$ac_link") 2>conftest.er1
27295 grep -v '^ *+' conftest.er1
>conftest.err
27297 cat conftest.err
>&5
27298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299 (exit $ac_status); } &&
27300 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27301 { (case "(($ac_try" in
27302 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27303 *) ac_try_echo=$ac_try;;
27305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27306 (eval "$ac_try") 2>&5
27308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27309 (exit $ac_status); }; } &&
27310 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27320 ac_cv_lib_imagehlp_main
=yes
27322 echo "$as_me: failed program was:" >&5
27323 sed 's/^/| /' conftest.
$ac_ext >&5
27325 ac_cv_lib_imagehlp_main
=no
27328 rm -f core conftest.err conftest.
$ac_objext \
27329 conftest
$ac_exeext conftest.
$ac_ext
27330 LIBS
=$ac_check_lib_save_LIBS
27332 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27333 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27334 if test $ac_cv_lib_imagehlp_main = yes; then
27335 cat >>confdefs.h
<<_ACEOF
27336 #define HAVE_LIBIMAGEHLP 1
27339 LIBS
="-limagehlp $LIBS"
27344 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27345 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27346 if test "${ac_cv_lib_psapi_main+set}" = set; then
27347 echo $ECHO_N "(cached) $ECHO_C" >&6
27349 ac_check_lib_save_LIBS
=$LIBS
27350 LIBS
="-lpsapi $LIBS"
27351 cat >conftest.
$ac_ext <<_ACEOF
27354 cat confdefs.h
>>conftest.
$ac_ext
27355 cat >>conftest.
$ac_ext <<_ACEOF
27356 /* end confdefs.h. */
27367 rm -f conftest.
$ac_objext conftest
$ac_exeext
27368 if { (ac_try
="$ac_link"
27369 case "(($ac_try" in
27370 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27371 *) ac_try_echo=$ac_try;;
27373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27374 (eval "$ac_link") 2>conftest.er1
27376 grep -v '^ *+' conftest.er1 >conftest.err
27378 cat conftest.err >&5
27379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380 (exit $ac_status); } &&
27381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27382 { (case "(($ac_try" in
27383 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27384 *) ac_try_echo
=$ac_try;;
27386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27387 (eval "$ac_try") 2>&5
27389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390 (exit $ac_status); }; } &&
27391 { ac_try
='test -s conftest$ac_exeext'
27392 { (case "(($ac_try" in
27393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27394 *) ac_try_echo=$ac_try;;
27396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27397 (eval "$ac_try") 2>&5
27399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400 (exit $ac_status); }; }; then
27401 ac_cv_lib_psapi_main=yes
27403 echo "$as_me: failed program was:" >&5
27404 sed 's/^/| /' conftest.$ac_ext >&5
27406 ac_cv_lib_psapi_main=no
27409 rm -f core conftest.err conftest.$ac_objext \
27410 conftest$ac_exeext conftest.$ac_ext
27411 LIBS=$ac_check_lib_save_LIBS
27413 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27414 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27415 if test $ac_cv_lib_psapi_main = yes; then
27416 cat >>confdefs.h <<_ACEOF
27417 #define HAVE_LIBPSAPI 1
27420 LIBS="-lpsapi $LIBS"
27426 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27427 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27428 if test "${ac_cv_search_dlopen+set}" = set; then
27429 echo $ECHO_N "(cached) $ECHO_C" >&6
27431 ac_func_search_save_LIBS=$LIBS
27432 cat >conftest.$ac_ext <<_ACEOF
27435 cat confdefs.h >>conftest.$ac_ext
27436 cat >>conftest.$ac_ext <<_ACEOF
27437 /* end confdefs.h. */
27439 /* Override any GCC internal prototype to avoid an error.
27440 Use char because int might match the return type of a GCC
27441 builtin and then its argument prototype would still apply. */
27454 for ac_lib in '' dl; do
27455 if test -z "$ac_lib"; then
27456 ac_res="none required"
27459 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27461 rm -f conftest.$ac_objext conftest$ac_exeext
27462 if { (ac_try="$ac_link"
27463 case "(($ac_try" in
27464 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27465 *) ac_try_echo
=$ac_try;;
27467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27468 (eval "$ac_link") 2>conftest.er1
27470 grep -v '^ *+' conftest.er1
>conftest.err
27472 cat conftest.err
>&5
27473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474 (exit $ac_status); } &&
27475 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27476 { (case "(($ac_try" in
27477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27478 *) ac_try_echo=$ac_try;;
27480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27481 (eval "$ac_try") 2>&5
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); }; } &&
27485 { ac_try='test -s conftest$ac_exeext'
27486 { (case "(($ac_try" in
27487 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27488 *) ac_try_echo
=$ac_try;;
27490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27491 (eval "$ac_try") 2>&5
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); }; }; then
27495 ac_cv_search_dlopen
=$ac_res
27497 echo "$as_me: failed program was:" >&5
27498 sed 's/^/| /' conftest.
$ac_ext >&5
27503 rm -f core conftest.err conftest.
$ac_objext \
27505 if test "${ac_cv_search_dlopen+set}" = set; then
27509 if test "${ac_cv_search_dlopen+set}" = set; then
27512 ac_cv_search_dlopen
=no
27514 rm conftest.
$ac_ext
27515 LIBS
=$ac_func_search_save_LIBS
27517 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27518 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27519 ac_res
=$ac_cv_search_dlopen
27520 if test "$ac_res" != no
; then
27521 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27523 cat >>confdefs.h
<<\_ACEOF
27524 #define HAVE_DLOPEN 1
27528 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27529 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27533 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27534 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27535 if test "${ac_cv_search_mallinfo+set}" = set; then
27536 echo $ECHO_N "(cached) $ECHO_C" >&6
27538 ac_func_search_save_LIBS
=$LIBS
27539 cat >conftest.
$ac_ext <<_ACEOF
27542 cat confdefs.h
>>conftest.
$ac_ext
27543 cat >>conftest.
$ac_ext <<_ACEOF
27544 /* end confdefs.h. */
27546 /* Override any GCC internal prototype to avoid an error.
27547 Use char because int might match the return type of a GCC
27548 builtin and then its argument prototype would still apply. */
27556 return mallinfo ();
27561 for ac_lib
in '' malloc
; do
27562 if test -z "$ac_lib"; then
27563 ac_res
="none required"
27566 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27568 rm -f conftest.
$ac_objext conftest
$ac_exeext
27569 if { (ac_try
="$ac_link"
27570 case "(($ac_try" in
27571 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27572 *) ac_try_echo=$ac_try;;
27574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27575 (eval "$ac_link") 2>conftest.er1
27577 grep -v '^ *+' conftest.er1 >conftest.err
27579 cat conftest.err >&5
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); } &&
27582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27583 { (case "(($ac_try" in
27584 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27585 *) ac_try_echo
=$ac_try;;
27587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27588 (eval "$ac_try") 2>&5
27590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591 (exit $ac_status); }; } &&
27592 { ac_try
='test -s conftest$ac_exeext'
27593 { (case "(($ac_try" in
27594 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27595 *) ac_try_echo=$ac_try;;
27597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27598 (eval "$ac_try") 2>&5
27600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27601 (exit $ac_status); }; }; then
27602 ac_cv_search_mallinfo=$ac_res
27604 echo "$as_me: failed program was:" >&5
27605 sed 's/^/| /' conftest.$ac_ext >&5
27610 rm -f core conftest.err conftest.$ac_objext \
27612 if test "${ac_cv_search_mallinfo+set}" = set; then
27616 if test "${ac_cv_search_mallinfo+set}" = set; then
27619 ac_cv_search_mallinfo=no
27621 rm conftest.$ac_ext
27622 LIBS=$ac_func_search_save_LIBS
27624 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27625 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27626 ac_res=$ac_cv_search_mallinfo
27627 if test "$ac_res" != no; then
27628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27630 cat >>confdefs.h <<\_ACEOF
27631 #define HAVE_MALLINFO 1
27637 if test "$ENABLE_THREADS" -eq 1 ; then
27639 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27640 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27641 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27642 echo $ECHO_N "(cached) $ECHO_C" >&6
27644 ac_check_lib_save_LIBS=$LIBS
27645 LIBS="-lpthread $LIBS"
27646 cat >conftest.$ac_ext <<_ACEOF
27649 cat confdefs.h >>conftest.$ac_ext
27650 cat >>conftest.$ac_ext <<_ACEOF
27651 /* end confdefs.h. */
27653 /* Override any GCC internal prototype to avoid an error.
27654 Use char because int might match the return type of a GCC
27655 builtin and then its argument prototype would still apply. */
27659 char pthread_mutex_init ();
27663 return pthread_mutex_init ();
27668 rm -f conftest.$ac_objext conftest$ac_exeext
27669 if { (ac_try="$ac_link"
27670 case "(($ac_try" in
27671 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27672 *) ac_try_echo
=$ac_try;;
27674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27675 (eval "$ac_link") 2>conftest.er1
27677 grep -v '^ *+' conftest.er1
>conftest.err
27679 cat conftest.err
>&5
27680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681 (exit $ac_status); } &&
27682 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27683 { (case "(($ac_try" in
27684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27685 *) ac_try_echo=$ac_try;;
27687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27688 (eval "$ac_try") 2>&5
27690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691 (exit $ac_status); }; } &&
27692 { ac_try='test -s conftest$ac_exeext'
27693 { (case "(($ac_try" in
27694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27695 *) ac_try_echo
=$ac_try;;
27697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27698 (eval "$ac_try") 2>&5
27700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701 (exit $ac_status); }; }; then
27702 ac_cv_lib_pthread_pthread_mutex_init
=yes
27704 echo "$as_me: failed program was:" >&5
27705 sed 's/^/| /' conftest.
$ac_ext >&5
27707 ac_cv_lib_pthread_pthread_mutex_init
=no
27710 rm -f core conftest.err conftest.
$ac_objext \
27711 conftest
$ac_exeext conftest.
$ac_ext
27712 LIBS
=$ac_check_lib_save_LIBS
27714 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27715 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27716 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27717 cat >>confdefs.h
<<_ACEOF
27718 #define HAVE_LIBPTHREAD 1
27721 LIBS
="-lpthread $LIBS"
27725 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27726 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27727 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27728 echo $ECHO_N "(cached) $ECHO_C" >&6
27730 ac_func_search_save_LIBS
=$LIBS
27731 cat >conftest.
$ac_ext <<_ACEOF
27734 cat confdefs.h
>>conftest.
$ac_ext
27735 cat >>conftest.
$ac_ext <<_ACEOF
27736 /* end confdefs.h. */
27738 /* Override any GCC internal prototype to avoid an error.
27739 Use char because int might match the return type of a GCC
27740 builtin and then its argument prototype would still apply. */
27744 char pthread_mutex_lock ();
27748 return pthread_mutex_lock ();
27753 for ac_lib
in '' pthread
; do
27754 if test -z "$ac_lib"; then
27755 ac_res
="none required"
27758 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27760 rm -f conftest.
$ac_objext conftest
$ac_exeext
27761 if { (ac_try
="$ac_link"
27762 case "(($ac_try" in
27763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27764 *) ac_try_echo=$ac_try;;
27766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27767 (eval "$ac_link") 2>conftest.er1
27769 grep -v '^ *+' conftest.er1 >conftest.err
27771 cat conftest.err >&5
27772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773 (exit $ac_status); } &&
27774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27775 { (case "(($ac_try" in
27776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27777 *) ac_try_echo
=$ac_try;;
27779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27780 (eval "$ac_try") 2>&5
27782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783 (exit $ac_status); }; } &&
27784 { ac_try
='test -s conftest$ac_exeext'
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_try") 2>&5
27792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793 (exit $ac_status); }; }; then
27794 ac_cv_search_pthread_mutex_lock=$ac_res
27796 echo "$as_me: failed program was:" >&5
27797 sed 's/^/| /' conftest.$ac_ext >&5
27802 rm -f core conftest.err conftest.$ac_objext \
27804 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27808 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27811 ac_cv_search_pthread_mutex_lock=no
27813 rm conftest.$ac_ext
27814 LIBS=$ac_func_search_save_LIBS
27816 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27817 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27818 ac_res=$ac_cv_search_pthread_mutex_lock
27819 if test "$ac_res" != no; then
27820 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27822 cat >>confdefs.h <<\_ACEOF
27823 #define HAVE_PTHREAD_MUTEX_LOCK 1
27831 # Check whether --with-udis86 was given.
27832 if test "${with_udis86+set}" = set; then
27833 withval=$with_udis86;
27838 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27841 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27842 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27843 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27844 echo $ECHO_N "(cached) $ECHO_C" >&6
27846 ac_check_lib_save_LIBS=$LIBS
27847 LIBS="-ludis86 $LIBS"
27848 cat >conftest.$ac_ext <<_ACEOF
27851 cat confdefs.h >>conftest.$ac_ext
27852 cat >>conftest.$ac_ext <<_ACEOF
27853 /* end confdefs.h. */
27855 /* Override any GCC internal prototype to avoid an error.
27856 Use char because int might match the return type of a GCC
27857 builtin and then its argument prototype would still apply. */
27870 rm -f conftest.$ac_objext conftest$ac_exeext
27871 if { (ac_try="$ac_link"
27872 case "(($ac_try" in
27873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27874 *) ac_try_echo
=$ac_try;;
27876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27877 (eval "$ac_link") 2>conftest.er1
27879 grep -v '^ *+' conftest.er1
>conftest.err
27881 cat conftest.err
>&5
27882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); } &&
27884 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27885 { (case "(($ac_try" in
27886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27887 *) ac_try_echo=$ac_try;;
27889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27890 (eval "$ac_try") 2>&5
27892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27893 (exit $ac_status); }; } &&
27894 { ac_try='test -s conftest$ac_exeext'
27895 { (case "(($ac_try" in
27896 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27897 *) ac_try_echo
=$ac_try;;
27899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27900 (eval "$ac_try") 2>&5
27902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27903 (exit $ac_status); }; }; then
27904 ac_cv_lib_udis86_ud_init
=yes
27906 echo "$as_me: failed program was:" >&5
27907 sed 's/^/| /' conftest.
$ac_ext >&5
27909 ac_cv_lib_udis86_ud_init
=no
27912 rm -f core conftest.err conftest.
$ac_objext \
27913 conftest
$ac_exeext conftest.
$ac_ext
27914 LIBS
=$ac_check_lib_save_LIBS
27916 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27917 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27918 if test $ac_cv_lib_udis86_ud_init = yes; then
27919 cat >>confdefs.h
<<_ACEOF
27920 #define HAVE_LIBUDIS86 1
27923 LIBS
="-ludis86 $LIBS"
27927 echo "Error! You need to have libudis86 around."
27939 cat >>confdefs.h
<<_ACEOF
27940 #define USE_UDIS86 $USE_UDIS86
27950 ac_header_dirent
=no
27951 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
27952 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27953 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27954 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27955 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27956 echo $ECHO_N "(cached) $ECHO_C" >&6
27958 cat >conftest.
$ac_ext <<_ACEOF
27961 cat confdefs.h
>>conftest.
$ac_ext
27962 cat >>conftest.
$ac_ext <<_ACEOF
27963 /* end confdefs.h. */
27964 #include <sys/types.h>
27976 rm -f conftest.
$ac_objext
27977 if { (ac_try
="$ac_compile"
27978 case "(($ac_try" in
27979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27980 *) ac_try_echo=$ac_try;;
27982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27983 (eval "$ac_compile") 2>conftest.er1
27985 grep -v '^ *+' conftest.er1 >conftest.err
27987 cat conftest.err >&5
27988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989 (exit $ac_status); } &&
27990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27991 { (case "(($ac_try" in
27992 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27993 *) ac_try_echo
=$ac_try;;
27995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27996 (eval "$ac_try") 2>&5
27998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999 (exit $ac_status); }; } &&
28000 { ac_try
='test -s conftest.$ac_objext'
28001 { (case "(($ac_try" in
28002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28003 *) ac_try_echo=$ac_try;;
28005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28006 (eval "$ac_try") 2>&5
28008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009 (exit $ac_status); }; }; then
28010 eval "$as_ac_Header=yes"
28012 echo "$as_me: failed program was:" >&5
28013 sed 's/^/| /' conftest.$ac_ext >&5
28015 eval "$as_ac_Header=no"
28018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28020 ac_res=`eval echo '${'$as_ac_Header'}'`
28021 { echo "$as_me:$LINENO: result: $ac_res" >&5
28022 echo "${ECHO_T}$ac_res" >&6; }
28023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28024 cat >>confdefs.h <<_ACEOF
28025 #define `echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
28028 ac_header_dirent=$ac_hdr; break
28032 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28033 if test $ac_header_dirent = dirent.h; then
28034 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28035 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28036 if test "${ac_cv_search_opendir+set}" = set; then
28037 echo $ECHO_N "(cached) $ECHO_C" >&6
28039 ac_func_search_save_LIBS=$LIBS
28040 cat >conftest.$ac_ext <<_ACEOF
28043 cat confdefs.h >>conftest.$ac_ext
28044 cat >>conftest.$ac_ext <<_ACEOF
28045 /* end confdefs.h. */
28047 /* Override any GCC internal prototype to avoid an error.
28048 Use char because int might match the return type of a GCC
28049 builtin and then its argument prototype would still apply. */
28062 for ac_lib in '' dir; do
28063 if test -z "$ac_lib"; then
28064 ac_res="none required"
28067 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28069 rm -f conftest.$ac_objext conftest$ac_exeext
28070 if { (ac_try="$ac_link"
28071 case "(($ac_try" in
28072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28073 *) ac_try_echo
=$ac_try;;
28075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28076 (eval "$ac_link") 2>conftest.er1
28078 grep -v '^ *+' conftest.er1
>conftest.err
28080 cat conftest.err
>&5
28081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28082 (exit $ac_status); } &&
28083 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28084 { (case "(($ac_try" in
28085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28086 *) ac_try_echo=$ac_try;;
28088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28089 (eval "$ac_try") 2>&5
28091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092 (exit $ac_status); }; } &&
28093 { ac_try='test -s conftest$ac_exeext'
28094 { (case "(($ac_try" in
28095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28096 *) ac_try_echo
=$ac_try;;
28098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28099 (eval "$ac_try") 2>&5
28101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28102 (exit $ac_status); }; }; then
28103 ac_cv_search_opendir
=$ac_res
28105 echo "$as_me: failed program was:" >&5
28106 sed 's/^/| /' conftest.
$ac_ext >&5
28111 rm -f core conftest.err conftest.
$ac_objext \
28113 if test "${ac_cv_search_opendir+set}" = set; then
28117 if test "${ac_cv_search_opendir+set}" = set; then
28120 ac_cv_search_opendir
=no
28122 rm conftest.
$ac_ext
28123 LIBS
=$ac_func_search_save_LIBS
28125 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28126 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28127 ac_res
=$ac_cv_search_opendir
28128 if test "$ac_res" != no
; then
28129 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28134 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28135 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28136 if test "${ac_cv_search_opendir+set}" = set; then
28137 echo $ECHO_N "(cached) $ECHO_C" >&6
28139 ac_func_search_save_LIBS
=$LIBS
28140 cat >conftest.
$ac_ext <<_ACEOF
28143 cat confdefs.h
>>conftest.
$ac_ext
28144 cat >>conftest.
$ac_ext <<_ACEOF
28145 /* end confdefs.h. */
28147 /* Override any GCC internal prototype to avoid an error.
28148 Use char because int might match the return type of a GCC
28149 builtin and then its argument prototype would still apply. */
28162 for ac_lib
in '' x
; do
28163 if test -z "$ac_lib"; then
28164 ac_res
="none required"
28167 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28169 rm -f conftest.
$ac_objext conftest
$ac_exeext
28170 if { (ac_try
="$ac_link"
28171 case "(($ac_try" in
28172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28173 *) ac_try_echo=$ac_try;;
28175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176 (eval "$ac_link") 2>conftest.er1
28178 grep -v '^ *+' conftest.er1 >conftest.err
28180 cat conftest.err >&5
28181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182 (exit $ac_status); } &&
28183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28184 { (case "(($ac_try" in
28185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28186 *) ac_try_echo
=$ac_try;;
28188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28189 (eval "$ac_try") 2>&5
28191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192 (exit $ac_status); }; } &&
28193 { ac_try
='test -s conftest$ac_exeext'
28194 { (case "(($ac_try" in
28195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28196 *) ac_try_echo=$ac_try;;
28198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28199 (eval "$ac_try") 2>&5
28201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202 (exit $ac_status); }; }; then
28203 ac_cv_search_opendir=$ac_res
28205 echo "$as_me: failed program was:" >&5
28206 sed 's/^/| /' conftest.$ac_ext >&5
28211 rm -f core conftest.err conftest.$ac_objext \
28213 if test "${ac_cv_search_opendir+set}" = set; then
28217 if test "${ac_cv_search_opendir+set}" = set; then
28220 ac_cv_search_opendir=no
28222 rm conftest.$ac_ext
28223 LIBS=$ac_func_search_save_LIBS
28225 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28226 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28227 ac_res=$ac_cv_search_opendir
28228 if test "$ac_res" != no; then
28229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28235 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28236 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28237 if test "${ac_cv_header_mmap_anon+set}" = set; then
28238 echo $ECHO_N "(cached) $ECHO_C" >&6
28241 ac_cpp='$CPP $CPPFLAGS'
28242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28246 cat >conftest.$ac_ext <<_ACEOF
28249 cat confdefs.h >>conftest.$ac_ext
28250 cat >>conftest.$ac_ext <<_ACEOF
28251 /* end confdefs.h. */
28252 #include <sys/mman.h>
28253 #include <unistd.h>
28258 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28263 rm -f conftest.$ac_objext
28264 if { (ac_try="$ac_compile"
28265 case "(($ac_try" in
28266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28267 *) ac_try_echo
=$ac_try;;
28269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28270 (eval "$ac_compile") 2>conftest.er1
28272 grep -v '^ *+' conftest.er1
>conftest.err
28274 cat conftest.err
>&5
28275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276 (exit $ac_status); } &&
28277 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28278 { (case "(($ac_try" in
28279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28280 *) ac_try_echo=$ac_try;;
28282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28283 (eval "$ac_try") 2>&5
28285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286 (exit $ac_status); }; } &&
28287 { ac_try='test -s conftest.$ac_objext'
28288 { (case "(($ac_try" in
28289 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28290 *) ac_try_echo
=$ac_try;;
28292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28293 (eval "$ac_try") 2>&5
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); }; }; then
28297 ac_cv_header_mmap_anon
=yes
28299 echo "$as_me: failed program was:" >&5
28300 sed 's/^/| /' conftest.
$ac_ext >&5
28302 ac_cv_header_mmap_anon
=no
28305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28307 ac_cpp
='$CPP $CPPFLAGS'
28308 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28309 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28310 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
28314 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28315 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28316 if test "$ac_cv_header_mmap_anon" = yes; then
28318 cat >>confdefs.h
<<\_ACEOF
28319 #define HAVE_MMAP_ANONYMOUS 1
28324 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28325 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28326 if test "${ac_cv_header_stat_broken+set}" = set; then
28327 echo $ECHO_N "(cached) $ECHO_C" >&6
28329 cat >conftest.
$ac_ext <<_ACEOF
28332 cat confdefs.h
>>conftest.
$ac_ext
28333 cat >>conftest.
$ac_ext <<_ACEOF
28334 /* end confdefs.h. */
28335 #include <sys/types.h>
28336 #include <sys/stat.h>
28338 #if defined S_ISBLK && defined S_IFDIR
28339 # if S_ISBLK (S_IFDIR)
28344 #if defined S_ISBLK && defined S_IFCHR
28345 # if S_ISBLK (S_IFCHR)
28350 #if defined S_ISLNK && defined S_IFREG
28351 # if S_ISLNK (S_IFREG)
28356 #if defined S_ISSOCK && defined S_IFREG
28357 # if S_ISSOCK (S_IFREG)
28363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28364 $EGREP "You lose" >/dev
/null
2>&1; then
28365 ac_cv_header_stat_broken
=yes
28367 ac_cv_header_stat_broken
=no
28372 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28373 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28374 if test $ac_cv_header_stat_broken = yes; then
28376 cat >>confdefs.h
<<\_ACEOF
28377 #define STAT_MACROS_BROKEN 1
28382 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28383 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28384 if test "${ac_cv_header_stdc+set}" = set; then
28385 echo $ECHO_N "(cached) $ECHO_C" >&6
28387 cat >conftest.
$ac_ext <<_ACEOF
28390 cat confdefs.h
>>conftest.
$ac_ext
28391 cat >>conftest.
$ac_ext <<_ACEOF
28392 /* end confdefs.h. */
28393 #include <stdlib.h>
28394 #include <stdarg.h>
28395 #include <string.h>
28406 rm -f conftest.
$ac_objext
28407 if { (ac_try
="$ac_compile"
28408 case "(($ac_try" in
28409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28410 *) ac_try_echo=$ac_try;;
28412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28413 (eval "$ac_compile") 2>conftest.er1
28415 grep -v '^ *+' conftest.er1 >conftest.err
28417 cat conftest.err >&5
28418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419 (exit $ac_status); } &&
28420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28421 { (case "(($ac_try" in
28422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28423 *) ac_try_echo
=$ac_try;;
28425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28426 (eval "$ac_try") 2>&5
28428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429 (exit $ac_status); }; } &&
28430 { ac_try
='test -s conftest.$ac_objext'
28431 { (case "(($ac_try" in
28432 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28433 *) ac_try_echo=$ac_try;;
28435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28436 (eval "$ac_try") 2>&5
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); }; }; then
28440 ac_cv_header_stdc=yes
28442 echo "$as_me: failed program was:" >&5
28443 sed 's/^/| /' conftest.$ac_ext >&5
28445 ac_cv_header_stdc=no
28448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28450 if test $ac_cv_header_stdc = yes; then
28451 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28452 cat >conftest.$ac_ext <<_ACEOF
28455 cat confdefs.h >>conftest.$ac_ext
28456 cat >>conftest.$ac_ext <<_ACEOF
28457 /* end confdefs.h. */
28458 #include <string.h>
28461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28462 $EGREP "memchr" >/dev/null 2>&1; then
28465 ac_cv_header_stdc=no
28471 if test $ac_cv_header_stdc = yes; then
28472 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28473 cat >conftest.$ac_ext <<_ACEOF
28476 cat confdefs.h >>conftest.$ac_ext
28477 cat >>conftest.$ac_ext <<_ACEOF
28478 /* end confdefs.h. */
28479 #include <stdlib.h>
28482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28483 $EGREP "free" >/dev/null 2>&1; then
28486 ac_cv_header_stdc=no
28492 if test $ac_cv_header_stdc = yes; then
28493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28494 if test "$cross_compiling" = yes; then
28497 cat >conftest.$ac_ext <<_ACEOF
28500 cat confdefs.h >>conftest.$ac_ext
28501 cat >>conftest.$ac_ext <<_ACEOF
28502 /* end confdefs.h. */
28504 #include <stdlib.h>
28505 #if ((' ' & 0x0FF) == 0x020)
28506 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28507 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28509 # define ISLOWER(c) \
28510 (('a' <= (c) && (c) <= 'i') \
28511 || ('j' <= (c) && (c) <= 'r') \
28512 || ('s' <= (c) && (c) <= 'z'))
28513 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28516 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28521 for (i = 0; i < 256; i++)
28522 if (XOR (islower (i), ISLOWER (i))
28523 || toupper (i) != TOUPPER (i))
28528 rm -f conftest$ac_exeext
28529 if { (ac_try="$ac_link"
28530 case "(($ac_try" in
28531 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28532 *) ac_try_echo
=$ac_try;;
28534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28535 (eval "$ac_link") 2>&5
28537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
28539 { (case "(($ac_try" in
28540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28541 *) ac_try_echo=$ac_try;;
28543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28544 (eval "$ac_try") 2>&5
28546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547 (exit $ac_status); }; }; then
28550 echo "$as_me: program exited with status $ac_status" >&5
28551 echo "$as_me: failed program was:" >&5
28552 sed 's/^/| /' conftest.$ac_ext >&5
28554 ( exit $ac_status )
28555 ac_cv_header_stdc=no
28557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28563 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28564 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28565 if test $ac_cv_header_stdc = yes; then
28567 cat >>confdefs.h <<\_ACEOF
28568 #define STDC_HEADERS 1
28573 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28574 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28575 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28576 echo $ECHO_N "(cached) $ECHO_C" >&6
28578 cat >conftest.$ac_ext <<_ACEOF
28581 cat confdefs.h >>conftest.$ac_ext
28582 cat >>conftest.$ac_ext <<_ACEOF
28583 /* end confdefs.h. */
28584 #include <sys/types.h>
28585 #include <sys/wait.h>
28586 #ifndef WEXITSTATUS
28587 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28590 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28598 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28603 rm -f conftest.$ac_objext
28604 if { (ac_try="$ac_compile"
28605 case "(($ac_try" in
28606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28607 *) ac_try_echo
=$ac_try;;
28609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28610 (eval "$ac_compile") 2>conftest.er1
28612 grep -v '^ *+' conftest.er1
>conftest.err
28614 cat conftest.err
>&5
28615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616 (exit $ac_status); } &&
28617 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28618 { (case "(($ac_try" in
28619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28620 *) ac_try_echo=$ac_try;;
28622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28623 (eval "$ac_try") 2>&5
28625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28626 (exit $ac_status); }; } &&
28627 { ac_try='test -s conftest.$ac_objext'
28628 { (case "(($ac_try" in
28629 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28630 *) ac_try_echo
=$ac_try;;
28632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28633 (eval "$ac_try") 2>&5
28635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636 (exit $ac_status); }; }; then
28637 ac_cv_header_sys_wait_h
=yes
28639 echo "$as_me: failed program was:" >&5
28640 sed 's/^/| /' conftest.
$ac_ext >&5
28642 ac_cv_header_sys_wait_h
=no
28645 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28647 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28648 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28649 if test $ac_cv_header_sys_wait_h = yes; then
28651 cat >>confdefs.h
<<\_ACEOF
28652 #define HAVE_SYS_WAIT_H 1
28657 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28658 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28659 if test "${ac_cv_header_time+set}" = set; then
28660 echo $ECHO_N "(cached) $ECHO_C" >&6
28662 cat >conftest.
$ac_ext <<_ACEOF
28665 cat confdefs.h
>>conftest.
$ac_ext
28666 cat >>conftest.
$ac_ext <<_ACEOF
28667 /* end confdefs.h. */
28668 #include <sys/types.h>
28669 #include <sys/time.h>
28675 if ((struct tm *) 0)
28681 rm -f conftest.
$ac_objext
28682 if { (ac_try
="$ac_compile"
28683 case "(($ac_try" in
28684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28685 *) ac_try_echo=$ac_try;;
28687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28688 (eval "$ac_compile") 2>conftest.er1
28690 grep -v '^ *+' conftest.er1 >conftest.err
28692 cat conftest.err >&5
28693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694 (exit $ac_status); } &&
28695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28696 { (case "(($ac_try" in
28697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28698 *) ac_try_echo
=$ac_try;;
28700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28701 (eval "$ac_try") 2>&5
28703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704 (exit $ac_status); }; } &&
28705 { ac_try
='test -s conftest.$ac_objext'
28706 { (case "(($ac_try" in
28707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28708 *) ac_try_echo=$ac_try;;
28710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28711 (eval "$ac_try") 2>&5
28713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714 (exit $ac_status); }; }; then
28715 ac_cv_header_time=yes
28717 echo "$as_me: failed program was:" >&5
28718 sed 's/^/| /' conftest.$ac_ext >&5
28720 ac_cv_header_time=no
28723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28725 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28726 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28727 if test $ac_cv_header_time = yes; then
28729 cat >>confdefs.h <<\_ACEOF
28730 #define TIME_WITH_SYS_TIME 1
28742 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28744 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
28745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28749 echo $ECHO_N "(cached) $ECHO_C" >&6
28751 ac_res=`eval echo '${'$as_ac_Header'}'`
28752 { echo "$as_me:$LINENO: result: $ac_res" >&5
28753 echo "${ECHO_T}$ac_res" >&6; }
28755 # Is the header compilable?
28756 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28758 cat >conftest.$ac_ext <<_ACEOF
28761 cat confdefs.h >>conftest.$ac_ext
28762 cat >>conftest.$ac_ext <<_ACEOF
28763 /* end confdefs.h. */
28764 $ac_includes_default
28765 #include <$ac_header>
28767 rm -f conftest.$ac_objext
28768 if { (ac_try="$ac_compile"
28769 case "(($ac_try" in
28770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28771 *) ac_try_echo
=$ac_try;;
28773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28774 (eval "$ac_compile") 2>conftest.er1
28776 grep -v '^ *+' conftest.er1
>conftest.err
28778 cat conftest.err
>&5
28779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780 (exit $ac_status); } &&
28781 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28782 { (case "(($ac_try" in
28783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28784 *) ac_try_echo=$ac_try;;
28786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28787 (eval "$ac_try") 2>&5
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); }; } &&
28791 { ac_try='test -s conftest.$ac_objext'
28792 { (case "(($ac_try" in
28793 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28794 *) ac_try_echo
=$ac_try;;
28796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28797 (eval "$ac_try") 2>&5
28799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800 (exit $ac_status); }; }; then
28801 ac_header_compiler
=yes
28803 echo "$as_me: failed program was:" >&5
28804 sed 's/^/| /' conftest.
$ac_ext >&5
28806 ac_header_compiler
=no
28809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28811 echo "${ECHO_T}$ac_header_compiler" >&6; }
28813 # Is the header present?
28814 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28816 cat >conftest.
$ac_ext <<_ACEOF
28819 cat confdefs.h
>>conftest.
$ac_ext
28820 cat >>conftest.
$ac_ext <<_ACEOF
28821 /* end confdefs.h. */
28822 #include <$ac_header>
28824 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28825 case "(($ac_try" in
28826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28827 *) ac_try_echo=$ac_try;;
28829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28832 grep -v '^ *+' conftest.er1 >conftest.err
28834 cat conftest.err >&5
28835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836 (exit $ac_status); } >/dev/null; then
28837 if test -s conftest.err; then
28838 ac_cpp_err=$ac_c_preproc_warn_flag
28839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28846 if test -z "$ac_cpp_err"; then
28847 ac_header_preproc=yes
28849 echo "$as_me: failed program was:" >&5
28850 sed 's/^/| /' conftest.$ac_ext >&5
28852 ac_header_preproc=no
28855 rm -f conftest.err conftest.$ac_ext
28856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28857 echo "${ECHO_T}$ac_header_preproc" >&6; }
28859 # So? What about this header?
28860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28866 ac_header_preproc=yes
28869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28882 ## ----------------------------------- ##
28883 ## Report this to llvmbugs@cs.uiuc.edu ##
28884 ## ----------------------------------- ##
28886 ) | sed "s/^/$as_me: WARNING: /" >&2
28889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28892 echo $ECHO_N "(cached) $ECHO_C" >&6
28894 eval "$as_ac_Header=\$ac_header_preproc"
28896 ac_res=`eval echo '${'$as_ac_Header'}'`
28897 { echo "$as_me:$LINENO: result: $ac_res" >&5
28898 echo "${ECHO_T}$ac_res" >&6; }
28901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28902 cat >>confdefs.h <<_ACEOF
28903 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
28916 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28918 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
28919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28923 echo $ECHO_N "(cached) $ECHO_C" >&6
28925 ac_res=`eval echo '${'$as_ac_Header'}'`
28926 { echo "$as_me:$LINENO: result: $ac_res" >&5
28927 echo "${ECHO_T}$ac_res" >&6; }
28929 # Is the header compilable?
28930 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28932 cat >conftest.$ac_ext <<_ACEOF
28935 cat confdefs.h >>conftest.$ac_ext
28936 cat >>conftest.$ac_ext <<_ACEOF
28937 /* end confdefs.h. */
28938 $ac_includes_default
28939 #include <$ac_header>
28941 rm -f conftest.$ac_objext
28942 if { (ac_try="$ac_compile"
28943 case "(($ac_try" in
28944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28945 *) ac_try_echo
=$ac_try;;
28947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28948 (eval "$ac_compile") 2>conftest.er1
28950 grep -v '^ *+' conftest.er1
>conftest.err
28952 cat conftest.err
>&5
28953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28954 (exit $ac_status); } &&
28955 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
28963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964 (exit $ac_status); }; } &&
28965 { ac_try='test -s conftest.$ac_objext'
28966 { (case "(($ac_try" in
28967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28968 *) ac_try_echo
=$ac_try;;
28970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28971 (eval "$ac_try") 2>&5
28973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974 (exit $ac_status); }; }; then
28975 ac_header_compiler
=yes
28977 echo "$as_me: failed program was:" >&5
28978 sed 's/^/| /' conftest.
$ac_ext >&5
28980 ac_header_compiler
=no
28983 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28985 echo "${ECHO_T}$ac_header_compiler" >&6; }
28987 # Is the header present?
28988 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28990 cat >conftest.
$ac_ext <<_ACEOF
28993 cat confdefs.h
>>conftest.
$ac_ext
28994 cat >>conftest.
$ac_ext <<_ACEOF
28995 /* end confdefs.h. */
28996 #include <$ac_header>
28998 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28999 case "(($ac_try" in
29000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29001 *) ac_try_echo=$ac_try;;
29003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29006 grep -v '^ *+' conftest.er1 >conftest.err
29008 cat conftest.err >&5
29009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010 (exit $ac_status); } >/dev/null; then
29011 if test -s conftest.err; then
29012 ac_cpp_err=$ac_c_preproc_warn_flag
29013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29020 if test -z "$ac_cpp_err"; then
29021 ac_header_preproc=yes
29023 echo "$as_me: failed program was:" >&5
29024 sed 's/^/| /' conftest.$ac_ext >&5
29026 ac_header_preproc=no
29029 rm -f conftest.err conftest.$ac_ext
29030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29031 echo "${ECHO_T}$ac_header_preproc" >&6; }
29033 # So? What about this header?
29034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29040 ac_header_preproc=yes
29043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29046 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29050 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29056 ## ----------------------------------- ##
29057 ## Report this to llvmbugs@cs.uiuc.edu ##
29058 ## ----------------------------------- ##
29060 ) | sed "s/^/$as_me: WARNING: /" >&2
29063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29066 echo $ECHO_N "(cached) $ECHO_C" >&6
29068 eval "$as_ac_Header=\$ac_header_preproc"
29070 ac_res=`eval echo '${'$as_ac_Header'}'`
29071 { echo "$as_me:$LINENO: result: $ac_res" >&5
29072 echo "${ECHO_T}$ac_res" >&6; }
29075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29076 cat >>confdefs.h <<_ACEOF
29077 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29085 for ac_header in windows.h
29087 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29089 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29092 echo $ECHO_N "(cached) $ECHO_C" >&6
29094 ac_res=`eval echo '${'$as_ac_Header'}'`
29095 { echo "$as_me:$LINENO: result: $ac_res" >&5
29096 echo "${ECHO_T}$ac_res" >&6; }
29098 # Is the header compilable?
29099 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29101 cat >conftest.$ac_ext <<_ACEOF
29104 cat confdefs.h >>conftest.$ac_ext
29105 cat >>conftest.$ac_ext <<_ACEOF
29106 /* end confdefs.h. */
29107 $ac_includes_default
29108 #include <$ac_header>
29110 rm -f conftest.$ac_objext
29111 if { (ac_try="$ac_compile"
29112 case "(($ac_try" in
29113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29114 *) ac_try_echo
=$ac_try;;
29116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29117 (eval "$ac_compile") 2>conftest.er1
29119 grep -v '^ *+' conftest.er1
>conftest.err
29121 cat conftest.err
>&5
29122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29123 (exit $ac_status); } &&
29124 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29125 { (case "(($ac_try" in
29126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29127 *) ac_try_echo=$ac_try;;
29129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29130 (eval "$ac_try") 2>&5
29132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29133 (exit $ac_status); }; } &&
29134 { ac_try='test -s conftest.$ac_objext'
29135 { (case "(($ac_try" in
29136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29137 *) ac_try_echo
=$ac_try;;
29139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29140 (eval "$ac_try") 2>&5
29142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143 (exit $ac_status); }; }; then
29144 ac_header_compiler
=yes
29146 echo "$as_me: failed program was:" >&5
29147 sed 's/^/| /' conftest.
$ac_ext >&5
29149 ac_header_compiler
=no
29152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29154 echo "${ECHO_T}$ac_header_compiler" >&6; }
29156 # Is the header present?
29157 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29159 cat >conftest.
$ac_ext <<_ACEOF
29162 cat confdefs.h
>>conftest.
$ac_ext
29163 cat >>conftest.
$ac_ext <<_ACEOF
29164 /* end confdefs.h. */
29165 #include <$ac_header>
29167 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29168 case "(($ac_try" in
29169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29170 *) ac_try_echo=$ac_try;;
29172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29175 grep -v '^ *+' conftest.er1 >conftest.err
29177 cat conftest.err >&5
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); } >/dev/null; then
29180 if test -s conftest.err; then
29181 ac_cpp_err=$ac_c_preproc_warn_flag
29182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29189 if test -z "$ac_cpp_err"; then
29190 ac_header_preproc=yes
29192 echo "$as_me: failed program was:" >&5
29193 sed 's/^/| /' conftest.$ac_ext >&5
29195 ac_header_preproc=no
29198 rm -f conftest.err conftest.$ac_ext
29199 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29200 echo "${ECHO_T}$ac_header_preproc" >&6; }
29202 # So? What about this header?
29203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29209 ac_header_preproc=yes
29212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29225 ## ----------------------------------- ##
29226 ## Report this to llvmbugs@cs.uiuc.edu ##
29227 ## ----------------------------------- ##
29229 ) | sed "s/^/$as_me: WARNING: /" >&2
29232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29235 echo $ECHO_N "(cached) $ECHO_C" >&6
29237 eval "$as_ac_Header=\$ac_header_preproc"
29239 ac_res=`eval echo '${'$as_ac_Header'}'`
29240 { echo "$as_me:$LINENO: result: $ac_res" >&5
29241 echo "${ECHO_T}$ac_res" >&6; }
29244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29245 cat >>confdefs.h <<_ACEOF
29246 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29257 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29259 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29264 echo $ECHO_N "(cached) $ECHO_C" >&6
29266 ac_res=`eval echo '${'$as_ac_Header'}'`
29267 { echo "$as_me:$LINENO: result: $ac_res" >&5
29268 echo "${ECHO_T}$ac_res" >&6; }
29270 # Is the header compilable?
29271 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29273 cat >conftest.$ac_ext <<_ACEOF
29276 cat confdefs.h >>conftest.$ac_ext
29277 cat >>conftest.$ac_ext <<_ACEOF
29278 /* end confdefs.h. */
29279 $ac_includes_default
29280 #include <$ac_header>
29282 rm -f conftest.$ac_objext
29283 if { (ac_try="$ac_compile"
29284 case "(($ac_try" in
29285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29286 *) ac_try_echo
=$ac_try;;
29288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29289 (eval "$ac_compile") 2>conftest.er1
29291 grep -v '^ *+' conftest.er1
>conftest.err
29293 cat conftest.err
>&5
29294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29295 (exit $ac_status); } &&
29296 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29297 { (case "(($ac_try" in
29298 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29299 *) ac_try_echo=$ac_try;;
29301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29302 (eval "$ac_try") 2>&5
29304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305 (exit $ac_status); }; } &&
29306 { ac_try='test -s conftest.$ac_objext'
29307 { (case "(($ac_try" in
29308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29309 *) ac_try_echo
=$ac_try;;
29311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29312 (eval "$ac_try") 2>&5
29314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315 (exit $ac_status); }; }; then
29316 ac_header_compiler
=yes
29318 echo "$as_me: failed program was:" >&5
29319 sed 's/^/| /' conftest.
$ac_ext >&5
29321 ac_header_compiler
=no
29324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29325 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29326 echo "${ECHO_T}$ac_header_compiler" >&6; }
29328 # Is the header present?
29329 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29331 cat >conftest.
$ac_ext <<_ACEOF
29334 cat confdefs.h
>>conftest.
$ac_ext
29335 cat >>conftest.
$ac_ext <<_ACEOF
29336 /* end confdefs.h. */
29337 #include <$ac_header>
29339 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29340 case "(($ac_try" in
29341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29342 *) ac_try_echo=$ac_try;;
29344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29347 grep -v '^ *+' conftest.er1 >conftest.err
29349 cat conftest.err >&5
29350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29351 (exit $ac_status); } >/dev/null; then
29352 if test -s conftest.err; then
29353 ac_cpp_err=$ac_c_preproc_warn_flag
29354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29361 if test -z "$ac_cpp_err"; then
29362 ac_header_preproc=yes
29364 echo "$as_me: failed program was:" >&5
29365 sed 's/^/| /' conftest.$ac_ext >&5
29367 ac_header_preproc=no
29370 rm -f conftest.err conftest.$ac_ext
29371 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29372 echo "${ECHO_T}$ac_header_preproc" >&6; }
29374 # So? What about this header?
29375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29380 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29381 ac_header_preproc=yes
29384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29387 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29388 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29389 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29390 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29391 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29394 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29395 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29397 ## ----------------------------------- ##
29398 ## Report this to llvmbugs@cs.uiuc.edu ##
29399 ## ----------------------------------- ##
29401 ) | sed "s/^/$as_me: WARNING: /" >&2
29404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29407 echo $ECHO_N "(cached) $ECHO_C" >&6
29409 eval "$as_ac_Header=\$ac_header_preproc"
29411 ac_res=`eval echo '${'$as_ac_Header'}'`
29412 { echo "$as_me:$LINENO: result: $ac_res" >&5
29413 echo "${ECHO_T}$ac_res" >&6; }
29416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29417 cat >>confdefs.h <<_ACEOF
29418 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29428 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29430 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29435 echo $ECHO_N "(cached) $ECHO_C" >&6
29437 ac_res=`eval echo '${'$as_ac_Header'}'`
29438 { echo "$as_me:$LINENO: result: $ac_res" >&5
29439 echo "${ECHO_T}$ac_res" >&6; }
29441 # Is the header compilable?
29442 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29444 cat >conftest.$ac_ext <<_ACEOF
29447 cat confdefs.h >>conftest.$ac_ext
29448 cat >>conftest.$ac_ext <<_ACEOF
29449 /* end confdefs.h. */
29450 $ac_includes_default
29451 #include <$ac_header>
29453 rm -f conftest.$ac_objext
29454 if { (ac_try="$ac_compile"
29455 case "(($ac_try" in
29456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29457 *) ac_try_echo
=$ac_try;;
29459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29460 (eval "$ac_compile") 2>conftest.er1
29462 grep -v '^ *+' conftest.er1
>conftest.err
29464 cat conftest.err
>&5
29465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29466 (exit $ac_status); } &&
29467 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29468 { (case "(($ac_try" in
29469 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29470 *) ac_try_echo=$ac_try;;
29472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29473 (eval "$ac_try") 2>&5
29475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476 (exit $ac_status); }; } &&
29477 { ac_try='test -s conftest.$ac_objext'
29478 { (case "(($ac_try" in
29479 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29480 *) ac_try_echo
=$ac_try;;
29482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29483 (eval "$ac_try") 2>&5
29485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486 (exit $ac_status); }; }; then
29487 ac_header_compiler
=yes
29489 echo "$as_me: failed program was:" >&5
29490 sed 's/^/| /' conftest.
$ac_ext >&5
29492 ac_header_compiler
=no
29495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29496 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29497 echo "${ECHO_T}$ac_header_compiler" >&6; }
29499 # Is the header present?
29500 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29502 cat >conftest.
$ac_ext <<_ACEOF
29505 cat confdefs.h
>>conftest.
$ac_ext
29506 cat >>conftest.
$ac_ext <<_ACEOF
29507 /* end confdefs.h. */
29508 #include <$ac_header>
29510 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29511 case "(($ac_try" in
29512 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29513 *) ac_try_echo=$ac_try;;
29515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29518 grep -v '^ *+' conftest.er1 >conftest.err
29520 cat conftest.err >&5
29521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522 (exit $ac_status); } >/dev/null; then
29523 if test -s conftest.err; then
29524 ac_cpp_err=$ac_c_preproc_warn_flag
29525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29532 if test -z "$ac_cpp_err"; then
29533 ac_header_preproc=yes
29535 echo "$as_me: failed program was:" >&5
29536 sed 's/^/| /' conftest.$ac_ext >&5
29538 ac_header_preproc=no
29541 rm -f conftest.err conftest.$ac_ext
29542 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29543 echo "${ECHO_T}$ac_header_preproc" >&6; }
29545 # So? What about this header?
29546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29552 ac_header_preproc=yes
29555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29568 ## ----------------------------------- ##
29569 ## Report this to llvmbugs@cs.uiuc.edu ##
29570 ## ----------------------------------- ##
29572 ) | sed "s/^/$as_me: WARNING: /" >&2
29575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29578 echo $ECHO_N "(cached) $ECHO_C" >&6
29580 eval "$as_ac_Header=\$ac_header_preproc"
29582 ac_res=`eval echo '${'$as_ac_Header'}'`
29583 { echo "$as_me:$LINENO: result: $ac_res" >&5
29584 echo "${ECHO_T}$ac_res" >&6; }
29587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29588 cat >>confdefs.h <<_ACEOF
29589 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29596 if test "$ENABLE_THREADS" -eq 1 ; then
29598 for ac_header in pthread.h
29600 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29605 echo $ECHO_N "(cached) $ECHO_C" >&6
29607 ac_res=`eval echo '${'$as_ac_Header'}'`
29608 { echo "$as_me:$LINENO: result: $ac_res" >&5
29609 echo "${ECHO_T}$ac_res" >&6; }
29611 # Is the header compilable?
29612 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29614 cat >conftest.$ac_ext <<_ACEOF
29617 cat confdefs.h >>conftest.$ac_ext
29618 cat >>conftest.$ac_ext <<_ACEOF
29619 /* end confdefs.h. */
29620 $ac_includes_default
29621 #include <$ac_header>
29623 rm -f conftest.$ac_objext
29624 if { (ac_try="$ac_compile"
29625 case "(($ac_try" in
29626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29627 *) ac_try_echo
=$ac_try;;
29629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29630 (eval "$ac_compile") 2>conftest.er1
29632 grep -v '^ *+' conftest.er1
>conftest.err
29634 cat conftest.err
>&5
29635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29636 (exit $ac_status); } &&
29637 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29638 { (case "(($ac_try" in
29639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29640 *) ac_try_echo=$ac_try;;
29642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29643 (eval "$ac_try") 2>&5
29645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29646 (exit $ac_status); }; } &&
29647 { ac_try='test -s conftest.$ac_objext'
29648 { (case "(($ac_try" in
29649 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29650 *) ac_try_echo
=$ac_try;;
29652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29653 (eval "$ac_try") 2>&5
29655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656 (exit $ac_status); }; }; then
29657 ac_header_compiler
=yes
29659 echo "$as_me: failed program was:" >&5
29660 sed 's/^/| /' conftest.
$ac_ext >&5
29662 ac_header_compiler
=no
29665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29667 echo "${ECHO_T}$ac_header_compiler" >&6; }
29669 # Is the header present?
29670 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29672 cat >conftest.
$ac_ext <<_ACEOF
29675 cat confdefs.h
>>conftest.
$ac_ext
29676 cat >>conftest.
$ac_ext <<_ACEOF
29677 /* end confdefs.h. */
29678 #include <$ac_header>
29680 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29681 case "(($ac_try" in
29682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29683 *) ac_try_echo=$ac_try;;
29685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29688 grep -v '^ *+' conftest.er1 >conftest.err
29690 cat conftest.err >&5
29691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692 (exit $ac_status); } >/dev/null; then
29693 if test -s conftest.err; then
29694 ac_cpp_err=$ac_c_preproc_warn_flag
29695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29702 if test -z "$ac_cpp_err"; then
29703 ac_header_preproc=yes
29705 echo "$as_me: failed program was:" >&5
29706 sed 's/^/| /' conftest.$ac_ext >&5
29708 ac_header_preproc=no
29711 rm -f conftest.err conftest.$ac_ext
29712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29713 echo "${ECHO_T}$ac_header_preproc" >&6; }
29715 # So? What about this header?
29716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29722 ac_header_preproc=yes
29725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29728 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29732 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29738 ## ----------------------------------- ##
29739 ## Report this to llvmbugs@cs.uiuc.edu ##
29740 ## ----------------------------------- ##
29742 ) | sed "s/^/$as_me: WARNING: /" >&2
29745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29748 echo $ECHO_N "(cached) $ECHO_C" >&6
29750 eval "$as_ac_Header=\$ac_header_preproc"
29752 ac_res=`eval echo '${'$as_ac_Header'}'`
29753 { echo "$as_me:$LINENO: result: $ac_res" >&5
29754 echo "${ECHO_T}$ac_res" >&6; }
29757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29758 cat >>confdefs.h <<_ACEOF
29759 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29777 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29778 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29779 if test "${ac_cv_huge_val_sanity+set}" = set; then
29780 echo $ECHO_N "(cached) $ECHO_C" >&6
29784 ac_cpp='$CXXCPP $CPPFLAGS'
29785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29790 if test "$cross_compiling" = yes; then
29791 ac_cv_huge_val_sanity=yes
29793 cat >conftest.$ac_ext <<_ACEOF
29796 cat confdefs.h >>conftest.$ac_ext
29797 cat >>conftest.$ac_ext <<_ACEOF
29798 /* end confdefs.h. */
29803 double x = HUGE_VAL; return x != x;
29808 rm -f conftest$ac_exeext
29809 if { (ac_try="$ac_link"
29810 case "(($ac_try" in
29811 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29812 *) ac_try_echo
=$ac_try;;
29814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29815 (eval "$ac_link") 2>&5
29817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
29819 { (case "(($ac_try" in
29820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29821 *) ac_try_echo=$ac_try;;
29823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29824 (eval "$ac_try") 2>&5
29826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827 (exit $ac_status); }; }; then
29828 ac_cv_huge_val_sanity=yes
29830 echo "$as_me: program exited with status $ac_status" >&5
29831 echo "$as_me: failed program was:" >&5
29832 sed 's/^/| /' conftest.$ac_ext >&5
29834 ( exit $ac_status )
29835 ac_cv_huge_val_sanity=no
29837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29842 ac_cpp='$CPP $CPPFLAGS'
29843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29849 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29850 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29851 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29854 { echo "$as_me:$LINENO: checking for pid_t" >&5
29855 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29856 if test "${ac_cv_type_pid_t+set}" = set; then
29857 echo $ECHO_N "(cached) $ECHO_C" >&6
29859 cat >conftest.$ac_ext <<_ACEOF
29862 cat confdefs.h >>conftest.$ac_ext
29863 cat >>conftest.$ac_ext <<_ACEOF
29864 /* end confdefs.h. */
29865 $ac_includes_default
29866 typedef pid_t ac__type_new_;
29870 if ((ac__type_new_ *) 0)
29872 if (sizeof (ac__type_new_))
29878 rm -f conftest.$ac_objext
29879 if { (ac_try="$ac_compile"
29880 case "(($ac_try" in
29881 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29882 *) ac_try_echo
=$ac_try;;
29884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29885 (eval "$ac_compile") 2>conftest.er1
29887 grep -v '^ *+' conftest.er1
>conftest.err
29889 cat conftest.err
>&5
29890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891 (exit $ac_status); } &&
29892 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29893 { (case "(($ac_try" in
29894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29895 *) ac_try_echo=$ac_try;;
29897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29898 (eval "$ac_try") 2>&5
29900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29901 (exit $ac_status); }; } &&
29902 { ac_try='test -s conftest.$ac_objext'
29903 { (case "(($ac_try" in
29904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29905 *) ac_try_echo
=$ac_try;;
29907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29908 (eval "$ac_try") 2>&5
29910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911 (exit $ac_status); }; }; then
29912 ac_cv_type_pid_t
=yes
29914 echo "$as_me: failed program was:" >&5
29915 sed 's/^/| /' conftest.
$ac_ext >&5
29917 ac_cv_type_pid_t
=no
29920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29922 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29923 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29924 if test $ac_cv_type_pid_t = yes; then
29928 cat >>confdefs.h
<<_ACEOF
29934 { echo "$as_me:$LINENO: checking for size_t" >&5
29935 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29936 if test "${ac_cv_type_size_t+set}" = set; then
29937 echo $ECHO_N "(cached) $ECHO_C" >&6
29939 cat >conftest.
$ac_ext <<_ACEOF
29942 cat confdefs.h
>>conftest.
$ac_ext
29943 cat >>conftest.
$ac_ext <<_ACEOF
29944 /* end confdefs.h. */
29945 $ac_includes_default
29946 typedef size_t ac__type_new_;
29950 if ((ac__type_new_ *) 0)
29952 if (sizeof (ac__type_new_))
29958 rm -f conftest.
$ac_objext
29959 if { (ac_try
="$ac_compile"
29960 case "(($ac_try" in
29961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29962 *) ac_try_echo=$ac_try;;
29964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29965 (eval "$ac_compile") 2>conftest.er1
29967 grep -v '^ *+' conftest.er1 >conftest.err
29969 cat conftest.err >&5
29970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971 (exit $ac_status); } &&
29972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29973 { (case "(($ac_try" in
29974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29975 *) ac_try_echo
=$ac_try;;
29977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29978 (eval "$ac_try") 2>&5
29980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29981 (exit $ac_status); }; } &&
29982 { ac_try
='test -s conftest.$ac_objext'
29983 { (case "(($ac_try" in
29984 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29985 *) ac_try_echo=$ac_try;;
29987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29988 (eval "$ac_try") 2>&5
29990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29991 (exit $ac_status); }; }; then
29992 ac_cv_type_size_t=yes
29994 echo "$as_me: failed program was:" >&5
29995 sed 's/^/| /' conftest.$ac_ext >&5
29997 ac_cv_type_size_t=no
30000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30002 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30003 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30004 if test $ac_cv_type_size_t = yes; then
30008 cat >>confdefs.h <<_ACEOF
30009 #define size_t unsigned int
30014 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30015 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30016 if test "${ac_cv_type_signal+set}" = set; then
30017 echo $ECHO_N "(cached) $ECHO_C" >&6
30019 cat >conftest.$ac_ext <<_ACEOF
30022 cat confdefs.h >>conftest.$ac_ext
30023 cat >>conftest.$ac_ext <<_ACEOF
30024 /* end confdefs.h. */
30025 #include <sys/types.h>
30026 #include <signal.h>
30031 return *(signal (0, 0)) (0) == 1;
30036 rm -f conftest.$ac_objext
30037 if { (ac_try="$ac_compile"
30038 case "(($ac_try" in
30039 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30040 *) ac_try_echo
=$ac_try;;
30042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30043 (eval "$ac_compile") 2>conftest.er1
30045 grep -v '^ *+' conftest.er1
>conftest.err
30047 cat conftest.err
>&5
30048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049 (exit $ac_status); } &&
30050 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30051 { (case "(($ac_try" in
30052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30053 *) ac_try_echo=$ac_try;;
30055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30056 (eval "$ac_try") 2>&5
30058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059 (exit $ac_status); }; } &&
30060 { ac_try='test -s conftest.$ac_objext'
30061 { (case "(($ac_try" in
30062 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30063 *) ac_try_echo
=$ac_try;;
30065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30066 (eval "$ac_try") 2>&5
30068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30069 (exit $ac_status); }; }; then
30070 ac_cv_type_signal
=int
30072 echo "$as_me: failed program was:" >&5
30073 sed 's/^/| /' conftest.
$ac_ext >&5
30075 ac_cv_type_signal
=void
30078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30080 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30081 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30083 cat >>confdefs.h
<<_ACEOF
30084 #define RETSIGTYPE $ac_cv_type_signal
30088 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30089 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30090 if test "${ac_cv_struct_tm+set}" = set; then
30091 echo $ECHO_N "(cached) $ECHO_C" >&6
30093 cat >conftest.
$ac_ext <<_ACEOF
30096 cat confdefs.h
>>conftest.
$ac_ext
30097 cat >>conftest.
$ac_ext <<_ACEOF
30098 /* end confdefs.h. */
30099 #include <sys/types.h>
30105 struct tm *tp; tp->tm_sec;
30110 rm -f conftest.
$ac_objext
30111 if { (ac_try
="$ac_compile"
30112 case "(($ac_try" in
30113 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30114 *) ac_try_echo=$ac_try;;
30116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30117 (eval "$ac_compile") 2>conftest.er1
30119 grep -v '^ *+' conftest.er1 >conftest.err
30121 cat conftest.err >&5
30122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30123 (exit $ac_status); } &&
30124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30125 { (case "(($ac_try" in
30126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30127 *) ac_try_echo
=$ac_try;;
30129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30130 (eval "$ac_try") 2>&5
30132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30133 (exit $ac_status); }; } &&
30134 { ac_try
='test -s conftest.$ac_objext'
30135 { (case "(($ac_try" in
30136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30137 *) ac_try_echo=$ac_try;;
30139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30140 (eval "$ac_try") 2>&5
30142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30143 (exit $ac_status); }; }; then
30144 ac_cv_struct_tm=time.h
30146 echo "$as_me: failed program was:" >&5
30147 sed 's/^/| /' conftest.$ac_ext >&5
30149 ac_cv_struct_tm=sys/time.h
30152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30154 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30155 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30156 if test $ac_cv_struct_tm = sys/time.h; then
30158 cat >>confdefs.h <<\_ACEOF
30159 #define TM_IN_SYS_TIME 1
30164 { echo "$as_me:$LINENO: checking for int64_t" >&5
30165 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30166 if test "${ac_cv_type_int64_t+set}" = set; then
30167 echo $ECHO_N "(cached) $ECHO_C" >&6
30169 cat >conftest.$ac_ext <<_ACEOF
30172 cat confdefs.h >>conftest.$ac_ext
30173 cat >>conftest.$ac_ext <<_ACEOF
30174 /* end confdefs.h. */
30175 $ac_includes_default
30176 typedef int64_t ac__type_new_;
30180 if ((ac__type_new_ *) 0)
30182 if (sizeof (ac__type_new_))
30188 rm -f conftest.$ac_objext
30189 if { (ac_try="$ac_compile"
30190 case "(($ac_try" in
30191 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30192 *) ac_try_echo
=$ac_try;;
30194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30195 (eval "$ac_compile") 2>conftest.er1
30197 grep -v '^ *+' conftest.er1
>conftest.err
30199 cat conftest.err
>&5
30200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30201 (exit $ac_status); } &&
30202 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30203 { (case "(($ac_try" in
30204 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30205 *) ac_try_echo=$ac_try;;
30207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30208 (eval "$ac_try") 2>&5
30210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30211 (exit $ac_status); }; } &&
30212 { ac_try='test -s conftest.$ac_objext'
30213 { (case "(($ac_try" in
30214 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30215 *) ac_try_echo
=$ac_try;;
30217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30218 (eval "$ac_try") 2>&5
30220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30221 (exit $ac_status); }; }; then
30222 ac_cv_type_int64_t
=yes
30224 echo "$as_me: failed program was:" >&5
30225 sed 's/^/| /' conftest.
$ac_ext >&5
30227 ac_cv_type_int64_t
=no
30230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30232 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30233 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30234 if test $ac_cv_type_int64_t = yes; then
30236 cat >>confdefs.h
<<_ACEOF
30237 #define HAVE_INT64_T 1
30242 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30243 echo "$as_me: error: Type int64_t required but not found" >&2;}
30244 { (exit 1); exit 1; }; }
30247 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30248 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30249 if test "${ac_cv_type_uint64_t+set}" = set; then
30250 echo $ECHO_N "(cached) $ECHO_C" >&6
30252 cat >conftest.
$ac_ext <<_ACEOF
30255 cat confdefs.h
>>conftest.
$ac_ext
30256 cat >>conftest.
$ac_ext <<_ACEOF
30257 /* end confdefs.h. */
30258 $ac_includes_default
30259 typedef uint64_t ac__type_new_;
30263 if ((ac__type_new_ *) 0)
30265 if (sizeof (ac__type_new_))
30271 rm -f conftest.
$ac_objext
30272 if { (ac_try
="$ac_compile"
30273 case "(($ac_try" in
30274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30275 *) ac_try_echo=$ac_try;;
30277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30278 (eval "$ac_compile") 2>conftest.er1
30280 grep -v '^ *+' conftest.er1 >conftest.err
30282 cat conftest.err >&5
30283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); } &&
30285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30286 { (case "(($ac_try" in
30287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30288 *) ac_try_echo
=$ac_try;;
30290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30291 (eval "$ac_try") 2>&5
30293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30294 (exit $ac_status); }; } &&
30295 { ac_try
='test -s conftest.$ac_objext'
30296 { (case "(($ac_try" in
30297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30298 *) ac_try_echo=$ac_try;;
30300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30301 (eval "$ac_try") 2>&5
30303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304 (exit $ac_status); }; }; then
30305 ac_cv_type_uint64_t=yes
30307 echo "$as_me: failed program was:" >&5
30308 sed 's/^/| /' conftest.$ac_ext >&5
30310 ac_cv_type_uint64_t=no
30313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30315 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30316 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30317 if test $ac_cv_type_uint64_t = yes; then
30319 cat >>confdefs.h <<_ACEOF
30320 #define HAVE_UINT64_T 1
30325 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30326 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30327 if test "${ac_cv_type_u_int64_t+set}" = set; then
30328 echo $ECHO_N "(cached) $ECHO_C" >&6
30330 cat >conftest.$ac_ext <<_ACEOF
30333 cat confdefs.h >>conftest.$ac_ext
30334 cat >>conftest.$ac_ext <<_ACEOF
30335 /* end confdefs.h. */
30336 $ac_includes_default
30337 typedef u_int64_t ac__type_new_;
30341 if ((ac__type_new_ *) 0)
30343 if (sizeof (ac__type_new_))
30349 rm -f conftest.$ac_objext
30350 if { (ac_try="$ac_compile"
30351 case "(($ac_try" in
30352 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30353 *) ac_try_echo
=$ac_try;;
30355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30356 (eval "$ac_compile") 2>conftest.er1
30358 grep -v '^ *+' conftest.er1
>conftest.err
30360 cat conftest.err
>&5
30361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30362 (exit $ac_status); } &&
30363 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30364 { (case "(($ac_try" in
30365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30366 *) ac_try_echo=$ac_try;;
30368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30369 (eval "$ac_try") 2>&5
30371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30372 (exit $ac_status); }; } &&
30373 { ac_try='test -s conftest.$ac_objext'
30374 { (case "(($ac_try" in
30375 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30376 *) ac_try_echo
=$ac_try;;
30378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30379 (eval "$ac_try") 2>&5
30381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30382 (exit $ac_status); }; }; then
30383 ac_cv_type_u_int64_t
=yes
30385 echo "$as_me: failed program was:" >&5
30386 sed 's/^/| /' conftest.
$ac_ext >&5
30388 ac_cv_type_u_int64_t
=no
30391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30393 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30394 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30395 if test $ac_cv_type_u_int64_t = yes; then
30397 cat >>confdefs.h
<<_ACEOF
30398 #define HAVE_U_INT64_T 1
30403 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30404 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30405 { (exit 1); exit 1; }; }
30419 for ac_func
in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30421 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30422 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30424 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30425 echo $ECHO_N "(cached) $ECHO_C" >&6
30427 cat >conftest.
$ac_ext <<_ACEOF
30430 cat confdefs.h
>>conftest.
$ac_ext
30431 cat >>conftest.
$ac_ext <<_ACEOF
30432 /* end confdefs.h. */
30433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30435 #define $ac_func innocuous_$ac_func
30437 /* System header to define __stub macros and hopefully few prototypes,
30438 which can conflict with char $ac_func (); below.
30439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30440 <limits.h> exists even on freestanding compilers. */
30443 # include <limits.h>
30445 # include <assert.h>
30450 /* Override any GCC internal prototype to avoid an error.
30451 Use char because int might match the return type of a GCC
30452 builtin and then its argument prototype would still apply. */
30457 /* The GNU C library defines this for functions which it implements
30458 to always fail with ENOSYS. Some functions are actually named
30459 something starting with __ and the normal name is an alias. */
30460 #if defined __stub_$ac_func || defined __stub___$ac_func
30467 return $ac_func ();
30472 rm -f conftest.
$ac_objext conftest
$ac_exeext
30473 if { (ac_try
="$ac_link"
30474 case "(($ac_try" in
30475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30476 *) ac_try_echo=$ac_try;;
30478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30479 (eval "$ac_link") 2>conftest.er1
30481 grep -v '^ *+' conftest.er1 >conftest.err
30483 cat conftest.err >&5
30484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485 (exit $ac_status); } &&
30486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30487 { (case "(($ac_try" in
30488 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30489 *) ac_try_echo
=$ac_try;;
30491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30492 (eval "$ac_try") 2>&5
30494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30495 (exit $ac_status); }; } &&
30496 { ac_try
='test -s conftest$ac_exeext'
30497 { (case "(($ac_try" in
30498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30499 *) ac_try_echo=$ac_try;;
30501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30502 (eval "$ac_try") 2>&5
30504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30505 (exit $ac_status); }; }; then
30506 eval "$as_ac_var=yes"
30508 echo "$as_me: failed program was:" >&5
30509 sed 's/^/| /' conftest.$ac_ext >&5
30511 eval "$as_ac_var=no"
30514 rm -f core conftest.err conftest.$ac_objext \
30515 conftest$ac_exeext conftest.$ac_ext
30517 ac_res=`eval echo '${'$as_ac_var'}'`
30518 { echo "$as_me:$LINENO: result: $ac_res" >&5
30519 echo "${ECHO_T}$ac_res" >&6; }
30520 if test `eval echo '${'$as_ac_var'}'` = yes; then
30521 cat >>confdefs.h <<_ACEOF
30522 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
30532 for ac_func in powf fmodf strtof round
30534 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
30535 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30537 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30538 echo $ECHO_N "(cached) $ECHO_C" >&6
30540 cat >conftest.$ac_ext <<_ACEOF
30543 cat confdefs.h >>conftest.$ac_ext
30544 cat >>conftest.$ac_ext <<_ACEOF
30545 /* end confdefs.h. */
30546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30548 #define $ac_func innocuous_$ac_func
30550 /* System header to define __stub macros and hopefully few prototypes,
30551 which can conflict with char $ac_func (); below.
30552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30553 <limits.h> exists even on freestanding compilers. */
30556 # include <limits.h>
30558 # include <assert.h>
30563 /* Override any GCC internal prototype to avoid an error.
30564 Use char because int might match the return type of a GCC
30565 builtin and then its argument prototype would still apply. */
30570 /* The GNU C library defines this for functions which it implements
30571 to always fail with ENOSYS. Some functions are actually named
30572 something starting with __ and the normal name is an alias. */
30573 #if defined __stub_$ac_func || defined __stub___$ac_func
30580 return $ac_func ();
30585 rm -f conftest.$ac_objext conftest$ac_exeext
30586 if { (ac_try="$ac_link"
30587 case "(($ac_try" in
30588 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30589 *) ac_try_echo
=$ac_try;;
30591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30592 (eval "$ac_link") 2>conftest.er1
30594 grep -v '^ *+' conftest.er1
>conftest.err
30596 cat conftest.err
>&5
30597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30598 (exit $ac_status); } &&
30599 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30600 { (case "(($ac_try" in
30601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30602 *) ac_try_echo=$ac_try;;
30604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30605 (eval "$ac_try") 2>&5
30607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30608 (exit $ac_status); }; } &&
30609 { ac_try='test -s conftest$ac_exeext'
30610 { (case "(($ac_try" in
30611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30612 *) ac_try_echo
=$ac_try;;
30614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30615 (eval "$ac_try") 2>&5
30617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618 (exit $ac_status); }; }; then
30619 eval "$as_ac_var=yes"
30621 echo "$as_me: failed program was:" >&5
30622 sed 's/^/| /' conftest.
$ac_ext >&5
30624 eval "$as_ac_var=no"
30627 rm -f core conftest.err conftest.
$ac_objext \
30628 conftest
$ac_exeext conftest.
$ac_ext
30630 ac_res
=`eval echo '${'$as_ac_var'}'`
30631 { echo "$as_me:$LINENO: result: $ac_res" >&5
30632 echo "${ECHO_T}$ac_res" >&6; }
30633 if test `eval echo '${'$as_ac_var'}'` = yes; then
30634 cat >>confdefs.h
<<_ACEOF
30635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30646 for ac_func
in getpagesize getrusage getrlimit setrlimit gettimeofday
30648 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30649 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30651 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30652 echo $ECHO_N "(cached) $ECHO_C" >&6
30654 cat >conftest.
$ac_ext <<_ACEOF
30657 cat confdefs.h
>>conftest.
$ac_ext
30658 cat >>conftest.
$ac_ext <<_ACEOF
30659 /* end confdefs.h. */
30660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30662 #define $ac_func innocuous_$ac_func
30664 /* System header to define __stub macros and hopefully few prototypes,
30665 which can conflict with char $ac_func (); below.
30666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30667 <limits.h> exists even on freestanding compilers. */
30670 # include <limits.h>
30672 # include <assert.h>
30677 /* Override any GCC internal prototype to avoid an error.
30678 Use char because int might match the return type of a GCC
30679 builtin and then its argument prototype would still apply. */
30684 /* The GNU C library defines this for functions which it implements
30685 to always fail with ENOSYS. Some functions are actually named
30686 something starting with __ and the normal name is an alias. */
30687 #if defined __stub_$ac_func || defined __stub___$ac_func
30694 return $ac_func ();
30699 rm -f conftest.
$ac_objext conftest
$ac_exeext
30700 if { (ac_try
="$ac_link"
30701 case "(($ac_try" in
30702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30703 *) ac_try_echo=$ac_try;;
30705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30706 (eval "$ac_link") 2>conftest.er1
30708 grep -v '^ *+' conftest.er1 >conftest.err
30710 cat conftest.err >&5
30711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30712 (exit $ac_status); } &&
30713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30714 { (case "(($ac_try" in
30715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30716 *) ac_try_echo
=$ac_try;;
30718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30719 (eval "$ac_try") 2>&5
30721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722 (exit $ac_status); }; } &&
30723 { ac_try
='test -s conftest$ac_exeext'
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); }; }; then
30733 eval "$as_ac_var=yes"
30735 echo "$as_me: failed program was:" >&5
30736 sed 's/^/| /' conftest.$ac_ext >&5
30738 eval "$as_ac_var=no"
30741 rm -f core conftest.err conftest.$ac_objext \
30742 conftest$ac_exeext conftest.$ac_ext
30744 ac_res=`eval echo '${'$as_ac_var'}'`
30745 { echo "$as_me:$LINENO: result: $ac_res" >&5
30746 echo "${ECHO_T}$ac_res" >&6; }
30747 if test `eval echo '${'$as_ac_var'}'` = yes; then
30748 cat >>confdefs.h <<_ACEOF
30749 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
30758 for ac_func in isatty mkdtemp mkstemp
30760 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
30761 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30763 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30764 echo $ECHO_N "(cached) $ECHO_C" >&6
30766 cat >conftest.$ac_ext <<_ACEOF
30769 cat confdefs.h >>conftest.$ac_ext
30770 cat >>conftest.$ac_ext <<_ACEOF
30771 /* end confdefs.h. */
30772 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30774 #define $ac_func innocuous_$ac_func
30776 /* System header to define __stub macros and hopefully few prototypes,
30777 which can conflict with char $ac_func (); below.
30778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30779 <limits.h> exists even on freestanding compilers. */
30782 # include <limits.h>
30784 # include <assert.h>
30789 /* Override any GCC internal prototype to avoid an error.
30790 Use char because int might match the return type of a GCC
30791 builtin and then its argument prototype would still apply. */
30796 /* The GNU C library defines this for functions which it implements
30797 to always fail with ENOSYS. Some functions are actually named
30798 something starting with __ and the normal name is an alias. */
30799 #if defined __stub_$ac_func || defined __stub___$ac_func
30806 return $ac_func ();
30811 rm -f conftest.$ac_objext conftest$ac_exeext
30812 if { (ac_try="$ac_link"
30813 case "(($ac_try" in
30814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30815 *) ac_try_echo
=$ac_try;;
30817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30818 (eval "$ac_link") 2>conftest.er1
30820 grep -v '^ *+' conftest.er1
>conftest.err
30822 cat conftest.err
>&5
30823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30824 (exit $ac_status); } &&
30825 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30826 { (case "(($ac_try" in
30827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30828 *) ac_try_echo=$ac_try;;
30830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30831 (eval "$ac_try") 2>&5
30833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30834 (exit $ac_status); }; } &&
30835 { ac_try='test -s conftest$ac_exeext'
30836 { (case "(($ac_try" in
30837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30838 *) ac_try_echo
=$ac_try;;
30840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30841 (eval "$ac_try") 2>&5
30843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30844 (exit $ac_status); }; }; then
30845 eval "$as_ac_var=yes"
30847 echo "$as_me: failed program was:" >&5
30848 sed 's/^/| /' conftest.
$ac_ext >&5
30850 eval "$as_ac_var=no"
30853 rm -f core conftest.err conftest.
$ac_objext \
30854 conftest
$ac_exeext conftest.
$ac_ext
30856 ac_res
=`eval echo '${'$as_ac_var'}'`
30857 { echo "$as_me:$LINENO: result: $ac_res" >&5
30858 echo "${ECHO_T}$ac_res" >&6; }
30859 if test `eval echo '${'$as_ac_var'}'` = yes; then
30860 cat >>confdefs.h
<<_ACEOF
30861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30874 for ac_func
in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30876 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30877 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30879 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30880 echo $ECHO_N "(cached) $ECHO_C" >&6
30882 cat >conftest.
$ac_ext <<_ACEOF
30885 cat confdefs.h
>>conftest.
$ac_ext
30886 cat >>conftest.
$ac_ext <<_ACEOF
30887 /* end confdefs.h. */
30888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30890 #define $ac_func innocuous_$ac_func
30892 /* System header to define __stub macros and hopefully few prototypes,
30893 which can conflict with char $ac_func (); below.
30894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30895 <limits.h> exists even on freestanding compilers. */
30898 # include <limits.h>
30900 # include <assert.h>
30905 /* Override any GCC internal prototype to avoid an error.
30906 Use char because int might match the return type of a GCC
30907 builtin and then its argument prototype would still apply. */
30912 /* The GNU C library defines this for functions which it implements
30913 to always fail with ENOSYS. Some functions are actually named
30914 something starting with __ and the normal name is an alias. */
30915 #if defined __stub_$ac_func || defined __stub___$ac_func
30922 return $ac_func ();
30927 rm -f conftest.
$ac_objext conftest
$ac_exeext
30928 if { (ac_try
="$ac_link"
30929 case "(($ac_try" in
30930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30931 *) ac_try_echo=$ac_try;;
30933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30934 (eval "$ac_link") 2>conftest.er1
30936 grep -v '^ *+' conftest.er1 >conftest.err
30938 cat conftest.err >&5
30939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30940 (exit $ac_status); } &&
30941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30942 { (case "(($ac_try" in
30943 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30944 *) ac_try_echo
=$ac_try;;
30946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30947 (eval "$ac_try") 2>&5
30949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30950 (exit $ac_status); }; } &&
30951 { ac_try
='test -s conftest$ac_exeext'
30952 { (case "(($ac_try" in
30953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30954 *) ac_try_echo=$ac_try;;
30956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30957 (eval "$ac_try") 2>&5
30959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960 (exit $ac_status); }; }; then
30961 eval "$as_ac_var=yes"
30963 echo "$as_me: failed program was:" >&5
30964 sed 's/^/| /' conftest.$ac_ext >&5
30966 eval "$as_ac_var=no"
30969 rm -f core conftest.err conftest.$ac_objext \
30970 conftest$ac_exeext conftest.$ac_ext
30972 ac_res=`eval echo '${'$as_ac_var'}'`
30973 { echo "$as_me:$LINENO: result: $ac_res" >&5
30974 echo "${ECHO_T}$ac_res" >&6; }
30975 if test `eval echo '${'$as_ac_var'}'` = yes; then
30976 cat >>confdefs.h <<_ACEOF
30977 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
30987 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30989 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
30990 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30993 echo $ECHO_N "(cached) $ECHO_C" >&6
30995 cat >conftest.$ac_ext <<_ACEOF
30998 cat confdefs.h >>conftest.$ac_ext
30999 cat >>conftest.$ac_ext <<_ACEOF
31000 /* end confdefs.h. */
31001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31003 #define $ac_func innocuous_$ac_func
31005 /* System header to define __stub macros and hopefully few prototypes,
31006 which can conflict with char $ac_func (); below.
31007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31008 <limits.h> exists even on freestanding compilers. */
31011 # include <limits.h>
31013 # include <assert.h>
31018 /* Override any GCC internal prototype to avoid an error.
31019 Use char because int might match the return type of a GCC
31020 builtin and then its argument prototype would still apply. */
31025 /* The GNU C library defines this for functions which it implements
31026 to always fail with ENOSYS. Some functions are actually named
31027 something starting with __ and the normal name is an alias. */
31028 #if defined __stub_$ac_func || defined __stub___$ac_func
31035 return $ac_func ();
31040 rm -f conftest.$ac_objext conftest$ac_exeext
31041 if { (ac_try="$ac_link"
31042 case "(($ac_try" in
31043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31044 *) ac_try_echo
=$ac_try;;
31046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31047 (eval "$ac_link") 2>conftest.er1
31049 grep -v '^ *+' conftest.er1
>conftest.err
31051 cat conftest.err
>&5
31052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31053 (exit $ac_status); } &&
31054 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31055 { (case "(($ac_try" in
31056 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31057 *) ac_try_echo=$ac_try;;
31059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31060 (eval "$ac_try") 2>&5
31062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31063 (exit $ac_status); }; } &&
31064 { ac_try='test -s conftest$ac_exeext'
31065 { (case "(($ac_try" in
31066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31067 *) ac_try_echo
=$ac_try;;
31069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31070 (eval "$ac_try") 2>&5
31072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31073 (exit $ac_status); }; }; then
31074 eval "$as_ac_var=yes"
31076 echo "$as_me: failed program was:" >&5
31077 sed 's/^/| /' conftest.
$ac_ext >&5
31079 eval "$as_ac_var=no"
31082 rm -f core conftest.err conftest.
$ac_objext \
31083 conftest
$ac_exeext conftest.
$ac_ext
31085 ac_res
=`eval echo '${'$as_ac_var'}'`
31086 { echo "$as_me:$LINENO: result: $ac_res" >&5
31087 echo "${ECHO_T}$ac_res" >&6; }
31088 if test `eval echo '${'$as_ac_var'}'` = yes; then
31089 cat >>confdefs.h
<<_ACEOF
31090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31100 for ac_func
in setjmp longjmp sigsetjmp siglongjmp
31102 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31103 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31105 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31106 echo $ECHO_N "(cached) $ECHO_C" >&6
31108 cat >conftest.
$ac_ext <<_ACEOF
31111 cat confdefs.h
>>conftest.
$ac_ext
31112 cat >>conftest.
$ac_ext <<_ACEOF
31113 /* end confdefs.h. */
31114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31116 #define $ac_func innocuous_$ac_func
31118 /* System header to define __stub macros and hopefully few prototypes,
31119 which can conflict with char $ac_func (); below.
31120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31121 <limits.h> exists even on freestanding compilers. */
31124 # include <limits.h>
31126 # include <assert.h>
31131 /* Override any GCC internal prototype to avoid an error.
31132 Use char because int might match the return type of a GCC
31133 builtin and then its argument prototype would still apply. */
31138 /* The GNU C library defines this for functions which it implements
31139 to always fail with ENOSYS. Some functions are actually named
31140 something starting with __ and the normal name is an alias. */
31141 #if defined __stub_$ac_func || defined __stub___$ac_func
31148 return $ac_func ();
31153 rm -f conftest.
$ac_objext conftest
$ac_exeext
31154 if { (ac_try
="$ac_link"
31155 case "(($ac_try" in
31156 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31157 *) ac_try_echo=$ac_try;;
31159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31160 (eval "$ac_link") 2>conftest.er1
31162 grep -v '^ *+' conftest.er1 >conftest.err
31164 cat conftest.err >&5
31165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31166 (exit $ac_status); } &&
31167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31168 { (case "(($ac_try" in
31169 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31170 *) ac_try_echo
=$ac_try;;
31172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31173 (eval "$ac_try") 2>&5
31175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31176 (exit $ac_status); }; } &&
31177 { ac_try
='test -s conftest$ac_exeext'
31178 { (case "(($ac_try" in
31179 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31180 *) ac_try_echo=$ac_try;;
31182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31183 (eval "$ac_try") 2>&5
31185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31186 (exit $ac_status); }; }; then
31187 eval "$as_ac_var=yes"
31189 echo "$as_me: failed program was:" >&5
31190 sed 's/^/| /' conftest.$ac_ext >&5
31192 eval "$as_ac_var=no"
31195 rm -f core conftest.err conftest.$ac_objext \
31196 conftest$ac_exeext conftest.$ac_ext
31198 ac_res=`eval echo '${'$as_ac_var'}'`
31199 { echo "$as_me:$LINENO: result: $ac_res" >&5
31200 echo "${ECHO_T}$ac_res" >&6; }
31201 if test `eval echo '${'$as_ac_var'}'` = yes; then
31202 cat >>confdefs.h <<_ACEOF
31203 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
31209 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31210 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31211 if test "${llvm_cv_c_printf_a+set}" = set; then
31212 echo $ECHO_N "(cached) $ECHO_C" >&6
31215 ac_cpp='$CPP $CPPFLAGS'
31216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31220 if test "$cross_compiling" = yes; then
31221 llvmac_cv_c_printf_a=no
31223 cat >conftest.$ac_ext <<_ACEOF
31227 cat confdefs.h >>conftest.$ac_ext
31228 cat >>conftest.$ac_ext <<_ACEOF
31229 /* end confdefs.h. */
31232 #include <stdlib.h>
31238 volatile double A, B;
31242 sprintf(Buffer, "%a", A);
31246 if (A != 0x1.999999999999ap-4)
31253 rm -f conftest$ac_exeext
31254 if { (ac_try="$ac_link"
31255 case "(($ac_try" in
31256 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31257 *) ac_try_echo
=$ac_try;;
31259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31260 (eval "$ac_link") 2>&5
31262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31263 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
31264 { (case "(($ac_try" in
31265 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31266 *) ac_try_echo=$ac_try;;
31268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31269 (eval "$ac_try") 2>&5
31271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272 (exit $ac_status); }; }; then
31273 llvm_cv_c_printf_a=yes
31275 echo "$as_me: program exited with status $ac_status" >&5
31276 echo "$as_me: failed program was:" >&5
31277 sed 's/^/| /' conftest.$ac_ext >&5
31279 ( exit $ac_status )
31280 llvmac_cv_c_printf_a=no
31282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31287 ac_cpp='$CPP $CPPFLAGS'
31288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31293 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31294 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31295 if test "$llvm_cv_c_printf_a" = "yes"; then
31297 cat >>confdefs.h <<\_ACEOF
31298 #define HAVE_PRINTF_A 1
31303 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31304 # for constant arguments. Useless!
31305 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31306 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31307 if test "${ac_cv_working_alloca_h+set}" = set; then
31308 echo $ECHO_N "(cached) $ECHO_C" >&6
31310 cat >conftest.$ac_ext <<_ACEOF
31313 cat confdefs.h >>conftest.$ac_ext
31314 cat >>conftest.$ac_ext <<_ACEOF
31315 /* end confdefs.h. */
31316 #include <alloca.h>
31320 char *p = (char *) alloca (2 * sizeof (int));
31326 rm -f conftest.$ac_objext conftest$ac_exeext
31327 if { (ac_try="$ac_link"
31328 case "(($ac_try" in
31329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31330 *) ac_try_echo
=$ac_try;;
31332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31333 (eval "$ac_link") 2>conftest.er1
31335 grep -v '^ *+' conftest.er1
>conftest.err
31337 cat conftest.err
>&5
31338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339 (exit $ac_status); } &&
31340 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31341 { (case "(($ac_try" in
31342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31343 *) ac_try_echo=$ac_try;;
31345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31346 (eval "$ac_try") 2>&5
31348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349 (exit $ac_status); }; } &&
31350 { ac_try='test -s conftest$ac_exeext'
31351 { (case "(($ac_try" in
31352 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31353 *) ac_try_echo
=$ac_try;;
31355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31356 (eval "$ac_try") 2>&5
31358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31359 (exit $ac_status); }; }; then
31360 ac_cv_working_alloca_h
=yes
31362 echo "$as_me: failed program was:" >&5
31363 sed 's/^/| /' conftest.
$ac_ext >&5
31365 ac_cv_working_alloca_h
=no
31368 rm -f core conftest.err conftest.
$ac_objext \
31369 conftest
$ac_exeext conftest.
$ac_ext
31371 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31372 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31373 if test $ac_cv_working_alloca_h = yes; then
31375 cat >>confdefs.h
<<\_ACEOF
31376 #define HAVE_ALLOCA_H 1
31381 { echo "$as_me:$LINENO: checking for alloca" >&5
31382 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31383 if test "${ac_cv_func_alloca_works+set}" = set; then
31384 echo $ECHO_N "(cached) $ECHO_C" >&6
31386 cat >conftest.
$ac_ext <<_ACEOF
31389 cat confdefs.h
>>conftest.
$ac_ext
31390 cat >>conftest.
$ac_ext <<_ACEOF
31391 /* end confdefs.h. */
31393 # define alloca __builtin_alloca
31396 # include <malloc.h>
31397 # define alloca _alloca
31400 # include <alloca.h>
31405 # ifndef alloca /* predefined by HP cc +Olibcalls */
31416 char *p = (char *) alloca (1);
31422 rm -f conftest.
$ac_objext conftest
$ac_exeext
31423 if { (ac_try
="$ac_link"
31424 case "(($ac_try" in
31425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31426 *) ac_try_echo=$ac_try;;
31428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31429 (eval "$ac_link") 2>conftest.er1
31431 grep -v '^ *+' conftest.er1 >conftest.err
31433 cat conftest.err >&5
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435 (exit $ac_status); } &&
31436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31437 { (case "(($ac_try" in
31438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31439 *) ac_try_echo
=$ac_try;;
31441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31442 (eval "$ac_try") 2>&5
31444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31445 (exit $ac_status); }; } &&
31446 { ac_try
='test -s conftest$ac_exeext'
31447 { (case "(($ac_try" in
31448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31449 *) ac_try_echo=$ac_try;;
31451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31452 (eval "$ac_try") 2>&5
31454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455 (exit $ac_status); }; }; then
31456 ac_cv_func_alloca_works=yes
31458 echo "$as_me: failed program was:" >&5
31459 sed 's/^/| /' conftest.$ac_ext >&5
31461 ac_cv_func_alloca_works=no
31464 rm -f core conftest.err conftest.$ac_objext \
31465 conftest$ac_exeext conftest.$ac_ext
31467 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31468 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31470 if test $ac_cv_func_alloca_works = yes; then
31472 cat >>confdefs.h <<\_ACEOF
31473 #define HAVE_ALLOCA 1
31477 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31478 # that cause trouble. Some versions do not even contain alloca or
31479 # contain a buggy version. If you still want to use their alloca,
31480 # use ar to extract alloca.o from them instead of compiling alloca.c.
31482 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31484 cat >>confdefs.h <<\_ACEOF
31489 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
31490 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
31491 if test "${ac_cv_os_cray+set}" = set; then
31492 echo $ECHO_N "(cached
) $ECHO_C" >&6
31494 cat >conftest.$ac_ext <<_ACEOF
31497 cat confdefs.h >>conftest.$ac_ext
31498 cat >>conftest.$ac_ext <<_ACEOF
31499 /* end confdefs.h. */
31500 #if defined CRAY && ! defined CRAY2
31507 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
31508 $EGREP "webecray
" >/dev/null 2>&1; then
31516 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
31517 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31518 if test $ac_cv_os_cray = yes; then
31519 for ac_func in _getb67 GETB67 getb67; do
31520 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
31521 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
31522 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
31523 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
31524 echo $ECHO_N "(cached
) $ECHO_C" >&6
31526 cat >conftest.$ac_ext <<_ACEOF
31529 cat confdefs.h >>conftest.$ac_ext
31530 cat >>conftest.$ac_ext <<_ACEOF
31531 /* end confdefs.h. */
31532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31534 #define $ac_func innocuous_$ac_func
31536 /* System header to define __stub macros and hopefully few prototypes,
31537 which can conflict with char $ac_func (); below.
31538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31539 <limits.h> exists even on freestanding compilers. */
31542 # include <limits.h>
31544 # include <assert.h>
31549 /* Override any GCC internal prototype to avoid an error.
31550 Use char because int might match the return type of a GCC
31551 builtin and then its argument prototype would still apply. */
31556 /* The GNU C library defines this for functions which it implements
31557 to always fail with ENOSYS. Some functions are actually named
31558 something starting with __ and the normal name is an alias. */
31559 #if defined __stub_$ac_func || defined __stub___$ac_func
31566 return $ac_func ();
31571 rm -f conftest.$ac_objext conftest$ac_exeext
31572 if { (ac_try="$ac_link"
31573 case "(($ac_try" in
31574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31575 *) ac_try_echo=$ac_try;;
31577 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31578 (eval "$ac_link") 2>conftest.er1
31580 grep -v '^ *+' conftest.er1 >conftest.err
31582 cat conftest.err >&5
31583 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31584 (exit $ac_status); } &&
31585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31586 { (case "(($ac_try" in
31587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31588 *) ac_try_echo=$ac_try;;
31590 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31591 (eval "$ac_try") 2>&5
31593 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31594 (exit $ac_status); }; } &&
31595 { ac_try='test -s conftest$ac_exeext'
31596 { (case "(($ac_try" in
31597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31598 *) ac_try_echo=$ac_try;;
31600 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31601 (eval "$ac_try") 2>&5
31603 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31604 (exit $ac_status); }; }; then
31605 eval "$as_ac_var=yes"
31607 echo "$as_me: failed program was
:" >&5
31608 sed 's/^/| /' conftest.$ac_ext >&5
31610 eval "$as_ac_var=no
"
31613 rm -f core conftest.err conftest.$ac_objext \
31614 conftest$ac_exeext conftest.$ac_ext
31616 ac_res=`eval echo '${'$as_ac_var'}'`
31617 { echo "$as_me:$LINENO: result
: $ac_res" >&5
31618 echo "${ECHO_T}$ac_res" >&6; }
31619 if test `eval echo '${'$as_ac_var'}'` = yes; then
31621 cat >>confdefs.h <<_ACEOF
31622 #define CRAY_STACKSEG_END $ac_func
31631 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
31632 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
31633 if test "${ac_cv_c_stack_direction+set}" = set; then
31634 echo $ECHO_N "(cached
) $ECHO_C" >&6
31636 if test "$cross_compiling" = yes; then
31637 ac_cv_c_stack_direction=0
31639 cat >conftest.$ac_ext <<_ACEOF
31642 cat confdefs.h >>conftest.$ac_ext
31643 cat >>conftest.$ac_ext <<_ACEOF
31644 /* end confdefs.h. */
31645 $ac_includes_default
31647 find_stack_direction ()
31649 static char *addr = 0;
31654 return find_stack_direction ();
31657 return (&dummy > addr) ? 1 : -1;
31663 return find_stack_direction () < 0;
31666 rm -f conftest$ac_exeext
31667 if { (ac_try="$ac_link"
31668 case "(($ac_try" in
31669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31670 *) ac_try_echo=$ac_try;;
31672 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31673 (eval "$ac_link") 2>&5
31675 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31677 { (case "(($ac_try" in
31678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31679 *) ac_try_echo=$ac_try;;
31681 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31682 (eval "$ac_try") 2>&5
31684 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31685 (exit $ac_status); }; }; then
31686 ac_cv_c_stack_direction=1
31688 echo "$as_me: program exited with status
$ac_status" >&5
31689 echo "$as_me: failed program was
:" >&5
31690 sed 's/^/| /' conftest.$ac_ext >&5
31692 ( exit $ac_status )
31693 ac_cv_c_stack_direction=-1
31695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31700 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
31701 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31703 cat >>confdefs.h <<_ACEOF
31704 #define STACK_DIRECTION $ac_cv_c_stack_direction
31711 { echo "$as_me:$LINENO: checking
for srand48
/lrand48
/drand48
in <stdlib.h
>" >&5
31712 echo $ECHO_N "checking
for srand48
/lrand48
/drand48
in <stdlib.h
>...
$ECHO_C" >&6; }
31713 if test "${ac_cv_func_rand48+set}" = set; then
31714 echo $ECHO_N "(cached
) $ECHO_C" >&6
31717 ac_cpp='$CXXCPP $CPPFLAGS'
31718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31722 cat >conftest.$ac_ext <<_ACEOF
31725 cat confdefs.h >>conftest.$ac_ext
31726 cat >>conftest.$ac_ext <<_ACEOF
31727 /* end confdefs.h. */
31728 #include <stdlib.h>
31732 srand48(0);lrand48();drand48();
31737 rm -f conftest.$ac_objext
31738 if { (ac_try="$ac_compile"
31739 case "(($ac_try" in
31740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31741 *) ac_try_echo=$ac_try;;
31743 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31744 (eval "$ac_compile") 2>conftest.er1
31746 grep -v '^ *+' conftest.er1 >conftest.err
31748 cat conftest.err >&5
31749 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31750 (exit $ac_status); } &&
31751 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31752 { (case "(($ac_try" in
31753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31754 *) ac_try_echo=$ac_try;;
31756 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31757 (eval "$ac_try") 2>&5
31759 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31760 (exit $ac_status); }; } &&
31761 { ac_try='test -s conftest.$ac_objext'
31762 { (case "(($ac_try" in
31763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31764 *) ac_try_echo=$ac_try;;
31766 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31767 (eval "$ac_try") 2>&5
31769 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31770 (exit $ac_status); }; }; then
31771 ac_cv_func_rand48=yes
31773 echo "$as_me: failed program was
:" >&5
31774 sed 's/^/| /' conftest.$ac_ext >&5
31776 ac_cv_func_rand48=no
31779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31781 ac_cpp='$CPP $CPPFLAGS'
31782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31787 { echo "$as_me:$LINENO: result
: $ac_cv_func_rand48" >&5
31788 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31790 if test "$ac_cv_func_rand48" = "yes" ; then
31792 cat >>confdefs.h <<\_ACEOF
31793 #define HAVE_RAND48 1
31799 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces
" >&5
31800 echo $ECHO_N "checking whether the compiler implements namespaces...
$ECHO_C" >&6; }
31801 if test "${ac_cv_cxx_namespaces+set}" = set; then
31802 echo $ECHO_N "(cached
) $ECHO_C" >&6
31805 ac_cpp='$CXXCPP $CPPFLAGS'
31806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31810 cat >conftest.$ac_ext <<_ACEOF
31813 cat confdefs.h >>conftest.$ac_ext
31814 cat >>conftest.$ac_ext <<_ACEOF
31815 /* end confdefs.h. */
31816 namespace Outer { namespace Inner { int i = 0; }}
31820 using namespace Outer::Inner; return i;
31825 rm -f conftest.$ac_objext
31826 if { (ac_try="$ac_compile"
31827 case "(($ac_try" in
31828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31829 *) ac_try_echo=$ac_try;;
31831 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31832 (eval "$ac_compile") 2>conftest.er1
31834 grep -v '^ *+' conftest.er1 >conftest.err
31836 cat conftest.err >&5
31837 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31838 (exit $ac_status); } &&
31839 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31840 { (case "(($ac_try" in
31841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31842 *) ac_try_echo=$ac_try;;
31844 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31845 (eval "$ac_try") 2>&5
31847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31848 (exit $ac_status); }; } &&
31849 { ac_try='test -s conftest.$ac_objext'
31850 { (case "(($ac_try" in
31851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31852 *) ac_try_echo=$ac_try;;
31854 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31855 (eval "$ac_try") 2>&5
31857 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31858 (exit $ac_status); }; }; then
31859 ac_cv_cxx_namespaces=yes
31861 echo "$as_me: failed program was
:" >&5
31862 sed 's/^/| /' conftest.$ac_ext >&5
31864 ac_cv_cxx_namespaces=no
31867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31869 ac_cpp='$CPP $CPPFLAGS'
31870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31876 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_namespaces" >&5
31877 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31878 if test "$ac_cv_cxx_namespaces" = yes; then
31880 cat >>confdefs.h <<\_ACEOF
31881 #define HAVE_NAMESPACES
31886 { echo "$as_me:$LINENO: checking whether the compiler has
<ext
/hash_map
> defining template class std
::hash_map
" >&5
31887 echo $ECHO_N "checking whether the compiler has
<ext
/hash_map
> defining template class std
::hash_map...
$ECHO_C" >&6; }
31888 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31889 echo $ECHO_N "(cached
) $ECHO_C" >&6
31893 ac_cpp='$CXXCPP $CPPFLAGS'
31894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31898 cat >conftest.$ac_ext <<_ACEOF
31901 cat confdefs.h >>conftest.$ac_ext
31902 cat >>conftest.$ac_ext <<_ACEOF
31903 /* end confdefs.h. */
31904 #include <ext/hash_map>
31905 #ifdef HAVE_NAMESPACES
31906 using namespace std;
31911 hash_map<int, int> t;
31916 rm -f conftest.$ac_objext
31917 if { (ac_try="$ac_compile"
31918 case "(($ac_try" in
31919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31920 *) ac_try_echo=$ac_try;;
31922 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31923 (eval "$ac_compile") 2>conftest.er1
31925 grep -v '^ *+' conftest.er1 >conftest.err
31927 cat conftest.err >&5
31928 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31929 (exit $ac_status); } &&
31930 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31931 { (case "(($ac_try" in
31932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31933 *) ac_try_echo=$ac_try;;
31935 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31936 (eval "$ac_try") 2>&5
31938 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31939 (exit $ac_status); }; } &&
31940 { ac_try='test -s conftest.$ac_objext'
31941 { (case "(($ac_try" in
31942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31943 *) ac_try_echo=$ac_try;;
31945 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31946 (eval "$ac_try") 2>&5
31948 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31949 (exit $ac_status); }; }; then
31950 ac_cv_cxx_have_std_ext_hash_map=yes
31952 echo "$as_me: failed program was
:" >&5
31953 sed 's/^/| /' conftest.$ac_ext >&5
31955 ac_cv_cxx_have_std_ext_hash_map=no
31958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31960 ac_cpp='$CPP $CPPFLAGS'
31961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31966 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_std_ext_hash_map" >&5
31967 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31968 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31971 cat >>confdefs.h <<\_ACEOF
31972 #define HAVE_STD_EXT_HASH_MAP 1
31977 cat >>confdefs.h <<\_ACEOF
31978 #define HAVE_STD_EXT_HASH_MAP 0
31983 { echo "$as_me:$LINENO: checking whether the compiler has
<ext
/hash_map
> defining template class __gnu_cxx
::hash_map
" >&5
31984 echo $ECHO_N "checking whether the compiler has
<ext
/hash_map
> defining template class __gnu_cxx
::hash_map...
$ECHO_C" >&6; }
31985 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31986 echo $ECHO_N "(cached
) $ECHO_C" >&6
31990 ac_cpp='$CXXCPP $CPPFLAGS'
31991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31995 cat >conftest.$ac_ext <<_ACEOF
31998 cat confdefs.h >>conftest.$ac_ext
31999 cat >>conftest.$ac_ext <<_ACEOF
32000 /* end confdefs.h. */
32001 #include <ext/hash_map>
32002 #ifdef HAVE_NAMESPACES
32003 using namespace __gnu_cxx;
32008 hash_map<int,int> t;
32013 rm -f conftest.$ac_objext
32014 if { (ac_try="$ac_compile"
32015 case "(($ac_try" in
32016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32017 *) ac_try_echo=$ac_try;;
32019 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32020 (eval "$ac_compile") 2>conftest.er1
32022 grep -v '^ *+' conftest.er1 >conftest.err
32024 cat conftest.err >&5
32025 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32026 (exit $ac_status); } &&
32027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32028 { (case "(($ac_try" in
32029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32030 *) ac_try_echo=$ac_try;;
32032 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32033 (eval "$ac_try") 2>&5
32035 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32036 (exit $ac_status); }; } &&
32037 { ac_try='test -s conftest.$ac_objext'
32038 { (case "(($ac_try" in
32039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32040 *) ac_try_echo=$ac_try;;
32042 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32043 (eval "$ac_try") 2>&5
32045 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32046 (exit $ac_status); }; }; then
32047 ac_cv_cxx_have_gnu_ext_hash_map=yes
32049 echo "$as_me: failed program was
:" >&5
32050 sed 's/^/| /' conftest.$ac_ext >&5
32052 ac_cv_cxx_have_gnu_ext_hash_map=no
32055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32057 ac_cpp='$CPP $CPPFLAGS'
32058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32063 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32064 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32065 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32068 cat >>confdefs.h <<\_ACEOF
32069 #define HAVE_GNU_EXT_HASH_MAP 1
32074 cat >>confdefs.h <<\_ACEOF
32075 #define HAVE_GNU_EXT_HASH_MAP 0
32080 { echo "$as_me:$LINENO: checking whether the compiler has
<hash_map
> defining template class
::hash_map
" >&5
32081 echo $ECHO_N "checking whether the compiler has
<hash_map
> defining template class
::hash_map...
$ECHO_C" >&6; }
32082 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32083 echo $ECHO_N "(cached
) $ECHO_C" >&6
32087 ac_cpp='$CXXCPP $CPPFLAGS'
32088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32092 cat >conftest.$ac_ext <<_ACEOF
32095 cat confdefs.h >>conftest.$ac_ext
32096 cat >>conftest.$ac_ext <<_ACEOF
32097 /* end confdefs.h. */
32098 #include <hash_map>
32102 hash_map<int,int> t;
32107 rm -f conftest.$ac_objext
32108 if { (ac_try="$ac_compile"
32109 case "(($ac_try" in
32110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32111 *) ac_try_echo=$ac_try;;
32113 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32114 (eval "$ac_compile") 2>conftest.er1
32116 grep -v '^ *+' conftest.er1 >conftest.err
32118 cat conftest.err >&5
32119 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32120 (exit $ac_status); } &&
32121 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32122 { (case "(($ac_try" in
32123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32124 *) ac_try_echo=$ac_try;;
32126 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32127 (eval "$ac_try") 2>&5
32129 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32130 (exit $ac_status); }; } &&
32131 { ac_try='test -s conftest.$ac_objext'
32132 { (case "(($ac_try" in
32133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32134 *) ac_try_echo=$ac_try;;
32136 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32137 (eval "$ac_try") 2>&5
32139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32140 (exit $ac_status); }; }; then
32141 ac_cv_cxx_have_global_hash_map=yes
32143 echo "$as_me: failed program was
:" >&5
32144 sed 's/^/| /' conftest.$ac_ext >&5
32146 ac_cv_cxx_have_global_hash_map=no
32149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32151 ac_cpp='$CPP $CPPFLAGS'
32152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32157 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_global_hash_map" >&5
32158 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32159 if test "$ac_cv_cxx_have_global_hash_map" = yes
32162 cat >>confdefs.h <<\_ACEOF
32163 #define HAVE_GLOBAL_HASH_MAP 1
32168 cat >>confdefs.h <<\_ACEOF
32169 #define HAVE_GLOBAL_HASH_MAP 0
32174 { echo "$as_me:$LINENO: checking whether the compiler has
<ext
/hash_set
> defining template class std
::hash_set
" >&5
32175 echo $ECHO_N "checking whether the compiler has
<ext
/hash_set
> defining template class std
::hash_set...
$ECHO_C" >&6; }
32176 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32177 echo $ECHO_N "(cached
) $ECHO_C" >&6
32181 ac_cpp='$CXXCPP $CPPFLAGS'
32182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32186 cat >conftest.$ac_ext <<_ACEOF
32189 cat confdefs.h >>conftest.$ac_ext
32190 cat >>conftest.$ac_ext <<_ACEOF
32191 /* end confdefs.h. */
32192 #include <ext/hash_set>
32193 #ifdef HAVE_NAMESPACES
32194 using namespace std;
32204 rm -f conftest.$ac_objext
32205 if { (ac_try="$ac_compile"
32206 case "(($ac_try" in
32207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32208 *) ac_try_echo=$ac_try;;
32210 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32211 (eval "$ac_compile") 2>conftest.er1
32213 grep -v '^ *+' conftest.er1 >conftest.err
32215 cat conftest.err >&5
32216 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32217 (exit $ac_status); } &&
32218 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32219 { (case "(($ac_try" in
32220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32221 *) ac_try_echo=$ac_try;;
32223 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32224 (eval "$ac_try") 2>&5
32226 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32227 (exit $ac_status); }; } &&
32228 { ac_try='test -s conftest.$ac_objext'
32229 { (case "(($ac_try" in
32230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32231 *) ac_try_echo=$ac_try;;
32233 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32234 (eval "$ac_try") 2>&5
32236 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32237 (exit $ac_status); }; }; then
32238 ac_cv_cxx_have_std_ext_hash_set=yes
32240 echo "$as_me: failed program was
:" >&5
32241 sed 's/^/| /' conftest.$ac_ext >&5
32243 ac_cv_cxx_have_std_ext_hash_set=no
32246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32248 ac_cpp='$CPP $CPPFLAGS'
32249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32254 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_std_ext_hash_set" >&5
32255 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32256 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32259 cat >>confdefs.h <<\_ACEOF
32260 #define HAVE_STD_EXT_HASH_SET 1
32265 cat >>confdefs.h <<\_ACEOF
32266 #define HAVE_STD_EXT_HASH_SET 0
32271 { echo "$as_me:$LINENO: checking whether the compiler has
<ext
/hash_set
> defining template class __gnu_cxx
::hash_set
" >&5
32272 echo $ECHO_N "checking whether the compiler has
<ext
/hash_set
> defining template class __gnu_cxx
::hash_set...
$ECHO_C" >&6; }
32273 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32274 echo $ECHO_N "(cached
) $ECHO_C" >&6
32278 ac_cpp='$CXXCPP $CPPFLAGS'
32279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32283 cat >conftest.$ac_ext <<_ACEOF
32286 cat confdefs.h >>conftest.$ac_ext
32287 cat >>conftest.$ac_ext <<_ACEOF
32288 /* end confdefs.h. */
32289 #include <ext/hash_set>
32290 #ifdef HAVE_NAMESPACES
32291 using namespace __gnu_cxx;
32301 rm -f conftest.$ac_objext
32302 if { (ac_try="$ac_compile"
32303 case "(($ac_try" in
32304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32305 *) ac_try_echo=$ac_try;;
32307 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32308 (eval "$ac_compile") 2>conftest.er1
32310 grep -v '^ *+' conftest.er1 >conftest.err
32312 cat conftest.err >&5
32313 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32314 (exit $ac_status); } &&
32315 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32316 { (case "(($ac_try" in
32317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32318 *) ac_try_echo=$ac_try;;
32320 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32321 (eval "$ac_try") 2>&5
32323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32324 (exit $ac_status); }; } &&
32325 { ac_try='test -s conftest.$ac_objext'
32326 { (case "(($ac_try" in
32327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32328 *) ac_try_echo=$ac_try;;
32330 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32331 (eval "$ac_try") 2>&5
32333 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32334 (exit $ac_status); }; }; then
32335 ac_cv_cxx_have_gnu_ext_hash_set=yes
32337 echo "$as_me: failed program was
:" >&5
32338 sed 's/^/| /' conftest.$ac_ext >&5
32340 ac_cv_cxx_have_gnu_ext_hash_set=no
32343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32345 ac_cpp='$CPP $CPPFLAGS'
32346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32351 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32352 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32353 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32356 cat >>confdefs.h <<\_ACEOF
32357 #define HAVE_GNU_EXT_HASH_SET 1
32362 cat >>confdefs.h <<\_ACEOF
32363 #define HAVE_GNU_EXT_HASH_SET 0
32368 { echo "$as_me:$LINENO: checking whether the compiler has
<hash_set
> defining template class
::hash_set
" >&5
32369 echo $ECHO_N "checking whether the compiler has
<hash_set
> defining template class
::hash_set...
$ECHO_C" >&6; }
32370 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32371 echo $ECHO_N "(cached
) $ECHO_C" >&6
32375 ac_cpp='$CXXCPP $CPPFLAGS'
32376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32380 cat >conftest.$ac_ext <<_ACEOF
32383 cat confdefs.h >>conftest.$ac_ext
32384 cat >>conftest.$ac_ext <<_ACEOF
32385 /* end confdefs.h. */
32386 #include <hash_set>
32390 hash_set<int> t; return 0;
32395 rm -f conftest.$ac_objext
32396 if { (ac_try="$ac_compile"
32397 case "(($ac_try" in
32398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32399 *) ac_try_echo=$ac_try;;
32401 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32402 (eval "$ac_compile") 2>conftest.er1
32404 grep -v '^ *+' conftest.er1 >conftest.err
32406 cat conftest.err >&5
32407 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32408 (exit $ac_status); } &&
32409 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32410 { (case "(($ac_try" in
32411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32412 *) ac_try_echo=$ac_try;;
32414 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32415 (eval "$ac_try") 2>&5
32417 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32418 (exit $ac_status); }; } &&
32419 { ac_try='test -s conftest.$ac_objext'
32420 { (case "(($ac_try" in
32421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32422 *) ac_try_echo=$ac_try;;
32424 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32425 (eval "$ac_try") 2>&5
32427 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32428 (exit $ac_status); }; }; then
32429 ac_cv_cxx_have_global_hash_set=yes
32431 echo "$as_me: failed program was
:" >&5
32432 sed 's/^/| /' conftest.$ac_ext >&5
32434 ac_cv_cxx_have_global_hash_set=no
32437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32439 ac_cpp='$CPP $CPPFLAGS'
32440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32445 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_global_hash_set" >&5
32446 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32447 if test "$ac_cv_cxx_have_global_hash_set" = yes
32450 cat >>confdefs.h <<\_ACEOF
32451 #define HAVE_GLOBAL_HASH_SET 1
32456 cat >>confdefs.h <<\_ACEOF
32457 #define HAVE_GLOBAL_HASH_SET 0
32462 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator
" >&5
32463 echo $ECHO_N "checking whether the compiler has the standard iterator...
$ECHO_C" >&6; }
32464 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32465 echo $ECHO_N "(cached
) $ECHO_C" >&6
32469 ac_cpp='$CXXCPP $CPPFLAGS'
32470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32474 cat >conftest.$ac_ext <<_ACEOF
32477 cat confdefs.h >>conftest.$ac_ext
32478 cat >>conftest.$ac_ext <<_ACEOF
32479 /* end confdefs.h. */
32480 #include <iterator>
32481 #ifdef HAVE_NAMESPACES
32482 using namespace std;
32487 iterator<int,int,int> t; return 0;
32492 rm -f conftest.$ac_objext
32493 if { (ac_try="$ac_compile"
32494 case "(($ac_try" in
32495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32496 *) ac_try_echo=$ac_try;;
32498 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32499 (eval "$ac_compile") 2>conftest.er1
32501 grep -v '^ *+' conftest.er1 >conftest.err
32503 cat conftest.err >&5
32504 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32505 (exit $ac_status); } &&
32506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32507 { (case "(($ac_try" in
32508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32509 *) ac_try_echo=$ac_try;;
32511 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32512 (eval "$ac_try") 2>&5
32514 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32515 (exit $ac_status); }; } &&
32516 { ac_try='test -s conftest.$ac_objext'
32517 { (case "(($ac_try" in
32518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32519 *) ac_try_echo=$ac_try;;
32521 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32522 (eval "$ac_try") 2>&5
32524 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32525 (exit $ac_status); }; }; then
32526 ac_cv_cxx_have_std_iterator=yes
32528 echo "$as_me: failed program was
:" >&5
32529 sed 's/^/| /' conftest.$ac_ext >&5
32531 ac_cv_cxx_have_std_iterator=no
32534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32536 ac_cpp='$CPP $CPPFLAGS'
32537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32543 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_std_iterator" >&5
32544 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32545 if test "$ac_cv_cxx_have_std_iterator" = yes
32548 cat >>confdefs.h <<\_ACEOF
32549 #define HAVE_STD_ITERATOR 1
32554 cat >>confdefs.h <<\_ACEOF
32555 #define HAVE_STD_ITERATOR 0
32560 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator
" >&5
32561 echo $ECHO_N "checking whether the compiler has the bidirectional iterator...
$ECHO_C" >&6; }
32562 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32563 echo $ECHO_N "(cached
) $ECHO_C" >&6
32567 ac_cpp='$CXXCPP $CPPFLAGS'
32568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32572 cat >conftest.$ac_ext <<_ACEOF
32575 cat confdefs.h >>conftest.$ac_ext
32576 cat >>conftest.$ac_ext <<_ACEOF
32577 /* end confdefs.h. */
32578 #include <iterator>
32579 #ifdef HAVE_NAMESPACES
32580 using namespace std;
32585 bidirectional_iterator<int,int> t; return 0;
32590 rm -f conftest.$ac_objext
32591 if { (ac_try="$ac_compile"
32592 case "(($ac_try" in
32593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32594 *) ac_try_echo=$ac_try;;
32596 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32597 (eval "$ac_compile") 2>conftest.er1
32599 grep -v '^ *+' conftest.er1 >conftest.err
32601 cat conftest.err >&5
32602 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32603 (exit $ac_status); } &&
32604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32605 { (case "(($ac_try" in
32606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32607 *) ac_try_echo=$ac_try;;
32609 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32610 (eval "$ac_try") 2>&5
32612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32613 (exit $ac_status); }; } &&
32614 { ac_try='test -s conftest.$ac_objext'
32615 { (case "(($ac_try" in
32616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32617 *) ac_try_echo=$ac_try;;
32619 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32620 (eval "$ac_try") 2>&5
32622 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32623 (exit $ac_status); }; }; then
32624 ac_cv_cxx_have_bi_iterator=yes
32626 echo "$as_me: failed program was
:" >&5
32627 sed 's/^/| /' conftest.$ac_ext >&5
32629 ac_cv_cxx_have_bi_iterator=no
32632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32634 ac_cpp='$CPP $CPPFLAGS'
32635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32641 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_bi_iterator" >&5
32642 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32643 if test "$ac_cv_cxx_have_bi_iterator" = yes
32646 cat >>confdefs.h <<\_ACEOF
32647 #define HAVE_BI_ITERATOR 1
32652 cat >>confdefs.h <<\_ACEOF
32653 #define HAVE_BI_ITERATOR 0
32658 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators
" >&5
32659 echo $ECHO_N "checking whether the compiler has forward iterators...
$ECHO_C" >&6; }
32660 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32661 echo $ECHO_N "(cached
) $ECHO_C" >&6
32665 ac_cpp='$CXXCPP $CPPFLAGS'
32666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32670 cat >conftest.$ac_ext <<_ACEOF
32673 cat confdefs.h >>conftest.$ac_ext
32674 cat >>conftest.$ac_ext <<_ACEOF
32675 /* end confdefs.h. */
32676 #include <iterator>
32677 #ifdef HAVE_NAMESPACES
32678 using namespace std;
32683 forward_iterator<int,int> t; return 0;
32688 rm -f conftest.$ac_objext
32689 if { (ac_try="$ac_compile"
32690 case "(($ac_try" in
32691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32692 *) ac_try_echo=$ac_try;;
32694 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32695 (eval "$ac_compile") 2>conftest.er1
32697 grep -v '^ *+' conftest.er1 >conftest.err
32699 cat conftest.err >&5
32700 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32701 (exit $ac_status); } &&
32702 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32703 { (case "(($ac_try" in
32704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32705 *) ac_try_echo=$ac_try;;
32707 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32708 (eval "$ac_try") 2>&5
32710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32711 (exit $ac_status); }; } &&
32712 { ac_try='test -s conftest.$ac_objext'
32713 { (case "(($ac_try" in
32714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32715 *) ac_try_echo=$ac_try;;
32717 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32718 (eval "$ac_try") 2>&5
32720 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32721 (exit $ac_status); }; }; then
32722 ac_cv_cxx_have_fwd_iterator=yes
32724 echo "$as_me: failed program was
:" >&5
32725 sed 's/^/| /' conftest.$ac_ext >&5
32727 ac_cv_cxx_have_fwd_iterator=no
32730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32732 ac_cpp='$CPP $CPPFLAGS'
32733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32739 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_fwd_iterator" >&5
32740 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32741 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32744 cat >>confdefs.h <<\_ACEOF
32745 #define HAVE_FWD_ITERATOR 1
32750 cat >>confdefs.h <<\_ACEOF
32751 #define HAVE_FWD_ITERATOR 0
32757 { echo "$as_me:$LINENO: checking
for isnan
in <math.h
>" >&5
32758 echo $ECHO_N "checking
for isnan
in <math.h
>...
$ECHO_C" >&6; }
32759 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32760 echo $ECHO_N "(cached
) $ECHO_C" >&6
32763 ac_cpp='$CXXCPP $CPPFLAGS'
32764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32768 cat >conftest.$ac_ext <<_ACEOF
32771 cat confdefs.h >>conftest.$ac_ext
32772 cat >>conftest.$ac_ext <<_ACEOF
32773 /* end confdefs.h. */
32783 rm -f conftest.$ac_objext
32784 if { (ac_try="$ac_compile"
32785 case "(($ac_try" in
32786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32787 *) ac_try_echo=$ac_try;;
32789 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32790 (eval "$ac_compile") 2>conftest.er1
32792 grep -v '^ *+' conftest.er1 >conftest.err
32794 cat conftest.err >&5
32795 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32796 (exit $ac_status); } &&
32797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32798 { (case "(($ac_try" in
32799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32800 *) ac_try_echo=$ac_try;;
32802 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32803 (eval "$ac_try") 2>&5
32805 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32806 (exit $ac_status); }; } &&
32807 { ac_try='test -s conftest.$ac_objext'
32808 { (case "(($ac_try" in
32809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32810 *) ac_try_echo=$ac_try;;
32812 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32813 (eval "$ac_try") 2>&5
32815 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32816 (exit $ac_status); }; }; then
32817 ac_cv_func_isnan_in_math_h=yes
32819 echo "$as_me: failed program was
:" >&5
32820 sed 's/^/| /' conftest.$ac_ext >&5
32822 ac_cv_func_isnan_in_math_h=no
32825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32827 ac_cpp='$CPP $CPPFLAGS'
32828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32833 { echo "$as_me:$LINENO: result
: $ac_cv_func_isnan_in_math_h" >&5
32834 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32837 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32839 cat >>confdefs.h <<\_ACEOF
32840 #define HAVE_ISNAN_IN_MATH_H 1
32845 { echo "$as_me:$LINENO: checking
for isnan
in <cmath
>" >&5
32846 echo $ECHO_N "checking
for isnan
in <cmath
>...
$ECHO_C" >&6; }
32847 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32848 echo $ECHO_N "(cached
) $ECHO_C" >&6
32851 ac_cpp='$CXXCPP $CPPFLAGS'
32852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32856 cat >conftest.$ac_ext <<_ACEOF
32859 cat confdefs.h >>conftest.$ac_ext
32860 cat >>conftest.$ac_ext <<_ACEOF
32861 /* end confdefs.h. */
32871 rm -f conftest.$ac_objext
32872 if { (ac_try="$ac_compile"
32873 case "(($ac_try" in
32874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32875 *) ac_try_echo=$ac_try;;
32877 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32878 (eval "$ac_compile") 2>conftest.er1
32880 grep -v '^ *+' conftest.er1 >conftest.err
32882 cat conftest.err >&5
32883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32884 (exit $ac_status); } &&
32885 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32886 { (case "(($ac_try" in
32887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32888 *) ac_try_echo=$ac_try;;
32890 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32891 (eval "$ac_try") 2>&5
32893 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32894 (exit $ac_status); }; } &&
32895 { ac_try='test -s conftest.$ac_objext'
32896 { (case "(($ac_try" in
32897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32898 *) ac_try_echo=$ac_try;;
32900 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32901 (eval "$ac_try") 2>&5
32903 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32904 (exit $ac_status); }; }; then
32905 ac_cv_func_isnan_in_cmath=yes
32907 echo "$as_me: failed program was
:" >&5
32908 sed 's/^/| /' conftest.$ac_ext >&5
32910 ac_cv_func_isnan_in_cmath=no
32913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32915 ac_cpp='$CPP $CPPFLAGS'
32916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32921 { echo "$as_me:$LINENO: result
: $ac_cv_func_isnan_in_cmath" >&5
32922 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32924 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32926 cat >>confdefs.h <<\_ACEOF
32927 #define HAVE_ISNAN_IN_CMATH 1
32932 { echo "$as_me:$LINENO: checking
for std
::isnan
in <cmath
>" >&5
32933 echo $ECHO_N "checking
for std
::isnan
in <cmath
>...
$ECHO_C" >&6; }
32934 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32935 echo $ECHO_N "(cached
) $ECHO_C" >&6
32938 ac_cpp='$CXXCPP $CPPFLAGS'
32939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32943 cat >conftest.$ac_ext <<_ACEOF
32946 cat confdefs.h >>conftest.$ac_ext
32947 cat >>conftest.$ac_ext <<_ACEOF
32948 /* end confdefs.h. */
32953 float f; std::isnan(f);
32958 rm -f conftest.$ac_objext
32959 if { (ac_try="$ac_compile"
32960 case "(($ac_try" in
32961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32962 *) ac_try_echo=$ac_try;;
32964 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32965 (eval "$ac_compile") 2>conftest.er1
32967 grep -v '^ *+' conftest.er1 >conftest.err
32969 cat conftest.err >&5
32970 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32971 (exit $ac_status); } &&
32972 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32973 { (case "(($ac_try" in
32974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32975 *) ac_try_echo=$ac_try;;
32977 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32978 (eval "$ac_try") 2>&5
32980 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32981 (exit $ac_status); }; } &&
32982 { ac_try='test -s conftest.$ac_objext'
32983 { (case "(($ac_try" in
32984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32985 *) ac_try_echo=$ac_try;;
32987 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32988 (eval "$ac_try") 2>&5
32990 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32991 (exit $ac_status); }; }; then
32992 ac_cv_func_std_isnan_in_cmath=yes
32994 echo "$as_me: failed program was
:" >&5
32995 sed 's/^/| /' conftest.$ac_ext >&5
32997 ac_cv_func_std_isnan_in_cmath=no
33000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33002 ac_cpp='$CPP $CPPFLAGS'
33003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33008 { echo "$as_me:$LINENO: result
: $ac_cv_func_std_isnan_in_cmath" >&5
33009 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33011 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33013 cat >>confdefs.h <<\_ACEOF
33014 #define HAVE_STD_ISNAN_IN_CMATH 1
33020 { echo "$as_me:$LINENO: checking
for isinf
in <math.h
>" >&5
33021 echo $ECHO_N "checking
for isinf
in <math.h
>...
$ECHO_C" >&6; }
33022 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33023 echo $ECHO_N "(cached
) $ECHO_C" >&6
33026 ac_cpp='$CXXCPP $CPPFLAGS'
33027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33031 cat >conftest.$ac_ext <<_ACEOF
33034 cat confdefs.h >>conftest.$ac_ext
33035 cat >>conftest.$ac_ext <<_ACEOF
33036 /* end confdefs.h. */
33046 rm -f conftest.$ac_objext
33047 if { (ac_try="$ac_compile"
33048 case "(($ac_try" in
33049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33050 *) ac_try_echo=$ac_try;;
33052 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33053 (eval "$ac_compile") 2>conftest.er1
33055 grep -v '^ *+' conftest.er1 >conftest.err
33057 cat conftest.err >&5
33058 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33059 (exit $ac_status); } &&
33060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33061 { (case "(($ac_try" in
33062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33063 *) ac_try_echo=$ac_try;;
33065 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33066 (eval "$ac_try") 2>&5
33068 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33069 (exit $ac_status); }; } &&
33070 { ac_try='test -s conftest.$ac_objext'
33071 { (case "(($ac_try" in
33072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33073 *) ac_try_echo=$ac_try;;
33075 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33076 (eval "$ac_try") 2>&5
33078 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33079 (exit $ac_status); }; }; then
33080 ac_cv_func_isinf_in_math_h=yes
33082 echo "$as_me: failed program was
:" >&5
33083 sed 's/^/| /' conftest.$ac_ext >&5
33085 ac_cv_func_isinf_in_math_h=no
33088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33090 ac_cpp='$CPP $CPPFLAGS'
33091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33096 { echo "$as_me:$LINENO: result
: $ac_cv_func_isinf_in_math_h" >&5
33097 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33099 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33101 cat >>confdefs.h <<\_ACEOF
33102 #define HAVE_ISINF_IN_MATH_H 1
33107 { echo "$as_me:$LINENO: checking
for isinf
in <cmath
>" >&5
33108 echo $ECHO_N "checking
for isinf
in <cmath
>...
$ECHO_C" >&6; }
33109 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33110 echo $ECHO_N "(cached
) $ECHO_C" >&6
33113 ac_cpp='$CXXCPP $CPPFLAGS'
33114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33118 cat >conftest.$ac_ext <<_ACEOF
33121 cat confdefs.h >>conftest.$ac_ext
33122 cat >>conftest.$ac_ext <<_ACEOF
33123 /* end confdefs.h. */
33133 rm -f conftest.$ac_objext
33134 if { (ac_try="$ac_compile"
33135 case "(($ac_try" in
33136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33137 *) ac_try_echo=$ac_try;;
33139 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33140 (eval "$ac_compile") 2>conftest.er1
33142 grep -v '^ *+' conftest.er1 >conftest.err
33144 cat conftest.err >&5
33145 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33146 (exit $ac_status); } &&
33147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33148 { (case "(($ac_try" in
33149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33150 *) ac_try_echo=$ac_try;;
33152 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33153 (eval "$ac_try") 2>&5
33155 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33156 (exit $ac_status); }; } &&
33157 { ac_try='test -s conftest.$ac_objext'
33158 { (case "(($ac_try" in
33159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33160 *) ac_try_echo=$ac_try;;
33162 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33163 (eval "$ac_try") 2>&5
33165 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33166 (exit $ac_status); }; }; then
33167 ac_cv_func_isinf_in_cmath=yes
33169 echo "$as_me: failed program was
:" >&5
33170 sed 's/^/| /' conftest.$ac_ext >&5
33172 ac_cv_func_isinf_in_cmath=no
33175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33177 ac_cpp='$CPP $CPPFLAGS'
33178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33183 { echo "$as_me:$LINENO: result
: $ac_cv_func_isinf_in_cmath" >&5
33184 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33186 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33188 cat >>confdefs.h <<\_ACEOF
33189 #define HAVE_ISINF_IN_CMATH 1
33194 { echo "$as_me:$LINENO: checking
for std
::isinf
in <cmath
>" >&5
33195 echo $ECHO_N "checking
for std
::isinf
in <cmath
>...
$ECHO_C" >&6; }
33196 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33197 echo $ECHO_N "(cached
) $ECHO_C" >&6
33200 ac_cpp='$CXXCPP $CPPFLAGS'
33201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33205 cat >conftest.$ac_ext <<_ACEOF
33208 cat confdefs.h >>conftest.$ac_ext
33209 cat >>conftest.$ac_ext <<_ACEOF
33210 /* end confdefs.h. */
33215 float f; std::isinf(f)}
33220 rm -f conftest.$ac_objext
33221 if { (ac_try="$ac_compile"
33222 case "(($ac_try" in
33223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33224 *) ac_try_echo=$ac_try;;
33226 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33227 (eval "$ac_compile") 2>conftest.er1
33229 grep -v '^ *+' conftest.er1 >conftest.err
33231 cat conftest.err >&5
33232 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33233 (exit $ac_status); } &&
33234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33235 { (case "(($ac_try" in
33236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33237 *) ac_try_echo=$ac_try;;
33239 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33240 (eval "$ac_try") 2>&5
33242 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33243 (exit $ac_status); }; } &&
33244 { ac_try='test -s conftest.$ac_objext'
33245 { (case "(($ac_try" in
33246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33247 *) ac_try_echo=$ac_try;;
33249 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33250 (eval "$ac_try") 2>&5
33252 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33253 (exit $ac_status); }; }; then
33254 ac_cv_func_std_isinf_in_cmath=yes
33256 echo "$as_me: failed program was
:" >&5
33257 sed 's/^/| /' conftest.$ac_ext >&5
33259 ac_cv_func_std_isinf_in_cmath=no
33262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33264 ac_cpp='$CPP $CPPFLAGS'
33265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33270 { echo "$as_me:$LINENO: result
: $ac_cv_func_std_isinf_in_cmath" >&5
33271 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33273 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33275 cat >>confdefs.h <<\_ACEOF
33276 #define HAVE_STD_ISINF_IN_CMATH 1
33281 { echo "$as_me:$LINENO: checking
for finite
in <ieeefp.h
>" >&5
33282 echo $ECHO_N "checking
for finite
in <ieeefp.h
>...
$ECHO_C" >&6; }
33283 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33284 echo $ECHO_N "(cached
) $ECHO_C" >&6
33287 ac_cpp='$CXXCPP $CPPFLAGS'
33288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33292 cat >conftest.$ac_ext <<_ACEOF
33295 cat confdefs.h >>conftest.$ac_ext
33296 cat >>conftest.$ac_ext <<_ACEOF
33297 /* end confdefs.h. */
33298 #include <ieeefp.h>
33302 float f; finite(f);
33307 rm -f conftest.$ac_objext
33308 if { (ac_try="$ac_compile"
33309 case "(($ac_try" in
33310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33311 *) ac_try_echo=$ac_try;;
33313 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33314 (eval "$ac_compile") 2>conftest.er1
33316 grep -v '^ *+' conftest.er1 >conftest.err
33318 cat conftest.err >&5
33319 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33320 (exit $ac_status); } &&
33321 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33322 { (case "(($ac_try" in
33323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33324 *) ac_try_echo=$ac_try;;
33326 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33327 (eval "$ac_try") 2>&5
33329 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33330 (exit $ac_status); }; } &&
33331 { ac_try='test -s conftest.$ac_objext'
33332 { (case "(($ac_try" in
33333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33334 *) ac_try_echo=$ac_try;;
33336 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33337 (eval "$ac_try") 2>&5
33339 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33340 (exit $ac_status); }; }; then
33341 ac_cv_func_finite_in_ieeefp_h=yes
33343 echo "$as_me: failed program was
:" >&5
33344 sed 's/^/| /' conftest.$ac_ext >&5
33346 ac_cv_func_finite_in_ieeefp_h=no
33349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33351 ac_cpp='$CPP $CPPFLAGS'
33352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33357 { echo "$as_me:$LINENO: result
: $ac_cv_func_finite_in_ieeefp_h" >&5
33358 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33360 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33362 cat >>confdefs.h <<\_ACEOF
33363 #define HAVE_FINITE_IN_IEEEFP_H 1
33370 if test "$llvm_cv_platform_type" = "Unix
" ; then
33373 for ac_header in stdlib.h unistd.h
33375 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
33376 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
33377 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
33378 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
33379 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
33380 echo $ECHO_N "(cached
) $ECHO_C" >&6
33382 ac_res=`eval echo '${'$as_ac_Header'}'`
33383 { echo "$as_me:$LINENO: result
: $ac_res" >&5
33384 echo "${ECHO_T}$ac_res" >&6; }
33386 # Is the header compilable?
33387 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
33388 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
33389 cat >conftest.$ac_ext <<_ACEOF
33392 cat confdefs.h >>conftest.$ac_ext
33393 cat >>conftest.$ac_ext <<_ACEOF
33394 /* end confdefs.h. */
33395 $ac_includes_default
33396 #include <$ac_header>
33398 rm -f conftest.$ac_objext
33399 if { (ac_try="$ac_compile"
33400 case "(($ac_try" in
33401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33402 *) ac_try_echo=$ac_try;;
33404 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33405 (eval "$ac_compile") 2>conftest.er1
33407 grep -v '^ *+' conftest.er1 >conftest.err
33409 cat conftest.err >&5
33410 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33411 (exit $ac_status); } &&
33412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33413 { (case "(($ac_try" in
33414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33415 *) ac_try_echo=$ac_try;;
33417 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33418 (eval "$ac_try") 2>&5
33420 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33421 (exit $ac_status); }; } &&
33422 { ac_try='test -s conftest.$ac_objext'
33423 { (case "(($ac_try" in
33424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33425 *) ac_try_echo=$ac_try;;
33427 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33428 (eval "$ac_try") 2>&5
33430 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33431 (exit $ac_status); }; }; then
33432 ac_header_compiler=yes
33434 echo "$as_me: failed program was
:" >&5
33435 sed 's/^/| /' conftest.$ac_ext >&5
33437 ac_header_compiler=no
33440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33441 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
33442 echo "${ECHO_T}$ac_header_compiler" >&6; }
33444 # Is the header present?
33445 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
33446 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
33447 cat >conftest.$ac_ext <<_ACEOF
33450 cat confdefs.h >>conftest.$ac_ext
33451 cat >>conftest.$ac_ext <<_ACEOF
33452 /* end confdefs.h. */
33453 #include <$ac_header>
33455 if { (ac_try="$ac_cpp conftest.
$ac_ext"
33456 case "(($ac_try" in
33457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33458 *) ac_try_echo=$ac_try;;
33460 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33461 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
33463 grep -v '^ *+' conftest.er1 >conftest.err
33465 cat conftest.err >&5
33466 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33467 (exit $ac_status); } >/dev/null; then
33468 if test -s conftest.err; then
33469 ac_cpp_err=$ac_c_preproc_warn_flag
33470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33477 if test -z "$ac_cpp_err"; then
33478 ac_header_preproc=yes
33480 echo "$as_me: failed program was
:" >&5
33481 sed 's/^/| /' conftest.$ac_ext >&5
33483 ac_header_preproc=no
33486 rm -f conftest.err conftest.$ac_ext
33487 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
33488 echo "${ECHO_T}$ac_header_preproc" >&6; }
33490 # So? What about this header?
33491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33493 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
33494 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
33495 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
33496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
33497 ac_header_preproc=yes
33500 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
33501 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
33502 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
33503 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
33504 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
33505 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
33506 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
33507 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
33508 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
33509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
33510 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
33511 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
33513 ## ----------------------------------- ##
33514 ## Report this to llvmbugs@cs.uiuc.edu ##
33515 ## ----------------------------------- ##
33517 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
33520 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
33521 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
33522 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
33523 echo $ECHO_N "(cached
) $ECHO_C" >&6
33525 eval "$as_ac_Header=\
$ac_header_preproc"
33527 ac_res=`eval echo '${'$as_ac_Header'}'`
33528 { echo "$as_me:$LINENO: result
: $ac_res" >&5
33529 echo "${ECHO_T}$ac_res" >&6; }
33532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33533 cat >>confdefs.h <<_ACEOF
33534 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
33542 for ac_func in getpagesize
33544 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
33545 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
33546 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
33547 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
33548 echo $ECHO_N "(cached
) $ECHO_C" >&6
33550 cat >conftest.$ac_ext <<_ACEOF
33553 cat confdefs.h >>conftest.$ac_ext
33554 cat >>conftest.$ac_ext <<_ACEOF
33555 /* end confdefs.h. */
33556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33558 #define $ac_func innocuous_$ac_func
33560 /* System header to define __stub macros and hopefully few prototypes,
33561 which can conflict with char $ac_func (); below.
33562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33563 <limits.h> exists even on freestanding compilers. */
33566 # include <limits.h>
33568 # include <assert.h>
33573 /* Override any GCC internal prototype to avoid an error.
33574 Use char because int might match the return type of a GCC
33575 builtin and then its argument prototype would still apply. */
33580 /* The GNU C library defines this for functions which it implements
33581 to always fail with ENOSYS. Some functions are actually named
33582 something starting with __ and the normal name is an alias. */
33583 #if defined __stub_$ac_func || defined __stub___$ac_func
33590 return $ac_func ();
33595 rm -f conftest.$ac_objext conftest$ac_exeext
33596 if { (ac_try="$ac_link"
33597 case "(($ac_try" in
33598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33599 *) ac_try_echo=$ac_try;;
33601 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33602 (eval "$ac_link") 2>conftest.er1
33604 grep -v '^ *+' conftest.er1 >conftest.err
33606 cat conftest.err >&5
33607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33608 (exit $ac_status); } &&
33609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33610 { (case "(($ac_try" in
33611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33612 *) ac_try_echo=$ac_try;;
33614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33615 (eval "$ac_try") 2>&5
33617 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33618 (exit $ac_status); }; } &&
33619 { ac_try='test -s conftest$ac_exeext'
33620 { (case "(($ac_try" in
33621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33622 *) ac_try_echo=$ac_try;;
33624 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33625 (eval "$ac_try") 2>&5
33627 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33628 (exit $ac_status); }; }; then
33629 eval "$as_ac_var=yes"
33631 echo "$as_me: failed program was
:" >&5
33632 sed 's/^/| /' conftest.$ac_ext >&5
33634 eval "$as_ac_var=no
"
33637 rm -f core conftest.err conftest.$ac_objext \
33638 conftest$ac_exeext conftest.$ac_ext
33640 ac_res=`eval echo '${'$as_ac_var'}'`
33641 { echo "$as_me:$LINENO: result
: $ac_res" >&5
33642 echo "${ECHO_T}$ac_res" >&6; }
33643 if test `eval echo '${'$as_ac_var'}'` = yes; then
33644 cat >>confdefs.h <<_ACEOF
33645 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
33651 { echo "$as_me:$LINENO: checking
for working mmap
" >&5
33652 echo $ECHO_N "checking
for working mmap...
$ECHO_C" >&6; }
33653 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33654 echo $ECHO_N "(cached
) $ECHO_C" >&6
33656 if test "$cross_compiling" = yes; then
33657 ac_cv_func_mmap_fixed_mapped=no
33659 cat >conftest.$ac_ext <<_ACEOF
33662 cat confdefs.h >>conftest.$ac_ext
33663 cat >>conftest.$ac_ext <<_ACEOF
33664 /* end confdefs.h. */
33665 $ac_includes_default
33666 /* malloc might have been renamed as rpl_malloc. */
33669 /* Thanks to Mike Haertel and Jim Avera for this test.
33670 Here is a matrix of mmap possibilities:
33671 mmap private not fixed
33672 mmap private fixed at somewhere currently unmapped
33673 mmap private fixed at somewhere already mapped
33674 mmap shared not fixed
33675 mmap shared fixed at somewhere currently unmapped
33676 mmap shared fixed at somewhere already mapped
33677 For private mappings, we should verify that changes cannot be read()
33678 back from the file, nor mmap's back from the file at a different
33679 address. (There have been systems where private was not correctly
33680 implemented like the infamous i386 svr4.0, and systems where the
33681 VM page cache was not coherent with the file system buffer cache
33682 like early versions of FreeBSD and possibly contemporary NetBSD.)
33683 For shared mappings, we should conversely verify that changes get
33684 propagated back to all the places they're supposed to be.
33686 Grep wants private fixed already mapped.
33687 The main things grep needs to know about mmap are:
33688 * does it exist and is it safe to write into the mmap'd area
33689 * how to use it (BSD variants) */
33692 #include <sys/mman.h>
33694 #if !STDC_HEADERS && !HAVE_STDLIB_H
33698 /* This mess was copied from the GNU getpagesize.h. */
33699 #if !HAVE_GETPAGESIZE
33700 /* Assume that all systems that can run configure have sys/param.h. */
33701 # if !HAVE_SYS_PARAM_H
33702 # define HAVE_SYS_PARAM_H 1
33705 # ifdef _SC_PAGESIZE
33706 # define getpagesize() sysconf(_SC_PAGESIZE)
33707 # else /* no _SC_PAGESIZE */
33708 # if HAVE_SYS_PARAM_H
33709 # include <sys/param.h>
33710 # ifdef EXEC_PAGESIZE
33711 # define getpagesize() EXEC_PAGESIZE
33712 # else /* no EXEC_PAGESIZE */
33714 # define getpagesize() NBPG * CLSIZE
33717 # endif /* no CLSIZE */
33718 # else /* no NBPG */
33720 # define getpagesize() NBPC
33721 # else /* no NBPC */
33723 # define getpagesize() PAGESIZE
33724 # endif /* PAGESIZE */
33725 # endif /* no NBPC */
33726 # endif /* no NBPG */
33727 # endif /* no EXEC_PAGESIZE */
33728 # else /* no HAVE_SYS_PARAM_H */
33729 # define getpagesize() 8192 /* punt totally */
33730 # endif /* no HAVE_SYS_PARAM_H */
33731 # endif /* no _SC_PAGESIZE */
33733 #endif /* no HAVE_GETPAGESIZE */
33738 char *data, *data2, *data3;
33742 pagesize = getpagesize ();
33744 /* First, make a file with some known garbage in it. */
33745 data = (char *) malloc (pagesize);
33748 for (i = 0; i < pagesize; ++i)
33749 *(data + i) = rand ();
33751 fd = creat ("conftest.mmap
", 0600);
33754 if (write (fd, data, pagesize) != pagesize)
33758 /* Next, try to mmap the file at a fixed address which already has
33759 something else allocated at it. If we can, also make sure that
33760 we see the same garbage. */
33761 fd = open ("conftest.mmap
", O_RDWR);
33764 data2 = (char *) malloc (2 * pagesize);
33767 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33768 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33769 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33771 for (i = 0; i < pagesize; ++i)
33772 if (*(data + i) != *(data2 + i))
33775 /* Finally, make sure that changes to the mapped area do not
33776 percolate back to the file as seen by read(). (This is a bug on
33777 some variants of i386 svr4.0.) */
33778 for (i = 0; i < pagesize; ++i)
33779 *(data2 + i) = *(data2 + i) + 1;
33780 data3 = (char *) malloc (pagesize);
33783 if (read (fd, data3, pagesize) != pagesize)
33785 for (i = 0; i < pagesize; ++i)
33786 if (*(data + i) != *(data3 + i))
33792 rm -f conftest$ac_exeext
33793 if { (ac_try="$ac_link"
33794 case "(($ac_try" in
33795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33796 *) ac_try_echo=$ac_try;;
33798 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33799 (eval "$ac_link") 2>&5
33801 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33803 { (case "(($ac_try" in
33804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33805 *) ac_try_echo=$ac_try;;
33807 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33808 (eval "$ac_try") 2>&5
33810 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33811 (exit $ac_status); }; }; then
33812 ac_cv_func_mmap_fixed_mapped=yes
33814 echo "$as_me: program exited with status
$ac_status" >&5
33815 echo "$as_me: failed program was
:" >&5
33816 sed 's/^/| /' conftest.$ac_ext >&5
33818 ( exit $ac_status )
33819 ac_cv_func_mmap_fixed_mapped=no
33821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33826 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
33827 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33828 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33830 cat >>confdefs.h <<\_ACEOF
33831 #define HAVE_MMAP 1
33835 rm -f conftest.mmap
33837 { echo "$as_me:$LINENO: checking
for mmap of files
" >&5
33838 echo $ECHO_N "checking
for mmap of files...
$ECHO_C" >&6; }
33839 if test "${ac_cv_func_mmap_file+set}" = set; then
33840 echo $ECHO_N "(cached
) $ECHO_C" >&6
33843 ac_cpp='$CPP $CPPFLAGS'
33844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33848 if test "$cross_compiling" = yes; then
33849 ac_cv_func_mmap_file=no
33851 cat >conftest.$ac_ext <<_ACEOF
33855 cat confdefs.h >>conftest.$ac_ext
33856 cat >>conftest.$ac_ext <<_ACEOF
33857 /* end confdefs.h. */
33859 #include <sys/types.h>
33860 #include <sys/mman.h>
33868 fd = creat ("foo
",0777);
33869 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33871 return (fd != (int) MAP_FAILED);
33876 rm -f conftest$ac_exeext
33877 if { (ac_try="$ac_link"
33878 case "(($ac_try" in
33879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33880 *) ac_try_echo=$ac_try;;
33882 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33883 (eval "$ac_link") 2>&5
33885 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33887 { (case "(($ac_try" in
33888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33889 *) ac_try_echo=$ac_try;;
33891 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33892 (eval "$ac_try") 2>&5
33894 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33895 (exit $ac_status); }; }; then
33896 ac_cv_func_mmap_file=yes
33898 echo "$as_me: program exited with status
$ac_status" >&5
33899 echo "$as_me: failed program was
:" >&5
33900 sed 's/^/| /' conftest.$ac_ext >&5
33902 ( exit $ac_status )
33903 ac_cv_func_mmap_file=no
33905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33910 ac_cpp='$CPP $CPPFLAGS'
33911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33917 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_file" >&5
33918 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33919 if test "$ac_cv_func_mmap_file" = yes; then
33921 cat >>confdefs.h <<\_ACEOF
33922 #define HAVE_MMAP_FILE
33929 { echo "$as_me:$LINENO: checking
if /dev
/zero is needed
for mmap
" >&5
33930 echo $ECHO_N "checking
if /dev
/zero is needed
for mmap...
$ECHO_C" >&6; }
33931 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33932 echo $ECHO_N "(cached
) $ECHO_C" >&6
33934 if test "$llvm_cv_os_type" = "Interix
" ; then
33935 ac_cv_need_dev_zero_for_mmap=yes
33937 ac_cv_need_dev_zero_for_mmap=no
33941 { echo "$as_me:$LINENO: result
: $ac_cv_need_dev_zero_for_mmap" >&5
33942 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33943 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33945 cat >>confdefs.h <<\_ACEOF
33946 #define NEED_DEV_ZERO_FOR_MMAP 1
33951 if test "$ac_cv_func_mmap_fixed_mapped" = "no
"
33953 { echo "$as_me:$LINENO: WARNING
: mmap
() of a fixed address required but not supported
" >&5
33954 echo "$as_me: WARNING
: mmap
() of a fixed address required but not supported
" >&2;}
33956 if test "$ac_cv_func_mmap_file" = "no
"
33958 { echo "$as_me:$LINENO: WARNING
: mmap
() of files required but not found
" >&5
33959 echo "$as_me: WARNING
: mmap
() of files required but not found
" >&2;}
33965 for ac_func in __dso_handle
33967 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
33968 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
33969 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
33970 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
33971 echo $ECHO_N "(cached
) $ECHO_C" >&6
33973 cat >conftest.$ac_ext <<_ACEOF
33976 cat confdefs.h >>conftest.$ac_ext
33977 cat >>conftest.$ac_ext <<_ACEOF
33978 /* end confdefs.h. */
33979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33981 #define $ac_func innocuous_$ac_func
33983 /* System header to define __stub macros and hopefully few prototypes,
33984 which can conflict with char $ac_func (); below.
33985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33986 <limits.h> exists even on freestanding compilers. */
33989 # include <limits.h>
33991 # include <assert.h>
33996 /* Override any GCC internal prototype to avoid an error.
33997 Use char because int might match the return type of a GCC
33998 builtin and then its argument prototype would still apply. */
34003 /* The GNU C library defines this for functions which it implements
34004 to always fail with ENOSYS. Some functions are actually named
34005 something starting with __ and the normal name is an alias. */
34006 #if defined __stub_$ac_func || defined __stub___$ac_func
34013 return $ac_func ();
34018 rm -f conftest.$ac_objext conftest$ac_exeext
34019 if { (ac_try="$ac_link"
34020 case "(($ac_try" in
34021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34022 *) ac_try_echo=$ac_try;;
34024 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34025 (eval "$ac_link") 2>conftest.er1
34027 grep -v '^ *+' conftest.er1 >conftest.err
34029 cat conftest.err >&5
34030 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34031 (exit $ac_status); } &&
34032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34033 { (case "(($ac_try" in
34034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34035 *) ac_try_echo=$ac_try;;
34037 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34038 (eval "$ac_try") 2>&5
34040 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34041 (exit $ac_status); }; } &&
34042 { ac_try='test -s conftest$ac_exeext'
34043 { (case "(($ac_try" in
34044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34045 *) ac_try_echo=$ac_try;;
34047 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34048 (eval "$ac_try") 2>&5
34050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34051 (exit $ac_status); }; }; then
34052 eval "$as_ac_var=yes"
34054 echo "$as_me: failed program was
:" >&5
34055 sed 's/^/| /' conftest.$ac_ext >&5
34057 eval "$as_ac_var=no
"
34060 rm -f core conftest.err conftest.$ac_objext \
34061 conftest$ac_exeext conftest.$ac_ext
34063 ac_res=`eval echo '${'$as_ac_var'}'`
34064 { echo "$as_me:$LINENO: result
: $ac_res" >&5
34065 echo "${ECHO_T}$ac_res" >&6; }
34066 if test `eval echo '${'$as_ac_var'}'` = yes; then
34067 cat >>confdefs.h <<_ACEOF
34068 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
34075 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane
" >&5
34076 echo $ECHO_N "checking whether llvm-gcc is sane...
$ECHO_C" >&6; }
34077 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34078 echo $ECHO_N "(cached
) $ECHO_C" >&6
34080 llvm_cv_llvmgcc_sanity="no
"
34081 if test -x "$LLVMGCC" ; then
34082 cp /dev/null conftest.c
34083 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34084 grep 'target datalayout =' > /dev/null 2>&1
34085 if test $? -eq 0 ; then
34086 llvm_cv_llvmgcc_sanity="yes"
34091 { echo "$as_me:$LINENO: result
: $llvm_cv_llvmgcc_sanity" >&5
34092 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34094 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34095 { echo "$as_me:$LINENO: checking llvm-gcc component support
" >&5
34096 echo $ECHO_N "checking llvm-gcc component support...
$ECHO_C" >&6; }
34097 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34098 LLVMCC1=$llvmcc1path
34100 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34101 LLVMCC1PLUS=$llvmcc1pluspath
34103 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34104 LLVMGCCDIR=$llvmgccdir
34106 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34107 LLVMGCCLIBEXEC=$llvmgcclibexec
34109 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34110 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34111 LLVMGCC_VERSION=$llvmgccversion
34113 LLVMGCC_MAJVERS=$llvmgccmajvers
34115 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34116 LLVMGCC_LANGS=$llvmgcclangs
34118 { echo "$as_me:$LINENO: result
: ok
" >&5
34119 echo "${ECHO_T}ok
" >&6; }
34122 SHLIBEXT=$libltdl_cv_shlibext
34125 # Translate the various configuration directories and other basic
34126 # information into substitutions that will end up in Makefile.config.in
34127 # that these configured values can be used by the makefiles
34128 if test "${prefix}" = "NONE
" ; then
34129 prefix="/usr
/local"
34131 eval LLVM_PREFIX="${prefix}";
34132 eval LLVM_BINDIR="${prefix}/bin
";
34133 eval LLVM_LIBDIR="${prefix}/lib
";
34134 eval LLVM_DATADIR="${prefix}/share
/llvm
";
34135 eval LLVM_DOCSDIR="${prefix}/docs
/llvm
";
34136 eval LLVM_ETCDIR="${prefix}/etc
/llvm
";
34137 eval LLVM_INCLUDEDIR="${prefix}/include
";
34138 eval LLVM_INFODIR="${prefix}/info
";
34139 eval LLVM_MANDIR="${prefix}/man
";
34140 LLVM_CONFIGTIME=`date`
34152 # Place the various directores into the config.h file as #defines so that we
34153 # can know about the installation paths within LLVM.
34155 cat >>confdefs.h <<_ACEOF
34156 #define LLVM_PREFIX "$LLVM_PREFIX"
34160 cat >>confdefs.h <<_ACEOF
34161 #define LLVM_BINDIR "$LLVM_BINDIR"
34165 cat >>confdefs.h <<_ACEOF
34166 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34170 cat >>confdefs.h <<_ACEOF
34171 #define LLVM_DATADIR "$LLVM_DATADIR"
34175 cat >>confdefs.h <<_ACEOF
34176 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34180 cat >>confdefs.h <<_ACEOF
34181 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34185 cat >>confdefs.h <<_ACEOF
34186 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34190 cat >>confdefs.h <<_ACEOF
34191 #define LLVM_INFODIR "$LLVM_INFODIR"
34195 cat >>confdefs.h <<_ACEOF
34196 #define LLVM_MANDIR "$LLVM_MANDIR"
34200 cat >>confdefs.h <<_ACEOF
34201 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34205 cat >>confdefs.h <<_ACEOF
34206 #define LLVM_HOSTTRIPLE "$host"
34210 # Determine which bindings to build.
34211 if test "$BINDINGS_TO_BUILD" = auto ; then
34212 BINDINGS_TO_BUILD=""
34213 if test "x
$OCAMLC" != x -a "x
$OCAMLDEP" != x ; then
34214 BINDINGS_TO_BUILD="ocaml
$BINDINGS_TO_BUILD"
34217 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34220 # This isn't really configurey, but it avoids having to repeat the list in
34225 # Do any work necessary to ensure that bindings have what they need.
34226 binding_prereqs_failed=0
34227 for a_binding in $BINDINGS_TO_BUILD ; do
34228 case "$a_binding" in
34230 if test "x
$OCAMLC" = x ; then
34231 { echo "$as_me:$LINENO: WARNING
: --enable-bindings=ocaml specified
, but ocamlc not found. Try configure OCAMLC
=/path
/to
/ocamlc
" >&5
34232 echo "$as_me: WARNING
: --enable-bindings=ocaml specified
, but ocamlc not found. Try configure OCAMLC
=/path
/to
/ocamlc
" >&2;}
34233 binding_prereqs_failed=1
34235 if test "x
$OCAMLDEP" = x ; then
34236 { echo "$as_me:$LINENO: WARNING
: --enable-bindings=ocaml specified
, but ocamldep not found. Try configure OCAMLDEP
=/path
/to
/ocamldep
" >&5
34237 echo "$as_me: WARNING
: --enable-bindings=ocaml specified
, but ocamldep not found. Try configure OCAMLDEP
=/path
/to
/ocamldep
" >&2;}
34238 binding_prereqs_failed=1
34240 if test "x
$OCAMLOPT" = x ; then
34241 { echo "$as_me:$LINENO: WARNING
: --enable-bindings=ocaml specified
, but ocamlopt not found. Try configure OCAMLOPT
=/path
/to
/ocamlopt
" >&5
34242 echo "$as_me: WARNING
: --enable-bindings=ocaml specified
, but ocamlopt not found. Try configure OCAMLOPT
=/path
/to
/ocamlopt
" >&2;}
34244 if test "x
$with_ocaml_libdir" != xauto ; then
34245 OCAML_LIBDIR=$with_ocaml_libdir
34248 ocaml_stdlib="`"$OCAMLC" -where`"
34249 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~
"
34251 # ocaml stdlib is beneath our prefix; use stdlib
34252 OCAML_LIBDIR=$ocaml_stdlib
34255 # ocaml stdlib is outside our prefix; use libdir/ocaml
34256 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34263 if test "$binding_prereqs_failed" = 1 ; then
34264 { { echo "$as_me:$LINENO: error
: Prequisites
for bindings not satisfied. Fix them or use configure
--disable-bindings.
" >&5
34265 echo "$as_me: error
: Prequisites
for bindings not satisfied. Fix them or use configure
--disable-bindings.
" >&2;}
34266 { (exit 1); exit 1; }; }
34269 { echo "$as_me:$LINENO: checking
for compiler
-fvisibility-inlines-hidden option
" >&5
34270 echo $ECHO_N "checking
for compiler
-fvisibility-inlines-hidden option...
$ECHO_C" >&6; }
34271 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34272 echo $ECHO_N "(cached
) $ECHO_C" >&6
34275 ac_cpp='$CXXCPP $CPPFLAGS'
34276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34280 oldcxxflags="$CXXFLAGS"
34281 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34282 cat >conftest.$ac_ext <<_ACEOF
34285 cat confdefs.h >>conftest.$ac_ext
34286 cat >>conftest.$ac_ext <<_ACEOF
34287 /* end confdefs.h. */
34297 rm -f conftest.$ac_objext
34298 if { (ac_try="$ac_compile"
34299 case "(($ac_try" in
34300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34301 *) ac_try_echo=$ac_try;;
34303 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34304 (eval "$ac_compile") 2>conftest.er1
34306 grep -v '^ *+' conftest.er1 >conftest.err
34308 cat conftest.err >&5
34309 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34310 (exit $ac_status); } &&
34311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34312 { (case "(($ac_try" in
34313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34314 *) ac_try_echo=$ac_try;;
34316 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34317 (eval "$ac_try") 2>&5
34319 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34320 (exit $ac_status); }; } &&
34321 { ac_try='test -s conftest.$ac_objext'
34322 { (case "(($ac_try" in
34323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34324 *) ac_try_echo=$ac_try;;
34326 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34327 (eval "$ac_try") 2>&5
34329 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34330 (exit $ac_status); }; }; then
34331 llvm_cv_cxx_visibility_inlines_hidden=yes
34333 echo "$as_me: failed program was
:" >&5
34334 sed 's/^/| /' conftest.$ac_ext >&5
34336 llvm_cv_cxx_visibility_inlines_hidden=no
34339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34340 CXXFLAGS="$oldcxxflags"
34342 ac_cpp='$CPP $CPPFLAGS'
34343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34349 { echo "$as_me:$LINENO: result
: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34350 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34351 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34352 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34355 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34361 ac_config_headers="$ac_config_headers include
/llvm
/Config
/config.h
"
34363 ac_config_headers="$ac_config_headers include
/llvm
/Support
/DataTypes.h
"
34365 ac_config_headers="$ac_config_headers include
/llvm
/ADT
/hash_map.h
"
34367 ac_config_headers="$ac_config_headers include
/llvm
/ADT
/hash_set.h
"
34369 ac_config_headers="$ac_config_headers include
/llvm
/ADT
/iterator.h
"
34372 ac_config_files="$ac_config_files Makefile.config
"
34375 ac_config_files="$ac_config_files llvm.spec
"
34378 ac_config_files="$ac_config_files docs
/doxygen.cfg
"
34381 ac_config_files="$ac_config_files tools
/llvm-config
/llvm-config.
in"
34384 ac_config_commands="$ac_config_commands setup
"
34386 ac_config_commands="$ac_config_commands Makefile
"
34389 ac_config_commands="$ac_config_commands Makefile.common
"
34392 ac_config_commands="$ac_config_commands examples
/Makefile
"
34395 ac_config_commands="$ac_config_commands lib
/Makefile
"
34398 ac_config_commands="$ac_config_commands runtime
/Makefile
"
34401 ac_config_commands="$ac_config_commands test
/Makefile
"
34404 ac_config_commands="$ac_config_commands test
/Makefile.tests
"
34407 ac_config_commands="$ac_config_commands tools
/Makefile
"
34410 ac_config_commands="$ac_config_commands utils
/Makefile
"
34413 ac_config_commands="$ac_config_commands projects
/Makefile
"
34416 ac_config_commands="$ac_config_commands bindings
/Makefile
"
34419 ac_config_commands="$ac_config_commands bindings
/ocaml
/Makefile.ocaml
"
34423 cat >confcache <<\_ACEOF
34424 # This file is a shell script that caches the results of configure
34425 # tests run on this system so they can be shared between configure
34426 # scripts and configure runs, see configure's option --config-cache.
34427 # It is not useful on other systems. If it contains results you don't
34428 # want to keep, you may remove or edit it.
34430 # config.status only pays attention to the cache file if you give it
34431 # the --recheck option to rerun configure.
34433 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34434 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34435 # following values.
34439 # The following way of writing the cache mishandles newlines in values,
34440 # but we know of no workaround that is simple, portable, and efficient.
34441 # So, we kill variables containing newlines.
34442 # Ultrix sh set writes to stderr and can't be redirected directly,
34443 # and sets the high bit in the cache file unless we assign to the vars.
34445 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34446 eval ac_val=\$$ac_var
34450 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
34451 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
34454 _ | IFS | as_nl) ;; #(
34455 *) $as_unset $ac_var ;;
34461 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34462 *${as_nl}ac_space=\ *)
34463 # `set' does not quote correctly, so add quotes (double-quote
34464 # substitution turns \\\\ into \\, and sed turns \\ into \).
34467 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
34470 # `set' quotes correctly as required by POSIX, so do not add quotes.
34471 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
34480 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34482 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34484 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34485 if test -w "$cache_file"; then
34486 test "x
$cache_file" != "x
/dev
/null
" &&
34487 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
34488 echo "$as_me: updating cache
$cache_file" >&6;}
34489 cat confcache >$cache_file
34491 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
34492 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
34497 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
34498 # Let make expand exec_prefix.
34499 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
34501 DEFS=-DHAVE_CONFIG_H
34505 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
34506 # 1. Remove the extension, and $U if already installed.
34507 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34508 ac_i=`echo "$ac_i" | sed "$ac_script"`
34509 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34510 # will be set to the directory where LIBOBJS objects are built.
34511 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
34512 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
34514 LIBOBJS=$ac_libobjs
34516 LTLIBOBJS=$ac_ltlibobjs
34519 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34520 { { echo "$as_me:$LINENO: error
: conditional
\"INSTALL_LTDL
\" was never defined.
34521 Usually this means the macro was only invoked conditionally.
" >&5
34522 echo "$as_me: error
: conditional
\"INSTALL_LTDL
\" was never defined.
34523 Usually this means the macro was only invoked conditionally.
" >&2;}
34524 { (exit 1); exit 1; }; }
34526 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34527 { { echo "$as_me:$LINENO: error
: conditional
\"CONVENIENCE_LTDL
\" was never defined.
34528 Usually this means the macro was only invoked conditionally.
" >&5
34529 echo "$as_me: error
: conditional
\"CONVENIENCE_LTDL
\" was never defined.
34530 Usually this means the macro was only invoked conditionally.
" >&2;}
34531 { (exit 1); exit 1; }; }
34534 : ${CONFIG_STATUS=./config.status}
34535 ac_clean_files_save=$ac_clean_files
34536 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34537 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
34538 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
34539 cat >$CONFIG_STATUS <<_ACEOF
34541 # Generated by $as_me.
34542 # Run this file to recreate the current configuration.
34543 # Compiler output produced by configure, useful for debugging
34544 # configure, is in config.log if it exists.
34547 ac_cs_recheck=false
34549 SHELL=\${CONFIG_SHELL-$SHELL}
34552 cat >>$CONFIG_STATUS <<\_ACEOF
34553 ## --------------------- ##
34554 ## M4sh Initialization. ##
34555 ## --------------------- ##
34557 # Be Bourne compatible
34558 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34561 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34562 # is contrary to our usage. Disable this feature.
34563 alias -g '${1+"$@"}'='"$@
"'
34564 setopt NO_GLOB_SUBST
34566 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34568 BIN_SH=xpg4; export BIN_SH # for Tru64
34569 DUALCASE=1; export DUALCASE # for MKS sh
34573 # Avoid depending upon Character Ranges.
34574 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34575 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34576 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34577 as_cr_digits='0123456789'
34578 as_cr_alnum=$as_cr_Letters$as_cr_digits
34580 # The user is always right.
34581 if test "${PATH_SEPARATOR+set}" != set; then
34582 echo "#! /bin/sh" >conf$$.sh
34583 echo "exit 0" >>conf$$.sh
34585 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
34593 # Support unset when possible.
34594 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
34602 # We need space, tab and new line, in precisely that order. Quoting is
34603 # there to prevent editors from complaining about space-tab.
34604 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34605 # splitting by setting IFS to empty value.)
34610 # Find who we are. Look in the path if we contain no directory separator.
34612 *[\\/]* ) as_myself
=$0 ;;
34613 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
34614 for as_dir
in $PATH
34617 test -z "$as_dir" && as_dir
=.
34618 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
34624 # We did not find ourselves, most probably we were run as `sh COMMAND'
34625 # in which case we are not to be found in the path.
34626 if test "x$as_myself" = x
; then
34629 if test ! -f "$as_myself"; then
34630 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34631 { (exit 1); exit 1; }
34634 # Work around bugs in pre-3.0 UWIN ksh.
34635 for as_var
in ENV MAIL MAILPATH
34636 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
34644 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34645 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34646 LC_TELEPHONE LC_TIME
34648 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34649 eval $as_var=C
; export $as_var
34651 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
34655 # Required to use basename.
34656 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
34657 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
34663 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34664 as_basename
=basename
34670 # Name of the executable.
34671 as_me
=`$as_basename -- "$0" ||
34672 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34673 X"$0" : 'X\(//\)$' \| \
34674 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34676 sed '/^.*\/\([^/][^/]*\)\/*$/{
34695 as_lineno_1
=$LINENO
34696 as_lineno_2
=$LINENO
34697 test "x$as_lineno_1" != "x$as_lineno_2" &&
34698 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
34700 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34701 # uniformly replaced by the line number. The first 'sed' inserts a
34702 # line-number line after each line using $LINENO; the second 'sed'
34703 # does the real work. The second script uses 'N' to pair each
34704 # line-number line with the line containing $LINENO, and appends
34705 # trailing '-' during substitution so that $LINENO is not a special
34706 # case at line end.
34707 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34708 # scripts with optimization help from Paolo Bonzini. Blame Lee
34709 # E. McMahon (1931-1989) for sed's syntax. :-)
34721 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34724 ' >$as_me.lineno
&&
34725 chmod +x
"$as_me.lineno" ||
34726 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34727 { (exit 1); exit 1; }; }
34729 # Don't try to exec as it changes $[0], causing all sort of problems
34730 # (the dirname of $[0] is not the place where we might find the
34731 # original and so on. Autoconf is especially sensitive to this).
34732 .
"./$as_me.lineno"
34733 # Exit status is that of the last command.
34738 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
34744 ECHO_C
= ECHO_N
= ECHO_T
=
34745 case `echo -n x` in
34747 case `echo 'x\c'` in
34748 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
34755 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
34756 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
34762 rm -f conf$$ conf$$.exe conf$$.
file
34763 if test -d conf$$.dir
; then
34764 rm -f conf$$.dir
/conf$$.
file
34770 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
34772 # ... but there are two gotchas:
34773 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34774 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34775 # In both cases, we have to default to `cp -p'.
34776 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
34778 elif ln conf$$.
file conf$$
2>/dev
/null
; then
34783 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
34784 rmdir conf$$.dir
2>/dev
/null
34786 if mkdir
-p .
2>/dev
/null
; then
34789 test -d .
/-p && rmdir .
/-p
34793 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34794 # systems may use methods other than mode bits to determine executability.
34795 cat >conf$$.
file <<_ASEOF
34799 chmod +x conf$$.
file
34800 if test -x conf$$.
file >/dev
/null
2>&1; then
34801 as_executable_p
="test -x"
34807 # Sed expression to map a string onto a valid CPP name.
34808 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34810 # Sed expression to map a string onto a valid variable name.
34811 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34816 # Save the log message, to keep $[0] and so on meaningful, and to
34817 # report actual input values of CONFIG_FILES etc. instead of their
34818 # values after options handling.
34820 This file was extended by llvm $as_me 2.4svn, which was
34821 generated by GNU Autoconf 2.60. Invocation command line was
34823 CONFIG_FILES = $CONFIG_FILES
34824 CONFIG_HEADERS = $CONFIG_HEADERS
34825 CONFIG_LINKS = $CONFIG_LINKS
34826 CONFIG_COMMANDS = $CONFIG_COMMANDS
34829 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34834 cat >>$CONFIG_STATUS <<_ACEOF
34835 # Files that config.status was made for.
34836 config_files="$ac_config_files"
34837 config_headers="$ac_config_headers"
34838 config_commands="$ac_config_commands"
34842 cat >>$CONFIG_STATUS <<\_ACEOF
34844 \`$as_me' instantiates files from templates according to the
34845 current configuration.
34847 Usage: $0 [OPTIONS] [FILE]...
34849 -h, --help print this help, then exit
34850 -V, --version print version number, then exit
34851 -q, --quiet do not print progress messages
34852 -d, --debug don't remove temporary files
34853 --recheck update $as_me by reconfiguring in the same conditions
34854 --file=FILE[:TEMPLATE]
34855 instantiate the configuration file FILE
34856 --header=FILE[:TEMPLATE]
34857 instantiate the configuration header FILE
34859 Configuration files:
34862 Configuration headers:
34865 Configuration commands:
34868 Report bugs to <bug-autoconf@gnu.org>."
34871 cat >>$CONFIG_STATUS <<_ACEOF
34873 llvm config.status 2.4svn
34874 configured by $0, generated by GNU Autoconf 2.60,
34875 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34877 Copyright (C) 2006 Free Software Foundation, Inc.
34878 This config.status script is free software; the Free Software Foundation
34879 gives unlimited permission to copy, distribute and modify it."
34886 cat >>$CONFIG_STATUS <<\_ACEOF
34887 # If no file are specified by the user, then we need to provide default
34888 # value. By we need to know if files were specified by the user.
34894 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
34895 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
34906 # Handling of the options.
34907 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
34909 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
34910 echo "$ac_cs_version"; exit ;;
34911 --debug |
--debu |
--deb |
--de |
--d |
-d )
34913 --file |
--fil |
--fi |
--f )
34915 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
34916 ac_need_defaults
=false
;;
34917 --header |
--heade |
--head |
--hea )
34919 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
34920 ac_need_defaults
=false
;;
34922 # Conflict between --help and --header
34923 { echo "$as_me: error: ambiguous option: $1
34924 Try \`$0 --help' for more information." >&2
34925 { (exit 1); exit 1; }; };;
34926 --help |
--hel |
-h )
34927 echo "$ac_cs_usage"; exit ;;
34928 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
34929 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
34932 # This is an error.
34933 -*) { echo "$as_me: error: unrecognized option: $1
34934 Try \`$0 --help' for more information." >&2
34935 { (exit 1); exit 1; }; } ;;
34937 *) ac_config_targets
="$ac_config_targets $1"
34938 ac_need_defaults
=false
;;
34944 ac_configure_extra_args
=
34946 if $ac_cs_silent; then
34948 ac_configure_extra_args
="$ac_configure_extra_args --silent"
34952 cat >>$CONFIG_STATUS <<_ACEOF
34953 if \$ac_cs_recheck; then
34954 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34955 CONFIG_SHELL=$SHELL
34956 export CONFIG_SHELL
34957 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34961 cat >>$CONFIG_STATUS <<\_ACEOF
34965 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34966 ## Running $as_me. ##
34972 cat >>$CONFIG_STATUS <<_ACEOF
34976 llvm_src="${srcdir}"
34980 cat >>$CONFIG_STATUS <<\_ACEOF
34982 # Handling of arguments.
34983 for ac_config_target
in $ac_config_targets
34985 case $ac_config_target in
34986 "include/llvm/Config/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34987 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34988 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
34989 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
34990 "include/llvm/ADT/iterator.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
34991 "Makefile.config") CONFIG_FILES
="$CONFIG_FILES Makefile.config" ;;
34992 "llvm.spec") CONFIG_FILES
="$CONFIG_FILES llvm.spec" ;;
34993 "docs/doxygen.cfg") CONFIG_FILES
="$CONFIG_FILES docs/doxygen.cfg" ;;
34994 "tools/llvm-config/llvm-config.in") CONFIG_FILES
="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34995 "setup") CONFIG_COMMANDS
="$CONFIG_COMMANDS setup" ;;
34996 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
34997 "Makefile.common") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile.common" ;;
34998 "examples/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS examples/Makefile" ;;
34999 "lib/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS lib/Makefile" ;;
35000 "runtime/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS runtime/Makefile" ;;
35001 "test/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile" ;;
35002 "test/Makefile.tests") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile.tests" ;;
35003 "tools/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/Makefile" ;;
35004 "utils/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS utils/Makefile" ;;
35005 "projects/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS projects/Makefile" ;;
35006 "bindings/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/Makefile" ;;
35007 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35009 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35010 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35011 { (exit 1); exit 1; }; };;
35016 # If the user did not use the arguments to specify the items to instantiate,
35017 # then the envvar interface is used. Set only those that are not.
35018 # We use the long form for the default assignment because of an extremely
35019 # bizarre bug on SunOS 4.1.3.
35020 if $ac_need_defaults; then
35021 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
35022 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
35023 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
35026 # Have a temporary directory for convenience. Make it in the build tree
35027 # simply because there is no reason against having it here, and in addition,
35028 # creating and moving files from /tmp can sometimes cause problems.
35029 # Hook for its removal unless debugging.
35030 # Note that there is a small window in which the directory will not be cleaned:
35031 # after its creation but before its name has been assigned to `$tmp'.
35035 trap 'exit_status=$?
35036 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35038 trap '{ (exit 1); exit 1; }' 1 2 13 15
35040 # Create a (secure) tmp directory for tmp files.
35043 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35044 test -n "$tmp" && test -d "$tmp"
35047 tmp
=.
/conf$$
-$RANDOM
35048 (umask 077 && mkdir
"$tmp")
35051 echo "$me: cannot create a temporary directory in ." >&2
35052 { (exit 1); exit 1; }
35056 # Set up the sed scripts for CONFIG_FILES section.
35059 # No need to generate the scripts if there are no CONFIG_FILES.
35060 # This happens for instance when ./config.status config.h
35061 if test -n "$CONFIG_FILES"; then
35068 for ac_last_try
in false false false false false
:; do
35069 cat >conf$
$subs.
sed <<_ACEOF
35070 SHELL!$SHELL$ac_delim
35071 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35072 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35073 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35074 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35075 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35076 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35077 exec_prefix!$exec_prefix$ac_delim
35078 prefix!$prefix$ac_delim
35079 program_transform_name!$program_transform_name$ac_delim
35080 bindir!$bindir$ac_delim
35081 sbindir!$sbindir$ac_delim
35082 libexecdir!$libexecdir$ac_delim
35083 datarootdir!$datarootdir$ac_delim
35084 datadir!$datadir$ac_delim
35085 sysconfdir!$sysconfdir$ac_delim
35086 sharedstatedir!$sharedstatedir$ac_delim
35087 localstatedir!$localstatedir$ac_delim
35088 includedir!$includedir$ac_delim
35089 oldincludedir!$oldincludedir$ac_delim
35090 docdir!$docdir$ac_delim
35091 infodir!$infodir$ac_delim
35092 htmldir!$htmldir$ac_delim
35093 dvidir!$dvidir$ac_delim
35094 pdfdir!$pdfdir$ac_delim
35095 psdir!$psdir$ac_delim
35096 libdir!$libdir$ac_delim
35097 localedir!$localedir$ac_delim
35098 mandir!$mandir$ac_delim
35099 DEFS!$DEFS$ac_delim
35100 ECHO_C!$ECHO_C$ac_delim
35101 ECHO_N!$ECHO_N$ac_delim
35102 ECHO_T!$ECHO_T$ac_delim
35103 LIBS!$LIBS$ac_delim
35104 build_alias!$build_alias$ac_delim
35105 host_alias!$host_alias$ac_delim
35106 target_alias!$target_alias$ac_delim
35107 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35108 subdirs!$subdirs$ac_delim
35109 build!$build$ac_delim
35110 build_cpu!$build_cpu$ac_delim
35111 build_vendor!$build_vendor$ac_delim
35112 build_os!$build_os$ac_delim
35113 host!$host$ac_delim
35114 host_cpu!$host_cpu$ac_delim
35115 host_vendor!$host_vendor$ac_delim
35116 host_os!$host_os$ac_delim
35117 target!$target$ac_delim
35118 target_cpu!$target_cpu$ac_delim
35119 target_vendor!$target_vendor$ac_delim
35120 target_os!$target_os$ac_delim
35122 LINKALL!$LINKALL$ac_delim
35123 NOLINKALL!$NOLINKALL$ac_delim
35124 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35125 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35126 ARCH!$ARCH$ac_delim
35127 ENDIAN!$ENDIAN$ac_delim
35129 CFLAGS!$CFLAGS$ac_delim
35130 LDFLAGS!$LDFLAGS$ac_delim
35131 CPPFLAGS!$CPPFLAGS$ac_delim
35132 ac_ct_CC!$ac_ct_CC$ac_delim
35133 EXEEXT!$EXEEXT$ac_delim
35134 OBJEXT!$OBJEXT$ac_delim
35136 GREP!$GREP$ac_delim
35137 EGREP!$EGREP$ac_delim
35138 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35139 BUILD_CC!$BUILD_CC$ac_delim
35140 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35141 CVSBUILD!$CVSBUILD$ac_delim
35142 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35143 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35144 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35145 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35146 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35148 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35149 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35150 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35151 ENABLE_PIC!$ENABLE_PIC$ac_delim
35152 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35153 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35154 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35156 CXXFLAGS!$CXXFLAGS$ac_delim
35157 ac_ct_CXX!$ac_ct_CXX$ac_delim
35159 LEXLIB!$LEXLIB$ac_delim
35160 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35161 FLEX!$FLEX$ac_delim
35162 YACC!$YACC$ac_delim
35163 YFLAGS!$YFLAGS$ac_delim
35164 BISON!$BISON$ac_delim
35166 ifGNUmake!$ifGNUmake$ac_delim
35169 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35171 elif $ac_last_try; then
35172 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35173 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35174 { (exit 1); exit 1; }; }
35176 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
35180 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35181 if test -n "$ac_eof"; then
35182 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
35183 ac_eof
=`expr $ac_eof + 1`
35186 cat >>$CONFIG_STATUS <<_ACEOF
35187 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35188 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35191 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35192 s/^/s,@/; s/!/@,|#_!!_#|/
35195 s/'"$ac_delim"'$/,g/; t
35197 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35198 ' >>$CONFIG_STATUS <conf$
$subs.
sed
35199 rm -f conf$
$subs.
sed
35200 cat >>$CONFIG_STATUS <<_ACEOF
35206 for ac_last_try
in false false false false false
:; do
35207 cat >conf$
$subs.
sed <<_ACEOF
35208 LN_S!$LN_S$ac_delim
35211 DATE!$DATE$ac_delim
35212 FIND!$FIND$ac_delim
35213 MKDIR!$MKDIR$ac_delim
35215 RANLIB!$RANLIB$ac_delim
35219 BINPWD!$BINPWD$ac_delim
35220 GRAPHVIZ!$GRAPHVIZ$ac_delim
35223 DOTTY!$DOTTY$ac_delim
35224 PERL!$PERL$ac_delim
35225 HAVE_PERL!$HAVE_PERL$ac_delim
35226 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35227 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35228 INSTALL_DATA!$INSTALL_DATA$ac_delim
35229 BZIP2!$BZIP2$ac_delim
35230 DOXYGEN!$DOXYGEN$ac_delim
35231 GROFF!$GROFF$ac_delim
35232 GZIP!$GZIP$ac_delim
35233 POD2HTML!$POD2HTML$ac_delim
35234 POD2MAN!$POD2MAN$ac_delim
35235 RUNTEST!$RUNTEST$ac_delim
35236 TCLSH!$TCLSH$ac_delim
35238 OCAMLC!$OCAMLC$ac_delim
35239 OCAMLOPT!$OCAMLOPT$ac_delim
35240 OCAMLDEP!$OCAMLDEP$ac_delim
35241 OCAMLDOC!$OCAMLDOC$ac_delim
35242 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35243 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35244 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35245 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35246 LIBADD_DL!$LIBADD_DL$ac_delim
35247 ECHO!$ECHO$ac_delim
35249 STRIP!$STRIP$ac_delim
35250 CXXCPP!$CXXCPP$ac_delim
35252 FFLAGS!$FFLAGS$ac_delim
35253 ac_ct_F77!$ac_ct_F77$ac_delim
35254 LIBTOOL!$LIBTOOL$ac_delim
35255 LLVMGCC!$LLVMGCC$ac_delim
35256 LLVMGXX!$LLVMGXX$ac_delim
35257 USE_UDIS86!$USE_UDIS86$ac_delim
35258 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35259 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35260 ALLOCA!$ALLOCA$ac_delim
35261 MMAP_FILE!$MMAP_FILE$ac_delim
35262 LLVMCC1!$LLVMCC1$ac_delim
35263 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35264 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35265 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35266 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35267 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35268 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35269 SHLIBEXT!$SHLIBEXT$ac_delim
35270 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35271 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35272 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35273 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35274 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35275 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35276 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35277 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35278 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35279 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35280 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35281 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35282 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35283 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35284 LIBOBJS!$LIBOBJS$ac_delim
35285 LTLIBOBJS!$LTLIBOBJS$ac_delim
35288 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 78; then
35290 elif $ac_last_try; then
35291 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35292 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35293 { (exit 1); exit 1; }; }
35295 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
35299 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35300 if test -n "$ac_eof"; then
35301 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
35302 ac_eof
=`expr $ac_eof + 1`
35305 cat >>$CONFIG_STATUS <<_ACEOF
35306 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35307 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35310 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35311 s/^/s,@/; s/!/@,|#_!!_#|/
35314 s/'"$ac_delim"'$/,g/; t
35316 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35317 ' >>$CONFIG_STATUS <conf$
$subs.
sed
35318 rm -f conf$
$subs.
sed
35319 cat >>$CONFIG_STATUS <<_ACEOF
35326 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35327 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35328 # trailing colons and then remove the whole line if VPATH becomes empty
35329 # (actually we leave an empty line to preserve line numbers).
35330 if test "x$srcdir" = x.
; then
35331 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
35332 s/:*\$(srcdir):*/:/
35333 s/:*\${srcdir}:*/:/
35335 s/^\([^=]*=[ ]*\):*/\1/
35341 cat >>$CONFIG_STATUS <<\_ACEOF
35342 fi # test -n "$CONFIG_FILES"
35345 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
35348 :[FHLC
]) ac_mode
=$ac_tag; continue;;
35350 case $ac_mode$ac_tag in
35352 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35353 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35354 { (exit 1); exit 1; }; };;
35355 :[FH
]-) ac_tag
=-:-;;
35356 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
35373 -) ac_f
="$tmp/stdin";;
35374 *) # Look for the file first in the build tree, then in the source tree
35375 # (if the path is not absolute). The absolute path cannot be DOS-style,
35376 # because $ac_f cannot contain `:'.
35380 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
35382 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35383 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35384 { (exit 1); exit 1; }; };;
35386 ac_file_inputs
="$ac_file_inputs $ac_f"
35389 # Let's still pretend it is `configure' which instantiates (i.e., don't
35390 # use $as_me), people would be surprised to read:
35391 # /* config.h. Generated by config.status. */
35392 configure_input
="Generated from "`IFS=:
35393 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35394 if test x
"$ac_file" != x-
; then
35395 configure_input
="$ac_file. $configure_input"
35396 { echo "$as_me:$LINENO: creating $ac_file" >&5
35397 echo "$as_me: creating $ac_file" >&6;}
35401 *:-:* |
*:-) cat >"$tmp/stdin";;
35406 ac_dir
=`$as_dirname -- "$ac_file" ||
35407 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35408 X"$ac_file" : 'X\(//\)[^/]' \| \
35409 X"$ac_file" : 'X\(//\)$' \| \
35410 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35416 /^X\(\/\/\)[^/].*/{
35431 -*) as_dir
=.
/$as_dir;;
35433 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
35437 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35438 *) as_qdir
=$as_dir;;
35440 as_dirs
="'$as_qdir' $as_dirs"
35441 as_dir
=`$as_dirname -- "$as_dir" ||
35442 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35443 X"$as_dir" : 'X\(//\)[^/]' \| \
35444 X"$as_dir" : 'X\(//\)$' \| \
35445 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35451 /^X\(\/\/\)[^/].*/{
35464 test -d "$as_dir" && break
35466 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
35467 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35468 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35469 { (exit 1); exit 1; }; }; }
35473 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35475 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35476 # A ".." for each directory in $ac_dir_suffix.
35477 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35478 case $ac_top_builddir_sub in
35479 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35480 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
35483 ac_abs_top_builddir
=$ac_pwd
35484 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
35485 # for backward compatibility:
35486 ac_top_builddir
=$ac_top_build_prefix
35489 .
) # We are building in place.
35491 ac_top_srcdir
=$ac_top_builddir_sub
35492 ac_abs_top_srcdir
=$ac_pwd ;;
35493 [\\/]* | ?
:[\\/]* ) # Absolute name.
35494 ac_srcdir
=$srcdir$ac_dir_suffix;
35495 ac_top_srcdir
=$srcdir
35496 ac_abs_top_srcdir
=$srcdir ;;
35497 *) # Relative name.
35498 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
35499 ac_top_srcdir
=$ac_top_build_prefix$srcdir
35500 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
35502 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
35512 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
35513 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
35517 cat >>$CONFIG_STATUS <<\_ACEOF
35518 # If the template does not know about datarootdir, expand it.
35519 # FIXME: This hack should be removed a few years after 2.60.
35520 ac_datarootdir_hack
=; ac_datarootdir_seen
=
35522 case `sed -n '/datarootdir/ {
35531 ' $ac_file_inputs` in
35532 *datarootdir
*) ac_datarootdir_seen
=yes;;
35533 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
35534 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35535 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35537 cat >>$CONFIG_STATUS <<_ACEOF
35538 ac_datarootdir_hack='
35539 s&@datadir@&$datadir&g
35540 s&@docdir@&$docdir&g
35541 s&@infodir@&$infodir&g
35542 s&@localedir@&$localedir&g
35543 s&@mandir@&$mandir&g
35544 s&\\\${datarootdir}&$datarootdir&g' ;;
35548 # Neutralize VPATH when `$srcdir' = `.'.
35549 # Shell code in configure.ac might set extrasub.
35550 # FIXME: do we really want to maintain this feature?
35551 cat >>$CONFIG_STATUS <<_ACEOF
35555 cat >>$CONFIG_STATUS <<\_ACEOF
35557 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
35558 s
&@configure_input@
&$configure_input&;t t
35559 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
35560 s
&@srcdir@
&$ac_srcdir&;t t
35561 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
35562 s
&@top_srcdir@
&$ac_top_srcdir&;t t
35563 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
35564 s
&@builddir@
&$ac_builddir&;t t
35565 s
&@abs_builddir@
&$ac_abs_builddir&;t t
35566 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
35567 s
&@INSTALL@
&$ac_INSTALL&;t t
35568 $ac_datarootdir_hack
35569 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
35571 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35572 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
35573 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
35574 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
35575 which seems to be undefined. Please make sure it is defined." >&5
35576 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
35577 which seems to be undefined. Please make sure it is defined." >&2;}
35581 -) cat "$tmp/out"; rm -f "$tmp/out";;
35582 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35591 # Transform confdefs.h into a sed script `conftest.defines', that
35592 # substitutes the proper values into config.h.in to produce config.h.
35593 rm -f conftest.defines conftest.
tail
35594 # First, append a space to every undef/define line, to ease matching.
35595 echo 's/$/ /' >conftest.defines
35596 # Then, protect against being on the right side of a sed subst, or in
35597 # an unquoted here document, in config.status. If some macros were
35598 # called several times there might be several #defines for the same
35599 # symbol, which is useless. But do not sort them, since the last
35600 # AC_DEFINE must be honored.
35601 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
35602 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35603 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35604 # PARAMS is the parameter list in the macro definition--in most cases, it's
35605 # just an empty string.
35606 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35607 ac_dB
='\\)[ (].*,\\1define\\2'
35615 s/^[ ]*#[ ]*define[ ][ ]*//
35620 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35621 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35622 ' >>conftest.defines
35624 # Remove the space that was appended to ease matching.
35625 # Then replace #undef with comments. This is necessary, for
35626 # example, in the case of _POSIX_SOURCE, which is predefined and required
35627 # on some systems where configure will not decide to define it.
35628 # (The regexp can be short, since the line contains either #define or #undef.)
35630 s,^[ #]*u.*,/* & */,' >>conftest.defines
35632 # Break up conftest.defines:
35633 ac_max_sed_lines
=50
35635 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35636 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35637 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35639 ac_in
='$ac_file_inputs'
35640 ac_out
='"$tmp/out1"'
35641 ac_nxt
='"$tmp/out2"'
35645 # Write a here document:
35646 cat >>$CONFIG_STATUS <<_ACEOF
35647 # First, check the format of the line:
35648 cat >"\$tmp/defines.sed" <<\\CEOF
35649 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35650 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35654 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
35656 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35657 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
35658 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
35659 grep . conftest.
tail >/dev
/null ||
break
35660 rm -f conftest.defines
35661 mv conftest.
tail conftest.defines
35663 rm -f conftest.defines conftest.
tail
35665 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35666 cat >>$CONFIG_STATUS <<\_ACEOF
35667 if test x
"$ac_file" != x-
; then
35668 echo "/* $configure_input */" >"$tmp/config.h"
35669 cat "$ac_result" >>"$tmp/config.h"
35670 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
35671 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35672 echo "$as_me: $ac_file is unchanged" >&6;}
35675 mv "$tmp/config.h" $ac_file
35678 echo "/* $configure_input */"
35684 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35685 echo "$as_me: executing $ac_file commands" >&6;}
35690 case $ac_file$ac_mode in
35691 "Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile`
35692 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile
;;
35693 "Makefile.common":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile.common`
35694 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common
;;
35695 "examples/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname examples/Makefile`
35696 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples
/Makefile examples
/Makefile
;;
35697 "lib/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname lib/Makefile`
35698 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib
/Makefile lib
/Makefile
;;
35699 "runtime/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname runtime/Makefile`
35700 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime
/Makefile runtime
/Makefile
;;
35701 "test/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile`
35702 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test
/Makefile test
/Makefile
;;
35703 "test/Makefile.tests":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile.tests`
35704 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test
/Makefile.tests test
/Makefile.tests
;;
35705 "tools/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname tools/Makefile`
35706 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools
/Makefile tools
/Makefile
;;
35707 "utils/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname utils/Makefile`
35708 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils
/Makefile utils
/Makefile
;;
35709 "projects/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname projects/Makefile`
35710 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects
/Makefile projects
/Makefile
;;
35711 "bindings/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/Makefile`
35712 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings
/Makefile bindings
/Makefile
;;
35713 "bindings/ocaml/Makefile.ocaml":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/ocaml/Makefile.ocaml`
35714 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings
/ocaml
/Makefile.ocaml bindings
/ocaml
/Makefile.ocaml
;;
35720 { (exit 0); exit 0; }
35722 chmod +x
$CONFIG_STATUS
35723 ac_clean_files
=$ac_clean_files_save
35726 # configure is writing to config.log, and then calls config.status.
35727 # config.status does its own redirection, appending to config.log.
35728 # Unfortunately, on DOS this fails, as config.log is still kept open
35729 # by configure, so config.status won't be able to write to it; its
35730 # output is simply discarded. So we exec the FD to /dev/null,
35731 # effectively closing config.log, so it can be properly (re)opened and
35732 # appended to by config.status. When coming back to configure, we
35733 # need to make the FD available again.
35734 if test "$no_create" != yes; then
35736 ac_config_status_args
=
35737 test "$silent" = yes &&
35738 ac_config_status_args
="$ac_config_status_args --quiet"
35740 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
35742 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35743 # would make configure fail if this is the last instruction.
35744 $ac_cs_success ||
{ (exit 1); exit 1; }
35748 # CONFIG_SUBDIRS section.
35750 if test "$no_recursion" != yes; then
35752 # Remove --cache-file and --srcdir arguments so they do not pile up.
35753 ac_sub_configure_args
=
35755 eval "set x $ac_configure_args"
35759 if test -n "$ac_prev"; then
35764 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
35765 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
35766 ac_prev
=cache_file
;;
35767 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
35768 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
35771 --config-cache |
-C)
35773 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
35775 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
35777 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
35779 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
35783 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35785 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
35789 # Always prepend --prefix to ensure using the same prefix
35790 # in subdir configurations.
35791 ac_arg
="--prefix=$prefix"
35793 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35795 ac_sub_configure_args
="$ac_arg $ac_sub_configure_args"
35798 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
35800 # Do not complain, so a configure script can configure whichever
35801 # parts of a large source tree are present.
35802 test -d "$srcdir/$ac_dir" ||
continue
35804 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35805 echo "$as_me:$LINENO: $ac_msg" >&5
35809 -*) as_dir
=.
/$as_dir;;
35811 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
35815 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35816 *) as_qdir
=$as_dir;;
35818 as_dirs
="'$as_qdir' $as_dirs"
35819 as_dir
=`$as_dirname -- "$as_dir" ||
35820 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35821 X"$as_dir" : 'X\(//\)[^/]' \| \
35822 X"$as_dir" : 'X\(//\)$' \| \
35823 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35829 /^X\(\/\/\)[^/].*/{
35842 test -d "$as_dir" && break
35844 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
35845 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35846 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35847 { (exit 1); exit 1; }; }; }
35851 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35853 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35854 # A ".." for each directory in $ac_dir_suffix.
35855 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35856 case $ac_top_builddir_sub in
35857 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35858 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
35861 ac_abs_top_builddir
=$ac_pwd
35862 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
35863 # for backward compatibility:
35864 ac_top_builddir
=$ac_top_build_prefix
35867 .
) # We are building in place.
35869 ac_top_srcdir
=$ac_top_builddir_sub
35870 ac_abs_top_srcdir
=$ac_pwd ;;
35871 [\\/]* | ?
:[\\/]* ) # Absolute name.
35872 ac_srcdir
=$srcdir$ac_dir_suffix;
35873 ac_top_srcdir
=$srcdir
35874 ac_abs_top_srcdir
=$srcdir ;;
35875 *) # Relative name.
35876 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
35877 ac_top_srcdir
=$ac_top_build_prefix$srcdir
35878 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
35880 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
35885 # Check for guested configure; otherwise get Cygnus style configure.
35886 if test -f "$ac_srcdir/configure.gnu"; then
35887 ac_sub_configure
=$ac_srcdir/configure.gnu
35888 elif test -f "$ac_srcdir/configure"; then
35889 ac_sub_configure
=$ac_srcdir/configure
35890 elif test -f "$ac_srcdir/configure.in"; then
35891 # This should be Cygnus configure.
35892 ac_sub_configure
=$ac_aux_dir/configure
35894 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35895 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35899 # The recursion is here.
35900 if test -n "$ac_sub_configure"; then
35901 # Make the cache file name correct relative to the subdirectory.
35902 case $cache_file in
35903 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
35904 *) # Relative name.
35905 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
35908 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35909 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35910 # The eval makes quoting arguments work.
35911 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35912 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35913 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35914 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35915 { (exit 1); exit 1; }; }