2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.2svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
553 if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
556 elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606 for dir in $PATH /usr/ucb; do
608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
656 # maybe with a smaller string...
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
672 # Oops. We lost completely, so just stick with echo.
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames=${tagnames+${tagnames},}CXX
693 tagnames=${tagnames+${tagnames},}F77
695 exec 7<&0 </dev/null 6>&1
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
705 ac_default_prefix=/usr/local
707 ac_config_libobj_dir=.
713 SHELL=${CONFIG_SHELL-/bin/sh}
715 # Identity of this package.
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.2svn'
719 PACKAGE_STRING='llvm 2.2svn'
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
890 CONVENIENCE_LTDL_TRUE
891 CONVENIENCE_LTDL_FALSE
930 ac_precious_vars='build_alias
946 ac_subdirs_all='projects/sample
948 projects/llvm-stacker
954 projects/llvm-poolalloc
956 projects/llvm-kernel'
958 # Initialize some variables set by options.
960 ac_init_version=false
961 # The variables have the same names as the options, with
962 # dashes changed to underlines.
970 program_transform_name=s,x,x,
978 # Installation directory options.
979 # These are left unexpanded so users can "make install exec_prefix=/foo"
980 # and all the variables that are supposed to be based on exec_prefix
981 # by default will actually change.
982 # Use braces instead of parens because sh, perl, etc. also accept them.
983 # (The list follows the same order as the GNU Coding Standards.)
984 bindir='${exec_prefix}/bin'
985 sbindir='${exec_prefix}/sbin'
986 libexecdir='${exec_prefix}/libexec'
987 datarootdir='${prefix}/share'
988 datadir='${datarootdir}'
989 sysconfdir='${prefix}/etc'
990 sharedstatedir='${prefix}/com'
991 localstatedir='${prefix}/var'
992 includedir='${prefix}/include'
993 oldincludedir='/usr/include'
994 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
995 infodir='${datarootdir}/info'
1000 libdir='${exec_prefix}/lib'
1001 localedir='${datarootdir}/locale'
1002 mandir='${datarootdir}/man'
1008 # If the previous option needs an argument, assign it.
1009 if test -n "$ac_prev"; then
1010 eval $ac_prev=\$ac_option
1016 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020 # Accept the important Cygnus configure options, so we can diagnose typos.
1022 case $ac_dashdash$ac_option in
1026 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1028 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1029 bindir=$ac_optarg ;;
1031 -build | --build | --buil | --bui | --bu)
1032 ac_prev=build_alias ;;
1033 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1034 build_alias=$ac_optarg ;;
1036 -cache-file | --cache-file | --cache-fil | --cache-fi \
1037 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1038 ac_prev=cache_file ;;
1039 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1040 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1041 cache_file=$ac_optarg ;;
1043 --config-cache | -C)
1044 cache_file=config.cache ;;
1046 -datadir | --datadir | --datadi | --datad)
1048 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1049 datadir=$ac_optarg ;;
1051 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1052 | --dataroo | --dataro | --datar)
1053 ac_prev=datarootdir ;;
1054 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1055 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1056 datarootdir=$ac_optarg ;;
1058 -disable-* | --disable-*)
1059 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1062 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1063 { (exit 1); exit 1; }; }
1064 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1065 eval enable_$ac_feature=no ;;
1067 -docdir | --docdir | --docdi | --doc | --do)
1069 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070 docdir=$ac_optarg ;;
1072 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075 dvidir=$ac_optarg ;;
1077 -enable-* | --enable-*)
1078 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1081 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1082 { (exit 1); exit 1; }; }
1083 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1084 eval enable_$ac_feature=\$ac_optarg ;;
1086 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088 | --exec | --exe | --ex)
1089 ac_prev=exec_prefix ;;
1090 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092 | --exec=* | --exe=* | --ex=*)
1093 exec_prefix=$ac_optarg ;;
1095 -gas | --gas | --ga | --g)
1096 # Obsolete; use --with-gas.
1099 -help | --help | --hel | --he | -h)
1100 ac_init_help=long ;;
1101 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102 ac_init_help=recursive ;;
1103 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104 ac_init_help=short ;;
1106 -host | --host | --hos | --ho)
1107 ac_prev=host_alias ;;
1108 -host=* | --host=* | --hos=* | --ho=*)
1109 host_alias=$ac_optarg ;;
1111 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115 htmldir=$ac_optarg ;;
1117 -includedir | --includedir | --includedi | --included | --include \
1118 | --includ | --inclu | --incl | --inc)
1119 ac_prev=includedir ;;
1120 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121 | --includ=* | --inclu=* | --incl=* | --inc=*)
1122 includedir=$ac_optarg ;;
1124 -infodir | --infodir | --infodi | --infod | --info | --inf)
1126 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127 infodir=$ac_optarg ;;
1129 -libdir | --libdir | --libdi | --libd)
1131 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132 libdir=$ac_optarg ;;
1134 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135 | --libexe | --libex | --libe)
1136 ac_prev=libexecdir ;;
1137 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138 | --libexe=* | --libex=* | --libe=*)
1139 libexecdir=$ac_optarg ;;
1141 -localedir | --localedir | --localedi | --localed | --locale)
1142 ac_prev=localedir ;;
1143 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144 localedir=$ac_optarg ;;
1146 -localstatedir | --localstatedir | --localstatedi | --localstated \
1147 | --localstate | --localstat | --localsta | --localst | --locals)
1148 ac_prev=localstatedir ;;
1149 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151 localstatedir=$ac_optarg ;;
1153 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156 mandir=$ac_optarg ;;
1158 -nfp | --nfp | --nf)
1159 # Obsolete; use --without-fp.
1162 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163 | --no-cr | --no-c | -n)
1166 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172 | --oldin | --oldi | --old | --ol | --o)
1173 ac_prev=oldincludedir ;;
1174 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177 oldincludedir=$ac_optarg ;;
1179 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182 prefix=$ac_optarg ;;
1184 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185 | --program-pre | --program-pr | --program-p)
1186 ac_prev=program_prefix ;;
1187 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189 program_prefix=$ac_optarg ;;
1191 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192 | --program-suf | --program-su | --program-s)
1193 ac_prev=program_suffix ;;
1194 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196 program_suffix=$ac_optarg ;;
1198 -program-transform-name | --program-transform-name \
1199 | --program-transform-nam | --program-transform-na \
1200 | --program-transform-n | --program-transform- \
1201 | --program-transform | --program-transfor \
1202 | --program-transfo | --program-transf \
1203 | --program-trans | --program-tran \
1204 | --progr-tra | --program-tr | --program-t)
1205 ac_prev=program_transform_name ;;
1206 -program-transform-name=* | --program-transform-name=* \
1207 | --program-transform-nam=* | --program-transform-na=* \
1208 | --program-transform-n=* | --program-transform-=* \
1209 | --program-transform=* | --program-transfor=* \
1210 | --program-transfo=* | --program-transf=* \
1211 | --program-trans=* | --program-tran=* \
1212 | --progr-tra=* | --program-tr=* | --program-t=*)
1213 program_transform_name=$ac_optarg ;;
1215 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218 pdfdir=$ac_optarg ;;
1220 -psdir | --psdir | --psdi | --psd | --ps)
1222 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1229 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233 sbindir=$ac_optarg ;;
1235 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237 | --sharedst | --shareds | --shared | --share | --shar \
1239 ac_prev=sharedstatedir ;;
1240 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244 sharedstatedir=$ac_optarg ;;
1246 -site | --site | --sit)
1248 -site=* | --site=* | --sit=*)
1251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254 srcdir=$ac_optarg ;;
1256 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257 | --syscon | --sysco | --sysc | --sys | --sy)
1258 ac_prev=sysconfdir ;;
1259 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261 sysconfdir=$ac_optarg ;;
1263 -target | --target | --targe | --targ | --tar | --ta | --t)
1264 ac_prev=target_alias ;;
1265 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266 target_alias=$ac_optarg ;;
1268 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271 -version | --version | --versio | --versi | --vers | -V)
1272 ac_init_version=: ;;
1275 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1278 { echo "$as_me: error: invalid package name: $ac_package" >&2
1279 { (exit 1); exit 1; }; }
1280 ac_package=`echo $ac_package| sed 's/-/_/g'`
1281 eval with_$ac_package=\$ac_optarg ;;
1283 -without-* | --without-*)
1284 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1287 { echo "$as_me: error: invalid package name: $ac_package" >&2
1288 { (exit 1); exit 1; }; }
1289 ac_package=`echo $ac_package | sed 's/-/_/g'`
1290 eval with_$ac_package=no ;;
1293 # Obsolete; use --with-x.
1296 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1297 | --x-incl | --x-inc | --x-in | --x-i)
1298 ac_prev=x_includes ;;
1299 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1300 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1301 x_includes=$ac_optarg ;;
1303 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1304 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1305 ac_prev=x_libraries ;;
1306 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1307 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1308 x_libraries=$ac_optarg ;;
1310 -*) { echo "$as_me: error: unrecognized option: $ac_option
1311 Try \`$0 --help' for more information." >&2
1312 { (exit 1); exit 1; }; }
1316 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1317 # Reject names that are not valid shell variable names.
1318 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1319 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1320 { (exit 1); exit 1; }; }
1321 eval $ac_envvar=\$ac_optarg
1322 export $ac_envvar ;;
1325 # FIXME: should be removed in autoconf 3.0.
1326 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1327 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1328 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1329 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1335 if test -n "$ac_prev"; then
1336 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1337 { echo "$as_me: error: missing argument to $ac_option" >&2
1338 { (exit 1); exit 1; }; }
1341 # Be sure to have absolute directory names.
1342 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343 datadir sysconfdir sharedstatedir localstatedir includedir \
1344 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345 libdir localedir mandir
1347 eval ac_val=\$$ac_var
1349 [\\/$]* | ?:[\\/]* ) continue;;
1350 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1352 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1353 { (exit 1); exit 1; }; }
1356 # There might be people who depend on the old broken behavior: `$host'
1357 # used to hold the argument of --host etc.
1358 # FIXME: To remove some day.
1361 target=$target_alias
1363 # FIXME: To remove some day.
1364 if test "x$host_alias" != x; then
1365 if test "x$build_alias" = x; then
1366 cross_compiling=maybe
1367 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1368 If a cross compiler is detected then cross compile mode will be used." >&2
1369 elif test "x$build_alias" != "x$host_alias"; then
1375 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377 test "$silent" = yes && exec 6>/dev/null
1380 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1381 ac_ls_di=`ls -di .` &&
1382 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1383 { echo "$as_me: error: Working directory cannot be determined" >&2
1384 { (exit 1); exit 1; }; }
1385 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386 { echo "$as_me: error: pwd does not report name of working directory" >&2
1387 { (exit 1); exit 1; }; }
1390 # Find the source files, if location was not specified.
1391 if test -z "$srcdir"; then
1392 ac_srcdir_defaulted=yes
1393 # Try the directory containing this script, then the parent directory.
1394 ac_confdir=`$as_dirname -- "$0" ||
1395 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396 X"$0" : 'X\(//\)[^/]' \| \
1397 X"$0" : 'X\(//\)$' \| \
1398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1422 ac_srcdir_defaulted=no
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1426 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1427 { (exit 1); exit 1; }; }
1429 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1432 { (exit 1); exit 1; }; }
1434 # When building in place, set srcdir=.
1435 if test "$ac_abs_confdir" = "$ac_pwd"; then
1438 # Remove unnecessary trailing slashes from srcdir.
1439 # Double slashes in file names in object file debugging info
1440 # mess up M-x gdb in Emacs.
1442 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444 for ac_var in $ac_precious_vars; do
1445 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_env_${ac_var}_value=\$${ac_var}
1447 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452 # Report the --help message.
1454 if test "$ac_init_help" = "long"; then
1455 # Omit some internal or obsolete options to make the list less imposing.
1456 # This message is too long to be a string in the A/UX 3.1 sh.
1458 \`configure' configures llvm 2.2svn to adapt to many kinds of systems.
1460 Usage: $0 [OPTION]... [VAR=VALUE]...
1462 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463 VAR=VALUE. See below for descriptions of some of the useful variables.
1465 Defaults for the options are specified in brackets.
1468 -h, --help display this help and exit
1469 --help=short display options specific to this package
1470 --help=recursive display the short help of all the included packages
1471 -V, --version display version information and exit
1472 -q, --quiet, --silent do not print \`checking...' messages
1473 --cache-file=FILE cache test results in FILE [disabled]
1474 -C, --config-cache alias for \`--cache-file=config.cache'
1475 -n, --no-create do not create output files
1476 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478 Installation directories:
1479 --prefix=PREFIX install architecture-independent files in PREFIX
1480 [$ac_default_prefix]
1481 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1484 By default, \`make install' will install all the files in
1485 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1486 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487 for instance \`--prefix=\$HOME'.
1489 For better control, use the options below.
1491 Fine tuning of the installation directories:
1492 --bindir=DIR user executables [EPREFIX/bin]
1493 --sbindir=DIR system admin executables [EPREFIX/sbin]
1494 --libexecdir=DIR program executables [EPREFIX/libexec]
1495 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1496 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1497 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1498 --libdir=DIR object code libraries [EPREFIX/lib]
1499 --includedir=DIR C header files [PREFIX/include]
1500 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1501 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1502 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1503 --infodir=DIR info documentation [DATAROOTDIR/info]
1504 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1505 --mandir=DIR man documentation [DATAROOTDIR/man]
1506 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1507 --htmldir=DIR html documentation [DOCDIR]
1508 --dvidir=DIR dvi documentation [DOCDIR]
1509 --pdfdir=DIR pdf documentation [DOCDIR]
1510 --psdir=DIR ps documentation [DOCDIR]
1516 --build=BUILD configure for building on BUILD [guessed]
1517 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1518 --target=TARGET configure for building compilers for TARGET [HOST]
1522 if test -n "$ac_init_help"; then
1523 case $ac_init_help in
1524 short | recursive ) echo "Configuration of llvm 2.2svn:";;
1529 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1530 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1533 --enable-expensive-checks
1535 --enable-debug-runtime
1536 --enable-jit Enable Just In Time Compiling (default is YES)
1537 --enable-doxygen Build doxygen documentation (default is NO)
1538 --enable-threads Use threads if available (default is YES)
1539 --enable-pic Build LLVM with Position Independent Code (default
1541 --enable-targets Build specific host targets:
1542 all,host-only,{target-name} (default=all)
1543 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1545 --enable-ltdl-install install libltdl
1546 --enable-shared[=PKGS] build shared libraries
1548 --enable-static[=PKGS] build static libraries
1550 --enable-fast-install[=PKGS]
1551 optimize for fast installation
1553 --disable-libtool-lock avoid locking (might break parallel builds)
1556 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1557 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1558 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1560 --with-extra-options Specify addtional options to compile LLVM with
1561 --with-tclinclude directory where tcl headers are
1562 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1563 --with-pic try to use only PIC/non-PIC objects [default=use
1565 --with-tags[=TAGS] include additional configurations [automatic]
1566 --with-udis86=<path> Use udis86 external x86 disassembler library
1568 Some influential environment variables:
1569 CC C compiler command
1570 CFLAGS C compiler flags
1571 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1572 nonstandard directory <lib dir>
1573 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1574 you have headers in a nonstandard directory <include dir>
1576 CXX C++ compiler command
1577 CXXFLAGS C++ compiler flags
1578 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1579 the first program found out of: `bison -y', `byacc', `yacc'.
1580 YFLAGS The list of arguments that will be passed by default to $YACC.
1581 This script will default YFLAGS to the empty string to avoid a
1582 default value of `-d' given by some make applications.
1583 CXXCPP C++ preprocessor
1584 F77 Fortran 77 compiler command
1585 FFLAGS Fortran 77 compiler flags
1587 Use these variables to override the choices made by `configure' or to help
1588 it to find libraries and programs with nonstandard names/locations.
1590 Report bugs to <llvmbugs@cs.uiuc.edu>.
1595 if test "$ac_init_help" = "recursive"; then
1596 # If there are subdirs, report their specific --help.
1597 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1598 test -d "$ac_dir" || continue
1602 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1605 # A ".." for each directory in $ac_dir_suffix.
1606 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1607 case $ac_top_builddir_sub in
1608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1612 ac_abs_top_builddir=$ac_pwd
1613 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1614 # for backward compatibility:
1615 ac_top_builddir=$ac_top_build_prefix
1618 .) # We are building in place.
1620 ac_top_srcdir=$ac_top_builddir_sub
1621 ac_abs_top_srcdir=$ac_pwd ;;
1622 [\\/]* | ?:[\\/]* ) # Absolute name.
1623 ac_srcdir=$srcdir$ac_dir_suffix;
1624 ac_top_srcdir=$srcdir
1625 ac_abs_top_srcdir=$srcdir ;;
1627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1628 ac_top_srcdir=$ac_top_build_prefix$srcdir
1629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1631 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1633 cd "$ac_dir" || { ac_status=$?; continue; }
1634 # Check for guested configure.
1635 if test -f "$ac_srcdir/configure.gnu"; then
1637 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1638 elif test -f "$ac_srcdir/configure"; then
1640 $SHELL "$ac_srcdir/configure" --help=recursive
1642 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1644 cd "$ac_pwd" || { ac_status=$?; break; }
1648 test -n "$ac_init_help" && exit $ac_status
1649 if $ac_init_version; then
1651 llvm configure 2.2svn
1652 generated by GNU Autoconf 2.60
1654 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1655 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1656 This configure script is free software; the Free Software Foundation
1657 gives unlimited permission to copy, distribute and modify it.
1659 Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1663 cat >config.log <<_ACEOF
1664 This file contains any messages produced by compilers while
1665 running configure, to aid debugging if configure makes a mistake.
1667 It was created by llvm $as_me 2.2svn, which was
1668 generated by GNU Autoconf 2.60. Invocation command line was
1680 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1681 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1682 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1683 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1684 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1686 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1687 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1689 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1690 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1691 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1692 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1693 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1694 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1695 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703 test -z "$as_dir" && as_dir=.
1704 echo "PATH: $as_dir"
1720 # Keep a trace of the command line.
1721 # Strip out --no-create and --no-recursion so they do not pile up.
1722 # Strip out --silent because we don't want to record it for future runs.
1723 # Also quote any args containing shell meta-characters.
1724 # Make two passes to allow for proper duplicate-argument suppression.
1728 ac_must_keep_next=false
1734 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1736 | -silent | --silent | --silen | --sile | --sil)
1739 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1742 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1744 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1745 if test $ac_must_keep_next = true; then
1746 ac_must_keep_next=false # Got value, back to normal.
1749 *=* | --config-cache | -C | -disable-* | --disable-* \
1750 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1751 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1752 | -with-* | --with-* | -without-* | --without-* | --x)
1753 case "$ac_configure_args0 " in
1754 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1757 -* ) ac_must_keep_next=true ;;
1760 ac_configure_args="$ac_configure_args '$ac_arg'"
1765 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1766 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1768 # When interrupted or exit'd, cleanup temporary files, and complete
1769 # config.log. We remove comments because anyway the quotes in there
1770 # would cause problems or look ugly.
1771 # WARNING: Use '\'' to represent an apostrophe within the trap.
1772 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1773 trap 'exit_status=$?
1774 # Save into config.log some information that might help in debugging.
1779 ## ---------------- ##
1780 ## Cache variables. ##
1781 ## ---------------- ##
1784 # The following way of writing the cache mishandles newlines in values,
1786 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1787 eval ac_val=\$$ac_var
1791 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1792 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1795 _ | IFS | as_nl) ;; #(
1796 *) $as_unset $ac_var ;;
1801 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1802 *${as_nl}ac_space=\ *)
1804 "s/'\''/'\''\\\\'\'''\''/g;
1805 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1808 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1816 ## ----------------- ##
1817 ## Output variables. ##
1818 ## ----------------- ##
1821 for ac_var in $ac_subst_vars
1823 eval ac_val=\$$ac_var
1825 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1827 echo "$ac_var='\''$ac_val'\''"
1831 if test -n "$ac_subst_files"; then
1833 ## ------------------- ##
1834 ## File substitutions. ##
1835 ## ------------------- ##
1838 for ac_var in $ac_subst_files
1840 eval ac_val=\$$ac_var
1842 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1844 echo "$ac_var='\''$ac_val'\''"
1849 if test -s confdefs.h; then
1859 test "$ac_signal" != 0 &&
1860 echo "$as_me: caught signal $ac_signal"
1861 echo "$as_me: exit $exit_status"
1863 rm -f core *.core core.conftest.* &&
1864 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1867 for ac_signal in 1 2 13 15; do
1868 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1872 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1873 rm -f -r conftest* confdefs.h
1875 # Predefined preprocessor variables.
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_NAME "$PACKAGE_NAME"
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_STRING "$PACKAGE_STRING"
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1902 # Let the site file select an alternate cache file if it wants to.
1903 # Prefer explicitly selected file to automatically selected ones.
1904 if test -n "$CONFIG_SITE"; then
1905 set x "$CONFIG_SITE"
1906 elif test "x$prefix" != xNONE; then
1907 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1909 set x "$ac_default_prefix/share/config.site" \
1910 "$ac_default_prefix/etc/config.site"
1915 if test -r "$ac_site_file"; then
1916 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1917 echo "$as_me: loading site script $ac_site_file" >&6;}
1918 sed 's/^/| /' "$ac_site_file" >&5
1923 if test -r "$cache_file"; then
1924 # Some versions of bash will fail to source /dev/null (special
1925 # files actually), so we avoid doing that.
1926 if test -f "$cache_file"; then
1927 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1928 echo "$as_me: loading cache $cache_file" >&6;}
1930 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1931 *) . "./$cache_file";;
1935 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1936 echo "$as_me: creating cache $cache_file" >&6;}
1940 # Check that the precious variables saved in the cache have kept the same
1942 ac_cache_corrupted=false
1943 for ac_var in $ac_precious_vars; do
1944 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1945 eval ac_new_set=\$ac_env_${ac_var}_set
1946 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1947 eval ac_new_val=\$ac_env_${ac_var}_value
1948 case $ac_old_set,$ac_new_set in
1950 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1951 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1952 ac_cache_corrupted=: ;;
1954 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1955 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1956 ac_cache_corrupted=: ;;
1959 if test "x$ac_old_val" != "x$ac_new_val"; then
1960 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1961 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1962 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1963 echo "$as_me: former value: $ac_old_val" >&2;}
1964 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1965 echo "$as_me: current value: $ac_new_val" >&2;}
1966 ac_cache_corrupted=:
1969 # Pass precious variables to config.status.
1970 if test "$ac_new_set" = set; then
1972 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1973 *) ac_arg=$ac_var=$ac_new_val ;;
1975 case " $ac_configure_args " in
1976 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1977 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1981 if $ac_cache_corrupted; then
1982 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1983 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1984 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1985 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1986 { (exit 1); exit 1; }; }
2014 ac_cpp='$CPP $CPPFLAGS'
2015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2021 LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2030 for ac_dir in autoconf "$srcdir"/autoconf; do
2031 if test -f "$ac_dir/install-sh"; then
2033 ac_install_sh="$ac_aux_dir/install-sh -c"
2035 elif test -f "$ac_dir/install.sh"; then
2037 ac_install_sh="$ac_aux_dir/install.sh -c"
2039 elif test -f "$ac_dir/shtool"; then
2041 ac_install_sh="$ac_aux_dir/shtool install -c"
2045 if test -z "$ac_aux_dir"; then
2046 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2047 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2048 { (exit 1); exit 1; }; }
2051 # These three variables are undocumented and unsupported,
2052 # and are intended to be withdrawn in a future Autoconf release.
2053 # They can cause serious problems if a builder's source tree is in a directory
2054 # whose full name contains unusual characters.
2055 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2056 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2057 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2061 if test ${srcdir} != "." ; then
2062 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2063 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2064 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2065 { (exit 1); exit 1; }; }
2069 for i in `ls ${srcdir}/projects`
2071 if test -d ${srcdir}/projects/${i} ; then
2074 sample) subdirs="$subdirs projects/sample"
2076 privbracket) subdirs="$subdirs projects/privbracket"
2078 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2080 llvm-test) subdirs="$subdirs projects/llvm-test"
2082 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2084 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2086 llvm-java) subdirs="$subdirs projects/llvm-java"
2088 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2090 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2092 poolalloc) subdirs="$subdirs projects/poolalloc"
2094 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2097 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2098 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2105 # Make sure we can run config.sub.
2106 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2107 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2108 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2109 { (exit 1); exit 1; }; }
2111 { echo "$as_me:$LINENO: checking build system type" >&5
2112 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2113 if test "${ac_cv_build+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 ac_build_alias=$build_alias
2117 test "x$ac_build_alias" = x &&
2118 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2119 test "x$ac_build_alias" = x &&
2120 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2121 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2122 { (exit 1); exit 1; }; }
2123 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2124 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2125 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2126 { (exit 1); exit 1; }; }
2129 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2130 echo "${ECHO_T}$ac_cv_build" >&6; }
2131 case $ac_cv_build in
2133 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2134 echo "$as_me: error: invalid value of canonical build" >&2;}
2135 { (exit 1); exit 1; }; };;
2138 ac_save_IFS=$IFS; IFS='-'
2144 # Remember, the first character of IFS is used to create $*,
2145 # except with old shells:
2148 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2151 { echo "$as_me:$LINENO: checking host system type" >&5
2152 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2153 if test "${ac_cv_host+set}" = set; then
2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 if test "x$host_alias" = x; then
2157 ac_cv_host=$ac_cv_build
2159 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2160 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2161 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2162 { (exit 1); exit 1; }; }
2166 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2167 echo "${ECHO_T}$ac_cv_host" >&6; }
2170 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2171 echo "$as_me: error: invalid value of canonical host" >&2;}
2172 { (exit 1); exit 1; }; };;
2175 ac_save_IFS=$IFS; IFS='-'
2181 # Remember, the first character of IFS is used to create $*,
2182 # except with old shells:
2185 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2188 { echo "$as_me:$LINENO: checking target system type" >&5
2189 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2190 if test "${ac_cv_target+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 if test "x$target_alias" = x; then
2194 ac_cv_target=$ac_cv_host
2196 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2197 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2198 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2199 { (exit 1); exit 1; }; }
2203 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2204 echo "${ECHO_T}$ac_cv_target" >&6; }
2205 case $ac_cv_target in
2207 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2208 echo "$as_me: error: invalid value of canonical target" >&2;}
2209 { (exit 1); exit 1; }; };;
2211 target=$ac_cv_target
2212 ac_save_IFS=$IFS; IFS='-'
2218 # Remember, the first character of IFS is used to create $*,
2219 # except with old shells:
2222 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2225 # The aliases save the names the user supplied, while $host etc.
2226 # will get canonicalized.
2227 test -n "$target_alias" &&
2228 test "$program_prefix$program_suffix$program_transform_name" = \
2230 program_prefix=${target_alias}-
2232 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2233 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2234 if test "${llvm_cv_os_type+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241 llvm_cv_os_type="AIX"
2242 llvm_cv_platform_type="Unix" ;;
2244 llvm_cv_link_all_option="-Wl,--whole-archive"
2245 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2246 llvm_cv_os_type="IRIX"
2247 llvm_cv_platform_type="Unix" ;;
2249 llvm_cv_link_all_option="-Wl,--whole-archive"
2250 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2251 llvm_cv_os_type="Cygwin"
2252 llvm_cv_platform_type="Unix" ;;
2254 llvm_cv_link_all_option="-Wl,-all_load"
2255 llvm_cv_link_all_option="-Wl,-noall_load"
2256 llvm_cv_os_type="Darwin"
2257 llvm_cv_platform_type="Unix" ;;
2259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261 llvm_cv_os_type="FreeBSD"
2262 llvm_cv_platform_type="Unix" ;;
2264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266 llvm_cv_os_type="OpenBSD"
2267 llvm_cv_platform_type="Unix" ;;
2269 llvm_cv_link_all_option="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2271 llvm_cv_os_type="NetBSD"
2272 llvm_cv_platform_type="Unix" ;;
2274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276 llvm_cv_os_type="HP-UX"
2277 llvm_cv_platform_type="Unix" ;;
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="Interix"
2282 llvm_cv_platform_type="Unix" ;;
2284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286 llvm_cv_os_type="Linux"
2287 llvm_cv_platform_type="Unix" ;;
2289 llvm_cv_link_all_option="-Wl,-z,allextract"
2290 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2291 llvm_cv_os_type="SunOS"
2292 llvm_cv_platform_type="Unix" ;;
2294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296 llvm_cv_os_type="Win32"
2297 llvm_cv_platform_type="Win32" ;;
2299 llvm_cv_link_all_option="-Wl,--whole-archive"
2300 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2301 llvm_cv_os_type="MingW"
2302 llvm_cv_platform_type="Win32" ;;
2304 llvm_cv_link_all_option=""
2305 llvm_cv_no_link_all_option=""
2306 llvm_cv_os_type="Unknown"
2307 llvm_cv_platform_type="Unknown" ;;
2310 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2311 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2313 if test "$llvm_cv_os_type" = "Unknown" ; then
2314 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2315 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2316 { (exit 1); exit 1; }; }
2322 LINKALL=$llvm_cv_link_all_option
2324 NOLINKALL=$llvm_cv_no_link_all_option
2327 case $llvm_cv_platform_type in
2330 cat >>confdefs.h <<\_ACEOF
2331 #define LLVM_ON_UNIX 1
2341 cat >>confdefs.h <<\_ACEOF
2342 #define LLVM_ON_WIN32 1
2352 { echo "$as_me:$LINENO: checking target architecture" >&5
2353 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2354 if test "${llvm_cv_target_arch+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 i?86-*) llvm_cv_target_arch="x86" ;;
2359 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2360 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2361 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2362 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2363 ia64-*) llvm_cv_target_arch="IA64" ;;
2364 arm-*) llvm_cv_target_arch="ARM" ;;
2365 mips-*) llvm_cv_target_arch="Mips" ;;
2366 *) llvm_cv_target_arch="Unknown" ;;
2369 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2370 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2372 if test "$llvm_cv_target_arch" = "Unknown" ; then
2373 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2374 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2377 ARCH=$llvm_cv_target_arch
2381 ac_cpp='$CPP $CPPFLAGS'
2382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2385 if test -n "$ac_tool_prefix"; then
2386 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2387 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2390 if test "${ac_cv_prog_CC+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 if test -n "$CC"; then
2394 ac_cv_prog_CC="$CC" # Let the user override the test.
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 test -z "$as_dir" && as_dir=.
2401 for ac_exec_ext in '' $ac_executable_extensions; do
2402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2403 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414 if test -n "$CC"; then
2415 { echo "$as_me:$LINENO: result: $CC" >&5
2416 echo "${ECHO_T}$CC" >&6; }
2418 { echo "$as_me:$LINENO: result: no" >&5
2419 echo "${ECHO_T}no" >&6; }
2424 if test -z "$ac_cv_prog_CC"; then
2426 # Extract the first word of "gcc", so it can be a program name with args.
2427 set dummy gcc; ac_word=$2
2428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 if test -n "$ac_ct_CC"; then
2434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2443 ac_cv_prog_ac_ct_CC="gcc"
2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2454 if test -n "$ac_ct_CC"; then
2455 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2456 echo "${ECHO_T}$ac_ct_CC" >&6; }
2458 { echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6; }
2462 if test "x$ac_ct_CC" = x; then
2465 case $cross_compiling:$ac_tool_warned in
2467 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2468 whose name does not start with the host triplet. If you think this
2469 configuration is useful to you, please write to autoconf@gnu.org." >&5
2470 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2471 whose name does not start with the host triplet. If you think this
2472 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2473 ac_tool_warned=yes ;;
2481 if test -z "$CC"; then
2482 if test -n "$ac_tool_prefix"; then
2483 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2484 set dummy ${ac_tool_prefix}cc; ac_word=$2
2485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2487 if test "${ac_cv_prog_CC+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 if test -n "$CC"; then
2491 ac_cv_prog_CC="$CC" # Let the user override the test.
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2500 ac_cv_prog_CC="${ac_tool_prefix}cc"
2501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2511 if test -n "$CC"; then
2512 { echo "$as_me:$LINENO: result: $CC" >&5
2513 echo "${ECHO_T}$CC" >&6; }
2515 { echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6; }
2522 if test -z "$CC"; then
2523 # Extract the first word of "cc", so it can be a program name with args.
2524 set dummy cc; ac_word=$2
2525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2527 if test "${ac_cv_prog_CC+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 if test -n "$CC"; then
2531 ac_cv_prog_CC="$CC" # Let the user override the test.
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2541 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2542 ac_prog_rejected=yes
2546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 if test $ac_prog_rejected = yes; then
2554 # We found a bogon in the path, so make sure we never use it.
2555 set dummy $ac_cv_prog_CC
2557 if test $# != 0; then
2558 # We chose a different compiler from the bogus one.
2559 # However, it has the same basename, so the bogon will be chosen
2560 # first if we set CC to just the basename; use the full file name.
2562 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2568 if test -n "$CC"; then
2569 { echo "$as_me:$LINENO: result: $CC" >&5
2570 echo "${ECHO_T}$CC" >&6; }
2572 { echo "$as_me:$LINENO: result: no" >&5
2573 echo "${ECHO_T}no" >&6; }
2578 if test -z "$CC"; then
2579 if test -n "$ac_tool_prefix"; then
2580 for ac_prog in cl.exe
2582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2586 if test "${ac_cv_prog_CC+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 if test -n "$CC"; then
2590 ac_cv_prog_CC="$CC" # Let the user override the test.
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2599 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 if test -n "$CC"; then
2611 { echo "$as_me:$LINENO: result: $CC" >&5
2612 echo "${ECHO_T}$CC" >&6; }
2614 { echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6; }
2619 test -n "$CC" && break
2622 if test -z "$CC"; then
2624 for ac_prog in cl.exe
2626 # Extract the first word of "$ac_prog", so it can be a program name with args.
2627 set dummy $ac_prog; ac_word=$2
2628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2630 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 if test -n "$ac_ct_CC"; then
2634 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2643 ac_cv_prog_ac_ct_CC="$ac_prog"
2644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2654 if test -n "$ac_ct_CC"; then
2655 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2656 echo "${ECHO_T}$ac_ct_CC" >&6; }
2658 { echo "$as_me:$LINENO: result: no" >&5
2659 echo "${ECHO_T}no" >&6; }
2663 test -n "$ac_ct_CC" && break
2666 if test "x$ac_ct_CC" = x; then
2669 case $cross_compiling:$ac_tool_warned in
2671 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2672 whose name does not start with the host triplet. If you think this
2673 configuration is useful to you, please write to autoconf@gnu.org." >&5
2674 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2675 whose name does not start with the host triplet. If you think this
2676 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2677 ac_tool_warned=yes ;;
2686 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2687 See \`config.log' for more details." >&5
2688 echo "$as_me: error: no acceptable C compiler found in \$PATH
2689 See \`config.log' for more details." >&2;}
2690 { (exit 1); exit 1; }; }
2692 # Provide some information about the compiler.
2693 echo "$as_me:$LINENO: checking for C compiler version" >&5
2694 ac_compiler=`set X $ac_compile; echo $2`
2695 { (ac_try="$ac_compiler --version >&5"
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701 (eval "$ac_compiler --version >&5") 2>&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }
2705 { (ac_try="$ac_compiler -v >&5"
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_compiler -v >&5") 2>&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }
2715 { (ac_try="$ac_compiler -V >&5"
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721 (eval "$ac_compiler -V >&5") 2>&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }
2726 cat >conftest.$ac_ext <<_ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h. */
2741 ac_clean_files_save=$ac_clean_files
2742 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2743 # Try to create an executable without -o first, disregard a.out.
2744 # It will help us diagnose broken compilers, and finding out an intuition
2746 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2747 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2748 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2750 # List of possible output files, starting from the most likely.
2751 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2752 # only as a last resort. b.out is created by i960 compilers.
2753 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2755 # The IRIX 6 linker writes into existing files which may not be
2756 # executable, retaining their permissions. Remove them first so a
2757 # subsequent execution test works.
2759 for ac_file in $ac_files
2762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2763 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2768 if { (ac_try="$ac_link_default"
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774 (eval "$ac_link_default") 2>&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; then
2778 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2779 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2780 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2781 # so that the user can short-circuit this test for compilers unknown to
2783 for ac_file in $ac_files
2785 test -f "$ac_file" || continue
2787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2790 # We found the default executable, but exeext='' is most
2794 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2796 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2798 # We set ac_cv_exeext here because the later test for it is not
2799 # safe: cross compilers may not add the suffix if given an `-o'
2800 # argument, so we may need to know it at that point already.
2801 # Even if this section looks crufty: it has the advantage of
2808 test "$ac_cv_exeext" = no && ac_cv_exeext=
2811 echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2814 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2815 See \`config.log' for more details." >&5
2816 echo "$as_me: error: C compiler cannot create executables
2817 See \`config.log' for more details." >&2;}
2818 { (exit 77); exit 77; }; }
2821 ac_exeext=$ac_cv_exeext
2822 { echo "$as_me:$LINENO: result: $ac_file" >&5
2823 echo "${ECHO_T}$ac_file" >&6; }
2825 # Check that the compiler produces executables we can run. If not, either
2826 # the compiler is broken, or we cross compile.
2827 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2828 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2829 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2830 # If not cross compiling, check that we can run a simple program.
2831 if test "$cross_compiling" != yes; then
2832 if { ac_try='./$ac_file'
2833 { (case "(($ac_try" in
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838 (eval "$ac_try") 2>&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; }; then
2844 if test "$cross_compiling" = maybe; then
2847 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2848 If you meant to cross compile, use \`--host'.
2849 See \`config.log' for more details." >&5
2850 echo "$as_me: error: cannot run C compiled programs.
2851 If you meant to cross compile, use \`--host'.
2852 See \`config.log' for more details." >&2;}
2853 { (exit 1); exit 1; }; }
2857 { echo "$as_me:$LINENO: result: yes" >&5
2858 echo "${ECHO_T}yes" >&6; }
2860 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2861 ac_clean_files=$ac_clean_files_save
2862 # Check that the compiler produces executables we can run. If not, either
2863 # the compiler is broken, or we cross compile.
2864 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2865 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2866 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2867 echo "${ECHO_T}$cross_compiling" >&6; }
2869 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2870 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2871 if { (ac_try="$ac_link"
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877 (eval "$ac_link") 2>&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; then
2881 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2882 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2883 # work properly (i.e., refer to `conftest.exe'), while it won't with
2885 for ac_file in conftest.exe conftest conftest.*; do
2886 test -f "$ac_file" || continue
2888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2889 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2895 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2896 See \`config.log' for more details." >&5
2897 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2898 See \`config.log' for more details." >&2;}
2899 { (exit 1); exit 1; }; }
2902 rm -f conftest$ac_cv_exeext
2903 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2904 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2906 rm -f conftest.$ac_ext
2907 EXEEXT=$ac_cv_exeext
2909 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2910 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2911 if test "${ac_cv_objext+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 cat >conftest.$ac_ext <<_ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2929 rm -f conftest.o conftest.obj
2930 if { (ac_try="$ac_compile"
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_compile") 2>&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; then
2940 for ac_file in conftest.o conftest.obj conftest.*; do
2941 test -f "$ac_file" || continue;
2943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2944 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2949 echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2952 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2953 See \`config.log' for more details." >&5
2954 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2955 See \`config.log' for more details." >&2;}
2956 { (exit 1); exit 1; }; }
2959 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2961 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2962 echo "${ECHO_T}$ac_cv_objext" >&6; }
2963 OBJEXT=$ac_cv_objext
2965 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2966 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2967 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 cat >conftest.$ac_ext <<_ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h. */
2988 rm -f conftest.$ac_objext
2989 if { (ac_try="$ac_compile"
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995 (eval "$ac_compile") 2>conftest.er1
2997 grep -v '^ *+' conftest.er1 >conftest.err
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } &&
3002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3003 { (case "(($ac_try" in
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_try") 2>&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; } &&
3012 { ac_try='test -s conftest.$ac_objext'
3013 { (case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_try") 2>&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }; }; then
3024 echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3031 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3034 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3035 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3036 GCC=`test $ac_compiler_gnu = yes && echo yes`
3037 ac_test_CFLAGS=${CFLAGS+set}
3038 ac_save_CFLAGS=$CFLAGS
3039 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3040 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3041 if test "${ac_cv_prog_cc_g+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3044 ac_save_c_werror_flag=$ac_c_werror_flag
3045 ac_c_werror_flag=yes
3048 cat >conftest.$ac_ext <<_ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3063 rm -f conftest.$ac_objext
3064 if { (ac_try="$ac_compile"
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_compile") 2>conftest.er1
3072 grep -v '^ *+' conftest.er1 >conftest.err
3074 cat conftest.err >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } &&
3077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3078 { (case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_try") 2>&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; } &&
3087 { ac_try='test -s conftest.$ac_objext'
3088 { (case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_try") 2>&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3103 cat >conftest.$ac_ext <<_ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h. */
3118 rm -f conftest.$ac_objext
3119 if { (ac_try="$ac_compile"
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_compile") 2>conftest.er1
3127 grep -v '^ *+' conftest.er1 >conftest.err
3129 cat conftest.err >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } &&
3132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3133 { (case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_try") 2>&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; } &&
3142 { ac_try='test -s conftest.$ac_objext'
3143 { (case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_try") 2>&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; }; then
3154 echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3157 ac_c_werror_flag=$ac_save_c_werror_flag
3159 cat >conftest.$ac_ext <<_ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3174 rm -f conftest.$ac_objext
3175 if { (ac_try="$ac_compile"
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3183 grep -v '^ *+' conftest.er1 >conftest.err
3185 cat conftest.err >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } &&
3188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3189 { (case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_try") 2>&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; } &&
3198 { ac_try='test -s conftest.$ac_objext'
3199 { (case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_try") 2>&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
3210 echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223 ac_c_werror_flag=$ac_save_c_werror_flag
3225 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3226 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3227 if test "$ac_test_CFLAGS" = set; then
3228 CFLAGS=$ac_save_CFLAGS
3229 elif test $ac_cv_prog_cc_g = yes; then
3230 if test "$GCC" = yes; then
3236 if test "$GCC" = yes; then
3242 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3243 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3244 if test "${ac_cv_prog_cc_c89+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 ac_cv_prog_cc_c89=no
3249 cat >conftest.$ac_ext <<_ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3257 #include <sys/types.h>
3258 #include <sys/stat.h>
3259 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3260 struct buf { int x; };
3261 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3262 static char *e (p, i)
3268 static char *f (char * (*g) (char **, int), char **p, ...)
3273 s = g (p, va_arg (v,int));
3278 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3279 function prototypes and stuff, but not '\xHH' hex character constants.
3280 These don't provoke an error unfortunately, instead are silently treated
3281 as 'x'. The following induces an error, until -std is added to get
3282 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3283 array size at least. It's necessary to write '\x00'==0 to get something
3284 that's true only with -std. */
3285 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3287 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3288 inside strings and character constants. */
3290 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3292 int test (int i, double x);
3293 struct s1 {int (*f) (int a);};
3294 struct s2 {int (*f) (double a);};
3295 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3301 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3306 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3307 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3309 CC="$ac_save_CC $ac_arg"
3310 rm -f conftest.$ac_objext
3311 if { (ac_try="$ac_compile"
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_compile") 2>conftest.er1
3319 grep -v '^ *+' conftest.er1 >conftest.err
3321 cat conftest.err >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } &&
3324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3325 { (case "(($ac_try" in
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330 (eval "$ac_try") 2>&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; } &&
3334 { ac_try='test -s conftest.$ac_objext'
3335 { (case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340 (eval "$ac_try") 2>&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; }; then
3344 ac_cv_prog_cc_c89=$ac_arg
3346 echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3352 rm -f core conftest.err conftest.$ac_objext
3353 test "x$ac_cv_prog_cc_c89" != "xno" && break
3355 rm -f conftest.$ac_ext
3360 case "x$ac_cv_prog_cc_c89" in
3362 { echo "$as_me:$LINENO: result: none needed" >&5
3363 echo "${ECHO_T}none needed" >&6; } ;;
3365 { echo "$as_me:$LINENO: result: unsupported" >&5
3366 echo "${ECHO_T}unsupported" >&6; } ;;
3368 CC="$CC $ac_cv_prog_cc_c89"
3369 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3370 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3375 ac_cpp='$CPP $CPPFLAGS'
3376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3387 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3388 # On Suns, sometimes $CPP names a directory.
3389 if test -n "$CPP" && test -d "$CPP"; then
3392 if test -z "$CPP"; then
3393 if test "${ac_cv_prog_CPP+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 # Double quotes because CPP needs to be expanded
3397 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3400 for ac_c_preproc_warn_flag in '' yes
3402 # Use a header file that comes with gcc, so configuring glibc
3403 # with a fresh cross-compiler works.
3404 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3405 # <limits.h> exists even on freestanding compilers.
3406 # On the NeXT, cc -E runs the code through the compiler's parser,
3407 # not just through cpp. "Syntax error" is here to catch this case.
3408 cat >conftest.$ac_ext <<_ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3415 # include <limits.h>
3417 # include <assert.h>
3421 if { (ac_try="$ac_cpp conftest.$ac_ext"
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3429 grep -v '^ *+' conftest.er1 >conftest.err
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } >/dev/null; then
3434 if test -s conftest.err; then
3435 ac_cpp_err=$ac_c_preproc_warn_flag
3436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3443 if test -z "$ac_cpp_err"; then
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3449 # Broken: fails on valid input.
3453 rm -f conftest.err conftest.$ac_ext
3455 # OK, works on sane cases. Now check whether nonexistent headers
3456 # can be detected and how.
3457 cat >conftest.$ac_ext <<_ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h. */
3463 #include <ac_nonexistent.h>
3465 if { (ac_try="$ac_cpp conftest.$ac_ext"
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3473 grep -v '^ *+' conftest.er1 >conftest.err
3475 cat conftest.err >&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); } >/dev/null; then
3478 if test -s conftest.err; then
3479 ac_cpp_err=$ac_c_preproc_warn_flag
3480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3487 if test -z "$ac_cpp_err"; then
3488 # Broken: success on invalid input.
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3494 # Passes both tests.
3499 rm -f conftest.err conftest.$ac_ext
3502 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3503 rm -f conftest.err conftest.$ac_ext
3504 if $ac_preproc_ok; then
3516 { echo "$as_me:$LINENO: result: $CPP" >&5
3517 echo "${ECHO_T}$CPP" >&6; }
3519 for ac_c_preproc_warn_flag in '' yes
3521 # Use a header file that comes with gcc, so configuring glibc
3522 # with a fresh cross-compiler works.
3523 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3524 # <limits.h> exists even on freestanding compilers.
3525 # On the NeXT, cc -E runs the code through the compiler's parser,
3526 # not just through cpp. "Syntax error" is here to catch this case.
3527 cat >conftest.$ac_ext <<_ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3534 # include <limits.h>
3536 # include <assert.h>
3540 if { (ac_try="$ac_cpp conftest.$ac_ext"
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3548 grep -v '^ *+' conftest.er1 >conftest.err
3550 cat conftest.err >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); } >/dev/null; then
3553 if test -s conftest.err; then
3554 ac_cpp_err=$ac_c_preproc_warn_flag
3555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3562 if test -z "$ac_cpp_err"; then
3565 echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3568 # Broken: fails on valid input.
3572 rm -f conftest.err conftest.$ac_ext
3574 # OK, works on sane cases. Now check whether nonexistent headers
3575 # can be detected and how.
3576 cat >conftest.$ac_ext <<_ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3582 #include <ac_nonexistent.h>
3584 if { (ac_try="$ac_cpp conftest.$ac_ext"
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3592 grep -v '^ *+' conftest.er1 >conftest.err
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } >/dev/null; then
3597 if test -s conftest.err; then
3598 ac_cpp_err=$ac_c_preproc_warn_flag
3599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3606 if test -z "$ac_cpp_err"; then
3607 # Broken: success on invalid input.
3610 echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3613 # Passes both tests.
3618 rm -f conftest.err conftest.$ac_ext
3621 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3622 rm -f conftest.err conftest.$ac_ext
3623 if $ac_preproc_ok; then
3626 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3627 See \`config.log' for more details." >&5
3628 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3629 See \`config.log' for more details." >&2;}
3630 { (exit 1); exit 1; }; }
3634 ac_cpp='$CPP $CPPFLAGS'
3635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3640 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3641 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3642 if test "${ac_cv_path_GREP+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 # Extract the first word of "grep ggrep" to use in msg output
3646 if test -z "$GREP"; then
3647 set dummy grep ggrep; ac_prog_name=$2
3648 if test "${ac_cv_path_GREP+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 ac_path_GREP_found=false
3652 # Loop through the user's path and test for each of PROGNAME-LIST
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3657 test -z "$as_dir" && as_dir=.
3658 for ac_prog in grep ggrep; do
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3661 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3662 # Check for GNU ac_path_GREP and select it if it is found.
3663 # Check for GNU $ac_path_GREP
3664 case `"$ac_path_GREP" --version 2>&1` in
3666 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3669 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3672 cat "conftest.in" "conftest.in" >"conftest.tmp"
3673 mv "conftest.tmp" "conftest.in"
3674 cp "conftest.in" "conftest.nl"
3675 echo 'GREP' >> "conftest.nl"
3676 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3677 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3678 ac_count=`expr $ac_count + 1`
3679 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3680 # Best one so far, save it but keep looking for a better one
3681 ac_cv_path_GREP="$ac_path_GREP"
3682 ac_path_GREP_max=$ac_count
3684 # 10*(2^10) chars as input seems more than enough
3685 test $ac_count -gt 10 && break
3687 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3691 $ac_path_GREP_found && break 3
3701 GREP="$ac_cv_path_GREP"
3702 if test -z "$GREP"; then
3703 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3704 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3705 { (exit 1); exit 1; }; }
3709 ac_cv_path_GREP=$GREP
3714 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3715 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3716 GREP="$ac_cv_path_GREP"
3719 { echo "$as_me:$LINENO: checking for egrep" >&5
3720 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3721 if test "${ac_cv_path_EGREP+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3725 then ac_cv_path_EGREP="$GREP -E"
3727 # Extract the first word of "egrep" to use in msg output
3728 if test -z "$EGREP"; then
3729 set dummy egrep; ac_prog_name=$2
3730 if test "${ac_cv_path_EGREP+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 ac_path_EGREP_found=false
3734 # Loop through the user's path and test for each of PROGNAME-LIST
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3739 test -z "$as_dir" && as_dir=.
3740 for ac_prog in egrep; do
3741 for ac_exec_ext in '' $ac_executable_extensions; do
3742 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3743 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3744 # Check for GNU ac_path_EGREP and select it if it is found.
3745 # Check for GNU $ac_path_EGREP
3746 case `"$ac_path_EGREP" --version 2>&1` in
3748 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3751 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3754 cat "conftest.in" "conftest.in" >"conftest.tmp"
3755 mv "conftest.tmp" "conftest.in"
3756 cp "conftest.in" "conftest.nl"
3757 echo 'EGREP' >> "conftest.nl"
3758 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3759 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3760 ac_count=`expr $ac_count + 1`
3761 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3762 # Best one so far, save it but keep looking for a better one
3763 ac_cv_path_EGREP="$ac_path_EGREP"
3764 ac_path_EGREP_max=$ac_count
3766 # 10*(2^10) chars as input seems more than enough
3767 test $ac_count -gt 10 && break
3769 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3773 $ac_path_EGREP_found && break 3
3783 EGREP="$ac_cv_path_EGREP"
3784 if test -z "$EGREP"; then
3785 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3786 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3787 { (exit 1); exit 1; }; }
3791 ac_cv_path_EGREP=$EGREP
3797 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3798 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3799 EGREP="$ac_cv_path_EGREP"
3802 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3803 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3804 if test "${ac_cv_header_stdc+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 cat >conftest.$ac_ext <<_ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h. */
3826 rm -f conftest.$ac_objext
3827 if { (ac_try="$ac_compile"
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833 (eval "$ac_compile") 2>conftest.er1
3835 grep -v '^ *+' conftest.er1 >conftest.err
3837 cat conftest.err >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } &&
3840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3841 { (case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846 (eval "$ac_try") 2>&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; } &&
3850 { ac_try='test -s conftest.$ac_objext'
3851 { (case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3856 (eval "$ac_try") 2>&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; }; then
3860 ac_cv_header_stdc=yes
3862 echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3865 ac_cv_header_stdc=no
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870 if test $ac_cv_header_stdc = yes; then
3871 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3872 cat >conftest.$ac_ext <<_ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3882 $EGREP "memchr" >/dev/null 2>&1; then
3885 ac_cv_header_stdc=no
3891 if test $ac_cv_header_stdc = yes; then
3892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3893 cat >conftest.$ac_ext <<_ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3903 $EGREP "free" >/dev/null 2>&1; then
3906 ac_cv_header_stdc=no
3912 if test $ac_cv_header_stdc = yes; then
3913 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3914 if test "$cross_compiling" = yes; then
3917 cat >conftest.$ac_ext <<_ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h. */
3925 #if ((' ' & 0x0FF) == 0x020)
3926 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3927 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3929 # define ISLOWER(c) \
3930 (('a' <= (c) && (c) <= 'i') \
3931 || ('j' <= (c) && (c) <= 'r') \
3932 || ('s' <= (c) && (c) <= 'z'))
3933 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3936 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3941 for (i = 0; i < 256; i++)
3942 if (XOR (islower (i), ISLOWER (i))
3943 || toupper (i) != TOUPPER (i))
3948 rm -f conftest$ac_exeext
3949 if { (ac_try="$ac_link"
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3955 (eval "$ac_link") 2>&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3959 { (case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_try") 2>&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; }; then
3970 echo "$as_me: program exited with status $ac_status" >&5
3971 echo "$as_me: failed program was:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3975 ac_cv_header_stdc=no
3977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3983 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3984 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3985 if test $ac_cv_header_stdc = yes; then
3987 cat >>confdefs.h <<\_ACEOF
3988 #define STDC_HEADERS 1
3993 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4003 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4004 inttypes.h stdint.h unistd.h
4006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 cat >conftest.$ac_ext <<_ACEOF
4015 cat confdefs.h >>conftest.$ac_ext
4016 cat >>conftest.$ac_ext <<_ACEOF
4017 /* end confdefs.h. */
4018 $ac_includes_default
4020 #include <$ac_header>
4022 rm -f conftest.$ac_objext
4023 if { (ac_try="$ac_compile"
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4029 (eval "$ac_compile") 2>conftest.er1
4031 grep -v '^ *+' conftest.er1 >conftest.err
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } &&
4036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4037 { (case "(($ac_try" in
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042 (eval "$ac_try") 2>&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; } &&
4046 { ac_try='test -s conftest.$ac_objext'
4047 { (case "(($ac_try" in
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052 (eval "$ac_try") 2>&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; }; then
4056 eval "$as_ac_Header=yes"
4058 echo "$as_me: failed program was:" >&5
4059 sed 's/^/| /' conftest.$ac_ext >&5
4061 eval "$as_ac_Header=no"
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_res=`eval echo '${'$as_ac_Header'}'`
4067 { echo "$as_me:$LINENO: result: $ac_res" >&5
4068 echo "${ECHO_T}$ac_res" >&6; }
4069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4070 cat >>confdefs.h <<_ACEOF
4071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4079 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4080 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4081 if test "${ac_cv_c_bigendian+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 # See if sys/param.h defines the BYTE_ORDER macro.
4085 cat >conftest.$ac_ext <<_ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4091 #include <sys/types.h>
4092 #include <sys/param.h>
4097 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4105 rm -f conftest.$ac_objext
4106 if { (ac_try="$ac_compile"
4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109 *) ac_try_echo=$ac_try;;
4111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4112 (eval "$ac_compile") 2>conftest.er1
4114 grep -v '^ *+' conftest.er1 >conftest.err
4116 cat conftest.err >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } &&
4119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4120 { (case "(($ac_try" in
4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122 *) ac_try_echo=$ac_try;;
4124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4125 (eval "$ac_try") 2>&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; } &&
4129 { ac_try='test -s conftest.$ac_objext'
4130 { (case "(($ac_try" in
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135 (eval "$ac_try") 2>&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }; }; then
4139 # It does; now see whether it defined to BIG_ENDIAN or not.
4140 cat >conftest.$ac_ext <<_ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4146 #include <sys/types.h>
4147 #include <sys/param.h>
4152 #if BYTE_ORDER != BIG_ENDIAN
4160 rm -f conftest.$ac_objext
4161 if { (ac_try="$ac_compile"
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167 (eval "$ac_compile") 2>conftest.er1
4169 grep -v '^ *+' conftest.er1 >conftest.err
4171 cat conftest.err >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } &&
4174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4175 { (case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180 (eval "$ac_try") 2>&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; } &&
4184 { ac_try='test -s conftest.$ac_objext'
4185 { (case "(($ac_try" in
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190 (eval "$ac_try") 2>&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; }; then
4194 ac_cv_c_bigendian=yes
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4199 ac_cv_c_bigendian=no
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4207 # It does not; compile a test program.
4208 if test "$cross_compiling" = yes; then
4209 # try to guess the endianness by grepping values into an object file
4210 ac_cv_c_bigendian=unknown
4211 cat >conftest.$ac_ext <<_ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4217 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4218 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4219 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4220 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4221 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4222 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4226 _ascii (); _ebcdic ();
4231 rm -f conftest.$ac_objext
4232 if { (ac_try="$ac_compile"
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238 (eval "$ac_compile") 2>conftest.er1
4240 grep -v '^ *+' conftest.er1 >conftest.err
4242 cat conftest.err >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } &&
4245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4246 { (case "(($ac_try" in
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251 (eval "$ac_try") 2>&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; } &&
4255 { ac_try='test -s conftest.$ac_objext'
4256 { (case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_try") 2>&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); }; }; then
4265 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4266 ac_cv_c_bigendian=yes
4268 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4269 if test "$ac_cv_c_bigendian" = unknown; then
4270 ac_cv_c_bigendian=no
4272 # finding both strings is unlikely to happen, but who knows?
4273 ac_cv_c_bigendian=unknown
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285 cat >conftest.$ac_ext <<_ACEOF
4288 cat confdefs.h >>conftest.$ac_ext
4289 cat >>conftest.$ac_ext <<_ACEOF
4290 /* end confdefs.h. */
4291 $ac_includes_default
4296 /* Are we little or big endian? From Harbison&Steele. */
4300 char c[sizeof (long int)];
4303 return u.c[sizeof (long int) - 1] == 1;
4309 rm -f conftest$ac_exeext
4310 if { (ac_try="$ac_link"
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316 (eval "$ac_link") 2>&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4320 { (case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_try") 2>&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; }; then
4329 ac_cv_c_bigendian=no
4331 echo "$as_me: program exited with status $ac_status" >&5
4332 echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.$ac_ext >&5
4336 ac_cv_c_bigendian=yes
4338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4347 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4348 case $ac_cv_c_bigendian in
4356 { { echo "$as_me:$LINENO: error: unknown endianness
4357 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4358 echo "$as_me: error: unknown endianness
4359 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4360 { (exit 1); exit 1; }; } ;;
4364 if test "$cross_compiling" = yes; then
4365 LLVM_CROSS_COMPILING=1
4368 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4369 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4370 if test "${ac_cv_build_exeext+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4374 ac_cv_build_exeext=.exe
4376 ac_build_prefix=${build_alias}-
4378 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4379 set dummy ${ac_build_prefix}gcc; ac_word=$2
4380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4382 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 if test -n "$BUILD_CC"; then
4386 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4395 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4405 BUILD_CC=$ac_cv_prog_BUILD_CC
4406 if test -n "$BUILD_CC"; then
4407 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4408 echo "${ECHO_T}$BUILD_CC" >&6; }
4410 { echo "$as_me:$LINENO: result: no" >&5
4411 echo "${ECHO_T}no" >&6; }
4415 if test -z "$BUILD_CC"; then
4416 # Extract the first word of "gcc", so it can be a program name with args.
4417 set dummy gcc; ac_word=$2
4418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4420 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 if test -n "$BUILD_CC"; then
4424 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4433 ac_cv_prog_BUILD_CC="gcc"
4434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4443 BUILD_CC=$ac_cv_prog_BUILD_CC
4444 if test -n "$BUILD_CC"; then
4445 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4446 echo "${ECHO_T}$BUILD_CC" >&6; }
4448 { echo "$as_me:$LINENO: result: no" >&5
4449 echo "${ECHO_T}no" >&6; }
4453 if test -z "$BUILD_CC"; then
4454 # Extract the first word of "cc", so it can be a program name with args.
4455 set dummy cc; ac_word=$2
4456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4458 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 if test -n "$BUILD_CC"; then
4462 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4472 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4473 ac_prog_rejected=yes
4476 ac_cv_prog_BUILD_CC="cc"
4477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 if test $ac_prog_rejected = yes; then
4485 # We found a bogon in the path, so make sure we never use it.
4486 set dummy $ac_cv_prog_BUILD_CC
4488 if test $# != 0; then
4489 # We chose a different compiler from the bogus one.
4490 # However, it has the same basename, so the bogon will be chosen
4491 # first if we set BUILD_CC to just the basename; use the full file name.
4493 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4498 BUILD_CC=$ac_cv_prog_BUILD_CC
4499 if test -n "$BUILD_CC"; then
4500 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4501 echo "${ECHO_T}$BUILD_CC" >&6; }
4503 { echo "$as_me:$LINENO: result: no" >&5
4504 echo "${ECHO_T}no" >&6; }
4510 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4511 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4512 { (exit 1); exit 1; }; }
4513 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4515 echo 'int main () { return 0; }' > conftest.$ac_ext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4518 (eval $ac_build_link) 2>&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; then
4522 for file in conftest.*; do
4524 *.c | *.o | *.obj) ;;
4525 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4529 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4530 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4531 { (exit 1); exit 1; }; }
4534 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4539 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4540 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4541 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4542 ac_build_exeext=$BUILD_EXEEXT
4545 LLVM_CROSS_COMPILING=0
4549 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4560 # Check whether --enable-optimized was given.
4561 if test "${enable_optimized+set}" = set; then
4562 enableval=$enable_optimized;
4567 if test ${enableval} = "no" ; then
4571 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4575 # Check whether --enable-assertions was given.
4576 if test "${enable_assertions+set}" = set; then
4577 enableval=$enable_assertions;
4582 if test ${enableval} = "yes" ; then
4586 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4590 # Check whether --enable-expensive-checks was given.
4591 if test "${enable_expensive_checks+set}" = set; then
4592 enableval=$enable_expensive_checks;
4597 if test ${enableval} = "yes" ; then
4598 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4600 EXPENSIVE_CHECKS=yes
4603 ENABLE_EXPENSIVE_CHECKS=
4609 # Check whether --enable-debug-runtime was given.
4610 if test "${enable_debug_runtime+set}" = set; then
4611 enableval=$enable_debug_runtime;
4616 if test ${enableval} = "no" ; then
4620 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4624 # Check whether --enable-jit was given.
4625 if test "${enable_jit+set}" = set; then
4626 enableval=$enable_jit;
4631 if test ${enableval} = "no"
4636 case "$llvm_cv_target_arch" in
4637 x86) TARGET_HAS_JIT=1
4639 Sparc) TARGET_HAS_JIT=0
4641 PowerPC) TARGET_HAS_JIT=1
4643 x86_64) TARGET_HAS_JIT=1
4645 Alpha) TARGET_HAS_JIT=1
4647 IA64) TARGET_HAS_JIT=0
4649 ARM) TARGET_HAS_JIT=0
4651 Mips) TARGET_HAS_JIT=0
4658 # Check whether --enable-doxygen was given.
4659 if test "${enable_doxygen+set}" = set; then
4660 enableval=$enable_doxygen;
4665 case "$enableval" in
4666 yes) ENABLE_DOXYGEN=1
4668 no) ENABLE_DOXYGEN=0
4670 default) ENABLE_DOXYGEN=0
4672 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4673 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4674 { (exit 1); exit 1; }; } ;;
4677 # Check whether --enable-threads was given.
4678 if test "${enable_threads+set}" = set; then
4679 enableval=$enable_threads;
4684 case "$enableval" in
4685 yes) ENABLE_THREADS=1
4687 no) ENABLE_THREADS=0
4689 default) ENABLE_THREADS=1
4691 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4692 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4693 { (exit 1); exit 1; }; } ;;
4696 cat >>confdefs.h <<_ACEOF
4697 #define ENABLE_THREADS $ENABLE_THREADS
4701 # Check whether --enable-pic was given.
4702 if test "${enable_pic+set}" = set; then
4703 enableval=$enable_pic;
4708 case "$enableval" in
4713 default) ENABLE_PIC=0
4715 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4716 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4717 { (exit 1); exit 1; }; } ;;
4720 cat >>confdefs.h <<_ACEOF
4721 #define ENABLE_PIC $ENABLE_PIC
4726 # Check whether --enable-targets was given.
4727 if test "${enable_targets+set}" = set; then
4728 enableval=$enable_targets;
4733 case "$enableval" in
4734 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips" ;;
4736 case "$llvm_cv_target_arch" in
4737 x86) TARGETS_TO_BUILD="X86" ;;
4738 x86_64) TARGETS_TO_BUILD="X86" ;;
4739 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4740 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4741 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4742 IA64) TARGETS_TO_BUILD="IA64" ;;
4743 ARM) TARGETS_TO_BUILD="ARM" ;;
4744 Mips) TARGETS_TO_BUILD="Mips" ;;
4745 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4746 echo "$as_me: error: Can not set target to build" >&2;}
4747 { (exit 1); exit 1; }; } ;;
4750 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4752 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4753 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4754 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4755 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4756 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4757 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4758 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4759 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4760 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4761 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4762 { (exit 1); exit 1; }; } ;;
4767 TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4768 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4771 # Check whether --enable-cbe-printf-a was given.
4772 if test "${enable_cbe_printf_a+set}" = set; then
4773 enableval=$enable_cbe_printf_a;
4778 case "$enableval" in
4779 yes) ENABLE_CBE_PRINTF_A=1
4781 no) ENABLE_CBE_PRINTF_A=0
4783 default) ENABLE_CBE_PRINTF_A=1
4785 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4786 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4787 { (exit 1); exit 1; }; } ;;
4790 cat >>confdefs.h <<_ACEOF
4791 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4796 # Check whether --with-llvmgccdir was given.
4797 if test "${with_llvmgccdir+set}" = set; then
4798 withval=$with_llvmgccdir;
4804 default) WITH_LLVMGCCDIR=default ;;
4805 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4806 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4807 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4808 { (exit 1); exit 1; }; } ;;
4812 # Check whether --with-extra-options was given.
4813 if test "${with_extra_options+set}" = set; then
4814 withval=$with_extra_options;
4820 default) EXTRA_OPTIONS= ;;
4821 *) EXTRA_OPTIONS=$withval ;;
4823 EXTRA_OPTIONS=$EXTRA_OPTIONS
4828 ac_cpp='$CPP $CPPFLAGS'
4829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4832 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4833 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4834 # On Suns, sometimes $CPP names a directory.
4835 if test -n "$CPP" && test -d "$CPP"; then
4838 if test -z "$CPP"; then
4839 if test "${ac_cv_prog_CPP+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 # Double quotes because CPP needs to be expanded
4843 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4846 for ac_c_preproc_warn_flag in '' yes
4848 # Use a header file that comes with gcc, so configuring glibc
4849 # with a fresh cross-compiler works.
4850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4851 # <limits.h> exists even on freestanding compilers.
4852 # On the NeXT, cc -E runs the code through the compiler's parser,
4853 # not just through cpp. "Syntax error" is here to catch this case.
4854 cat >conftest.$ac_ext <<_ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h. */
4861 # include <limits.h>
4863 # include <assert.h>
4867 if { (ac_try="$ac_cpp conftest.$ac_ext"
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4875 grep -v '^ *+' conftest.er1 >conftest.err
4877 cat conftest.err >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } >/dev/null; then
4880 if test -s conftest.err; then
4881 ac_cpp_err=$ac_c_preproc_warn_flag
4882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4889 if test -z "$ac_cpp_err"; then
4892 echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4895 # Broken: fails on valid input.
4899 rm -f conftest.err conftest.$ac_ext
4901 # OK, works on sane cases. Now check whether nonexistent headers
4902 # can be detected and how.
4903 cat >conftest.$ac_ext <<_ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4909 #include <ac_nonexistent.h>
4911 if { (ac_try="$ac_cpp conftest.$ac_ext"
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4919 grep -v '^ *+' conftest.er1 >conftest.err
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } >/dev/null; then
4924 if test -s conftest.err; then
4925 ac_cpp_err=$ac_c_preproc_warn_flag
4926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4933 if test -z "$ac_cpp_err"; then
4934 # Broken: success on invalid input.
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4940 # Passes both tests.
4945 rm -f conftest.err conftest.$ac_ext
4948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4949 rm -f conftest.err conftest.$ac_ext
4950 if $ac_preproc_ok; then
4962 { echo "$as_me:$LINENO: result: $CPP" >&5
4963 echo "${ECHO_T}$CPP" >&6; }
4965 for ac_c_preproc_warn_flag in '' yes
4967 # Use a header file that comes with gcc, so configuring glibc
4968 # with a fresh cross-compiler works.
4969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4970 # <limits.h> exists even on freestanding compilers.
4971 # On the NeXT, cc -E runs the code through the compiler's parser,
4972 # not just through cpp. "Syntax error" is here to catch this case.
4973 cat >conftest.$ac_ext <<_ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4980 # include <limits.h>
4982 # include <assert.h>
4986 if { (ac_try="$ac_cpp conftest.$ac_ext"
4988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4989 *) ac_try_echo=$ac_try;;
4991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4994 grep -v '^ *+' conftest.er1 >conftest.err
4996 cat conftest.err >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } >/dev/null; then
4999 if test -s conftest.err; then
5000 ac_cpp_err=$ac_c_preproc_warn_flag
5001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5008 if test -z "$ac_cpp_err"; then
5011 echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5014 # Broken: fails on valid input.
5018 rm -f conftest.err conftest.$ac_ext
5020 # OK, works on sane cases. Now check whether nonexistent headers
5021 # can be detected and how.
5022 cat >conftest.$ac_ext <<_ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h. */
5028 #include <ac_nonexistent.h>
5030 if { (ac_try="$ac_cpp conftest.$ac_ext"
5032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5033 *) ac_try_echo=$ac_try;;
5035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5038 grep -v '^ *+' conftest.er1 >conftest.err
5040 cat conftest.err >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); } >/dev/null; then
5043 if test -s conftest.err; then
5044 ac_cpp_err=$ac_c_preproc_warn_flag
5045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5052 if test -z "$ac_cpp_err"; then
5053 # Broken: success on invalid input.
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5059 # Passes both tests.
5064 rm -f conftest.err conftest.$ac_ext
5067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5068 rm -f conftest.err conftest.$ac_ext
5069 if $ac_preproc_ok; then
5072 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5073 See \`config.log' for more details." >&5
5074 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5075 See \`config.log' for more details." >&2;}
5076 { (exit 1); exit 1; }; }
5080 ac_cpp='$CPP $CPPFLAGS'
5081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5086 ac_cpp='$CPP $CPPFLAGS'
5087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090 if test -n "$ac_tool_prefix"; then
5093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5097 if test "${ac_cv_prog_CC+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 if test -n "$CC"; then
5101 ac_cv_prog_CC="$CC" # Let the user override the test.
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5110 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 if test -n "$CC"; then
5122 { echo "$as_me:$LINENO: result: $CC" >&5
5123 echo "${ECHO_T}$CC" >&6; }
5125 { echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6; }
5130 test -n "$CC" && break
5133 if test -z "$CC"; then
5137 # Extract the first word of "$ac_prog", so it can be a program name with args.
5138 set dummy $ac_prog; ac_word=$2
5139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 if test -n "$ac_ct_CC"; then
5145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5154 ac_cv_prog_ac_ct_CC="$ac_prog"
5155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5165 if test -n "$ac_ct_CC"; then
5166 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5167 echo "${ECHO_T}$ac_ct_CC" >&6; }
5169 { echo "$as_me:$LINENO: result: no" >&5
5170 echo "${ECHO_T}no" >&6; }
5174 test -n "$ac_ct_CC" && break
5177 if test "x$ac_ct_CC" = x; then
5180 case $cross_compiling:$ac_tool_warned in
5182 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5183 whose name does not start with the host triplet. If you think this
5184 configuration is useful to you, please write to autoconf@gnu.org." >&5
5185 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5186 whose name does not start with the host triplet. If you think this
5187 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5188 ac_tool_warned=yes ;;
5195 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5196 See \`config.log' for more details." >&5
5197 echo "$as_me: error: no acceptable C compiler found in \$PATH
5198 See \`config.log' for more details." >&2;}
5199 { (exit 1); exit 1; }; }
5201 # Provide some information about the compiler.
5202 echo "$as_me:$LINENO: checking for C compiler version" >&5
5203 ac_compiler=`set X $ac_compile; echo $2`
5204 { (ac_try="$ac_compiler --version >&5"
5206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207 *) ac_try_echo=$ac_try;;
5209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210 (eval "$ac_compiler --version >&5") 2>&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }
5214 { (ac_try="$ac_compiler -v >&5"
5216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5217 *) ac_try_echo=$ac_try;;
5219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5220 (eval "$ac_compiler -v >&5") 2>&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }
5224 { (ac_try="$ac_compiler -V >&5"
5226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5227 *) ac_try_echo=$ac_try;;
5229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5230 (eval "$ac_compiler -V >&5") 2>&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }
5235 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5236 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5237 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 cat >conftest.$ac_ext <<_ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h. */
5258 rm -f conftest.$ac_objext
5259 if { (ac_try="$ac_compile"
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265 (eval "$ac_compile") 2>conftest.er1
5267 grep -v '^ *+' conftest.er1 >conftest.err
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } &&
5272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5273 { (case "(($ac_try" in
5274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275 *) ac_try_echo=$ac_try;;
5277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278 (eval "$ac_try") 2>&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; } &&
5282 { ac_try='test -s conftest.$ac_objext'
5283 { (case "(($ac_try" in
5284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285 *) ac_try_echo=$ac_try;;
5287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288 (eval "$ac_try") 2>&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5304 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5305 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5306 GCC=`test $ac_compiler_gnu = yes && echo yes`
5307 ac_test_CFLAGS=${CFLAGS+set}
5308 ac_save_CFLAGS=$CFLAGS
5309 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5310 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5311 if test "${ac_cv_prog_cc_g+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 ac_save_c_werror_flag=$ac_c_werror_flag
5315 ac_c_werror_flag=yes
5318 cat >conftest.$ac_ext <<_ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5333 rm -f conftest.$ac_objext
5334 if { (ac_try="$ac_compile"
5336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337 *) ac_try_echo=$ac_try;;
5339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5340 (eval "$ac_compile") 2>conftest.er1
5342 grep -v '^ *+' conftest.er1 >conftest.err
5344 cat conftest.err >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } &&
5347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5348 { (case "(($ac_try" in
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_try") 2>&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; } &&
5357 { ac_try='test -s conftest.$ac_objext'
5358 { (case "(($ac_try" in
5359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360 *) ac_try_echo=$ac_try;;
5362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363 (eval "$ac_try") 2>&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; }; then
5369 echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5373 cat >conftest.$ac_ext <<_ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5388 rm -f conftest.$ac_objext
5389 if { (ac_try="$ac_compile"
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_compile") 2>conftest.er1
5397 grep -v '^ *+' conftest.er1 >conftest.err
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } &&
5402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5403 { (case "(($ac_try" in
5404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405 *) ac_try_echo=$ac_try;;
5407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408 (eval "$ac_try") 2>&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; } &&
5412 { ac_try='test -s conftest.$ac_objext'
5413 { (case "(($ac_try" in
5414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415 *) ac_try_echo=$ac_try;;
5417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418 (eval "$ac_try") 2>&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }; }; then
5424 echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5427 ac_c_werror_flag=$ac_save_c_werror_flag
5429 cat >conftest.$ac_ext <<_ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5444 rm -f conftest.$ac_objext
5445 if { (ac_try="$ac_compile"
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451 (eval "$ac_compile") 2>conftest.er1
5453 grep -v '^ *+' conftest.er1 >conftest.err
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } &&
5458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5459 { (case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_try") 2>&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; } &&
5468 { ac_try='test -s conftest.$ac_objext'
5469 { (case "(($ac_try" in
5470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471 *) ac_try_echo=$ac_try;;
5473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474 (eval "$ac_try") 2>&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; }; then
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493 ac_c_werror_flag=$ac_save_c_werror_flag
5495 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5496 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5497 if test "$ac_test_CFLAGS" = set; then
5498 CFLAGS=$ac_save_CFLAGS
5499 elif test $ac_cv_prog_cc_g = yes; then
5500 if test "$GCC" = yes; then
5506 if test "$GCC" = yes; then
5512 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5513 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5514 if test "${ac_cv_prog_cc_c89+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 ac_cv_prog_cc_c89=no
5519 cat >conftest.$ac_ext <<_ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h. */
5527 #include <sys/types.h>
5528 #include <sys/stat.h>
5529 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5530 struct buf { int x; };
5531 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5532 static char *e (p, i)
5538 static char *f (char * (*g) (char **, int), char **p, ...)
5543 s = g (p, va_arg (v,int));
5548 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5549 function prototypes and stuff, but not '\xHH' hex character constants.
5550 These don't provoke an error unfortunately, instead are silently treated
5551 as 'x'. The following induces an error, until -std is added to get
5552 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5553 array size at least. It's necessary to write '\x00'==0 to get something
5554 that's true only with -std. */
5555 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5557 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5558 inside strings and character constants. */
5560 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5562 int test (int i, double x);
5563 struct s1 {int (*f) (int a);};
5564 struct s2 {int (*f) (double a);};
5565 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5571 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5576 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5577 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5579 CC="$ac_save_CC $ac_arg"
5580 rm -f conftest.$ac_objext
5581 if { (ac_try="$ac_compile"
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_compile") 2>conftest.er1
5589 grep -v '^ *+' conftest.er1 >conftest.err
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } &&
5594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5595 { (case "(($ac_try" in
5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597 *) ac_try_echo=$ac_try;;
5599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600 (eval "$ac_try") 2>&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; } &&
5604 { ac_try='test -s conftest.$ac_objext'
5605 { (case "(($ac_try" in
5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607 *) ac_try_echo=$ac_try;;
5609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5610 (eval "$ac_try") 2>&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; }; then
5614 ac_cv_prog_cc_c89=$ac_arg
5616 echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5622 rm -f core conftest.err conftest.$ac_objext
5623 test "x$ac_cv_prog_cc_c89" != "xno" && break
5625 rm -f conftest.$ac_ext
5630 case "x$ac_cv_prog_cc_c89" in
5632 { echo "$as_me:$LINENO: result: none needed" >&5
5633 echo "${ECHO_T}none needed" >&6; } ;;
5635 { echo "$as_me:$LINENO: result: unsupported" >&5
5636 echo "${ECHO_T}unsupported" >&6; } ;;
5638 CC="$CC $ac_cv_prog_cc_c89"
5639 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5640 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5645 ac_cpp='$CPP $CPPFLAGS'
5646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5651 ac_cpp='$CXXCPP $CPPFLAGS'
5652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5655 if test -z "$CXX"; then
5656 if test -n "$CCC"; then
5659 if test -n "$ac_tool_prefix"; then
5662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5663 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5666 if test "${ac_cv_prog_CXX+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 if test -n "$CXX"; then
5670 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5679 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 if test -n "$CXX"; then
5691 { echo "$as_me:$LINENO: result: $CXX" >&5
5692 echo "${ECHO_T}$CXX" >&6; }
5694 { echo "$as_me:$LINENO: result: no" >&5
5695 echo "${ECHO_T}no" >&6; }
5699 test -n "$CXX" && break
5702 if test -z "$CXX"; then
5706 # Extract the first word of "$ac_prog", so it can be a program name with args.
5707 set dummy $ac_prog; ac_word=$2
5708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5710 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5713 if test -n "$ac_ct_CXX"; then
5714 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5723 ac_cv_prog_ac_ct_CXX="$ac_prog"
5724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5734 if test -n "$ac_ct_CXX"; then
5735 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5736 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5738 { echo "$as_me:$LINENO: result: no" >&5
5739 echo "${ECHO_T}no" >&6; }
5743 test -n "$ac_ct_CXX" && break
5746 if test "x$ac_ct_CXX" = x; then
5749 case $cross_compiling:$ac_tool_warned in
5751 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5752 whose name does not start with the host triplet. If you think this
5753 configuration is useful to you, please write to autoconf@gnu.org." >&5
5754 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5755 whose name does not start with the host triplet. If you think this
5756 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5757 ac_tool_warned=yes ;;
5765 # Provide some information about the compiler.
5766 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5767 ac_compiler=`set X $ac_compile; echo $2`
5768 { (ac_try="$ac_compiler --version >&5"
5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774 (eval "$ac_compiler --version >&5") 2>&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }
5778 { (ac_try="$ac_compiler -v >&5"
5780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781 *) ac_try_echo=$ac_try;;
5783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784 (eval "$ac_compiler -v >&5") 2>&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }
5788 { (ac_try="$ac_compiler -V >&5"
5790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791 *) ac_try_echo=$ac_try;;
5793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794 (eval "$ac_compiler -V >&5") 2>&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }
5799 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5800 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5801 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 cat >conftest.$ac_ext <<_ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5822 rm -f conftest.$ac_objext
5823 if { (ac_try="$ac_compile"
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829 (eval "$ac_compile") 2>conftest.er1
5831 grep -v '^ *+' conftest.er1 >conftest.err
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } &&
5836 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5837 { (case "(($ac_try" in
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842 (eval "$ac_try") 2>&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; } &&
5846 { ac_try='test -s conftest.$ac_objext'
5847 { (case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_try") 2>&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; }; then
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5868 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5869 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5870 GXX=`test $ac_compiler_gnu = yes && echo yes`
5871 ac_test_CXXFLAGS=${CXXFLAGS+set}
5872 ac_save_CXXFLAGS=$CXXFLAGS
5873 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5874 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5875 if test "${ac_cv_prog_cxx_g+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5879 ac_cxx_werror_flag=yes
5882 cat >conftest.$ac_ext <<_ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h. */
5897 rm -f conftest.$ac_objext
5898 if { (ac_try="$ac_compile"
5900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901 *) ac_try_echo=$ac_try;;
5903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904 (eval "$ac_compile") 2>conftest.er1
5906 grep -v '^ *+' conftest.er1 >conftest.err
5908 cat conftest.err >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } &&
5911 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5912 { (case "(($ac_try" in
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917 (eval "$ac_try") 2>&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; } &&
5921 { ac_try='test -s conftest.$ac_objext'
5922 { (case "(($ac_try" in
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927 (eval "$ac_try") 2>&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; }; then
5931 ac_cv_prog_cxx_g=yes
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5937 cat >conftest.$ac_ext <<_ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h. */
5952 rm -f conftest.$ac_objext
5953 if { (ac_try="$ac_compile"
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959 (eval "$ac_compile") 2>conftest.er1
5961 grep -v '^ *+' conftest.er1 >conftest.err
5963 cat conftest.err >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } &&
5966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5967 { (case "(($ac_try" in
5968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969 *) ac_try_echo=$ac_try;;
5971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972 (eval "$ac_try") 2>&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; } &&
5976 { ac_try='test -s conftest.$ac_objext'
5977 { (case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_try") 2>&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; }; then
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5991 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5993 cat >conftest.$ac_ext <<_ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
6008 rm -f conftest.$ac_objext
6009 if { (ac_try="$ac_compile"
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_compile") 2>conftest.er1
6017 grep -v '^ *+' conftest.er1 >conftest.err
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6023 { (case "(($ac_try" in
6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025 *) ac_try_echo=$ac_try;;
6027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_try") 2>&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; } &&
6032 { ac_try='test -s conftest.$ac_objext'
6033 { (case "(($ac_try" in
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$ac_try") 2>&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; }; then
6042 ac_cv_prog_cxx_g=yes
6044 echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6059 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6060 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6061 if test "$ac_test_CXXFLAGS" = set; then
6062 CXXFLAGS=$ac_save_CXXFLAGS
6063 elif test $ac_cv_prog_cxx_g = yes; then
6064 if test "$GXX" = yes; then
6070 if test "$GXX" = yes; then
6077 ac_cpp='$CPP $CPPFLAGS'
6078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6082 { echo "$as_me:$LINENO: checking " >&5
6083 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6084 if test "${ac_cv_has_flex+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6087 for ac_prog in flex lex
6089 # Extract the first word of "$ac_prog", so it can be a program name with args.
6090 set dummy $ac_prog; ac_word=$2
6091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6093 if test "${ac_cv_prog_LEX+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 if test -n "$LEX"; then
6097 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6106 ac_cv_prog_LEX="$ac_prog"
6107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 if test -n "$LEX"; then
6118 { echo "$as_me:$LINENO: result: $LEX" >&5
6119 echo "${ECHO_T}$LEX" >&6; }
6121 { echo "$as_me:$LINENO: result: no" >&5
6122 echo "${ECHO_T}no" >&6; }
6126 test -n "$LEX" && break
6128 test -n "$LEX" || LEX=":"
6130 if test -z "$LEXLIB"
6132 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6133 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6134 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 ac_check_lib_save_LIBS=$LIBS
6139 cat >conftest.$ac_ext <<_ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6146 /* Override any GCC internal prototype to avoid an error.
6147 Use char because int might match the return type of a GCC
6148 builtin and then its argument prototype would still apply. */
6161 rm -f conftest.$ac_objext conftest$ac_exeext
6162 if { (ac_try="$ac_link"
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_link") 2>conftest.er1
6170 grep -v '^ *+' conftest.er1 >conftest.err
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } &&
6175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6176 { (case "(($ac_try" in
6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181 (eval "$ac_try") 2>&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; } &&
6185 { ac_try='test -s conftest$ac_exeext'
6186 { (case "(($ac_try" in
6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191 (eval "$ac_try") 2>&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; }; then
6195 ac_cv_lib_fl_yywrap=yes
6197 echo "$as_me: failed program was:" >&5
6198 sed 's/^/| /' conftest.$ac_ext >&5
6200 ac_cv_lib_fl_yywrap=no
6203 rm -f core conftest.err conftest.$ac_objext \
6204 conftest$ac_exeext conftest.$ac_ext
6205 LIBS=$ac_check_lib_save_LIBS
6207 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6208 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6209 if test $ac_cv_lib_fl_yywrap = yes; then
6212 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6213 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6214 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 ac_check_lib_save_LIBS=$LIBS
6219 cat >conftest.$ac_ext <<_ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6226 /* Override any GCC internal prototype to avoid an error.
6227 Use char because int might match the return type of a GCC
6228 builtin and then its argument prototype would still apply. */
6241 rm -f conftest.$ac_objext conftest$ac_exeext
6242 if { (ac_try="$ac_link"
6244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245 *) ac_try_echo=$ac_try;;
6247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248 (eval "$ac_link") 2>conftest.er1
6250 grep -v '^ *+' conftest.er1 >conftest.err
6252 cat conftest.err >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
6255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6256 { (case "(($ac_try" in
6257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258 *) ac_try_echo=$ac_try;;
6260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261 (eval "$ac_try") 2>&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; } &&
6265 { ac_try='test -s conftest$ac_exeext'
6266 { (case "(($ac_try" in
6267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$ac_try") 2>&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 ac_cv_lib_l_yywrap=yes
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6280 ac_cv_lib_l_yywrap=no
6283 rm -f core conftest.err conftest.$ac_objext \
6284 conftest$ac_exeext conftest.$ac_ext
6285 LIBS=$ac_check_lib_save_LIBS
6287 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6288 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6289 if test $ac_cv_lib_l_yywrap = yes; then
6297 if test "x$LEX" != "x:"; then
6298 { echo "$as_me:$LINENO: checking lex output file root" >&5
6299 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6300 if test "${ac_cv_prog_lex_root+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 # The minimal lex program is just a single line: %%. But some broken lexes
6304 # (Solaris, I think it was) want two %% lines, so accommodate them.
6305 cat >conftest.l <<_ACEOF
6309 { (ac_try="$LEX conftest.l"
6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315 (eval "$LEX conftest.l") 2>&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }
6319 if test -f lex.yy.c; then
6320 ac_cv_prog_lex_root=lex.yy
6321 elif test -f lexyy.c; then
6322 ac_cv_prog_lex_root=lexyy
6324 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6325 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6326 { (exit 1); exit 1; }; }
6329 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6330 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6332 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6334 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6335 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6336 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 # POSIX says lex can declare yytext either as a pointer or an array; the
6340 # default is implementation-dependent. Figure out which it is, since
6341 # not all implementations provide the %pointer and %array declarations.
6342 ac_cv_prog_lex_yytext_pointer=no
6343 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6345 LIBS="$LIBS $LEXLIB"
6346 cat >conftest.$ac_ext <<_ACEOF
6347 `cat $LEX_OUTPUT_ROOT.c`
6349 rm -f conftest.$ac_objext conftest$ac_exeext
6350 if { (ac_try="$ac_link"
6352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353 *) ac_try_echo=$ac_try;;
6355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356 (eval "$ac_link") 2>conftest.er1
6358 grep -v '^ *+' conftest.er1 >conftest.err
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
6363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6364 { (case "(($ac_try" in
6365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366 *) ac_try_echo=$ac_try;;
6368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369 (eval "$ac_try") 2>&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; } &&
6373 { ac_try='test -s conftest$ac_exeext'
6374 { (case "(($ac_try" in
6375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6376 *) ac_try_echo=$ac_try;;
6378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6379 (eval "$ac_try") 2>&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; }; then
6383 ac_cv_prog_lex_yytext_pointer=yes
6385 echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.$ac_ext >&5
6391 rm -f core conftest.err conftest.$ac_objext \
6392 conftest$ac_exeext conftest.$ac_ext
6394 rm -f "${LEX_OUTPUT_ROOT}.c"
6397 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6398 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6399 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6401 cat >>confdefs.h <<\_ACEOF
6402 #define YYTEXT_POINTER 1
6410 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6411 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6412 if test "$LEX" != "flex"; then
6413 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6414 echo "$as_me: error: flex not found but required" >&2;}
6415 { (exit 1); exit 1; }; }
6421 { echo "$as_me:$LINENO: checking " >&5
6422 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6423 if test "${llvm_cv_has_bison+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 for ac_prog in 'bison -y' byacc
6428 # Extract the first word of "$ac_prog", so it can be a program name with args.
6429 set dummy $ac_prog; ac_word=$2
6430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6432 if test "${ac_cv_prog_YACC+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 if test -n "$YACC"; then
6436 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6445 ac_cv_prog_YACC="$ac_prog"
6446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 YACC=$ac_cv_prog_YACC
6456 if test -n "$YACC"; then
6457 { echo "$as_me:$LINENO: result: $YACC" >&5
6458 echo "${ECHO_T}$YACC" >&6; }
6460 { echo "$as_me:$LINENO: result: no" >&5
6461 echo "${ECHO_T}no" >&6; }
6465 test -n "$YACC" && break
6467 test -n "$YACC" || YACC="yacc"
6470 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6471 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6472 if test "$YACC" != "bison -y"; then
6474 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6475 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6481 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6482 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6483 if test "${lt_cv_path_NM+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 if test -n "$NM"; then
6487 # Let the user override the test.
6490 lt_nm_to_check="${ac_tool_prefix}nm"
6491 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6492 lt_nm_to_check="$lt_nm_to_check nm"
6494 for lt_tmp_nm in $lt_nm_to_check; do
6495 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6496 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6498 test -z "$ac_dir" && ac_dir=.
6499 tmp_nm="$ac_dir/$lt_tmp_nm"
6500 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6501 # Check to see if the nm accepts a BSD-compat flag.
6502 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6503 # nm: unknown option "B" ignored
6504 # Tru64's nm complains that /dev/null is an invalid object file
6505 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6506 */dev/null* | *'Invalid file or object type'*)
6507 lt_cv_path_NM="$tmp_nm -B"
6511 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6513 lt_cv_path_NM="$tmp_nm -p"
6517 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6518 continue # so that we can try to find one that supports BSD flags
6527 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6530 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6531 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6536 { echo "$as_me:$LINENO: checking for GNU make" >&5
6537 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6538 if test "${llvm_cv_gnu_make_command+set}" = set; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6541 llvm_cv_gnu_make_command=''
6542 for a in "$MAKE" make gmake gnumake ; do
6543 if test -z "$a" ; then continue ; fi ;
6544 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6546 llvm_cv_gnu_make_command=$a ;
6551 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6552 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6553 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6557 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6558 echo "${ECHO_T}\"Not found\"" >&6; };
6562 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6563 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6565 if test "$LN_S" = "ln -s"; then
6566 { echo "$as_me:$LINENO: result: yes" >&5
6567 echo "${ECHO_T}yes" >&6; }
6569 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6570 echo "${ECHO_T}no, using $LN_S" >&6; }
6573 # Extract the first word of "cmp", so it can be a program name with args.
6574 set dummy cmp; ac_word=$2
6575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6577 if test "${ac_cv_path_CMP+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6605 if test -n "$CMP"; then
6606 { echo "$as_me:$LINENO: result: $CMP" >&5
6607 echo "${ECHO_T}$CMP" >&6; }
6609 { echo "$as_me:$LINENO: result: no" >&5
6610 echo "${ECHO_T}no" >&6; }
6614 # Extract the first word of "cp", so it can be a program name with args.
6615 set dummy cp; ac_word=$2
6616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6618 if test "${ac_cv_path_CP+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6633 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6646 if test -n "$CP"; then
6647 { echo "$as_me:$LINENO: result: $CP" >&5
6648 echo "${ECHO_T}$CP" >&6; }
6650 { echo "$as_me:$LINENO: result: no" >&5
6651 echo "${ECHO_T}no" >&6; }
6655 # Extract the first word of "date", so it can be a program name with args.
6656 set dummy date; ac_word=$2
6657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6659 if test "${ac_cv_path_DATE+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6664 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6674 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6686 DATE=$ac_cv_path_DATE
6687 if test -n "$DATE"; then
6688 { echo "$as_me:$LINENO: result: $DATE" >&5
6689 echo "${ECHO_T}$DATE" >&6; }
6691 { echo "$as_me:$LINENO: result: no" >&5
6692 echo "${ECHO_T}no" >&6; }
6696 # Extract the first word of "find", so it can be a program name with args.
6697 set dummy find; ac_word=$2
6698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700 if test "${ac_cv_path_FIND+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6715 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6727 FIND=$ac_cv_path_FIND
6728 if test -n "$FIND"; then
6729 { echo "$as_me:$LINENO: result: $FIND" >&5
6730 echo "${ECHO_T}$FIND" >&6; }
6732 { echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6; }
6737 # Extract the first word of "grep", so it can be a program name with args.
6738 set dummy grep; ac_word=$2
6739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6741 if test "${ac_cv_path_GREP+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6756 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6768 GREP=$ac_cv_path_GREP
6769 if test -n "$GREP"; then
6770 { echo "$as_me:$LINENO: result: $GREP" >&5
6771 echo "${ECHO_T}$GREP" >&6; }
6773 { echo "$as_me:$LINENO: result: no" >&5
6774 echo "${ECHO_T}no" >&6; }
6778 # Extract the first word of "mkdir", so it can be a program name with args.
6779 set dummy mkdir; ac_word=$2
6780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6782 if test "${ac_cv_path_MKDIR+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6797 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6809 MKDIR=$ac_cv_path_MKDIR
6810 if test -n "$MKDIR"; then
6811 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6812 echo "${ECHO_T}$MKDIR" >&6; }
6814 { echo "$as_me:$LINENO: result: no" >&5
6815 echo "${ECHO_T}no" >&6; }
6819 # Extract the first word of "mv", so it can be a program name with args.
6820 set dummy mv; ac_word=$2
6821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6823 if test "${ac_cv_path_MV+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6838 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6851 if test -n "$MV"; then
6852 { echo "$as_me:$LINENO: result: $MV" >&5
6853 echo "${ECHO_T}$MV" >&6; }
6855 { echo "$as_me:$LINENO: result: no" >&5
6856 echo "${ECHO_T}no" >&6; }
6860 if test -n "$ac_tool_prefix"; then
6861 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6862 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6865 if test "${ac_cv_prog_RANLIB+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 if test -n "$RANLIB"; then
6869 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6878 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 RANLIB=$ac_cv_prog_RANLIB
6889 if test -n "$RANLIB"; then
6890 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6891 echo "${ECHO_T}$RANLIB" >&6; }
6893 { echo "$as_me:$LINENO: result: no" >&5
6894 echo "${ECHO_T}no" >&6; }
6899 if test -z "$ac_cv_prog_RANLIB"; then
6900 ac_ct_RANLIB=$RANLIB
6901 # Extract the first word of "ranlib", so it can be a program name with args.
6902 set dummy ranlib; ac_word=$2
6903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6905 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 if test -n "$ac_ct_RANLIB"; then
6909 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6918 ac_cv_prog_ac_ct_RANLIB="ranlib"
6919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6929 if test -n "$ac_ct_RANLIB"; then
6930 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6931 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6933 { echo "$as_me:$LINENO: result: no" >&5
6934 echo "${ECHO_T}no" >&6; }
6937 if test "x$ac_ct_RANLIB" = x; then
6940 case $cross_compiling:$ac_tool_warned in
6942 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6943 whose name does not start with the host triplet. If you think this
6944 configuration is useful to you, please write to autoconf@gnu.org." >&5
6945 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6946 whose name does not start with the host triplet. If you think this
6947 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6948 ac_tool_warned=yes ;;
6950 RANLIB=$ac_ct_RANLIB
6953 RANLIB="$ac_cv_prog_RANLIB"
6956 # Extract the first word of "rm", so it can be a program name with args.
6957 set dummy rm; ac_word=$2
6958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6960 if test "${ac_cv_path_RM+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 test -z "$as_dir" && as_dir=.
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6975 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6988 if test -n "$RM"; then
6989 { echo "$as_me:$LINENO: result: $RM" >&5
6990 echo "${ECHO_T}$RM" >&6; }
6992 { echo "$as_me:$LINENO: result: no" >&5
6993 echo "${ECHO_T}no" >&6; }
6997 # Extract the first word of "sed", so it can be a program name with args.
6998 set dummy sed; ac_word=$2
6999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7001 if test "${ac_cv_path_SED+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 test -z "$as_dir" && as_dir=.
7014 for ac_exec_ext in '' $ac_executable_extensions; do
7015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7016 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7029 if test -n "$SED"; then
7030 { echo "$as_me:$LINENO: result: $SED" >&5
7031 echo "${ECHO_T}$SED" >&6; }
7033 { echo "$as_me:$LINENO: result: no" >&5
7034 echo "${ECHO_T}no" >&6; }
7038 # Extract the first word of "tar", so it can be a program name with args.
7039 set dummy tar; ac_word=$2
7040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7042 if test "${ac_cv_path_TAR+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7057 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7070 if test -n "$TAR"; then
7071 { echo "$as_me:$LINENO: result: $TAR" >&5
7072 echo "${ECHO_T}$TAR" >&6; }
7074 { echo "$as_me:$LINENO: result: no" >&5
7075 echo "${ECHO_T}no" >&6; }
7079 # Extract the first word of "pwd", so it can be a program name with args.
7080 set dummy pwd; ac_word=$2
7081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7083 if test "${ac_cv_path_BINPWD+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 test -z "$as_dir" && as_dir=.
7096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7098 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7110 BINPWD=$ac_cv_path_BINPWD
7111 if test -n "$BINPWD"; then
7112 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7113 echo "${ECHO_T}$BINPWD" >&6; }
7115 { echo "$as_me:$LINENO: result: no" >&5
7116 echo "${ECHO_T}no" >&6; }
7121 # Extract the first word of "Graphviz", so it can be a program name with args.
7122 set dummy Graphviz; ac_word=$2
7123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7125 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7140 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7152 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7153 if test -n "$GRAPHVIZ"; then
7154 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7155 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7157 { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7162 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7164 cat >>confdefs.h <<\_ACEOF
7165 #define HAVE_GRAPHVIZ 1
7168 if test "$llvm_cv_os_type" = "MingW" ; then
7169 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7172 cat >>confdefs.h <<_ACEOF
7173 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7177 # Extract the first word of "dot", so it can be a program name with args.
7178 set dummy dot; ac_word=$2
7179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7181 if test "${ac_cv_path_DOT+set}" = set; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7196 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7209 if test -n "$DOT"; then
7210 { echo "$as_me:$LINENO: result: $DOT" >&5
7211 echo "${ECHO_T}$DOT" >&6; }
7213 { echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6; }
7218 if test "$DOT" != "echo dot" ; then
7220 cat >>confdefs.h <<\_ACEOF
7224 if test "$llvm_cv_os_type" = "MingW" ; then
7225 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7228 cat >>confdefs.h <<_ACEOF
7229 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7233 for ac_prog in gv gsview32
7235 # Extract the first word of "$ac_prog", so it can be a program name with args.
7236 set dummy $ac_prog; ac_word=$2
7237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7239 if test "${ac_cv_path_GV+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7254 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 if test -n "$GV"; then
7267 { echo "$as_me:$LINENO: result: $GV" >&5
7268 echo "${ECHO_T}$GV" >&6; }
7270 { echo "$as_me:$LINENO: result: no" >&5
7271 echo "${ECHO_T}no" >&6; }
7275 test -n "$GV" && break
7277 test -n "$GV" || GV="echo gv"
7279 if test "$GV" != "echo gv" ; then
7281 cat >>confdefs.h <<\_ACEOF
7285 if test "$llvm_cv_os_type" = "MingW" ; then
7286 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7289 cat >>confdefs.h <<_ACEOF
7290 #define LLVM_PATH_GV "$GV${EXEEXT}"
7294 # Extract the first word of "dotty", so it can be a program name with args.
7295 set dummy dotty; ac_word=$2
7296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7298 if test "${ac_cv_path_DOTTY+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 test -z "$as_dir" && as_dir=.
7311 for ac_exec_ext in '' $ac_executable_extensions; do
7312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7313 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7325 DOTTY=$ac_cv_path_DOTTY
7326 if test -n "$DOTTY"; then
7327 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7328 echo "${ECHO_T}$DOTTY" >&6; }
7330 { echo "$as_me:$LINENO: result: no" >&5
7331 echo "${ECHO_T}no" >&6; }
7335 if test "$DOTTY" != "echo dotty" ; then
7337 cat >>confdefs.h <<\_ACEOF
7338 #define HAVE_DOTTY 1
7341 if test "$llvm_cv_os_type" = "MingW" ; then
7342 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7345 cat >>confdefs.h <<_ACEOF
7346 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7352 # Extract the first word of "perl", so it can be a program name with args.
7353 set dummy perl; ac_word=$2
7354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356 if test "${ac_cv_path_PERL+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7361 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7383 PERL=$ac_cv_path_PERL
7384 if test -n "$PERL"; then
7385 { echo "$as_me:$LINENO: result: $PERL" >&5
7386 echo "${ECHO_T}$PERL" >&6; }
7388 { echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6; }
7393 if test "$PERL" != "none"; then
7394 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7395 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7396 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7397 { echo "$as_me:$LINENO: result: yes" >&5
7398 echo "${ECHO_T}yes" >&6; }
7401 { echo "$as_me:$LINENO: result: not found" >&5
7402 echo "${ECHO_T}not found" >&6; }
7407 if test x"$PERL" = xnone; then
7410 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7411 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7412 { (exit 1); exit 1; }; }
7418 # Find a good install program. We prefer a C program (faster),
7419 # so one script is as good as another. But avoid the broken or
7420 # incompatible versions:
7421 # SysV /etc/install, /usr/sbin/install
7422 # SunOS /usr/etc/install
7423 # IRIX /sbin/install
7425 # AmigaOS /C/install, which installs bootblocks on floppy discs
7426 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7427 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7428 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7429 # OS/2's system install, which has a completely different semantic
7430 # ./install, which can be erroneously created by make from ./install.sh.
7431 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7432 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7433 if test -z "$INSTALL"; then
7434 if test "${ac_cv_path_install+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 test -z "$as_dir" && as_dir=.
7442 # Account for people who put trailing slashes in PATH elements.
7444 ./ | .// | /cC/* | \
7445 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7446 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7449 # OSF1 and SCO ODT 3.0 have their own names for install.
7450 # Don't use installbsd from OSF since it installs stuff as root
7452 for ac_prog in ginstall scoinst install; do
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7455 if test $ac_prog = install &&
7456 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7457 # AIX install. It has an incompatible calling convention.
7459 elif test $ac_prog = install &&
7460 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7461 # program-specific install script used by HP pwplus--don't use.
7464 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7477 if test "${ac_cv_path_install+set}" = set; then
7478 INSTALL=$ac_cv_path_install
7480 # As a last resort, use the slow shell script. Don't cache a
7481 # value for INSTALL within a source directory, because that will
7482 # break other packages using the cache if that directory is
7483 # removed, or if the value is a relative name.
7484 INSTALL=$ac_install_sh
7487 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7488 echo "${ECHO_T}$INSTALL" >&6; }
7490 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7491 # It thinks the first close brace ends the variable substitution.
7492 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7494 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7496 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7499 # Extract the first word of "bzip2", so it can be a program name with args.
7500 set dummy bzip2; ac_word=$2
7501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7503 if test "${ac_cv_path_BZIP2+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7518 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7530 BZIP2=$ac_cv_path_BZIP2
7531 if test -n "$BZIP2"; then
7532 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7533 echo "${ECHO_T}$BZIP2" >&6; }
7535 { echo "$as_me:$LINENO: result: no" >&5
7536 echo "${ECHO_T}no" >&6; }
7540 # Extract the first word of "doxygen", so it can be a program name with args.
7541 set dummy doxygen; ac_word=$2
7542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7544 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7559 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7567 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7571 DOXYGEN=$ac_cv_path_DOXYGEN
7572 if test -n "$DOXYGEN"; then
7573 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7574 echo "${ECHO_T}$DOXYGEN" >&6; }
7576 { echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6; }
7581 # Extract the first word of "groff", so it can be a program name with args.
7582 set dummy groff; ac_word=$2
7583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7585 if test "${ac_cv_path_GROFF+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7600 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7612 GROFF=$ac_cv_path_GROFF
7613 if test -n "$GROFF"; then
7614 { echo "$as_me:$LINENO: result: $GROFF" >&5
7615 echo "${ECHO_T}$GROFF" >&6; }
7617 { echo "$as_me:$LINENO: result: no" >&5
7618 echo "${ECHO_T}no" >&6; }
7622 # Extract the first word of "gzip", so it can be a program name with args.
7623 set dummy gzip; ac_word=$2
7624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7626 if test "${ac_cv_path_GZIP+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 test -z "$as_dir" && as_dir=.
7639 for ac_exec_ext in '' $ac_executable_extensions; do
7640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7641 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7649 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7653 GZIP=$ac_cv_path_GZIP
7654 if test -n "$GZIP"; then
7655 { echo "$as_me:$LINENO: result: $GZIP" >&5
7656 echo "${ECHO_T}$GZIP" >&6; }
7658 { echo "$as_me:$LINENO: result: no" >&5
7659 echo "${ECHO_T}no" >&6; }
7663 # Extract the first word of "pod2html", so it can be a program name with args.
7664 set dummy pod2html; ac_word=$2
7665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7667 if test "${ac_cv_path_POD2HTML+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7672 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 test -z "$as_dir" && as_dir=.
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7682 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7690 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7694 POD2HTML=$ac_cv_path_POD2HTML
7695 if test -n "$POD2HTML"; then
7696 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7697 echo "${ECHO_T}$POD2HTML" >&6; }
7699 { echo "$as_me:$LINENO: result: no" >&5
7700 echo "${ECHO_T}no" >&6; }
7704 # Extract the first word of "pod2man", so it can be a program name with args.
7705 set dummy pod2man; ac_word=$2
7706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7708 if test "${ac_cv_path_POD2MAN+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 test -z "$as_dir" && as_dir=.
7721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7723 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7735 POD2MAN=$ac_cv_path_POD2MAN
7736 if test -n "$POD2MAN"; then
7737 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7738 echo "${ECHO_T}$POD2MAN" >&6; }
7740 { echo "$as_me:$LINENO: result: no" >&5
7741 echo "${ECHO_T}no" >&6; }
7745 # Extract the first word of "runtest", so it can be a program name with args.
7746 set dummy runtest; ac_word=$2
7747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7749 if test "${ac_cv_path_RUNTEST+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 test -z "$as_dir" && as_dir=.
7762 for ac_exec_ext in '' $ac_executable_extensions; do
7763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7764 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7776 RUNTEST=$ac_cv_path_RUNTEST
7777 if test -n "$RUNTEST"; then
7778 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7779 echo "${ECHO_T}$RUNTEST" >&6; }
7781 { echo "$as_me:$LINENO: result: no" >&5
7782 echo "${ECHO_T}no" >&6; }
7788 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7789 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7791 # Check whether --with-tclinclude was given.
7792 if test "${with_tclinclude+set}" = set; then
7793 withval=$with_tclinclude; with_tclinclude=${withval}
7798 if test "${ac_cv_path_tclsh+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 if test x"${with_tclinclude}" != x ; then
7803 if test -f ${with_tclinclude}/tclsh ; then
7804 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7805 elif test -f ${with_tclinclude}/src/tclsh ; then
7806 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7808 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7809 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7810 { (exit 1); exit 1; }; }
7814 if test x"${ac_cv_path_tclsh}" = x ; then
7815 { echo "$as_me:$LINENO: result: none" >&5
7816 echo "${ECHO_T}none" >&6; }
7817 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
7819 # Extract the first word of "$ac_prog", so it can be a program name with args.
7820 set dummy $ac_prog; ac_word=$2
7821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7823 if test "${ac_cv_path_TCLSH+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7828 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 test -z "$as_dir" && as_dir=.
7836 for ac_exec_ext in '' $ac_executable_extensions; do
7837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7838 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7849 TCLSH=$ac_cv_path_TCLSH
7850 if test -n "$TCLSH"; then
7851 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7852 echo "${ECHO_T}$TCLSH" >&6; }
7854 { echo "$as_me:$LINENO: result: no" >&5
7855 echo "${ECHO_T}no" >&6; }
7859 test -n "$TCLSH" && break
7862 if test x"${TCLSH}" = x ; then
7863 ac_cv_path_tclsh='';
7865 ac_cv_path_tclsh="${TCLSH}";
7868 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7869 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7870 TCLSH="${ac_cv_path_tclsh}"
7876 # Extract the first word of "zip", so it can be a program name with args.
7877 set dummy zip; ac_word=$2
7878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7880 if test "${ac_cv_path_ZIP+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7895 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7903 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7908 if test -n "$ZIP"; then
7909 { echo "$as_me:$LINENO: result: $ZIP" >&5
7910 echo "${ECHO_T}$ZIP" >&6; }
7912 { echo "$as_me:$LINENO: result: no" >&5
7913 echo "${ECHO_T}no" >&6; }
7917 # Extract the first word of "ocamlc", so it can be a program name with args.
7918 set dummy ocamlc; ac_word=$2
7919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7921 if test "${ac_cv_path_OCAMLC+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7926 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7936 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7944 test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
7948 OCAMLC=$ac_cv_path_OCAMLC
7949 if test -n "$OCAMLC"; then
7950 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7951 echo "${ECHO_T}$OCAMLC" >&6; }
7953 { echo "$as_me:$LINENO: result: no" >&5
7954 echo "${ECHO_T}no" >&6; }
7958 # Extract the first word of "ocamlopt", so it can be a program name with args.
7959 set dummy ocamlopt; ac_word=$2
7960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7962 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7963 echo $ECHO_N "(cached) $ECHO_C" >&6
7967 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974 test -z "$as_dir" && as_dir=.
7975 for ac_exec_ext in '' $ac_executable_extensions; do
7976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7977 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7985 test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
7989 OCAMLOPT=$ac_cv_path_OCAMLOPT
7990 if test -n "$OCAMLOPT"; then
7991 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7992 echo "${ECHO_T}$OCAMLOPT" >&6; }
7994 { echo "$as_me:$LINENO: result: no" >&5
7995 echo "${ECHO_T}no" >&6; }
8000 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8001 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8002 if test "${llvm_cv_link_use_r+set}" = set; then
8003 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 ac_cpp='$CPP $CPPFLAGS'
8007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8012 CFLAGS="$CFLAGS -Wl,-R."
8013 cat >conftest.$ac_ext <<_ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h. */
8023 int main() { return 0; }
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (ac_try="$ac_link"
8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032 *) ac_try_echo=$ac_try;;
8034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035 (eval "$ac_link") 2>conftest.er1
8037 grep -v '^ *+' conftest.er1 >conftest.err
8039 cat conftest.err >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } &&
8042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8043 { (case "(($ac_try" in
8044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8045 *) ac_try_echo=$ac_try;;
8047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8048 (eval "$ac_try") 2>&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; } &&
8052 { ac_try='test -s conftest$ac_exeext'
8053 { (case "(($ac_try" in
8054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8055 *) ac_try_echo=$ac_try;;
8057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8058 (eval "$ac_try") 2>&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
8062 llvm_cv_link_use_r=yes
8064 echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8067 llvm_cv_link_use_r=no
8070 rm -f core conftest.err conftest.$ac_objext \
8071 conftest$ac_exeext conftest.$ac_ext
8074 ac_cpp='$CPP $CPPFLAGS'
8075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8081 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8082 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8083 if test "$llvm_cv_link_use_r" = yes ; then
8085 cat >>confdefs.h <<\_ACEOF
8086 #define HAVE_LINK_R 1
8094 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8095 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8096 if test "${ac_cv_c_const+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 cat >conftest.$ac_ext <<_ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h. */
8109 /* FIXME: Include the comments suggested by Paul. */
8111 /* Ultrix mips cc rejects this. */
8112 typedef int charset[2];
8114 /* SunOS 4.1.1 cc rejects this. */
8115 char const *const *ccp;
8117 /* NEC SVR4.0.2 mips cc rejects this. */
8118 struct point {int x, y;};
8119 static struct point const zero = {0,0};
8120 /* AIX XL C 1.02.0.0 rejects this.
8121 It does not let you subtract one const X* pointer from another in
8122 an arm of an if-expression whose if-part is not a constant
8124 const char *g = "string";
8125 ccp = &g + (g ? g-g : 0);
8126 /* HPUX 7.0 cc rejects these. */
8129 ccp = (char const *const *) p;
8130 { /* SCO 3.2v4 cc rejects this. */
8132 char const *s = 0 ? (char *) 0 : (char const *) 0;
8137 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8139 const int *foo = &x[0];
8142 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8143 typedef const int *iptr;
8147 { /* AIX XL C 1.02.0.0 rejects this saying
8148 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8149 struct s { int j; const int *ap[3]; };
8150 struct s *b; b->j = 5;
8152 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8156 return !x[0] && !zero.x;
8163 rm -f conftest.$ac_objext
8164 if { (ac_try="$ac_compile"
8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167 *) ac_try_echo=$ac_try;;
8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170 (eval "$ac_compile") 2>conftest.er1
8172 grep -v '^ *+' conftest.er1 >conftest.err
8174 cat conftest.err >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } &&
8177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8178 { (case "(($ac_try" in
8179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180 *) ac_try_echo=$ac_try;;
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183 (eval "$ac_try") 2>&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; } &&
8187 { ac_try='test -s conftest.$ac_objext'
8188 { (case "(($ac_try" in
8189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190 *) ac_try_echo=$ac_try;;
8192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193 (eval "$ac_try") 2>&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; }; then
8199 echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8207 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8208 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8209 if test $ac_cv_c_const = no; then
8211 cat >>confdefs.h <<\_ACEOF
8223 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8224 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8225 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8226 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 cat >conftest.$ac_ext <<_ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8236 #include <sys/types.h>
8248 rm -f conftest.$ac_objext
8249 if { (ac_try="$ac_compile"
8251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252 *) ac_try_echo=$ac_try;;
8254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8255 (eval "$ac_compile") 2>conftest.er1
8257 grep -v '^ *+' conftest.er1 >conftest.err
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } &&
8262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8263 { (case "(($ac_try" in
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_try") 2>&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; } &&
8272 { ac_try='test -s conftest.$ac_objext'
8273 { (case "(($ac_try" in
8274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275 *) ac_try_echo=$ac_try;;
8277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8278 (eval "$ac_try") 2>&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; }; then
8282 eval "$as_ac_Header=yes"
8284 echo "$as_me: failed program was:" >&5
8285 sed 's/^/| /' conftest.$ac_ext >&5
8287 eval "$as_ac_Header=no"
8290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8292 ac_res=`eval echo '${'$as_ac_Header'}'`
8293 { echo "$as_me:$LINENO: result: $ac_res" >&5
8294 echo "${ECHO_T}$ac_res" >&6; }
8295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8296 cat >>confdefs.h <<_ACEOF
8297 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8300 ac_header_dirent=$ac_hdr; break
8304 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8305 if test $ac_header_dirent = dirent.h; then
8306 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8307 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8308 if test "${ac_cv_search_opendir+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8311 ac_func_search_save_LIBS=$LIBS
8312 cat >conftest.$ac_ext <<_ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8319 /* Override any GCC internal prototype to avoid an error.
8320 Use char because int might match the return type of a GCC
8321 builtin and then its argument prototype would still apply. */
8334 for ac_lib in '' dir; do
8335 if test -z "$ac_lib"; then
8336 ac_res="none required"
8339 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8341 rm -f conftest.$ac_objext conftest$ac_exeext
8342 if { (ac_try="$ac_link"
8344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8345 *) ac_try_echo=$ac_try;;
8347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8348 (eval "$ac_link") 2>conftest.er1
8350 grep -v '^ *+' conftest.er1 >conftest.err
8352 cat conftest.err >&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } &&
8355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8356 { (case "(($ac_try" in
8357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8358 *) ac_try_echo=$ac_try;;
8360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8361 (eval "$ac_try") 2>&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; } &&
8365 { ac_try='test -s conftest$ac_exeext'
8366 { (case "(($ac_try" in
8367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368 *) ac_try_echo=$ac_try;;
8370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371 (eval "$ac_try") 2>&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; }; then
8375 ac_cv_search_opendir=$ac_res
8377 echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8383 rm -f core conftest.err conftest.$ac_objext \
8385 if test "${ac_cv_search_opendir+set}" = set; then
8389 if test "${ac_cv_search_opendir+set}" = set; then
8392 ac_cv_search_opendir=no
8395 LIBS=$ac_func_search_save_LIBS
8397 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8398 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8399 ac_res=$ac_cv_search_opendir
8400 if test "$ac_res" != no; then
8401 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8406 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8407 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8408 if test "${ac_cv_search_opendir+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8411 ac_func_search_save_LIBS=$LIBS
8412 cat >conftest.$ac_ext <<_ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8419 /* Override any GCC internal prototype to avoid an error.
8420 Use char because int might match the return type of a GCC
8421 builtin and then its argument prototype would still apply. */
8434 for ac_lib in '' x; do
8435 if test -z "$ac_lib"; then
8436 ac_res="none required"
8439 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8441 rm -f conftest.$ac_objext conftest$ac_exeext
8442 if { (ac_try="$ac_link"
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448 (eval "$ac_link") 2>conftest.er1
8450 grep -v '^ *+' conftest.er1 >conftest.err
8452 cat conftest.err >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } &&
8455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8456 { (case "(($ac_try" in
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461 (eval "$ac_try") 2>&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; } &&
8465 { ac_try='test -s conftest$ac_exeext'
8466 { (case "(($ac_try" in
8467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8468 *) ac_try_echo=$ac_try;;
8470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8471 (eval "$ac_try") 2>&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8475 ac_cv_search_opendir=$ac_res
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8483 rm -f core conftest.err conftest.$ac_objext \
8485 if test "${ac_cv_search_opendir+set}" = set; then
8489 if test "${ac_cv_search_opendir+set}" = set; then
8492 ac_cv_search_opendir=no
8495 LIBS=$ac_func_search_save_LIBS
8497 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8498 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8499 ac_res=$ac_cv_search_opendir
8500 if test "$ac_res" != no; then
8501 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8508 for ac_header in dlfcn.h
8510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8517 ac_res=`eval echo '${'$as_ac_Header'}'`
8518 { echo "$as_me:$LINENO: result: $ac_res" >&5
8519 echo "${ECHO_T}$ac_res" >&6; }
8521 # Is the header compilable?
8522 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8524 cat >conftest.$ac_ext <<_ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h. */
8530 $ac_includes_default
8531 #include <$ac_header>
8533 rm -f conftest.$ac_objext
8534 if { (ac_try="$ac_compile"
8536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537 *) ac_try_echo=$ac_try;;
8539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540 (eval "$ac_compile") 2>conftest.er1
8542 grep -v '^ *+' conftest.er1 >conftest.err
8544 cat conftest.err >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); } &&
8547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8548 { (case "(($ac_try" in
8549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550 *) ac_try_echo=$ac_try;;
8552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553 (eval "$ac_try") 2>&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; } &&
8557 { ac_try='test -s conftest.$ac_objext'
8558 { (case "(($ac_try" in
8559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8560 *) ac_try_echo=$ac_try;;
8562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8563 (eval "$ac_try") 2>&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; }; then
8567 ac_header_compiler=yes
8569 echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8572 ac_header_compiler=no
8575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8576 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8577 echo "${ECHO_T}$ac_header_compiler" >&6; }
8579 # Is the header present?
8580 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8582 cat >conftest.$ac_ext <<_ACEOF
8585 cat confdefs.h >>conftest.$ac_ext
8586 cat >>conftest.$ac_ext <<_ACEOF
8587 /* end confdefs.h. */
8588 #include <$ac_header>
8590 if { (ac_try="$ac_cpp conftest.$ac_ext"
8592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8593 *) ac_try_echo=$ac_try;;
8595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8598 grep -v '^ *+' conftest.er1 >conftest.err
8600 cat conftest.err >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } >/dev/null; then
8603 if test -s conftest.err; then
8604 ac_cpp_err=$ac_c_preproc_warn_flag
8605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8612 if test -z "$ac_cpp_err"; then
8613 ac_header_preproc=yes
8615 echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8618 ac_header_preproc=no
8621 rm -f conftest.err conftest.$ac_ext
8622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8623 echo "${ECHO_T}$ac_header_preproc" >&6; }
8625 # So? What about this header?
8626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8628 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8629 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8631 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8632 ac_header_preproc=yes
8635 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8637 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8638 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8639 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8640 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8641 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8642 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8645 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8646 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8648 ## ----------------------------------- ##
8649 ## Report this to llvmbugs@cs.uiuc.edu ##
8650 ## ----------------------------------- ##
8652 ) | sed "s/^/$as_me: WARNING: /" >&2
8655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8660 eval "$as_ac_Header=\$ac_header_preproc"
8662 ac_res=`eval echo '${'$as_ac_Header'}'`
8663 { echo "$as_me:$LINENO: result: $ac_res" >&5
8664 echo "${ECHO_T}$ac_res" >&6; }
8667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8668 cat >>confdefs.h <<_ACEOF
8669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8676 # Check whether --enable-ltdl-install was given.
8677 if test "${enable_ltdl_install+set}" = set; then
8678 enableval=$enable_ltdl_install;
8684 if test x"${enable_ltdl_install-no}" != xno; then
8686 INSTALL_LTDL_FALSE='#'
8688 INSTALL_LTDL_TRUE='#'
8694 if test x"${enable_ltdl_convenience-no}" != xno; then
8695 CONVENIENCE_LTDL_TRUE=
8696 CONVENIENCE_LTDL_FALSE='#'
8698 CONVENIENCE_LTDL_TRUE='#'
8699 CONVENIENCE_LTDL_FALSE=
8703 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8704 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8706 libname_spec='lib$name'
8714 shlibpath_overrides_runpath=unknown
8716 dynamic_linker="$host_os ld.so"
8717 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8718 if test "$GCC" = yes; then
8719 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8720 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8721 # if the path contains ";" then we assume it to be the separator
8722 # otherwise default to the standard path separator (i.e. ":") - it is
8723 # assumed that no part of a normal pathname contains ";" but that should
8724 # okay in the real world where ";" in dirpaths is itself problematic.
8725 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8727 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8730 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8732 need_lib_prefix=unknown
8733 hardcode_into_libs=no
8735 # when you set need_version to no, make sure it does not cause -set_version
8736 # flags to be left without arguments
8737 need_version=unknown
8742 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8743 shlibpath_var=LIBPATH
8745 # AIX 3 has no versioning support, so we append a major version to the name.
8746 soname_spec='${libname}${release}${shared_ext}$major'
8753 hardcode_into_libs=yes
8754 if test "$host_cpu" = ia64; then
8755 # AIX 5 supports IA64
8756 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8757 shlibpath_var=LD_LIBRARY_PATH
8759 # With GCC up to 2.95.x, collect2 would create an import file
8760 # for dependence libraries. The import file would start with
8761 # the line `#! .'. This would cause the generated library to
8762 # depend on `.', always an invalid library. This was fixed in
8763 # development snapshots of GCC prior to 3.0.
8765 aix4 | aix4.[01] | aix4.[01].*)
8766 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8768 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8775 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8776 # soname into executable. Probably we can add versioning support to
8777 # collect2, so additional links can be useful in future.
8778 if test "$aix_use_runtimelinking" = yes; then
8779 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8780 # instead of lib<name>.a to let people know that these are not
8781 # typical AIX shared libraries.
8782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8784 # We preserve .a as extension for shared libraries through AIX4.2
8785 # and later when we are not doing run time linking.
8786 library_names_spec='${libname}${release}.a $libname.a'
8787 soname_spec='${libname}${release}${shared_ext}$major'
8789 shlibpath_var=LIBPATH
8794 library_names_spec='$libname.ixlibrary $libname.a'
8795 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8796 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'
8800 library_names_spec='${libname}${shared_ext}'
8801 dynamic_linker="$host_os ld.so"
8802 shlibpath_var=LIBRARY_PATH
8808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8809 soname_spec='${libname}${release}${shared_ext}$major'
8810 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8811 shlibpath_var=LD_LIBRARY_PATH
8812 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8813 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8814 # the default ld.so.conf also contains /usr/contrib/lib and
8815 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8816 # libtool to hard-code these into programs
8819 cygwin* | mingw* | pw32*)
8820 version_type=windows
8825 case $GCC,$host_os in
8826 yes,cygwin* | yes,mingw* | yes,pw32*)
8827 library_names_spec='$libname.dll.a'
8828 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8829 postinstall_cmds='base_file=`basename \${file}`~
8830 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8831 dldir=$destdir/`dirname \$dlpath`~
8832 test -d \$dldir || mkdir -p \$dldir~
8833 $install_prog $dir/$dlname \$dldir/$dlname~
8834 chmod a+x \$dldir/$dlname'
8835 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8836 dlpath=$dir/\$dldll~
8838 shlibpath_overrides_runpath=yes
8842 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8843 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8844 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8847 # MinGW DLLs use traditional 'lib' prefix
8848 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8849 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8850 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8851 # It is most probably a Windows format PATH printed by
8852 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8853 # path with ; separators, and with drive letters. We can handle the
8854 # drive letters (cygwin fileutils understands them), so leave them,
8855 # especially as we might pass files found there to a mingw objdump,
8856 # which wouldn't understand a cygwinified path. Ahh.
8857 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8859 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8863 # pw32 DLLs use 'pw' prefix rather than 'lib'
8864 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8870 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8873 dynamic_linker='Win32 ld.exe'
8874 # FIXME: first we should search . and the directory the executable is in
8878 darwin* | rhapsody*)
8879 dynamic_linker="$host_os dyld"
8883 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8884 soname_spec='${libname}${release}${major}$shared_ext'
8885 shlibpath_overrides_runpath=yes
8886 shlibpath_var=DYLD_LIBRARY_PATH
8887 shrext_cmds='.dylib'
8888 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8889 if test "$GCC" = yes; then
8890 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"`
8892 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8894 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8902 soname_spec='${libname}${release}${shared_ext}$major'
8903 shlibpath_var=LD_LIBRARY_PATH
8914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8915 soname_spec='${libname}${release}${shared_ext}$major'
8916 shlibpath_var=LD_LIBRARY_PATH
8917 shlibpath_overrides_runpath=no
8918 hardcode_into_libs=yes
8919 dynamic_linker='GNU ld.so'
8922 freebsd* | dragonfly*)
8923 # DragonFly does not have aout. When/if they implement a new
8924 # versioning mechanism, adjust this.
8925 if test -x /usr/bin/objformat; then
8926 objformat=`/usr/bin/objformat`
8929 freebsd[123]*) objformat=aout ;;
8933 version_type=freebsd-$objformat
8934 case $version_type in
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8941 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8945 shlibpath_var=LD_LIBRARY_PATH
8948 shlibpath_overrides_runpath=yes
8950 freebsd3.[01]* | freebsdelf3.[01]*)
8951 shlibpath_overrides_runpath=yes
8952 hardcode_into_libs=yes
8954 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8955 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8956 shlibpath_overrides_runpath=no
8957 hardcode_into_libs=yes
8959 freebsd*) # from 4.6 on
8960 shlibpath_overrides_runpath=yes
8961 hardcode_into_libs=yes
8970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8971 soname_spec='${libname}${release}${shared_ext}$major'
8972 shlibpath_var=LD_LIBRARY_PATH
8973 hardcode_into_libs=yes
8976 hpux9* | hpux10* | hpux11*)
8977 # Give a soname corresponding to the major version so that dld.sl refuses to
8978 # link against other versions.
8985 hardcode_into_libs=yes
8986 dynamic_linker="$host_os dld.so"
8987 shlibpath_var=LD_LIBRARY_PATH
8988 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8990 soname_spec='${libname}${release}${shared_ext}$major'
8991 if test "X$HPUX_IA64_MODE" = X32; then
8992 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8994 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8996 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9000 hardcode_into_libs=yes
9001 dynamic_linker="$host_os dld.sl"
9002 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9003 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9005 soname_spec='${libname}${release}${shared_ext}$major'
9006 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9007 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9011 dynamic_linker="$host_os dld.sl"
9012 shlibpath_var=SHLIB_PATH
9013 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9015 soname_spec='${libname}${release}${shared_ext}$major'
9018 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9019 postinstall_cmds='chmod 555 $lib'
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9027 soname_spec='${libname}${release}${shared_ext}$major'
9028 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9029 shlibpath_var=LD_LIBRARY_PATH
9030 shlibpath_overrides_runpath=no
9031 hardcode_into_libs=yes
9034 irix5* | irix6* | nonstopux*)
9036 nonstopux*) version_type=nonstopux ;;
9038 if test "$lt_cv_prog_gnu_ld" = yes; then
9046 soname_spec='${libname}${release}${shared_ext}$major'
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9049 irix5* | nonstopux*)
9053 case $LD in # libtool.m4 will add one of these switches to LD
9054 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9055 libsuff= shlibsuff= libmagic=32-bit;;
9056 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9057 libsuff=32 shlibsuff=N32 libmagic=N32;;
9058 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9059 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9060 *) libsuff= shlibsuff= libmagic=never-match;;
9064 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9065 shlibpath_overrides_runpath=no
9066 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9067 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9068 hardcode_into_libs=yes
9071 # No shared lib support for Linux oldld, aout, or coff.
9072 linux*oldld* | linux*aout* | linux*coff*)
9076 # This must be Linux ELF.
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9084 shlibpath_var=LD_LIBRARY_PATH
9085 shlibpath_overrides_runpath=no
9086 # This implies no fast_install, which is unacceptable.
9087 # Some rework will be needed to allow for fast_install
9088 # before this can be enabled.
9089 hardcode_into_libs=yes
9091 # Append ld.so.conf contents to the search path
9092 if test -f /etc/ld.so.conf; then
9093 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' ' '`
9094 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9097 # We used to test for /lib/ld.so.1 and disable shared libraries on
9098 # powerpc, because MkLinux only supported shared libraries with the
9099 # GNU dynamic linker. Since this was broken with cross compilers,
9100 # most powerpc-linux boxes support dynamic linking these days and
9101 # people can always --disable-shared, the test was removed, and we
9102 # assume the GNU/Linux dynamic linker is in use.
9103 dynamic_linker='GNU/Linux ld.so'
9110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9111 soname_spec='${libname}${release}${shared_ext}$major'
9112 shlibpath_var=LD_LIBRARY_PATH
9113 shlibpath_overrides_runpath=no
9114 hardcode_into_libs=yes
9115 dynamic_linker='GNU ld.so'
9122 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9125 dynamic_linker='NetBSD (a.out) ld.so'
9127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9128 soname_spec='${libname}${release}${shared_ext}$major'
9129 dynamic_linker='NetBSD ld.elf_so'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 shlibpath_overrides_runpath=yes
9133 hardcode_into_libs=yes
9138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9139 shlibpath_var=LD_LIBRARY_PATH
9140 shlibpath_overrides_runpath=yes
9147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148 soname_spec='${libname}${release}${shared_ext}$major'
9149 shlibpath_var=LD_LIBRARY_PATH
9150 shlibpath_overrides_runpath=yes
9155 sys_lib_dlsearch_path_spec="/usr/lib"
9157 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9159 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9160 *) need_version=no ;;
9162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9164 shlibpath_var=LD_LIBRARY_PATH
9165 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9167 openbsd2.[89] | openbsd2.[89].*)
9168 shlibpath_overrides_runpath=no
9171 shlibpath_overrides_runpath=yes
9175 shlibpath_overrides_runpath=yes
9180 libname_spec='$name'
9183 library_names_spec='$libname${shared_ext} $libname.a'
9184 dynamic_linker='OS/2 ld.exe'
9185 shlibpath_var=LIBPATH
9188 osf3* | osf4* | osf5*)
9192 soname_spec='${libname}${release}${shared_ext}$major'
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9194 shlibpath_var=LD_LIBRARY_PATH
9195 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9196 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
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'
9205 shlibpath_var=LD_LIBRARY_PATH
9206 shlibpath_overrides_runpath=yes
9207 hardcode_into_libs=yes
9208 # ldd complains unless libraries are executable
9209 postinstall_cmds='chmod +x $lib'
9214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9215 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9216 shlibpath_var=LD_LIBRARY_PATH
9217 shlibpath_overrides_runpath=yes
9218 if test "$with_gnu_ld" = yes; then
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227 soname_spec='${libname}${release}${shared_ext}$major'
9228 shlibpath_var=LD_LIBRARY_PATH
9229 case $host_vendor in
9231 shlibpath_overrides_runpath=no
9233 export_dynamic_flag_spec='${wl}-Blargedynsym'
9234 runpath_var=LD_RUN_PATH
9242 shlibpath_overrides_runpath=no
9243 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9249 if test -d /usr/nec ;then
9251 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9252 soname_spec='$libname${shared_ext}.$major'
9253 shlibpath_var=LD_LIBRARY_PATH
9257 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9258 version_type=freebsd-elf
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9262 soname_spec='${libname}${release}${shared_ext}$major'
9263 shlibpath_var=LD_LIBRARY_PATH
9264 hardcode_into_libs=yes
9265 if test "$with_gnu_ld" = yes; then
9266 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9267 shlibpath_overrides_runpath=no
9269 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9270 shlibpath_overrides_runpath=yes
9273 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9277 sys_lib_dlsearch_path_spec='/usr/lib'
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283 soname_spec='${libname}${release}${shared_ext}$major'
9284 shlibpath_var=LD_LIBRARY_PATH
9291 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9292 echo "${ECHO_T}$dynamic_linker" >&6; }
9293 test "$dynamic_linker" = no && can_build_shared=no
9295 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9296 if test "$GCC" = yes; then
9297 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9301 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9302 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9303 if test "${libltdl_cv_shlibext+set}" = set; then
9304 echo $ECHO_N "(cached) $ECHO_C" >&6
9308 eval libltdl_cv_shlibext=$shrext_cmds
9311 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9312 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9313 if test -n "$libltdl_cv_shlibext"; then
9315 cat >>confdefs.h <<_ACEOF
9316 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9322 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9323 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9324 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 libltdl_cv_shlibpath_var="$shlibpath_var"
9329 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9330 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9331 if test -n "$libltdl_cv_shlibpath_var"; then
9333 cat >>confdefs.h <<_ACEOF
9334 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9340 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9341 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9342 if test "${libltdl_cv_sys_search_path+set}" = set; then
9343 echo $ECHO_N "(cached) $ECHO_C" >&6
9345 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9347 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9348 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9349 if test -n "$libltdl_cv_sys_search_path"; then
9351 for dir in $libltdl_cv_sys_search_path; do
9352 if test -z "$sys_search_path"; then
9353 sys_search_path="$dir"
9355 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9359 cat >>confdefs.h <<_ACEOF
9360 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9365 { echo "$as_me:$LINENO: checking for objdir" >&5
9366 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9367 if test "${libltdl_cv_objdir+set}" = set; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9370 libltdl_cv_objdir="$objdir"
9371 if test -n "$objdir"; then
9374 rm -f .libs 2>/dev/null
9375 mkdir .libs 2>/dev/null
9376 if test -d .libs; then
9377 libltdl_cv_objdir=.libs
9379 # MS-DOS does not allow filenames that begin with a dot.
9380 libltdl_cv_objdir=_libs
9382 rmdir .libs 2>/dev/null
9386 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9387 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9389 cat >>confdefs.h <<_ACEOF
9390 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9398 # Check for command to grab the raw symbol name followed by C symbol from nm.
9399 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9400 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9401 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9405 # These are sane defaults that work on at least a few old systems.
9406 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9408 # Character class describing NM global symbol codes.
9409 symcode='[BCDEGRST]'
9411 # Regexp to match symbols that can be accessed directly from C.
9412 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9414 # Transform an extracted symbol line into a proper C declaration
9415 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9417 # Transform an extracted symbol line into symbol name and symbol address
9418 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'"
9420 # Define system-specific variables.
9425 cygwin* | mingw* | pw32*)
9426 symcode='[ABCDGISTW]'
9428 hpux*) # Its linker distinguishes data from code symbols
9429 if test "$host_cpu" = ia64; then
9430 symcode='[ABCDEGRST]'
9432 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9433 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'"
9436 if test "$host_cpu" = ia64; then
9437 symcode='[ABCDGIRSTW]'
9438 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9439 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'"
9443 symcode='[BCDEGRST]'
9446 symcode='[BCDEGQRST]'
9457 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9465 # Handle CRLF in mingw tool chain
9469 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9473 # If we're using GNU nm, then use its standard symbol codes.
9474 case `$NM -V 2>&1` in
9475 *GNU* | *'with BFD'*)
9476 symcode='[ABCDGIRSTW]' ;;
9479 # Try without a prefix undercore, then with it.
9480 for ac_symprfx in "" "_"; do
9482 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9483 symxfrm="\\1 $ac_symprfx\\2 \\2"
9485 # Write the raw and C identifiers.
9486 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9488 # Check to see that the pipe works correctly.
9492 cat > conftest.$ac_ext <<EOF
9497 void nm_test_func(){}
9501 int main(){nm_test_var='a';nm_test_func();return(0);}
9504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9505 (eval $ac_compile) 2>&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; then
9509 # Now try to grab the symbols.
9511 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9512 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } && test -s "$nlist"; then
9516 # Try sorting and uniquifying the output.
9517 if sort "$nlist" | uniq > "$nlist"T; then
9518 mv -f "$nlist"T "$nlist"
9523 # Make sure that we snagged all the symbols we need.
9524 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9525 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9526 cat <<EOF > conftest.$ac_ext
9532 # Now generate the symbol file.
9533 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9535 cat <<EOF >> conftest.$ac_ext
9536 #if defined (__STDC__) && __STDC__
9537 # define lt_ptr_t void *
9539 # define lt_ptr_t char *
9543 /* The mapping between symbol names and symbols. */
9548 lt_preloaded_symbols[] =
9551 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9552 cat <<\EOF >> conftest.$ac_ext
9560 # Now try linking the two files.
9561 mv conftest.$ac_objext conftstm.$ac_objext
9562 lt_save_LIBS="$LIBS"
9563 lt_save_CFLAGS="$CFLAGS"
9564 LIBS="conftstm.$ac_objext"
9565 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9567 (eval $ac_link) 2>&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9573 LIBS="$lt_save_LIBS"
9574 CFLAGS="$lt_save_CFLAGS"
9576 echo "cannot find nm_test_func in $nlist" >&5
9579 echo "cannot find nm_test_var in $nlist" >&5
9582 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9585 echo "$progname: failed program was:" >&5
9586 cat conftest.$ac_ext >&5
9588 rm -f conftest* conftst*
9590 # Do not use the global_symbol_pipe unless it works.
9591 if test "$pipe_works" = yes; then
9594 lt_cv_sys_global_symbol_pipe=
9600 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9601 lt_cv_sys_global_symbol_to_cdecl=
9603 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9604 { echo "$as_me:$LINENO: result: failed" >&5
9605 echo "${ECHO_T}failed" >&6; }
9607 { echo "$as_me:$LINENO: result: ok" >&5
9608 echo "${ECHO_T}ok" >&6; }
9612 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9613 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9614 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9617 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9618 libltdl_cv_preloaded_symbols=yes
9620 libltdl_cv_preloaded_symbols=no
9624 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9625 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9626 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9628 cat >>confdefs.h <<\_ACEOF
9629 #define HAVE_PRELOADED_SYMBOLS 1
9637 ac_cpp='$CPP $CPPFLAGS'
9638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9643 { echo "$as_me:$LINENO: checking for shl_load" >&5
9644 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9645 if test "${ac_cv_func_shl_load+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 cat >conftest.$ac_ext <<_ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9654 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9656 #define shl_load innocuous_shl_load
9658 /* System header to define __stub macros and hopefully few prototypes,
9659 which can conflict with char shl_load (); below.
9660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9661 <limits.h> exists even on freestanding compilers. */
9664 # include <limits.h>
9666 # include <assert.h>
9671 /* Override any GCC internal prototype to avoid an error.
9672 Use char because int might match the return type of a GCC
9673 builtin and then its argument prototype would still apply. */
9678 /* The GNU C library defines this for functions which it implements
9679 to always fail with ENOSYS. Some functions are actually named
9680 something starting with __ and the normal name is an alias. */
9681 #if defined __stub_shl_load || defined __stub___shl_load
9693 rm -f conftest.$ac_objext conftest$ac_exeext
9694 if { (ac_try="$ac_link"
9696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9697 *) ac_try_echo=$ac_try;;
9699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9700 (eval "$ac_link") 2>conftest.er1
9702 grep -v '^ *+' conftest.er1 >conftest.err
9704 cat conftest.err >&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } &&
9707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9708 { (case "(($ac_try" in
9709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9710 *) ac_try_echo=$ac_try;;
9712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9713 (eval "$ac_try") 2>&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; } &&
9717 { ac_try='test -s conftest$ac_exeext'
9718 { (case "(($ac_try" in
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723 (eval "$ac_try") 2>&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 ac_cv_func_shl_load=yes
9729 echo "$as_me: failed program was:" >&5
9730 sed 's/^/| /' conftest.$ac_ext >&5
9732 ac_cv_func_shl_load=no
9735 rm -f core conftest.err conftest.$ac_objext \
9736 conftest$ac_exeext conftest.$ac_ext
9738 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9739 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9740 if test $ac_cv_func_shl_load = yes; then
9742 cat >>confdefs.h <<\_ACEOF
9743 #define HAVE_SHL_LOAD 1
9747 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9748 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9749 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9752 ac_check_lib_save_LIBS=$LIBS
9754 cat >conftest.$ac_ext <<_ACEOF
9757 cat confdefs.h >>conftest.$ac_ext
9758 cat >>conftest.$ac_ext <<_ACEOF
9759 /* end confdefs.h. */
9761 /* Override any GCC internal prototype to avoid an error.
9762 Use char because int might match the return type of a GCC
9763 builtin and then its argument prototype would still apply. */
9776 rm -f conftest.$ac_objext conftest$ac_exeext
9777 if { (ac_try="$ac_link"
9779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780 *) ac_try_echo=$ac_try;;
9782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9783 (eval "$ac_link") 2>conftest.er1
9785 grep -v '^ *+' conftest.er1 >conftest.err
9787 cat conftest.err >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } &&
9790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9791 { (case "(($ac_try" in
9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793 *) ac_try_echo=$ac_try;;
9795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796 (eval "$ac_try") 2>&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); }; } &&
9800 { ac_try='test -s conftest$ac_exeext'
9801 { (case "(($ac_try" in
9802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803 *) ac_try_echo=$ac_try;;
9805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806 (eval "$ac_try") 2>&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); }; }; then
9810 ac_cv_lib_dld_shl_load=yes
9812 echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9815 ac_cv_lib_dld_shl_load=no
9818 rm -f core conftest.err conftest.$ac_objext \
9819 conftest$ac_exeext conftest.$ac_ext
9820 LIBS=$ac_check_lib_save_LIBS
9822 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9823 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9824 if test $ac_cv_lib_dld_shl_load = yes; then
9826 cat >>confdefs.h <<\_ACEOF
9827 #define HAVE_SHL_LOAD 1
9830 LIBADD_DL="$LIBADD_DL -ldld"
9832 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9833 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9834 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
9837 ac_check_lib_save_LIBS=$LIBS
9839 cat >conftest.$ac_ext <<_ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h. */
9846 /* Override any GCC internal prototype to avoid an error.
9847 Use char because int might match the return type of a GCC
9848 builtin and then its argument prototype would still apply. */
9861 rm -f conftest.$ac_objext conftest$ac_exeext
9862 if { (ac_try="$ac_link"
9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868 (eval "$ac_link") 2>conftest.er1
9870 grep -v '^ *+' conftest.er1 >conftest.err
9872 cat conftest.err >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } &&
9875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9876 { (case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_try") 2>&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; } &&
9885 { ac_try='test -s conftest$ac_exeext'
9886 { (case "(($ac_try" in
9887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9888 *) ac_try_echo=$ac_try;;
9890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891 (eval "$ac_try") 2>&5
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); }; }; then
9895 ac_cv_lib_dl_dlopen=yes
9897 echo "$as_me: failed program was:" >&5
9898 sed 's/^/| /' conftest.$ac_ext >&5
9900 ac_cv_lib_dl_dlopen=no
9903 rm -f core conftest.err conftest.$ac_objext \
9904 conftest$ac_exeext conftest.$ac_ext
9905 LIBS=$ac_check_lib_save_LIBS
9907 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9908 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9909 if test $ac_cv_lib_dl_dlopen = yes; then
9911 cat >>confdefs.h <<\_ACEOF
9912 #define HAVE_LIBDL 1
9915 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9917 cat >conftest.$ac_ext <<_ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9935 rm -f conftest.$ac_objext conftest$ac_exeext
9936 if { (ac_try="$ac_link"
9938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9939 *) ac_try_echo=$ac_try;;
9941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9942 (eval "$ac_link") 2>conftest.er1
9944 grep -v '^ *+' conftest.er1 >conftest.err
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } &&
9949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9950 { (case "(($ac_try" in
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_try") 2>&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); }; } &&
9959 { ac_try='test -s conftest$ac_exeext'
9960 { (case "(($ac_try" in
9961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962 *) ac_try_echo=$ac_try;;
9964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965 (eval "$ac_try") 2>&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; }; then
9970 cat >>confdefs.h <<\_ACEOF
9971 #define HAVE_LIBDL 1
9973 libltdl_cv_func_dlopen="yes"
9975 echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9978 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9979 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9980 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9981 echo $ECHO_N "(cached) $ECHO_C" >&6
9983 ac_check_lib_save_LIBS=$LIBS
9985 cat >conftest.$ac_ext <<_ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h. */
9992 /* Override any GCC internal prototype to avoid an error.
9993 Use char because int might match the return type of a GCC
9994 builtin and then its argument prototype would still apply. */
10007 rm -f conftest.$ac_objext conftest$ac_exeext
10008 if { (ac_try="$ac_link"
10009 case "(($ac_try" in
10010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011 *) ac_try_echo=$ac_try;;
10013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10014 (eval "$ac_link") 2>conftest.er1
10016 grep -v '^ *+' conftest.er1 >conftest.err
10018 cat conftest.err >&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); } &&
10021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10022 { (case "(($ac_try" in
10023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024 *) ac_try_echo=$ac_try;;
10026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027 (eval "$ac_try") 2>&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; } &&
10031 { ac_try='test -s conftest$ac_exeext'
10032 { (case "(($ac_try" in
10033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10034 *) ac_try_echo=$ac_try;;
10036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10037 (eval "$ac_try") 2>&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); }; }; then
10041 ac_cv_lib_svld_dlopen=yes
10043 echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10046 ac_cv_lib_svld_dlopen=no
10049 rm -f core conftest.err conftest.$ac_objext \
10050 conftest$ac_exeext conftest.$ac_ext
10051 LIBS=$ac_check_lib_save_LIBS
10053 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10054 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10055 if test $ac_cv_lib_svld_dlopen = yes; then
10057 cat >>confdefs.h <<\_ACEOF
10058 #define HAVE_LIBDL 1
10061 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10063 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10064 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10065 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10066 echo $ECHO_N "(cached) $ECHO_C" >&6
10068 ac_check_lib_save_LIBS=$LIBS
10070 cat >conftest.$ac_ext <<_ACEOF
10073 cat confdefs.h >>conftest.$ac_ext
10074 cat >>conftest.$ac_ext <<_ACEOF
10075 /* end confdefs.h. */
10077 /* Override any GCC internal prototype to avoid an error.
10078 Use char because int might match the return type of a GCC
10079 builtin and then its argument prototype would still apply. */
10087 return dld_link ();
10092 rm -f conftest.$ac_objext conftest$ac_exeext
10093 if { (ac_try="$ac_link"
10094 case "(($ac_try" in
10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096 *) ac_try_echo=$ac_try;;
10098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099 (eval "$ac_link") 2>conftest.er1
10101 grep -v '^ *+' conftest.er1 >conftest.err
10103 cat conftest.err >&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } &&
10106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10107 { (case "(($ac_try" in
10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109 *) ac_try_echo=$ac_try;;
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112 (eval "$ac_try") 2>&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); }; } &&
10116 { ac_try='test -s conftest$ac_exeext'
10117 { (case "(($ac_try" in
10118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119 *) ac_try_echo=$ac_try;;
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_try") 2>&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; }; then
10126 ac_cv_lib_dld_dld_link=yes
10128 echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10131 ac_cv_lib_dld_dld_link=no
10134 rm -f core conftest.err conftest.$ac_objext \
10135 conftest$ac_exeext conftest.$ac_ext
10136 LIBS=$ac_check_lib_save_LIBS
10138 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10139 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10140 if test $ac_cv_lib_dld_dld_link = yes; then
10142 cat >>confdefs.h <<\_ACEOF
10146 LIBADD_DL="$LIBADD_DL -ldld"
10148 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10149 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10150 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10153 cat >conftest.$ac_ext <<_ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h. */
10159 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10161 #define _dyld_func_lookup innocuous__dyld_func_lookup
10163 /* System header to define __stub macros and hopefully few prototypes,
10164 which can conflict with char _dyld_func_lookup (); below.
10165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10166 <limits.h> exists even on freestanding compilers. */
10169 # include <limits.h>
10171 # include <assert.h>
10174 #undef _dyld_func_lookup
10176 /* Override any GCC internal prototype to avoid an error.
10177 Use char because int might match the return type of a GCC
10178 builtin and then its argument prototype would still apply. */
10182 char _dyld_func_lookup ();
10183 /* The GNU C library defines this for functions which it implements
10184 to always fail with ENOSYS. Some functions are actually named
10185 something starting with __ and the normal name is an alias. */
10186 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10193 return _dyld_func_lookup ();
10198 rm -f conftest.$ac_objext conftest$ac_exeext
10199 if { (ac_try="$ac_link"
10200 case "(($ac_try" in
10201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10202 *) ac_try_echo=$ac_try;;
10204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10205 (eval "$ac_link") 2>conftest.er1
10207 grep -v '^ *+' conftest.er1 >conftest.err
10209 cat conftest.err >&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } &&
10212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10213 { (case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218 (eval "$ac_try") 2>&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; } &&
10222 { ac_try='test -s conftest$ac_exeext'
10223 { (case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228 (eval "$ac_try") 2>&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; }; then
10232 ac_cv_func__dyld_func_lookup=yes
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10237 ac_cv_func__dyld_func_lookup=no
10240 rm -f core conftest.err conftest.$ac_objext \
10241 conftest$ac_exeext conftest.$ac_ext
10243 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10244 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10245 if test $ac_cv_func__dyld_func_lookup = yes; then
10247 cat >>confdefs.h <<\_ACEOF
10248 #define HAVE_DYLD 1
10262 rm -f core conftest.err conftest.$ac_objext \
10263 conftest$ac_exeext conftest.$ac_ext
10274 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10276 lt_save_LIBS="$LIBS"
10277 LIBS="$LIBS $LIBADD_DL"
10279 for ac_func in dlerror
10281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10282 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10284 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10285 echo $ECHO_N "(cached) $ECHO_C" >&6
10287 cat >conftest.$ac_ext <<_ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h. */
10293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10295 #define $ac_func innocuous_$ac_func
10297 /* System header to define __stub macros and hopefully few prototypes,
10298 which can conflict with char $ac_func (); below.
10299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10300 <limits.h> exists even on freestanding compilers. */
10303 # include <limits.h>
10305 # include <assert.h>
10310 /* Override any GCC internal prototype to avoid an error.
10311 Use char because int might match the return type of a GCC
10312 builtin and then its argument prototype would still apply. */
10317 /* The GNU C library defines this for functions which it implements
10318 to always fail with ENOSYS. Some functions are actually named
10319 something starting with __ and the normal name is an alias. */
10320 #if defined __stub_$ac_func || defined __stub___$ac_func
10327 return $ac_func ();
10332 rm -f conftest.$ac_objext conftest$ac_exeext
10333 if { (ac_try="$ac_link"
10334 case "(($ac_try" in
10335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336 *) ac_try_echo=$ac_try;;
10338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339 (eval "$ac_link") 2>conftest.er1
10341 grep -v '^ *+' conftest.er1 >conftest.err
10343 cat conftest.err >&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } &&
10346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10347 { (case "(($ac_try" in
10348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349 *) ac_try_echo=$ac_try;;
10351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10352 (eval "$ac_try") 2>&5
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); }; } &&
10356 { ac_try='test -s conftest$ac_exeext'
10357 { (case "(($ac_try" in
10358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10359 *) ac_try_echo=$ac_try;;
10361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10362 (eval "$ac_try") 2>&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); }; }; then
10366 eval "$as_ac_var=yes"
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10371 eval "$as_ac_var=no"
10374 rm -f core conftest.err conftest.$ac_objext \
10375 conftest$ac_exeext conftest.$ac_ext
10377 ac_res=`eval echo '${'$as_ac_var'}'`
10378 { echo "$as_me:$LINENO: result: $ac_res" >&5
10379 echo "${ECHO_T}$ac_res" >&6; }
10380 if test `eval echo '${'$as_ac_var'}'` = yes; then
10381 cat >>confdefs.h <<_ACEOF
10382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10388 LIBS="$lt_save_LIBS"
10391 ac_cpp='$CPP $CPPFLAGS'
10392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10398 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10399 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10400 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
10403 ac_cv_sys_symbol_underscore=no
10404 cat > conftest.$ac_ext <<EOF
10405 void nm_test_func(){}
10406 int main(){nm_test_func;return 0;}
10408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10409 (eval $ac_compile) 2>&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; then
10413 # Now try to grab the symbols.
10414 ac_nlist=conftest.nm
10415 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10416 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } && test -s "$ac_nlist"; then
10420 # See whether the symbols have a leading underscore.
10421 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10422 ac_cv_sys_symbol_underscore=yes
10424 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10427 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10431 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10434 echo "configure: failed program was:" >&5
10440 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10441 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10444 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10445 if test x"$libltdl_cv_func_dlopen" = xyes ||
10446 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10447 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10448 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10449 if test "${libltdl_cv_need_uscore+set}" = set; then
10450 echo $ECHO_N "(cached) $ECHO_C" >&6
10452 libltdl_cv_need_uscore=unknown
10454 LIBS="$LIBS $LIBADD_DL"
10455 if test "$cross_compiling" = yes; then :
10456 libltdl_cv_need_uscore=cross
10458 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10459 lt_status=$lt_dlunknown
10460 cat > conftest.$ac_ext <<EOF
10461 #line 10461 "configure"
10462 #include "confdefs.h"
10471 # define LT_DLGLOBAL RTLD_GLOBAL
10474 # define LT_DLGLOBAL DL_GLOBAL
10476 # define LT_DLGLOBAL 0
10480 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10481 find out it does not work in some platform. */
10482 #ifndef LT_DLLAZY_OR_NOW
10484 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10487 # define LT_DLLAZY_OR_NOW DL_LAZY
10490 # define LT_DLLAZY_OR_NOW RTLD_NOW
10493 # define LT_DLLAZY_OR_NOW DL_NOW
10495 # define LT_DLLAZY_OR_NOW 0
10503 extern "C" void exit (int);
10506 void fnord() { int i=42;}
10509 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10510 int status = $lt_dlunknown;
10514 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10515 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10516 /* dlclose (self); */
10524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10525 (eval $ac_link) 2>&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10529 (./conftest; exit; ) >&5 2>/dev/null
10531 case x$lt_status in
10532 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10533 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10534 x$lt_dlunknown|x*) ;;
10537 # compilation failed
10546 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10547 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10551 if test x"$libltdl_cv_need_uscore" = xyes; then
10553 cat >>confdefs.h <<\_ACEOF
10554 #define NEED_USCORE 1
10560 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10561 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10562 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10565 # PORTME does your system automatically load deplibs for dlopen?
10566 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10567 # For now, we just catch OSes we know something about -- in the
10568 # future, we'll try test this programmatically.
10569 libltdl_cv_sys_dlopen_deplibs=unknown
10571 aix3*|aix4.1.*|aix4.2.*)
10572 # Unknown whether this is true for these versions of AIX, but
10573 # we want this `case' here to explicitly catch those versions.
10574 libltdl_cv_sys_dlopen_deplibs=unknown
10577 libltdl_cv_sys_dlopen_deplibs=yes
10580 # Assuming the user has installed a libdl from somewhere, this is true
10581 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10582 libltdl_cv_sys_dlopen_deplibs=yes
10584 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10585 # GNU and its variants, using gnu ld.so (Glibc)
10586 libltdl_cv_sys_dlopen_deplibs=yes
10589 libltdl_cv_sys_dlopen_deplibs=yes
10592 libltdl_cv_sys_dlopen_deplibs=yes
10594 irix[12345]*|irix6.[01]*)
10595 # Catch all versions of IRIX before 6.2, and indicate that we don't
10596 # know how it worked for any of those versions.
10597 libltdl_cv_sys_dlopen_deplibs=unknown
10600 # The case above catches anything before 6.2, and it's known that
10601 # at 6.2 and later dlopen does load deplibs.
10602 libltdl_cv_sys_dlopen_deplibs=yes
10605 libltdl_cv_sys_dlopen_deplibs=yes
10608 libltdl_cv_sys_dlopen_deplibs=yes
10611 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10612 # it did *not* use an RPATH in a shared library to find objects the
10613 # library depends on, so we explictly say `no'.
10614 libltdl_cv_sys_dlopen_deplibs=no
10616 osf5.0|osf5.0a|osf5.1)
10617 # dlopen *does* load deplibs and with the right loader patch applied
10618 # it even uses RPATH in a shared library to search for shared objects
10619 # that the library depends on, but there's no easy way to know if that
10620 # patch is installed. Since this is the case, all we can really
10621 # say is unknown -- it depends on the patch being installed. If
10622 # it is, this changes to `yes'. Without it, it would be `no'.
10623 libltdl_cv_sys_dlopen_deplibs=unknown
10626 # the two cases above should catch all versions of osf <= 5.1. Read
10627 # the comments above for what we know about them.
10628 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10629 # is used to find them so we can finally say `yes'.
10630 libltdl_cv_sys_dlopen_deplibs=yes
10633 libltdl_cv_sys_dlopen_deplibs=yes
10635 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10636 libltdl_cv_sys_dlopen_deplibs=yes
10641 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10642 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10643 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10645 cat >>confdefs.h <<\_ACEOF
10646 #define LTDL_DLOPEN_DEPLIBS 1
10652 for ac_header in argz.h
10654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10661 ac_res=`eval echo '${'$as_ac_Header'}'`
10662 { echo "$as_me:$LINENO: result: $ac_res" >&5
10663 echo "${ECHO_T}$ac_res" >&6; }
10665 # Is the header compilable?
10666 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10668 cat >conftest.$ac_ext <<_ACEOF
10671 cat confdefs.h >>conftest.$ac_ext
10672 cat >>conftest.$ac_ext <<_ACEOF
10673 /* end confdefs.h. */
10674 $ac_includes_default
10675 #include <$ac_header>
10677 rm -f conftest.$ac_objext
10678 if { (ac_try="$ac_compile"
10679 case "(($ac_try" in
10680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684 (eval "$ac_compile") 2>conftest.er1
10686 grep -v '^ *+' conftest.er1 >conftest.err
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } &&
10691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10692 { (case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_try") 2>&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; } &&
10701 { ac_try='test -s conftest.$ac_objext'
10702 { (case "(($ac_try" in
10703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704 *) ac_try_echo=$ac_try;;
10706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707 (eval "$ac_try") 2>&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; }; then
10711 ac_header_compiler=yes
10713 echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10716 ac_header_compiler=no
10719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10720 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10721 echo "${ECHO_T}$ac_header_compiler" >&6; }
10723 # Is the header present?
10724 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10725 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10726 cat >conftest.$ac_ext <<_ACEOF
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h. */
10732 #include <$ac_header>
10734 if { (ac_try="$ac_cpp conftest.$ac_ext"
10735 case "(($ac_try" in
10736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737 *) ac_try_echo=$ac_try;;
10739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10742 grep -v '^ *+' conftest.er1 >conftest.err
10744 cat conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } >/dev/null; then
10747 if test -s conftest.err; then
10748 ac_cpp_err=$ac_c_preproc_warn_flag
10749 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10756 if test -z "$ac_cpp_err"; then
10757 ac_header_preproc=yes
10759 echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10762 ac_header_preproc=no
10765 rm -f conftest.err conftest.$ac_ext
10766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10767 echo "${ECHO_T}$ac_header_preproc" >&6; }
10769 # So? What about this header?
10770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10775 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10776 ac_header_preproc=yes
10779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10782 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10783 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10784 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10785 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10786 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10789 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10790 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10792 ## ----------------------------------- ##
10793 ## Report this to llvmbugs@cs.uiuc.edu ##
10794 ## ----------------------------------- ##
10796 ) | sed "s/^/$as_me: WARNING: /" >&2
10799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10804 eval "$as_ac_Header=\$ac_header_preproc"
10806 ac_res=`eval echo '${'$as_ac_Header'}'`
10807 { echo "$as_me:$LINENO: result: $ac_res" >&5
10808 echo "${ECHO_T}$ac_res" >&6; }
10811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10812 cat >>confdefs.h <<_ACEOF
10813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10821 { echo "$as_me:$LINENO: checking for error_t" >&5
10822 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10823 if test "${ac_cv_type_error_t+set}" = set; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
10826 cat >conftest.$ac_ext <<_ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h. */
10836 typedef error_t ac__type_new_;
10840 if ((ac__type_new_ *) 0)
10842 if (sizeof (ac__type_new_))
10848 rm -f conftest.$ac_objext
10849 if { (ac_try="$ac_compile"
10850 case "(($ac_try" in
10851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10852 *) ac_try_echo=$ac_try;;
10854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10855 (eval "$ac_compile") 2>conftest.er1
10857 grep -v '^ *+' conftest.er1 >conftest.err
10859 cat conftest.err >&5
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); } &&
10862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10863 { (case "(($ac_try" in
10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865 *) ac_try_echo=$ac_try;;
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868 (eval "$ac_try") 2>&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); }; } &&
10872 { ac_try='test -s conftest.$ac_objext'
10873 { (case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878 (eval "$ac_try") 2>&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; }; then
10882 ac_cv_type_error_t=yes
10884 echo "$as_me: failed program was:" >&5
10885 sed 's/^/| /' conftest.$ac_ext >&5
10887 ac_cv_type_error_t=no
10890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10892 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10893 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10894 if test $ac_cv_type_error_t = yes; then
10896 cat >>confdefs.h <<_ACEOF
10897 #define HAVE_ERROR_T 1
10903 cat >>confdefs.h <<\_ACEOF
10904 #define error_t int
10915 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10921 echo $ECHO_N "(cached) $ECHO_C" >&6
10923 cat >conftest.$ac_ext <<_ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h. */
10929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10931 #define $ac_func innocuous_$ac_func
10933 /* System header to define __stub macros and hopefully few prototypes,
10934 which can conflict with char $ac_func (); below.
10935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10936 <limits.h> exists even on freestanding compilers. */
10939 # include <limits.h>
10941 # include <assert.h>
10946 /* Override any GCC internal prototype to avoid an error.
10947 Use char because int might match the return type of a GCC
10948 builtin and then its argument prototype would still apply. */
10953 /* The GNU C library defines this for functions which it implements
10954 to always fail with ENOSYS. Some functions are actually named
10955 something starting with __ and the normal name is an alias. */
10956 #if defined __stub_$ac_func || defined __stub___$ac_func
10963 return $ac_func ();
10968 rm -f conftest.$ac_objext conftest$ac_exeext
10969 if { (ac_try="$ac_link"
10970 case "(($ac_try" in
10971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972 *) ac_try_echo=$ac_try;;
10974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10975 (eval "$ac_link") 2>conftest.er1
10977 grep -v '^ *+' conftest.er1 >conftest.err
10979 cat conftest.err >&5
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); } &&
10982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10983 { (case "(($ac_try" in
10984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985 *) ac_try_echo=$ac_try;;
10987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10988 (eval "$ac_try") 2>&5
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); }; } &&
10992 { ac_try='test -s conftest$ac_exeext'
10993 { (case "(($ac_try" in
10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995 *) ac_try_echo=$ac_try;;
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 (eval "$ac_try") 2>&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); }; }; then
11002 eval "$as_ac_var=yes"
11004 echo "$as_me: failed program was:" >&5
11005 sed 's/^/| /' conftest.$ac_ext >&5
11007 eval "$as_ac_var=no"
11010 rm -f core conftest.err conftest.$ac_objext \
11011 conftest$ac_exeext conftest.$ac_ext
11013 ac_res=`eval echo '${'$as_ac_var'}'`
11014 { echo "$as_me:$LINENO: result: $ac_res" >&5
11015 echo "${ECHO_T}$ac_res" >&6; }
11016 if test `eval echo '${'$as_ac_var'}'` = yes; then
11017 cat >>confdefs.h <<_ACEOF
11018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11051 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11061 ac_res=`eval echo '${'$as_ac_Header'}'`
11062 { echo "$as_me:$LINENO: result: $ac_res" >&5
11063 echo "${ECHO_T}$ac_res" >&6; }
11065 # Is the header compilable?
11066 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11068 cat >conftest.$ac_ext <<_ACEOF
11071 cat confdefs.h >>conftest.$ac_ext
11072 cat >>conftest.$ac_ext <<_ACEOF
11073 /* end confdefs.h. */
11074 $ac_includes_default
11075 #include <$ac_header>
11077 rm -f conftest.$ac_objext
11078 if { (ac_try="$ac_compile"
11079 case "(($ac_try" in
11080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081 *) ac_try_echo=$ac_try;;
11083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11084 (eval "$ac_compile") 2>conftest.er1
11086 grep -v '^ *+' conftest.er1 >conftest.err
11088 cat conftest.err >&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } &&
11091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11092 { (case "(($ac_try" in
11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094 *) ac_try_echo=$ac_try;;
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097 (eval "$ac_try") 2>&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; } &&
11101 { ac_try='test -s conftest.$ac_objext'
11102 { (case "(($ac_try" in
11103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104 *) ac_try_echo=$ac_try;;
11106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11107 (eval "$ac_try") 2>&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; }; then
11111 ac_header_compiler=yes
11113 echo "$as_me: failed program was:" >&5
11114 sed 's/^/| /' conftest.$ac_ext >&5
11116 ac_header_compiler=no
11119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11120 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11121 echo "${ECHO_T}$ac_header_compiler" >&6; }
11123 # Is the header present?
11124 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11126 cat >conftest.$ac_ext <<_ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h. */
11132 #include <$ac_header>
11134 if { (ac_try="$ac_cpp conftest.$ac_ext"
11135 case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11142 grep -v '^ *+' conftest.er1 >conftest.err
11144 cat conftest.err >&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } >/dev/null; then
11147 if test -s conftest.err; then
11148 ac_cpp_err=$ac_c_preproc_warn_flag
11149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11156 if test -z "$ac_cpp_err"; then
11157 ac_header_preproc=yes
11159 echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11162 ac_header_preproc=no
11165 rm -f conftest.err conftest.$ac_ext
11166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11167 echo "${ECHO_T}$ac_header_preproc" >&6; }
11169 # So? What about this header?
11170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11176 ac_header_preproc=yes
11179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11192 ## ----------------------------------- ##
11193 ## Report this to llvmbugs@cs.uiuc.edu ##
11194 ## ----------------------------------- ##
11196 ) | sed "s/^/$as_me: WARNING: /" >&2
11199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11204 eval "$as_ac_Header=\$ac_header_preproc"
11206 ac_res=`eval echo '${'$as_ac_Header'}'`
11207 { echo "$as_me:$LINENO: result: $ac_res" >&5
11208 echo "${ECHO_T}$ac_res" >&6; }
11211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11212 cat >>confdefs.h <<_ACEOF
11213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11224 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11233 ac_res=`eval echo '${'$as_ac_Header'}'`
11234 { echo "$as_me:$LINENO: result: $ac_res" >&5
11235 echo "${ECHO_T}$ac_res" >&6; }
11237 # Is the header compilable?
11238 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11240 cat >conftest.$ac_ext <<_ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11246 $ac_includes_default
11247 #include <$ac_header>
11249 rm -f conftest.$ac_objext
11250 if { (ac_try="$ac_compile"
11251 case "(($ac_try" in
11252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253 *) ac_try_echo=$ac_try;;
11255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11256 (eval "$ac_compile") 2>conftest.er1
11258 grep -v '^ *+' conftest.er1 >conftest.err
11260 cat conftest.err >&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } &&
11263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11264 { (case "(($ac_try" in
11265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266 *) ac_try_echo=$ac_try;;
11268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269 (eval "$ac_try") 2>&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; } &&
11273 { ac_try='test -s conftest.$ac_objext'
11274 { (case "(($ac_try" in
11275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276 *) ac_try_echo=$ac_try;;
11278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11279 (eval "$ac_try") 2>&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; }; then
11283 ac_header_compiler=yes
11285 echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11288 ac_header_compiler=no
11291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11293 echo "${ECHO_T}$ac_header_compiler" >&6; }
11295 # Is the header present?
11296 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11298 cat >conftest.$ac_ext <<_ACEOF
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11304 #include <$ac_header>
11306 if { (ac_try="$ac_cpp conftest.$ac_ext"
11307 case "(($ac_try" in
11308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309 *) ac_try_echo=$ac_try;;
11311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11314 grep -v '^ *+' conftest.er1 >conftest.err
11316 cat conftest.err >&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); } >/dev/null; then
11319 if test -s conftest.err; then
11320 ac_cpp_err=$ac_c_preproc_warn_flag
11321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11328 if test -z "$ac_cpp_err"; then
11329 ac_header_preproc=yes
11331 echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.$ac_ext >&5
11334 ac_header_preproc=no
11337 rm -f conftest.err conftest.$ac_ext
11338 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11339 echo "${ECHO_T}$ac_header_preproc" >&6; }
11341 # So? What about this header?
11342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11348 ac_header_preproc=yes
11351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11358 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11364 ## ----------------------------------- ##
11365 ## Report this to llvmbugs@cs.uiuc.edu ##
11366 ## ----------------------------------- ##
11368 ) | sed "s/^/$as_me: WARNING: /" >&2
11371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
11376 eval "$as_ac_Header=\$ac_header_preproc"
11378 ac_res=`eval echo '${'$as_ac_Header'}'`
11379 { echo "$as_me:$LINENO: result: $ac_res" >&5
11380 echo "${ECHO_T}$ac_res" >&6; }
11383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11384 cat >>confdefs.h <<_ACEOF
11385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11394 for ac_header in string.h strings.h
11396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11403 ac_res=`eval echo '${'$as_ac_Header'}'`
11404 { echo "$as_me:$LINENO: result: $ac_res" >&5
11405 echo "${ECHO_T}$ac_res" >&6; }
11407 # Is the header compilable?
11408 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11410 cat >conftest.$ac_ext <<_ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11416 $ac_includes_default
11417 #include <$ac_header>
11419 rm -f conftest.$ac_objext
11420 if { (ac_try="$ac_compile"
11421 case "(($ac_try" in
11422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423 *) ac_try_echo=$ac_try;;
11425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426 (eval "$ac_compile") 2>conftest.er1
11428 grep -v '^ *+' conftest.er1 >conftest.err
11430 cat conftest.err >&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } &&
11433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11434 { (case "(($ac_try" in
11435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436 *) ac_try_echo=$ac_try;;
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439 (eval "$ac_try") 2>&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; } &&
11443 { ac_try='test -s conftest.$ac_objext'
11444 { (case "(($ac_try" in
11445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446 *) ac_try_echo=$ac_try;;
11448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449 (eval "$ac_try") 2>&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; }; then
11453 ac_header_compiler=yes
11455 echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11458 ac_header_compiler=no
11461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11462 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11463 echo "${ECHO_T}$ac_header_compiler" >&6; }
11465 # Is the header present?
11466 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11468 cat >conftest.$ac_ext <<_ACEOF
11471 cat confdefs.h >>conftest.$ac_ext
11472 cat >>conftest.$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11474 #include <$ac_header>
11476 if { (ac_try="$ac_cpp conftest.$ac_ext"
11477 case "(($ac_try" in
11478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11484 grep -v '^ *+' conftest.er1 >conftest.err
11486 cat conftest.err >&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } >/dev/null; then
11489 if test -s conftest.err; then
11490 ac_cpp_err=$ac_c_preproc_warn_flag
11491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11498 if test -z "$ac_cpp_err"; then
11499 ac_header_preproc=yes
11501 echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11504 ac_header_preproc=no
11507 rm -f conftest.err conftest.$ac_ext
11508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11509 echo "${ECHO_T}$ac_header_preproc" >&6; }
11511 # So? What about this header?
11512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11518 ac_header_preproc=yes
11521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11528 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11534 ## ----------------------------------- ##
11535 ## Report this to llvmbugs@cs.uiuc.edu ##
11536 ## ----------------------------------- ##
11538 ) | sed "s/^/$as_me: WARNING: /" >&2
11541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11544 echo $ECHO_N "(cached) $ECHO_C" >&6
11546 eval "$as_ac_Header=\$ac_header_preproc"
11548 ac_res=`eval echo '${'$as_ac_Header'}'`
11549 { echo "$as_me:$LINENO: result: $ac_res" >&5
11550 echo "${ECHO_T}$ac_res" >&6; }
11553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11554 cat >>confdefs.h <<_ACEOF
11555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11565 for ac_func in strchr index
11567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11568 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 cat >conftest.$ac_ext <<_ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11581 #define $ac_func innocuous_$ac_func
11583 /* System header to define __stub macros and hopefully few prototypes,
11584 which can conflict with char $ac_func (); below.
11585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11586 <limits.h> exists even on freestanding compilers. */
11589 # include <limits.h>
11591 # include <assert.h>
11596 /* Override any GCC internal prototype to avoid an error.
11597 Use char because int might match the return type of a GCC
11598 builtin and then its argument prototype would still apply. */
11603 /* The GNU C library defines this for functions which it implements
11604 to always fail with ENOSYS. Some functions are actually named
11605 something starting with __ and the normal name is an alias. */
11606 #if defined __stub_$ac_func || defined __stub___$ac_func
11613 return $ac_func ();
11618 rm -f conftest.$ac_objext conftest$ac_exeext
11619 if { (ac_try="$ac_link"
11620 case "(($ac_try" in
11621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622 *) ac_try_echo=$ac_try;;
11624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11625 (eval "$ac_link") 2>conftest.er1
11627 grep -v '^ *+' conftest.er1 >conftest.err
11629 cat conftest.err >&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } &&
11632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11642 { ac_try='test -s conftest$ac_exeext'
11643 { (case "(($ac_try" in
11644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11645 *) ac_try_echo=$ac_try;;
11647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11648 (eval "$ac_try") 2>&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; }; then
11652 eval "$as_ac_var=yes"
11654 echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11657 eval "$as_ac_var=no"
11660 rm -f core conftest.err conftest.$ac_objext \
11661 conftest$ac_exeext conftest.$ac_ext
11663 ac_res=`eval echo '${'$as_ac_var'}'`
11664 { echo "$as_me:$LINENO: result: $ac_res" >&5
11665 echo "${ECHO_T}$ac_res" >&6; }
11666 if test `eval echo '${'$as_ac_var'}'` = yes; then
11667 cat >>confdefs.h <<_ACEOF
11668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11676 for ac_func in strrchr rindex
11678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11679 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11681 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11682 echo $ECHO_N "(cached) $ECHO_C" >&6
11684 cat >conftest.$ac_ext <<_ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h. */
11690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11692 #define $ac_func innocuous_$ac_func
11694 /* System header to define __stub macros and hopefully few prototypes,
11695 which can conflict with char $ac_func (); below.
11696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11697 <limits.h> exists even on freestanding compilers. */
11700 # include <limits.h>
11702 # include <assert.h>
11707 /* Override any GCC internal prototype to avoid an error.
11708 Use char because int might match the return type of a GCC
11709 builtin and then its argument prototype would still apply. */
11714 /* The GNU C library defines this for functions which it implements
11715 to always fail with ENOSYS. Some functions are actually named
11716 something starting with __ and the normal name is an alias. */
11717 #if defined __stub_$ac_func || defined __stub___$ac_func
11724 return $ac_func ();
11729 rm -f conftest.$ac_objext conftest$ac_exeext
11730 if { (ac_try="$ac_link"
11731 case "(($ac_try" in
11732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733 *) ac_try_echo=$ac_try;;
11735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11736 (eval "$ac_link") 2>conftest.er1
11738 grep -v '^ *+' conftest.er1 >conftest.err
11740 cat conftest.err >&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); } &&
11743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11744 { (case "(($ac_try" in
11745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11746 *) ac_try_echo=$ac_try;;
11748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11749 (eval "$ac_try") 2>&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; } &&
11753 { ac_try='test -s conftest$ac_exeext'
11754 { (case "(($ac_try" in
11755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11756 *) ac_try_echo=$ac_try;;
11758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11759 (eval "$ac_try") 2>&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; }; then
11763 eval "$as_ac_var=yes"
11765 echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11768 eval "$as_ac_var=no"
11771 rm -f core conftest.err conftest.$ac_objext \
11772 conftest$ac_exeext conftest.$ac_ext
11774 ac_res=`eval echo '${'$as_ac_var'}'`
11775 { echo "$as_me:$LINENO: result: $ac_res" >&5
11776 echo "${ECHO_T}$ac_res" >&6; }
11777 if test `eval echo '${'$as_ac_var'}'` = yes; then
11778 cat >>confdefs.h <<_ACEOF
11779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11787 for ac_func in memcpy bcopy
11789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11790 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11792 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11795 cat >conftest.$ac_ext <<_ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h. */
11801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11803 #define $ac_func innocuous_$ac_func
11805 /* System header to define __stub macros and hopefully few prototypes,
11806 which can conflict with char $ac_func (); below.
11807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11808 <limits.h> exists even on freestanding compilers. */
11811 # include <limits.h>
11813 # include <assert.h>
11818 /* Override any GCC internal prototype to avoid an error.
11819 Use char because int might match the return type of a GCC
11820 builtin and then its argument prototype would still apply. */
11825 /* The GNU C library defines this for functions which it implements
11826 to always fail with ENOSYS. Some functions are actually named
11827 something starting with __ and the normal name is an alias. */
11828 #if defined __stub_$ac_func || defined __stub___$ac_func
11835 return $ac_func ();
11840 rm -f conftest.$ac_objext conftest$ac_exeext
11841 if { (ac_try="$ac_link"
11842 case "(($ac_try" in
11843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844 *) ac_try_echo=$ac_try;;
11846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847 (eval "$ac_link") 2>conftest.er1
11849 grep -v '^ *+' conftest.er1 >conftest.err
11851 cat conftest.err >&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); } &&
11854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11855 { (case "(($ac_try" in
11856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11857 *) ac_try_echo=$ac_try;;
11859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11860 (eval "$ac_try") 2>&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); }; } &&
11864 { ac_try='test -s conftest$ac_exeext'
11865 { (case "(($ac_try" in
11866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11867 *) ac_try_echo=$ac_try;;
11869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11870 (eval "$ac_try") 2>&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; }; then
11874 eval "$as_ac_var=yes"
11876 echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11879 eval "$as_ac_var=no"
11882 rm -f core conftest.err conftest.$ac_objext \
11883 conftest$ac_exeext conftest.$ac_ext
11885 ac_res=`eval echo '${'$as_ac_var'}'`
11886 { echo "$as_me:$LINENO: result: $ac_res" >&5
11887 echo "${ECHO_T}$ac_res" >&6; }
11888 if test `eval echo '${'$as_ac_var'}'` = yes; then
11889 cat >>confdefs.h <<_ACEOF
11890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11898 for ac_func in memmove strcmp
11900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11901 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11904 echo $ECHO_N "(cached) $ECHO_C" >&6
11906 cat >conftest.$ac_ext <<_ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h. */
11912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11914 #define $ac_func innocuous_$ac_func
11916 /* System header to define __stub macros and hopefully few prototypes,
11917 which can conflict with char $ac_func (); below.
11918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11919 <limits.h> exists even on freestanding compilers. */
11922 # include <limits.h>
11924 # include <assert.h>
11929 /* Override any GCC internal prototype to avoid an error.
11930 Use char because int might match the return type of a GCC
11931 builtin and then its argument prototype would still apply. */
11936 /* The GNU C library defines this for functions which it implements
11937 to always fail with ENOSYS. Some functions are actually named
11938 something starting with __ and the normal name is an alias. */
11939 #if defined __stub_$ac_func || defined __stub___$ac_func
11946 return $ac_func ();
11951 rm -f conftest.$ac_objext conftest$ac_exeext
11952 if { (ac_try="$ac_link"
11953 case "(($ac_try" in
11954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11955 *) ac_try_echo=$ac_try;;
11957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958 (eval "$ac_link") 2>conftest.er1
11960 grep -v '^ *+' conftest.er1 >conftest.err
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } &&
11965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11966 { (case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971 (eval "$ac_try") 2>&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; } &&
11975 { ac_try='test -s conftest$ac_exeext'
11976 { (case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_try") 2>&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 eval "$as_ac_var=yes"
11987 echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11990 eval "$as_ac_var=no"
11993 rm -f core conftest.err conftest.$ac_objext \
11994 conftest$ac_exeext conftest.$ac_ext
11996 ac_res=`eval echo '${'$as_ac_var'}'`
11997 { echo "$as_me:$LINENO: result: $ac_res" >&5
11998 echo "${ECHO_T}$ac_res" >&6; }
11999 if test `eval echo '${'$as_ac_var'}'` = yes; then
12000 cat >>confdefs.h <<_ACEOF
12001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12010 for ac_func in closedir opendir readdir
12012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12018 cat >conftest.$ac_ext <<_ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12026 #define $ac_func innocuous_$ac_func
12028 /* System header to define __stub macros and hopefully few prototypes,
12029 which can conflict with char $ac_func (); below.
12030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12031 <limits.h> exists even on freestanding compilers. */
12034 # include <limits.h>
12036 # include <assert.h>
12041 /* Override any GCC internal prototype to avoid an error.
12042 Use char because int might match the return type of a GCC
12043 builtin and then its argument prototype would still apply. */
12048 /* The GNU C library defines this for functions which it implements
12049 to always fail with ENOSYS. Some functions are actually named
12050 something starting with __ and the normal name is an alias. */
12051 #if defined __stub_$ac_func || defined __stub___$ac_func
12058 return $ac_func ();
12063 rm -f conftest.$ac_objext conftest$ac_exeext
12064 if { (ac_try="$ac_link"
12065 case "(($ac_try" in
12066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12067 *) ac_try_echo=$ac_try;;
12069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12070 (eval "$ac_link") 2>conftest.er1
12072 grep -v '^ *+' conftest.er1 >conftest.err
12074 cat conftest.err >&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } &&
12077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12078 { (case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083 (eval "$ac_try") 2>&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; } &&
12087 { ac_try='test -s conftest$ac_exeext'
12088 { (case "(($ac_try" in
12089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090 *) ac_try_echo=$ac_try;;
12092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093 (eval "$ac_try") 2>&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; }; then
12097 eval "$as_ac_var=yes"
12099 echo "$as_me: failed program was:" >&5
12100 sed 's/^/| /' conftest.$ac_ext >&5
12102 eval "$as_ac_var=no"
12105 rm -f core conftest.err conftest.$ac_objext \
12106 conftest$ac_exeext conftest.$ac_ext
12108 ac_res=`eval echo '${'$as_ac_var'}'`
12109 { echo "$as_me:$LINENO: result: $ac_res" >&5
12110 echo "${ECHO_T}$ac_res" >&6; }
12111 if test `eval echo '${'$as_ac_var'}'` = yes; then
12112 cat >>confdefs.h <<_ACEOF
12113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12120 # Check whether --enable-shared was given.
12121 if test "${enable_shared+set}" = set; then
12122 enableval=$enable_shared; p=${PACKAGE-default}
12124 yes) enable_shared=yes ;;
12125 no) enable_shared=no ;;
12128 # Look at the argument we got. We use all the common list separators.
12129 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12130 for pkg in $enableval; do
12132 if test "X$pkg" = "X$p"; then
12144 # Check whether --enable-static was given.
12145 if test "${enable_static+set}" = set; then
12146 enableval=$enable_static; p=${PACKAGE-default}
12148 yes) enable_static=yes ;;
12149 no) enable_static=no ;;
12152 # Look at the argument we got. We use all the common list separators.
12153 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12154 for pkg in $enableval; do
12156 if test "X$pkg" = "X$p"; then
12168 # Check whether --enable-fast-install was given.
12169 if test "${enable_fast_install+set}" = set; then
12170 enableval=$enable_fast_install; p=${PACKAGE-default}
12172 yes) enable_fast_install=yes ;;
12173 no) enable_fast_install=no ;;
12175 enable_fast_install=no
12176 # Look at the argument we got. We use all the common list separators.
12177 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12178 for pkg in $enableval; do
12180 if test "X$pkg" = "X$p"; then
12181 enable_fast_install=yes
12188 enable_fast_install=yes
12192 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12193 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12194 if test "${lt_cv_path_SED+set}" = set; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12197 # Loop through the user's path and test for sed and gsed.
12198 # Then use that list of sed's as ones to test for truncation.
12199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12200 for as_dir in $PATH
12203 test -z "$as_dir" && as_dir=.
12204 for lt_ac_prog in sed gsed; do
12205 for ac_exec_ext in '' $ac_executable_extensions; do
12206 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12207 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12214 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12215 # along with /bin/sed that truncates output.
12216 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12217 test ! -f $lt_ac_sed && continue
12218 cat /dev/null > conftest.in
12220 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12221 # Check for GNU sed and select it if it is found.
12222 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12223 lt_cv_path_SED=$lt_ac_sed
12227 cat conftest.in conftest.in >conftest.tmp
12228 mv conftest.tmp conftest.in
12229 cp conftest.in conftest.nl
12231 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12232 cmp -s conftest.out conftest.nl || break
12233 # 10000 chars as input seems more than enough
12234 test $lt_ac_count -gt 10 && break
12235 lt_ac_count=`expr $lt_ac_count + 1`
12236 if test $lt_ac_count -gt $lt_ac_max; then
12237 lt_ac_max=$lt_ac_count
12238 lt_cv_path_SED=$lt_ac_sed
12245 SED=$lt_cv_path_SED
12246 { echo "$as_me:$LINENO: result: $SED" >&5
12247 echo "${ECHO_T}$SED" >&6; }
12250 # Check whether --with-gnu-ld was given.
12251 if test "${with_gnu_ld+set}" = set; then
12252 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12258 if test "$GCC" = yes; then
12259 # Check if gcc -print-prog-name=ld gives a path.
12260 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12261 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12264 # gcc leaves a trailing carriage return which upsets mingw
12265 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12267 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12270 # Accept absolute paths.
12272 re_direlt='/[^/][^/]*/\.\./'
12273 # Canonicalize the pathname of ld
12274 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12275 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12276 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12278 test -z "$LD" && LD="$ac_prog"
12281 # If it fails, then pretend we aren't using GCC.
12285 # If it is relative, then search for the first ld in PATH.
12286 with_gnu_ld=unknown
12289 elif test "$with_gnu_ld" = yes; then
12290 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12291 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12293 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12294 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12296 if test "${lt_cv_path_LD+set}" = set; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12299 if test -z "$LD"; then
12300 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12301 for ac_dir in $PATH; do
12303 test -z "$ac_dir" && ac_dir=.
12304 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12305 lt_cv_path_LD="$ac_dir/$ac_prog"
12306 # Check to see if the program is GNU ld. I'd rather use --version,
12307 # but apparently some variants of GNU ld only accept -v.
12308 # Break only if it was the GNU/non-GNU ld that we prefer.
12309 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12310 *GNU* | *'with BFD'*)
12311 test "$with_gnu_ld" != no && break
12314 test "$with_gnu_ld" != yes && break
12321 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12325 LD="$lt_cv_path_LD"
12326 if test -n "$LD"; then
12327 { echo "$as_me:$LINENO: result: $LD" >&5
12328 echo "${ECHO_T}$LD" >&6; }
12330 { echo "$as_me:$LINENO: result: no" >&5
12331 echo "${ECHO_T}no" >&6; }
12333 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12334 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12335 { (exit 1); exit 1; }; }
12336 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12337 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12338 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12342 case `$LD -v 2>&1 </dev/null` in
12343 *GNU* | *'with BFD'*)
12344 lt_cv_prog_gnu_ld=yes
12347 lt_cv_prog_gnu_ld=no
12351 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12352 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12353 with_gnu_ld=$lt_cv_prog_gnu_ld
12356 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12357 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12358 if test "${lt_cv_ld_reload_flag+set}" = set; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12361 lt_cv_ld_reload_flag='-r'
12363 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12364 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12365 reload_flag=$lt_cv_ld_reload_flag
12366 case $reload_flag in
12368 *) reload_flag=" $reload_flag" ;;
12370 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12373 if test "$GCC" = yes; then
12374 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12376 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12381 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12382 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12383 if test "${lt_cv_deplibs_check_method+set}" = set; then
12384 echo $ECHO_N "(cached) $ECHO_C" >&6
12386 lt_cv_file_magic_cmd='$MAGIC_CMD'
12387 lt_cv_file_magic_test_file=
12388 lt_cv_deplibs_check_method='unknown'
12389 # Need to set the preceding variable on all platforms that support
12390 # interlibrary dependencies.
12391 # 'none' -- dependencies not supported.
12392 # `unknown' -- same as none, but documents that we really don't know.
12393 # 'pass_all' -- all dependencies passed with no checks.
12394 # 'test_compile' -- check by making test program.
12395 # 'file_magic [[regex]]' -- check by looking for files in library path
12396 # which responds to the $file_magic_cmd with a given extended regex.
12397 # If you have `file' or equivalent on your system and you're not sure
12398 # whether `pass_all' will *always* work, you probably want this one.
12402 lt_cv_deplibs_check_method=pass_all
12406 lt_cv_deplibs_check_method=pass_all
12410 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12411 lt_cv_file_magic_cmd='/usr/bin/file -L'
12412 lt_cv_file_magic_test_file=/shlib/libc.so
12416 # func_win32_libid is a shell function defined in ltmain.sh
12417 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12418 lt_cv_file_magic_cmd='func_win32_libid'
12422 # Base MSYS/MinGW do not provide the 'file' command needed by
12423 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12424 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12425 lt_cv_file_magic_cmd='$OBJDUMP -f'
12428 darwin* | rhapsody*)
12429 lt_cv_deplibs_check_method=pass_all
12432 freebsd* | kfreebsd*-gnu | dragonfly*)
12433 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12436 # Not sure whether the presence of OpenBSD here was a mistake.
12437 # Let's accept both of them until this is cleared up.
12438 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12439 lt_cv_file_magic_cmd=/usr/bin/file
12440 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12444 lt_cv_deplibs_check_method=pass_all
12449 lt_cv_deplibs_check_method=pass_all
12452 hpux10.20* | hpux11*)
12453 lt_cv_file_magic_cmd=/usr/bin/file
12456 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12457 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12460 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]'
12461 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12464 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12465 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12471 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12472 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12475 irix5* | irix6* | nonstopux*)
12477 *-32|*"-32 ") libmagic=32-bit;;
12478 *-n32|*"-n32 ") libmagic=N32;;
12479 *-64|*"-64 ") libmagic=64-bit;;
12480 *) libmagic=never-match;;
12482 lt_cv_deplibs_check_method=pass_all
12485 # This must be Linux ELF.
12487 lt_cv_deplibs_check_method=pass_all
12491 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12499 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12500 lt_cv_file_magic_cmd=/usr/bin/file
12501 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12505 lt_cv_deplibs_check_method=unknown
12509 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12510 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12512 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12516 osf3* | osf4* | osf5*)
12517 lt_cv_deplibs_check_method=pass_all
12521 lt_cv_deplibs_check_method=pass_all
12525 case $host_vendor in
12527 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]'
12528 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12531 lt_cv_deplibs_check_method=pass_all
12534 lt_cv_file_magic_cmd='/bin/file'
12535 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12538 lt_cv_file_magic_cmd='/bin/file'
12539 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12540 lt_cv_file_magic_test_file=/lib/libc.so
12543 lt_cv_deplibs_check_method=pass_all
12546 lt_cv_deplibs_check_method=pass_all
12551 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12552 lt_cv_deplibs_check_method=pass_all
12557 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12558 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12559 file_magic_cmd=$lt_cv_file_magic_cmd
12560 deplibs_check_method=$lt_cv_deplibs_check_method
12561 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12565 # If no C compiler was specified, use CC.
12568 # If no C compiler flags were specified, use CFLAGS.
12569 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12571 # Allow CC to be a program name with arguments.
12574 # Check whether --enable-libtool-lock was given.
12575 if test "${enable_libtool_lock+set}" = set; then
12576 enableval=$enable_libtool_lock;
12579 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12581 # Some flags need to be propagated to the compiler or linker for good
12585 # Find out which ABI we are using.
12586 echo 'int i;' > conftest.$ac_ext
12587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12588 (eval $ac_compile) 2>&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }; then
12592 case `/usr/bin/file conftest.$ac_objext` in
12594 HPUX_IA64_MODE="32"
12597 HPUX_IA64_MODE="64"
12604 # Find out which ABI we are using.
12605 echo '#line 12605 "configure"' > conftest.$ac_ext
12606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12607 (eval $ac_compile) 2>&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; then
12611 if test "$lt_cv_prog_gnu_ld" = yes; then
12612 case `/usr/bin/file conftest.$ac_objext` in
12614 LD="${LD-ld} -melf32bsmip"
12617 LD="${LD-ld} -melf32bmipn32"
12620 LD="${LD-ld} -melf64bmip"
12624 case `/usr/bin/file conftest.$ac_objext` in
12640 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12641 # Find out which ABI we are using.
12642 echo 'int i;' > conftest.$ac_ext
12643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12644 (eval $ac_compile) 2>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; then
12648 case `/usr/bin/file conftest.o` in
12652 LD="${LD-ld} -m elf_i386"
12654 ppc64-*linux*|powerpc64-*linux*)
12655 LD="${LD-ld} -m elf32ppclinux"
12658 LD="${LD-ld} -m elf_s390"
12661 LD="${LD-ld} -m elf32_sparc"
12668 LD="${LD-ld} -m elf_x86_64"
12670 ppc*-*linux*|powerpc*-*linux*)
12671 LD="${LD-ld} -m elf64ppc"
12674 LD="${LD-ld} -m elf64_s390"
12677 LD="${LD-ld} -m elf64_sparc"
12687 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12688 SAVE_CFLAGS="$CFLAGS"
12689 CFLAGS="$CFLAGS -belf"
12690 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12691 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12692 if test "${lt_cv_cc_needs_belf+set}" = set; then
12693 echo $ECHO_N "(cached) $ECHO_C" >&6
12696 ac_cpp='$CPP $CPPFLAGS'
12697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12701 cat >conftest.$ac_ext <<_ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12716 rm -f conftest.$ac_objext conftest$ac_exeext
12717 if { (ac_try="$ac_link"
12718 case "(($ac_try" in
12719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12720 *) ac_try_echo=$ac_try;;
12722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12723 (eval "$ac_link") 2>conftest.er1
12725 grep -v '^ *+' conftest.er1 >conftest.err
12727 cat conftest.err >&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } &&
12730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12731 { (case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736 (eval "$ac_try") 2>&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; } &&
12740 { ac_try='test -s conftest$ac_exeext'
12741 { (case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746 (eval "$ac_try") 2>&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); }; }; then
12750 lt_cv_cc_needs_belf=yes
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12755 lt_cv_cc_needs_belf=no
12758 rm -f core conftest.err conftest.$ac_objext \
12759 conftest$ac_exeext conftest.$ac_ext
12761 ac_cpp='$CPP $CPPFLAGS'
12762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12767 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12768 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12769 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12770 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12771 CFLAGS="$SAVE_CFLAGS"
12775 # Find out which ABI we are using.
12776 echo 'int i;' > conftest.$ac_ext
12777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12778 (eval $ac_compile) 2>&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; then
12782 case `/usr/bin/file conftest.o` in
12784 case $lt_cv_prog_gnu_ld in
12785 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12786 *) LD="${LD-ld} -64" ;;
12797 need_locks="$enable_libtool_lock"
12802 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12803 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12804 (test "X$CXX" != "Xg++"))) ; then
12806 ac_cpp='$CXXCPP $CPPFLAGS'
12807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12810 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12811 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12812 if test -z "$CXXCPP"; then
12813 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12816 # Double quotes because CXXCPP needs to be expanded
12817 for CXXCPP in "$CXX -E" "/lib/cpp"
12819 ac_preproc_ok=false
12820 for ac_cxx_preproc_warn_flag in '' yes
12822 # Use a header file that comes with gcc, so configuring glibc
12823 # with a fresh cross-compiler works.
12824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12825 # <limits.h> exists even on freestanding compilers.
12826 # On the NeXT, cc -E runs the code through the compiler's parser,
12827 # not just through cpp. "Syntax error" is here to catch this case.
12828 cat >conftest.$ac_ext <<_ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12835 # include <limits.h>
12837 # include <assert.h>
12841 if { (ac_try="$ac_cpp conftest.$ac_ext"
12842 case "(($ac_try" in
12843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844 *) ac_try_echo=$ac_try;;
12846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12849 grep -v '^ *+' conftest.er1 >conftest.err
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } >/dev/null; then
12854 if test -s conftest.err; then
12855 ac_cpp_err=$ac_cxx_preproc_warn_flag
12856 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12863 if test -z "$ac_cpp_err"; then
12866 echo "$as_me: failed program was:" >&5
12867 sed 's/^/| /' conftest.$ac_ext >&5
12869 # Broken: fails on valid input.
12873 rm -f conftest.err conftest.$ac_ext
12875 # OK, works on sane cases. Now check whether nonexistent headers
12876 # can be detected and how.
12877 cat >conftest.$ac_ext <<_ACEOF
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h. */
12883 #include <ac_nonexistent.h>
12885 if { (ac_try="$ac_cpp conftest.$ac_ext"
12886 case "(($ac_try" in
12887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888 *) ac_try_echo=$ac_try;;
12890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12893 grep -v '^ *+' conftest.er1 >conftest.err
12895 cat conftest.err >&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } >/dev/null; then
12898 if test -s conftest.err; then
12899 ac_cpp_err=$ac_cxx_preproc_warn_flag
12900 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12907 if test -z "$ac_cpp_err"; then
12908 # Broken: success on invalid input.
12911 echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12914 # Passes both tests.
12919 rm -f conftest.err conftest.$ac_ext
12922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12923 rm -f conftest.err conftest.$ac_ext
12924 if $ac_preproc_ok; then
12929 ac_cv_prog_CXXCPP=$CXXCPP
12932 CXXCPP=$ac_cv_prog_CXXCPP
12934 ac_cv_prog_CXXCPP=$CXXCPP
12936 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12937 echo "${ECHO_T}$CXXCPP" >&6; }
12938 ac_preproc_ok=false
12939 for ac_cxx_preproc_warn_flag in '' yes
12941 # Use a header file that comes with gcc, so configuring glibc
12942 # with a fresh cross-compiler works.
12943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12944 # <limits.h> exists even on freestanding compilers.
12945 # On the NeXT, cc -E runs the code through the compiler's parser,
12946 # not just through cpp. "Syntax error" is here to catch this case.
12947 cat >conftest.$ac_ext <<_ACEOF
12950 cat confdefs.h >>conftest.$ac_ext
12951 cat >>conftest.$ac_ext <<_ACEOF
12952 /* end confdefs.h. */
12954 # include <limits.h>
12956 # include <assert.h>
12960 if { (ac_try="$ac_cpp conftest.$ac_ext"
12961 case "(($ac_try" in
12962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12963 *) ac_try_echo=$ac_try;;
12965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12968 grep -v '^ *+' conftest.er1 >conftest.err
12970 cat conftest.err >&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); } >/dev/null; then
12973 if test -s conftest.err; then
12974 ac_cpp_err=$ac_cxx_preproc_warn_flag
12975 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12982 if test -z "$ac_cpp_err"; then
12985 echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12988 # Broken: fails on valid input.
12992 rm -f conftest.err conftest.$ac_ext
12994 # OK, works on sane cases. Now check whether nonexistent headers
12995 # can be detected and how.
12996 cat >conftest.$ac_ext <<_ACEOF
12999 cat confdefs.h >>conftest.$ac_ext
13000 cat >>conftest.$ac_ext <<_ACEOF
13001 /* end confdefs.h. */
13002 #include <ac_nonexistent.h>
13004 if { (ac_try="$ac_cpp conftest.$ac_ext"
13005 case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13012 grep -v '^ *+' conftest.er1 >conftest.err
13014 cat conftest.err >&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); } >/dev/null; then
13017 if test -s conftest.err; then
13018 ac_cpp_err=$ac_cxx_preproc_warn_flag
13019 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13026 if test -z "$ac_cpp_err"; then
13027 # Broken: success on invalid input.
13030 echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.$ac_ext >&5
13033 # Passes both tests.
13038 rm -f conftest.err conftest.$ac_ext
13041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13042 rm -f conftest.err conftest.$ac_ext
13043 if $ac_preproc_ok; then
13046 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13047 See \`config.log' for more details." >&5
13048 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13049 See \`config.log' for more details." >&2;}
13050 { (exit 1); exit 1; }; }
13054 ac_cpp='$CXXCPP $CPPFLAGS'
13055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13063 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13064 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13065 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13066 if test -n "$ac_tool_prefix"; then
13067 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
13069 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13070 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13073 if test "${ac_cv_prog_F77+set}" = set; then
13074 echo $ECHO_N "(cached) $ECHO_C" >&6
13076 if test -n "$F77"; then
13077 ac_cv_prog_F77="$F77" # Let the user override the test.
13079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13080 for as_dir in $PATH
13083 test -z "$as_dir" && as_dir=.
13084 for ac_exec_ext in '' $ac_executable_extensions; do
13085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13086 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13096 F77=$ac_cv_prog_F77
13097 if test -n "$F77"; then
13098 { echo "$as_me:$LINENO: result: $F77" >&5
13099 echo "${ECHO_T}$F77" >&6; }
13101 { echo "$as_me:$LINENO: result: no" >&5
13102 echo "${ECHO_T}no" >&6; }
13106 test -n "$F77" && break
13109 if test -z "$F77"; then
13111 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
13113 # Extract the first word of "$ac_prog", so it can be a program name with args.
13114 set dummy $ac_prog; ac_word=$2
13115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13117 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13120 if test -n "$ac_ct_F77"; then
13121 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13124 for as_dir in $PATH
13127 test -z "$as_dir" && as_dir=.
13128 for ac_exec_ext in '' $ac_executable_extensions; do
13129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13130 ac_cv_prog_ac_ct_F77="$ac_prog"
13131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13140 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13141 if test -n "$ac_ct_F77"; then
13142 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13143 echo "${ECHO_T}$ac_ct_F77" >&6; }
13145 { echo "$as_me:$LINENO: result: no" >&5
13146 echo "${ECHO_T}no" >&6; }
13150 test -n "$ac_ct_F77" && break
13153 if test "x$ac_ct_F77" = x; then
13156 case $cross_compiling:$ac_tool_warned in
13158 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13159 whose name does not start with the host triplet. If you think this
13160 configuration is useful to you, please write to autoconf@gnu.org." >&5
13161 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13162 whose name does not start with the host triplet. If you think this
13163 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13164 ac_tool_warned=yes ;;
13171 # Provide some information about the compiler.
13172 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13173 ac_compiler=`set X $ac_compile; echo $2`
13174 { (ac_try="$ac_compiler --version >&5"
13175 case "(($ac_try" in
13176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180 (eval "$ac_compiler --version >&5") 2>&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }
13184 { (ac_try="$ac_compiler -v >&5"
13185 case "(($ac_try" in
13186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187 *) ac_try_echo=$ac_try;;
13189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190 (eval "$ac_compiler -v >&5") 2>&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }
13194 { (ac_try="$ac_compiler -V >&5"
13195 case "(($ac_try" in
13196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197 *) ac_try_echo=$ac_try;;
13199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200 (eval "$ac_compiler -V >&5") 2>&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); }
13206 # If we don't use `.F' as extension, the preprocessor is not run on the
13207 # input file. (Note that this only needs to work for GNU compilers.)
13208 ac_save_ext=$ac_ext
13210 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13211 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13212 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13213 echo $ECHO_N "(cached) $ECHO_C" >&6
13215 cat >conftest.$ac_ext <<_ACEOF
13223 rm -f conftest.$ac_objext
13224 if { (ac_try="$ac_compile"
13225 case "(($ac_try" in
13226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227 *) ac_try_echo=$ac_try;;
13229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13230 (eval "$ac_compile") 2>conftest.er1
13232 grep -v '^ *+' conftest.er1 >conftest.err
13234 cat conftest.err >&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } &&
13237 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13238 { (case "(($ac_try" in
13239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13240 *) ac_try_echo=$ac_try;;
13242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13243 (eval "$ac_try") 2>&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; } &&
13247 { ac_try='test -s conftest.$ac_objext'
13248 { (case "(($ac_try" in
13249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250 *) ac_try_echo=$ac_try;;
13252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253 (eval "$ac_try") 2>&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; }; then
13257 ac_compiler_gnu=yes
13259 echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13266 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13269 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13270 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13271 ac_ext=$ac_save_ext
13272 ac_test_FFLAGS=${FFLAGS+set}
13273 ac_save_FFLAGS=$FFLAGS
13275 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13276 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13277 if test "${ac_cv_prog_f77_g+set}" = set; then
13278 echo $ECHO_N "(cached) $ECHO_C" >&6
13281 cat >conftest.$ac_ext <<_ACEOF
13286 rm -f conftest.$ac_objext
13287 if { (ac_try="$ac_compile"
13288 case "(($ac_try" in
13289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13290 *) ac_try_echo=$ac_try;;
13292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13293 (eval "$ac_compile") 2>conftest.er1
13295 grep -v '^ *+' conftest.er1 >conftest.err
13297 cat conftest.err >&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); } &&
13300 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13301 { (case "(($ac_try" in
13302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303 *) ac_try_echo=$ac_try;;
13305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13306 (eval "$ac_try") 2>&5
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; } &&
13310 { ac_try='test -s conftest.$ac_objext'
13311 { (case "(($ac_try" in
13312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313 *) ac_try_echo=$ac_try;;
13315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316 (eval "$ac_try") 2>&5
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }; }; then
13320 ac_cv_prog_f77_g=yes
13322 echo "$as_me: failed program was:" >&5
13323 sed 's/^/| /' conftest.$ac_ext >&5
13325 ac_cv_prog_f77_g=no
13328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13331 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13332 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13333 if test "$ac_test_FFLAGS" = set; then
13334 FFLAGS=$ac_save_FFLAGS
13335 elif test $ac_cv_prog_f77_g = yes; then
13336 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13342 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13349 G77=`test $ac_compiler_gnu = yes && echo yes`
13351 ac_cpp='$CPP $CPPFLAGS'
13352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13358 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13360 # find the maximum length of command line arguments
13361 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13362 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13363 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13371 # On DJGPP, this test can blow up pretty badly due to problems in libc
13372 # (any single argument exceeding 2000 bytes causes a buffer overrun
13373 # during glob expansion). Even if it were fixed, the result of this
13374 # check would be larger than it should be.
13375 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13379 # Under GNU Hurd, this test is not required because there is
13380 # no limit to the length of command line arguments.
13381 # Libtool will interpret -1 as no limit whatsoever
13382 lt_cv_sys_max_cmd_len=-1;
13386 # On Win9x/ME, this test blows up -- it succeeds, but takes
13387 # about 5 minutes as the teststring grows exponentially.
13388 # Worse, since 9x/ME are not pre-emptively multitasking,
13389 # you end up with a "frozen" computer, even though with patience
13390 # the test eventually succeeds (with a max line length of 256k).
13391 # Instead, let's just punt: use the minimum linelength reported by
13392 # all of the supported platforms: 8192 (on NT/2K/XP).
13393 lt_cv_sys_max_cmd_len=8192;
13397 # On AmigaOS with pdksh, this test takes hours, literally.
13398 # So we just punt and use a minimum line length of 8192.
13399 lt_cv_sys_max_cmd_len=8192;
13402 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13403 # This has been around since 386BSD, at least. Likely further.
13404 if test -x /sbin/sysctl; then
13405 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13406 elif test -x /usr/sbin/sysctl; then
13407 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13409 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13411 # And add a safety zone
13412 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13413 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13417 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13418 lt_cv_sys_max_cmd_len=196608
13422 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13423 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13424 # nice to cause kernel panics so lets avoid the loop below.
13425 # First set a reasonable default.
13426 lt_cv_sys_max_cmd_len=16384
13428 if test -x /sbin/sysconfig; then
13429 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13430 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13435 lt_cv_sys_max_cmd_len=102400
13437 sysv5* | sco5v6* | sysv4.2uw2*)
13438 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13439 if test -n "$kargmax"; then
13440 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13442 lt_cv_sys_max_cmd_len=32768
13446 # If test is not a shell built-in, we'll probably end up computing a
13447 # maximum length that is only half of the actual maximum length, but
13449 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13450 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13451 = "XX$teststring") >/dev/null 2>&1 &&
13452 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13453 lt_cv_sys_max_cmd_len=$new_result &&
13454 test $i != 17 # 1/2 MB should be enough
13457 teststring=$teststring$teststring
13460 # Add a significant safety factor because C++ compilers can tack on massive
13461 # amounts of additional arguments before passing them to the linker.
13462 # It appears as though 1/2 is a usable value.
13463 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13469 if test -n $lt_cv_sys_max_cmd_len ; then
13470 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13471 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13473 { echo "$as_me:$LINENO: result: none" >&5
13474 echo "${ECHO_T}none" >&6; }
13480 # Check for command to grab the raw symbol name followed by C symbol from nm.
13481 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13482 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13483 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13487 # These are sane defaults that work on at least a few old systems.
13488 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13490 # Character class describing NM global symbol codes.
13491 symcode='[BCDEGRST]'
13493 # Regexp to match symbols that can be accessed directly from C.
13494 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13496 # Transform an extracted symbol line into a proper C declaration
13497 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13499 # Transform an extracted symbol line into symbol name and symbol address
13500 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'"
13502 # Define system-specific variables.
13507 cygwin* | mingw* | pw32*)
13508 symcode='[ABCDGISTW]'
13510 hpux*) # Its linker distinguishes data from code symbols
13511 if test "$host_cpu" = ia64; then
13512 symcode='[ABCDEGRST]'
13514 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13515 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'"
13518 if test "$host_cpu" = ia64; then
13519 symcode='[ABCDGIRSTW]'
13520 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13521 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'"
13524 irix* | nonstopux*)
13525 symcode='[BCDEGRST]'
13528 symcode='[BCDEGQRST]'
13539 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13547 # Handle CRLF in mingw tool chain
13551 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13555 # If we're using GNU nm, then use its standard symbol codes.
13556 case `$NM -V 2>&1` in
13557 *GNU* | *'with BFD'*)
13558 symcode='[ABCDGIRSTW]' ;;
13561 # Try without a prefix undercore, then with it.
13562 for ac_symprfx in "" "_"; do
13564 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13565 symxfrm="\\1 $ac_symprfx\\2 \\2"
13567 # Write the raw and C identifiers.
13568 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13570 # Check to see that the pipe works correctly.
13574 cat > conftest.$ac_ext <<EOF
13579 void nm_test_func(){}
13583 int main(){nm_test_var='a';nm_test_func();return(0);}
13586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13587 (eval $ac_compile) 2>&5
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; then
13591 # Now try to grab the symbols.
13593 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13594 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } && test -s "$nlist"; then
13598 # Try sorting and uniquifying the output.
13599 if sort "$nlist" | uniq > "$nlist"T; then
13600 mv -f "$nlist"T "$nlist"
13605 # Make sure that we snagged all the symbols we need.
13606 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13607 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13608 cat <<EOF > conftest.$ac_ext
13614 # Now generate the symbol file.
13615 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13617 cat <<EOF >> conftest.$ac_ext
13618 #if defined (__STDC__) && __STDC__
13619 # define lt_ptr_t void *
13621 # define lt_ptr_t char *
13625 /* The mapping between symbol names and symbols. */
13630 lt_preloaded_symbols[] =
13633 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13634 cat <<\EOF >> conftest.$ac_ext
13642 # Now try linking the two files.
13643 mv conftest.$ac_objext conftstm.$ac_objext
13644 lt_save_LIBS="$LIBS"
13645 lt_save_CFLAGS="$CFLAGS"
13646 LIBS="conftstm.$ac_objext"
13647 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13649 (eval $ac_link) 2>&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13655 LIBS="$lt_save_LIBS"
13656 CFLAGS="$lt_save_CFLAGS"
13658 echo "cannot find nm_test_func in $nlist" >&5
13661 echo "cannot find nm_test_var in $nlist" >&5
13664 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13667 echo "$progname: failed program was:" >&5
13668 cat conftest.$ac_ext >&5
13670 rm -f conftest* conftst*
13672 # Do not use the global_symbol_pipe unless it works.
13673 if test "$pipe_works" = yes; then
13676 lt_cv_sys_global_symbol_pipe=
13682 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13683 lt_cv_sys_global_symbol_to_cdecl=
13685 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13686 { echo "$as_me:$LINENO: result: failed" >&5
13687 echo "${ECHO_T}failed" >&6; }
13689 { echo "$as_me:$LINENO: result: ok" >&5
13690 echo "${ECHO_T}ok" >&6; }
13693 { echo "$as_me:$LINENO: checking for objdir" >&5
13694 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13695 if test "${lt_cv_objdir+set}" = set; then
13696 echo $ECHO_N "(cached) $ECHO_C" >&6
13698 rm -f .libs 2>/dev/null
13699 mkdir .libs 2>/dev/null
13700 if test -d .libs; then
13703 # MS-DOS does not allow filenames that begin with a dot.
13706 rmdir .libs 2>/dev/null
13708 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13709 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13710 objdir=$lt_cv_objdir
13718 # AIX sometimes has problems with the GCC collect2 program. For some
13719 # reason, if we set the COLLECT_NAMES environment variable, the problems
13720 # vanish in a puff of smoke.
13721 if test "X${COLLECT_NAMES+set}" != Xset; then
13723 export COLLECT_NAMES
13728 # Sed substitution that helps us do robust quoting. It backslashifies
13729 # metacharacters that are still active within double-quoted strings.
13730 Xsed='sed -e 1s/^X//'
13731 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13733 # Same as above, but do not quote variable references.
13734 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13736 # Sed substitution to delay expansion of an escaped shell variable in a
13737 # double_quote_subst'ed string.
13738 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13740 # Sed substitution to avoid accidental globbing in evaled expressions
13741 no_glob_subst='s/\*/\\\*/g'
13746 # Global variables:
13747 default_ofile=mklib
13748 can_build_shared=yes
13750 # All known linkers require a `.a' archive for static linking (except MSVC,
13751 # which needs '.lib').
13753 ltmain="$ac_aux_dir/ltmain.sh"
13754 ofile="$default_ofile"
13755 with_gnu_ld="$lt_cv_prog_gnu_ld"
13757 if test -n "$ac_tool_prefix"; then
13758 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13759 set dummy ${ac_tool_prefix}ar; ac_word=$2
13760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13762 if test "${ac_cv_prog_AR+set}" = set; then
13763 echo $ECHO_N "(cached) $ECHO_C" >&6
13765 if test -n "$AR"; then
13766 ac_cv_prog_AR="$AR" # Let the user override the test.
13768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13769 for as_dir in $PATH
13772 test -z "$as_dir" && as_dir=.
13773 for ac_exec_ext in '' $ac_executable_extensions; do
13774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13775 ac_cv_prog_AR="${ac_tool_prefix}ar"
13776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13786 if test -n "$AR"; then
13787 { echo "$as_me:$LINENO: result: $AR" >&5
13788 echo "${ECHO_T}$AR" >&6; }
13790 { echo "$as_me:$LINENO: result: no" >&5
13791 echo "${ECHO_T}no" >&6; }
13796 if test -z "$ac_cv_prog_AR"; then
13798 # Extract the first word of "ar", so it can be a program name with args.
13799 set dummy ar; ac_word=$2
13800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13802 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6
13805 if test -n "$ac_ct_AR"; then
13806 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13809 for as_dir in $PATH
13812 test -z "$as_dir" && as_dir=.
13813 for ac_exec_ext in '' $ac_executable_extensions; do
13814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13815 ac_cv_prog_ac_ct_AR="ar"
13816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13825 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13826 if test -n "$ac_ct_AR"; then
13827 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13828 echo "${ECHO_T}$ac_ct_AR" >&6; }
13830 { echo "$as_me:$LINENO: result: no" >&5
13831 echo "${ECHO_T}no" >&6; }
13834 if test "x$ac_ct_AR" = x; then
13837 case $cross_compiling:$ac_tool_warned in
13839 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13840 whose name does not start with the host triplet. If you think this
13841 configuration is useful to you, please write to autoconf@gnu.org." >&5
13842 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13843 whose name does not start with the host triplet. If you think this
13844 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13845 ac_tool_warned=yes ;;
13850 AR="$ac_cv_prog_AR"
13853 if test -n "$ac_tool_prefix"; then
13854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13855 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13858 if test "${ac_cv_prog_RANLIB+set}" = set; then
13859 echo $ECHO_N "(cached) $ECHO_C" >&6
13861 if test -n "$RANLIB"; then
13862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13865 for as_dir in $PATH
13868 test -z "$as_dir" && as_dir=.
13869 for ac_exec_ext in '' $ac_executable_extensions; do
13870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13871 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13881 RANLIB=$ac_cv_prog_RANLIB
13882 if test -n "$RANLIB"; then
13883 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13884 echo "${ECHO_T}$RANLIB" >&6; }
13886 { echo "$as_me:$LINENO: result: no" >&5
13887 echo "${ECHO_T}no" >&6; }
13892 if test -z "$ac_cv_prog_RANLIB"; then
13893 ac_ct_RANLIB=$RANLIB
13894 # Extract the first word of "ranlib", so it can be a program name with args.
13895 set dummy ranlib; ac_word=$2
13896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13898 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13899 echo $ECHO_N "(cached) $ECHO_C" >&6
13901 if test -n "$ac_ct_RANLIB"; then
13902 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13905 for as_dir in $PATH
13908 test -z "$as_dir" && as_dir=.
13909 for ac_exec_ext in '' $ac_executable_extensions; do
13910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13911 ac_cv_prog_ac_ct_RANLIB="ranlib"
13912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13921 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13922 if test -n "$ac_ct_RANLIB"; then
13923 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13924 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13926 { echo "$as_me:$LINENO: result: no" >&5
13927 echo "${ECHO_T}no" >&6; }
13930 if test "x$ac_ct_RANLIB" = x; then
13933 case $cross_compiling:$ac_tool_warned in
13935 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13936 whose name does not start with the host triplet. If you think this
13937 configuration is useful to you, please write to autoconf@gnu.org." >&5
13938 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13939 whose name does not start with the host triplet. If you think this
13940 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13941 ac_tool_warned=yes ;;
13943 RANLIB=$ac_ct_RANLIB
13946 RANLIB="$ac_cv_prog_RANLIB"
13949 if test -n "$ac_tool_prefix"; then
13950 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13951 set dummy ${ac_tool_prefix}strip; ac_word=$2
13952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13954 if test "${ac_cv_prog_STRIP+set}" = set; then
13955 echo $ECHO_N "(cached) $ECHO_C" >&6
13957 if test -n "$STRIP"; then
13958 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13961 for as_dir in $PATH
13964 test -z "$as_dir" && as_dir=.
13965 for ac_exec_ext in '' $ac_executable_extensions; do
13966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13967 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13977 STRIP=$ac_cv_prog_STRIP
13978 if test -n "$STRIP"; then
13979 { echo "$as_me:$LINENO: result: $STRIP" >&5
13980 echo "${ECHO_T}$STRIP" >&6; }
13982 { echo "$as_me:$LINENO: result: no" >&5
13983 echo "${ECHO_T}no" >&6; }
13988 if test -z "$ac_cv_prog_STRIP"; then
13990 # Extract the first word of "strip", so it can be a program name with args.
13991 set dummy strip; ac_word=$2
13992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13994 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13997 if test -n "$ac_ct_STRIP"; then
13998 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14001 for as_dir in $PATH
14004 test -z "$as_dir" && as_dir=.
14005 for ac_exec_ext in '' $ac_executable_extensions; do
14006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14007 ac_cv_prog_ac_ct_STRIP="strip"
14008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14017 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14018 if test -n "$ac_ct_STRIP"; then
14019 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14020 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14022 { echo "$as_me:$LINENO: result: no" >&5
14023 echo "${ECHO_T}no" >&6; }
14026 if test "x$ac_ct_STRIP" = x; then
14029 case $cross_compiling:$ac_tool_warned in
14031 { echo "$as_me:$LINENO: 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." >&5
14034 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14035 whose name does not start with the host triplet. If you think this
14036 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14037 ac_tool_warned=yes ;;
14042 STRIP="$ac_cv_prog_STRIP"
14047 old_CFLAGS="$CFLAGS"
14049 # Set sane defaults for various variables
14050 test -z "$AR" && AR=ar
14051 test -z "$AR_FLAGS" && AR_FLAGS=cru
14052 test -z "$AS" && AS=as
14053 test -z "$CC" && CC=cc
14054 test -z "$LTCC" && LTCC=$CC
14055 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14056 test -z "$DLLTOOL" && DLLTOOL=dlltool
14057 test -z "$LD" && LD=ld
14058 test -z "$LN_S" && LN_S="ln -s"
14059 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14060 test -z "$NM" && NM=nm
14061 test -z "$SED" && SED=sed
14062 test -z "$OBJDUMP" && OBJDUMP=objdump
14063 test -z "$RANLIB" && RANLIB=:
14064 test -z "$STRIP" && STRIP=:
14065 test -z "$ac_objext" && ac_objext=o
14067 # Determine commands to create old-style static archives.
14068 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14069 old_postinstall_cmds='chmod 644 $oldlib'
14070 old_postuninstall_cmds=
14072 if test -n "$RANLIB"; then
14075 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14078 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14081 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14084 for cc_temp in $compiler""; do
14086 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14087 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14092 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14095 # Only perform the check for file, if the check method requires it
14096 case $deplibs_check_method in
14098 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14099 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14100 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14101 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14106 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14109 lt_save_MAGIC_CMD="$MAGIC_CMD"
14110 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14111 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14112 for ac_dir in $ac_dummy; do
14114 test -z "$ac_dir" && ac_dir=.
14115 if test -f $ac_dir/${ac_tool_prefix}file; then
14116 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14117 if test -n "$file_magic_test_file"; then
14118 case $deplibs_check_method in
14120 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14121 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14122 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14123 $EGREP "$file_magic_regex" > /dev/null; then
14128 *** Warning: the command libtool uses to detect shared libraries,
14129 *** $file_magic_cmd, produces output that libtool cannot recognize.
14130 *** The result is that libtool may fail to recognize shared libraries
14131 *** as such. This will affect the creation of libtool libraries that
14132 *** depend on shared libraries, but programs linked with such libtool
14133 *** libraries will work regardless of this problem. Nevertheless, you
14134 *** may want to report the problem to your system manager and/or to
14135 *** bug-libtool@gnu.org
14145 MAGIC_CMD="$lt_save_MAGIC_CMD"
14150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14151 if test -n "$MAGIC_CMD"; then
14152 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14153 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14155 { echo "$as_me:$LINENO: result: no" >&5
14156 echo "${ECHO_T}no" >&6; }
14159 if test -z "$lt_cv_path_MAGIC_CMD"; then
14160 if test -n "$ac_tool_prefix"; then
14161 { echo "$as_me:$LINENO: checking for file" >&5
14162 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14163 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14164 echo $ECHO_N "(cached) $ECHO_C" >&6
14168 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14171 lt_save_MAGIC_CMD="$MAGIC_CMD"
14172 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14173 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14174 for ac_dir in $ac_dummy; do
14176 test -z "$ac_dir" && ac_dir=.
14177 if test -f $ac_dir/file; then
14178 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14179 if test -n "$file_magic_test_file"; then
14180 case $deplibs_check_method in
14182 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14183 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14184 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14185 $EGREP "$file_magic_regex" > /dev/null; then
14190 *** Warning: the command libtool uses to detect shared libraries,
14191 *** $file_magic_cmd, produces output that libtool cannot recognize.
14192 *** The result is that libtool may fail to recognize shared libraries
14193 *** as such. This will affect the creation of libtool libraries that
14194 *** depend on shared libraries, but programs linked with such libtool
14195 *** libraries will work regardless of this problem. Nevertheless, you
14196 *** may want to report the problem to your system manager and/or to
14197 *** bug-libtool@gnu.org
14207 MAGIC_CMD="$lt_save_MAGIC_CMD"
14212 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14213 if test -n "$MAGIC_CMD"; then
14214 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14215 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14217 { echo "$as_me:$LINENO: result: no" >&5
14218 echo "${ECHO_T}no" >&6; }
14231 enable_win32_dll=no
14233 # Check whether --enable-libtool-lock was given.
14234 if test "${enable_libtool_lock+set}" = set; then
14235 enableval=$enable_libtool_lock;
14238 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14241 # Check whether --with-pic was given.
14242 if test "${with_pic+set}" = set; then
14243 withval=$with_pic; pic_mode="$withval"
14248 test -z "$pic_mode" && pic_mode=default
14250 # Use C for the default configuration in the libtool script
14254 ac_cpp='$CPP $CPPFLAGS'
14255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14260 # Source file extension for C test sources.
14263 # Object file extension for compiled C test sources.
14267 # Code to be used in simple compile tests
14268 lt_simple_compile_test_code="int some_variable = 0;\n"
14270 # Code to be used in simple link tests
14271 lt_simple_link_test_code='int main(){return(0);}\n'
14274 # If no C compiler was specified, use CC.
14277 # If no C compiler flags were specified, use CFLAGS.
14278 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14280 # Allow CC to be a program name with arguments.
14284 # save warnings/boilerplate of simple test code
14285 ac_outfile=conftest.$ac_objext
14286 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14287 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14288 _lt_compiler_boilerplate=`cat conftest.err`
14291 ac_outfile=conftest.$ac_objext
14292 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14293 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14294 _lt_linker_boilerplate=`cat conftest.err`
14299 lt_prog_compiler_no_builtin_flag=
14301 if test "$GCC" = yes; then
14302 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14305 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14306 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14307 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14308 echo $ECHO_N "(cached) $ECHO_C" >&6
14310 lt_cv_prog_compiler_rtti_exceptions=no
14311 ac_outfile=conftest.$ac_objext
14312 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14313 lt_compiler_flag="-fno-rtti -fno-exceptions"
14314 # Insert the option either (1) after the last *FLAGS variable, or
14315 # (2) before a word containing "conftest.", or (3) at the end.
14316 # Note that $ac_compile itself does not contain backslashes and begins
14317 # with a dollar sign (not a hyphen), so the echo should work correctly.
14318 # The option is referenced via a variable to avoid confusing sed.
14319 lt_compile=`echo "$ac_compile" | $SED \
14320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14322 -e 's:$: $lt_compiler_flag:'`
14323 (eval echo "\"\$as_me:14323: $lt_compile\"" >&5)
14324 (eval "$lt_compile" 2>conftest.err)
14326 cat conftest.err >&5
14327 echo "$as_me:14327: \$? = $ac_status" >&5
14328 if (exit $ac_status) && test -s "$ac_outfile"; then
14329 # The compiler can only warn and ignore the option if not recognized
14330 # So say no if there are warnings other than the usual output.
14331 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14332 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14333 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14334 lt_cv_prog_compiler_rtti_exceptions=yes
14340 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14341 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14343 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14344 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14351 lt_prog_compiler_wl=
14352 lt_prog_compiler_pic=
14353 lt_prog_compiler_static=
14355 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14356 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14358 if test "$GCC" = yes; then
14359 lt_prog_compiler_wl='-Wl,'
14360 lt_prog_compiler_static='-static'
14364 # All AIX code is PIC.
14365 if test "$host_cpu" = ia64; then
14366 # AIX 5 now supports IA64 processor
14367 lt_prog_compiler_static='-Bstatic'
14372 # FIXME: we need at least 68020 code to build shared libraries, but
14373 # adding the `-m68020' flag to GCC prevents building anything better,
14375 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14378 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14379 # PIC is the default for these OSes.
14382 mingw* | pw32* | os2*)
14383 # This hack is so that the source file can tell whether it is being
14384 # built for inclusion in a dll (and should export symbols for example).
14385 lt_prog_compiler_pic='-DDLL_EXPORT'
14388 darwin* | rhapsody*)
14389 # PIC is the default on this platform
14390 # Common symbols not allowed in MH_DYLIB files
14391 lt_prog_compiler_pic='-fno-common'
14395 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14396 # Instead, we relocate shared libraries at runtime.
14400 # Just because we use GCC doesn't mean we suddenly get shared libraries
14401 # on systems that don't support them.
14402 lt_prog_compiler_can_build_shared=no
14407 if test -d /usr/nec; then
14408 lt_prog_compiler_pic=-Kconform_pic
14413 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14414 # not for PA HP-UX.
14420 lt_prog_compiler_pic='-fPIC'
14426 lt_prog_compiler_pic='-fPIC'
14430 # PORTME Check for flag to pass linker flags through the system compiler.
14433 lt_prog_compiler_wl='-Wl,'
14434 if test "$host_cpu" = ia64; then
14435 # AIX 5 now supports IA64 processor
14436 lt_prog_compiler_static='-Bstatic'
14438 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14442 # PIC is the default on this platform
14443 # Common symbols not allowed in MH_DYLIB files
14444 case $cc_basename in
14446 lt_prog_compiler_pic='-qnocommon'
14447 lt_prog_compiler_wl='-Wl,'
14452 mingw* | pw32* | os2*)
14453 # This hack is so that the source file can tell whether it is being
14454 # built for inclusion in a dll (and should export symbols for example).
14455 lt_prog_compiler_pic='-DDLL_EXPORT'
14458 hpux9* | hpux10* | hpux11*)
14459 lt_prog_compiler_wl='-Wl,'
14460 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14461 # not for PA HP-UX.
14467 lt_prog_compiler_pic='+Z'
14470 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14471 lt_prog_compiler_static='${wl}-a ${wl}archive'
14474 irix5* | irix6* | nonstopux*)
14475 lt_prog_compiler_wl='-Wl,'
14476 # PIC (with -KPIC) is the default.
14477 lt_prog_compiler_static='-non_shared'
14481 lt_prog_compiler_pic='-KPIC'
14482 lt_prog_compiler_static='-Bstatic'
14486 case $cc_basename in
14488 lt_prog_compiler_wl='-Wl,'
14489 lt_prog_compiler_pic='-KPIC'
14490 lt_prog_compiler_static='-static'
14492 pgcc* | pgf77* | pgf90* | pgf95*)
14493 # Portland Group compilers (*not* the Pentium gcc compiler,
14494 # which looks to be a dead project)
14495 lt_prog_compiler_wl='-Wl,'
14496 lt_prog_compiler_pic='-fpic'
14497 lt_prog_compiler_static='-Bstatic'
14500 lt_prog_compiler_wl='-Wl,'
14501 # All Alpha code is PIC.
14502 lt_prog_compiler_static='-non_shared'
14507 osf3* | osf4* | osf5*)
14508 lt_prog_compiler_wl='-Wl,'
14509 # All OSF/1 code is PIC.
14510 lt_prog_compiler_static='-non_shared'
14514 lt_prog_compiler_pic='-KPIC'
14515 lt_prog_compiler_static='-Bstatic'
14516 case $cc_basename in
14517 f77* | f90* | f95*)
14518 lt_prog_compiler_wl='-Qoption ld ';;
14520 lt_prog_compiler_wl='-Wl,';;
14525 lt_prog_compiler_wl='-Qoption ld '
14526 lt_prog_compiler_pic='-PIC'
14527 lt_prog_compiler_static='-Bstatic'
14530 sysv4 | sysv4.2uw2* | sysv4.3*)
14531 lt_prog_compiler_wl='-Wl,'
14532 lt_prog_compiler_pic='-KPIC'
14533 lt_prog_compiler_static='-Bstatic'
14537 if test -d /usr/nec ;then
14538 lt_prog_compiler_pic='-Kconform_pic'
14539 lt_prog_compiler_static='-Bstatic'
14543 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14544 lt_prog_compiler_wl='-Wl,'
14545 lt_prog_compiler_pic='-KPIC'
14546 lt_prog_compiler_static='-Bstatic'
14550 lt_prog_compiler_wl='-Wl,'
14551 lt_prog_compiler_can_build_shared=no
14555 lt_prog_compiler_pic='-pic'
14556 lt_prog_compiler_static='-Bstatic'
14560 lt_prog_compiler_can_build_shared=no
14565 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14566 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14569 # Check to make sure the PIC flag actually works.
14571 if test -n "$lt_prog_compiler_pic"; then
14573 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14574 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14575 if test "${lt_prog_compiler_pic_works+set}" = set; then
14576 echo $ECHO_N "(cached) $ECHO_C" >&6
14578 lt_prog_compiler_pic_works=no
14579 ac_outfile=conftest.$ac_objext
14580 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14581 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14582 # Insert the option either (1) after the last *FLAGS variable, or
14583 # (2) before a word containing "conftest.", or (3) at the end.
14584 # Note that $ac_compile itself does not contain backslashes and begins
14585 # with a dollar sign (not a hyphen), so the echo should work correctly.
14586 # The option is referenced via a variable to avoid confusing sed.
14587 lt_compile=`echo "$ac_compile" | $SED \
14588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14590 -e 's:$: $lt_compiler_flag:'`
14591 (eval echo "\"\$as_me:14591: $lt_compile\"" >&5)
14592 (eval "$lt_compile" 2>conftest.err)
14594 cat conftest.err >&5
14595 echo "$as_me:14595: \$? = $ac_status" >&5
14596 if (exit $ac_status) && test -s "$ac_outfile"; then
14597 # The compiler can only warn and ignore the option if not recognized
14598 # So say no if there are warnings other than the usual output.
14599 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14600 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14601 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14602 lt_prog_compiler_pic_works=yes
14608 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14609 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14611 if test x"$lt_prog_compiler_pic_works" = xyes; then
14612 case $lt_prog_compiler_pic in
14614 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14617 lt_prog_compiler_pic=
14618 lt_prog_compiler_can_build_shared=no
14623 # For platforms which do not support PIC, -DPIC is meaningless:
14625 lt_prog_compiler_pic=
14628 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14633 # Check to make sure the static flag actually works.
14635 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14636 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14637 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14638 if test "${lt_prog_compiler_static_works+set}" = set; then
14639 echo $ECHO_N "(cached) $ECHO_C" >&6
14641 lt_prog_compiler_static_works=no
14642 save_LDFLAGS="$LDFLAGS"
14643 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14644 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14645 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14646 # The linker can only warn and ignore the option if not recognized
14647 # So say no if there are warnings
14648 if test -s conftest.err; then
14649 # Append any errors to the config.log.
14650 cat conftest.err 1>&5
14651 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14653 if diff conftest.exp conftest.er2 >/dev/null; then
14654 lt_prog_compiler_static_works=yes
14657 lt_prog_compiler_static_works=yes
14661 LDFLAGS="$save_LDFLAGS"
14664 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14665 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14667 if test x"$lt_prog_compiler_static_works" = xyes; then
14670 lt_prog_compiler_static=
14674 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14675 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14676 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
14679 lt_cv_prog_compiler_c_o=no
14680 $rm -r conftest 2>/dev/null
14684 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14686 lt_compiler_flag="-o out/conftest2.$ac_objext"
14687 # Insert the option either (1) after the last *FLAGS variable, or
14688 # (2) before a word containing "conftest.", or (3) at the end.
14689 # Note that $ac_compile itself does not contain backslashes and begins
14690 # with a dollar sign (not a hyphen), so the echo should work correctly.
14691 lt_compile=`echo "$ac_compile" | $SED \
14692 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14694 -e 's:$: $lt_compiler_flag:'`
14695 (eval echo "\"\$as_me:14695: $lt_compile\"" >&5)
14696 (eval "$lt_compile" 2>out/conftest.err)
14698 cat out/conftest.err >&5
14699 echo "$as_me:14699: \$? = $ac_status" >&5
14700 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14702 # The compiler can only warn and ignore the option if not recognized
14703 # So say no if there are warnings
14704 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14705 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14706 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14707 lt_cv_prog_compiler_c_o=yes
14712 # SGI C++ compiler will create directory out/ii_files/ for
14713 # template instantiation
14714 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14715 $rm out/* && rmdir out
14721 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14722 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14725 hard_links="nottested"
14726 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14727 # do not overwrite the value of need_locks provided by the user
14728 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14729 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14732 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14734 ln conftest.a conftest.b 2>&5 || hard_links=no
14735 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14736 { echo "$as_me:$LINENO: result: $hard_links" >&5
14737 echo "${ECHO_T}$hard_links" >&6; }
14738 if test "$hard_links" = no; then
14739 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14740 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14747 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14748 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14751 allow_undefined_flag=
14752 enable_shared_with_static_runtimes=no
14754 archive_expsym_cmds=
14755 old_archive_From_new_cmds=
14756 old_archive_from_expsyms_cmds=
14757 export_dynamic_flag_spec=
14758 whole_archive_flag_spec=
14759 thread_safe_flag_spec=
14760 hardcode_libdir_flag_spec=
14761 hardcode_libdir_flag_spec_ld=
14762 hardcode_libdir_separator=
14764 hardcode_minus_L=no
14765 hardcode_shlibpath_var=unsupported
14766 link_all_deplibs=unknown
14767 hardcode_automatic=no
14769 module_expsym_cmds=
14770 always_export_symbols=no
14771 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14772 # include_expsyms should be a list of space-separated symbols to be *always*
14773 # included in the symbol list
14775 # exclude_expsyms can be an extended regexp of symbols to exclude
14776 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14777 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14778 # as well as any symbol that contains `d'.
14779 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14780 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14781 # platforms (ab)use it in PIC code, but their linkers get confused if
14782 # the symbol is explicitly referenced. Since portable code cannot
14783 # rely on this symbol name, it's probably fine to never include it in
14784 # preloaded symbol tables.
14785 extract_expsyms_cmds=
14786 # Just being paranoid about ensuring that cc_basename is set.
14787 for cc_temp in $compiler""; do
14789 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14790 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14795 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14798 cygwin* | mingw* | pw32*)
14799 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14800 # When not using gcc, we currently assume that we are using
14801 # Microsoft Visual C++.
14802 if test "$GCC" != yes; then
14807 # we just hope/assume this is gcc and not c89 (= MSVC++)
14816 if test "$with_gnu_ld" = yes; then
14817 # If archive_cmds runs LD, not CC, wlarc should be empty
14820 # Set some defaults for GNU ld with shared library support. These
14821 # are reset later if shared libraries are not supported. Putting them
14822 # here allows them to be overridden if necessary.
14823 runpath_var=LD_RUN_PATH
14824 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14825 export_dynamic_flag_spec='${wl}--export-dynamic'
14826 # ancient GNU ld didn't support --whole-archive et. al.
14827 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14828 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14830 whole_archive_flag_spec=
14832 supports_anon_versioning=no
14833 case `$LD -v 2>/dev/null` in
14834 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14835 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14836 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14837 *\ 2.11.*) ;; # other 2.11 versions
14838 *) supports_anon_versioning=yes ;;
14841 # See if GNU ld supports shared libraries.
14843 aix3* | aix4* | aix5*)
14844 # On AIX/PPC, the GNU linker is very broken
14845 if test "$host_cpu" != ia64; then
14849 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14850 *** to be unable to reliably create shared libraries on AIX.
14851 *** Therefore, libtool is disabling shared libraries support. If you
14852 *** really care for shared libraries, you may want to modify your PATH
14853 *** so that a non-GNU linker is found, and then restart.
14860 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)'
14861 hardcode_libdir_flag_spec='-L$libdir'
14862 hardcode_minus_L=yes
14864 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14865 # that the semantics of dynamic libraries on AmigaOS, at least up
14866 # to version 4, is to share data among multiple programs linked
14867 # with the same dynamic library. Since this doesn't match the
14868 # behavior of shared libraries on other platforms, we can't use
14874 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14875 allow_undefined_flag=unsupported
14876 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14877 # support --undefined. This deserves some investigation. FIXME
14878 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14884 cygwin* | mingw* | pw32*)
14885 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14886 # as there is no search path for DLLs.
14887 hardcode_libdir_flag_spec='-L$libdir'
14888 allow_undefined_flag=unsupported
14889 always_export_symbols=no
14890 enable_shared_with_static_runtimes=yes
14891 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14893 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14895 # If the export-symbols file already is a .def file (1st line
14896 # is EXPORTS), use it as is; otherwise, prepend...
14897 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14898 cp $export_symbols $output_objdir/$soname.def;
14900 echo EXPORTS > $output_objdir/$soname.def;
14901 cat $export_symbols >> $output_objdir/$soname.def;
14903 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14911 hardcode_shlibpath_var=no
14912 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14913 export_dynamic_flag_spec='${wl}-E'
14914 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14915 # Instead, shared libraries are loaded at an image base (0x10000000 by
14916 # default) and relocated if they conflict, which is a slow very memory
14917 # consuming and fragmenting process. To avoid this, we pick a random,
14918 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14919 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14920 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14921 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'
14925 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14927 case $cc_basename,$host_cpu in
14928 pgcc*) # Portland Group C compiler
14929 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'
14930 tmp_addflag=' $pic_flag'
14932 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14933 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'
14934 tmp_addflag=' $pic_flag -Mnomain' ;;
14935 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14936 tmp_addflag=' -i_dynamic' ;;
14937 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14938 tmp_addflag=' -i_dynamic -nofor_main' ;;
14939 ifc* | ifort*) # Intel Fortran compiler
14940 tmp_addflag=' -nofor_main' ;;
14942 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14944 if test $supports_anon_versioning = yes; then
14945 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14946 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14947 $echo "local: *; };" >> $output_objdir/$libname.ver~
14948 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14956 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14957 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14961 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14966 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14970 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14971 *** create shared libraries on Solaris systems. Therefore, libtool
14972 *** is disabling shared libraries support. We urge you to upgrade GNU
14973 *** binutils to release 2.9.1 or newer. Another option is to modify
14974 *** your PATH or compiler configuration so that the native linker is
14975 *** used, and then restart.
14978 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14980 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14986 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14987 case `$LD -v 2>&1` in
14988 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14992 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14993 *** reliably create shared libraries on SCO systems. Therefore, libtool
14994 *** is disabling shared libraries support. We urge you to upgrade GNU
14995 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14996 *** your PATH or compiler configuration so that the native linker is
14997 *** used, and then restart.
15002 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15003 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15004 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15005 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15014 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15016 hardcode_direct=yes
15017 hardcode_shlibpath_var=no
15021 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15023 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15030 if test "$ld_shlibs" = no; then
15032 hardcode_libdir_flag_spec=
15033 export_dynamic_flag_spec=
15034 whole_archive_flag_spec=
15037 # PORTME fill in a description of your system's linker (not GNU ld)
15040 allow_undefined_flag=unsupported
15041 always_export_symbols=yes
15042 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'
15043 # Note: this linker hardcodes the directories in LIBPATH if there
15044 # are no directories specified by -L.
15045 hardcode_minus_L=yes
15046 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15047 # Neither direct hardcoding nor static linking is supported with a
15049 hardcode_direct=unsupported
15054 if test "$host_cpu" = ia64; then
15055 # On IA64, the linker does run time linking by default, so we don't
15056 # have to do anything special.
15057 aix_use_runtimelinking=no
15058 exp_sym_flag='-Bexport'
15061 # If we're using GNU nm, then we don't want the "-C" option.
15062 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15063 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15064 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'
15066 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'
15068 aix_use_runtimelinking=no
15070 # Test if we are trying to use run time linking or normal
15071 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15072 # need to do runtime linking.
15073 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15074 for ld_flag in $LDFLAGS; do
15075 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15076 aix_use_runtimelinking=yes
15083 exp_sym_flag='-bexport'
15084 no_entry_flag='-bnoentry'
15087 # When large executables or shared objects are built, AIX ld can
15088 # have problems creating the table of contents. If linking a library
15089 # or program results in "error TOC overflow" add -mminimal-toc to
15090 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15091 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15094 hardcode_direct=yes
15095 hardcode_libdir_separator=':'
15096 link_all_deplibs=yes
15098 if test "$GCC" = yes; then
15099 case $host_os in aix4.[012]|aix4.[012].*)
15100 # We only want to do this on AIX 4.2 and lower, the check
15101 # below for broken collect2 doesn't work under 4.3+
15102 collect2name=`${CC} -print-prog-name=collect2`
15103 if test -f "$collect2name" && \
15104 strings "$collect2name" | grep resolve_lib_name >/dev/null
15106 # We have reworked collect2
15107 hardcode_direct=yes
15109 # We have old collect2
15110 hardcode_direct=unsupported
15111 # It fails to find uninstalled libraries when the uninstalled
15112 # path is not listed in the libpath. Setting hardcode_minus_L
15113 # to unsupported forces relinking
15114 hardcode_minus_L=yes
15115 hardcode_libdir_flag_spec='-L$libdir'
15116 hardcode_libdir_separator=
15120 shared_flag='-shared'
15121 if test "$aix_use_runtimelinking" = yes; then
15122 shared_flag="$shared_flag "'${wl}-G'
15126 if test "$host_cpu" = ia64; then
15127 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15128 # chokes on -Wl,-G. The following line is correct:
15131 if test "$aix_use_runtimelinking" = yes; then
15132 shared_flag='${wl}-G'
15134 shared_flag='${wl}-bM:SRE'
15139 # It seems that -bexpall does not export symbols beginning with
15140 # underscore (_), so it is better to generate a list of symbols to export.
15141 always_export_symbols=yes
15142 if test "$aix_use_runtimelinking" = yes; then
15143 # Warning - without using the other runtime loading flags (-brtl),
15144 # -berok will link without error, but may produce a broken library.
15145 allow_undefined_flag='-berok'
15146 # Determine the default libpath from the value encoded in an empty executable.
15147 cat >conftest.$ac_ext <<_ACEOF
15150 cat confdefs.h >>conftest.$ac_ext
15151 cat >>conftest.$ac_ext <<_ACEOF
15152 /* end confdefs.h. */
15162 rm -f conftest.$ac_objext conftest$ac_exeext
15163 if { (ac_try="$ac_link"
15164 case "(($ac_try" in
15165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15166 *) ac_try_echo=$ac_try;;
15168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15169 (eval "$ac_link") 2>conftest.er1
15171 grep -v '^ *+' conftest.er1 >conftest.err
15173 cat conftest.err >&5
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); } &&
15176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15177 { (case "(($ac_try" in
15178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15179 *) ac_try_echo=$ac_try;;
15181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15182 (eval "$ac_try") 2>&5
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; } &&
15186 { ac_try='test -s conftest$ac_exeext'
15187 { (case "(($ac_try" in
15188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15189 *) ac_try_echo=$ac_try;;
15191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15192 (eval "$ac_try") 2>&5
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); }; }; then
15197 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15199 # Check for a 64-bit object if we didn't find anything.
15200 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; }
15203 echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15209 rm -f core conftest.err conftest.$ac_objext \
15210 conftest$ac_exeext conftest.$ac_ext
15211 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15213 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15214 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"
15216 if test "$host_cpu" = ia64; then
15217 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15218 allow_undefined_flag="-z nodefs"
15219 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"
15221 # Determine the default libpath from the value encoded in an empty executable.
15222 cat >conftest.$ac_ext <<_ACEOF
15225 cat confdefs.h >>conftest.$ac_ext
15226 cat >>conftest.$ac_ext <<_ACEOF
15227 /* end confdefs.h. */
15237 rm -f conftest.$ac_objext conftest$ac_exeext
15238 if { (ac_try="$ac_link"
15239 case "(($ac_try" in
15240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241 *) ac_try_echo=$ac_try;;
15243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244 (eval "$ac_link") 2>conftest.er1
15246 grep -v '^ *+' conftest.er1 >conftest.err
15248 cat conftest.err >&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); } &&
15251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15252 { (case "(($ac_try" in
15253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254 *) ac_try_echo=$ac_try;;
15256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15257 (eval "$ac_try") 2>&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; } &&
15261 { ac_try='test -s conftest$ac_exeext'
15262 { (case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267 (eval "$ac_try") 2>&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; }; then
15272 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15274 # Check for a 64-bit object if we didn't find anything.
15275 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; }
15278 echo "$as_me: failed program was:" >&5
15279 sed 's/^/| /' conftest.$ac_ext >&5
15284 rm -f core conftest.err conftest.$ac_objext \
15285 conftest$ac_exeext conftest.$ac_ext
15286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15288 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15289 # Warning - without using the other run time loading flags,
15290 # -berok will link without error, but may produce a broken library.
15291 no_undefined_flag=' ${wl}-bernotok'
15292 allow_undefined_flag=' ${wl}-berok'
15293 # Exported symbols can be pulled into shared objects from archives
15294 whole_archive_flag_spec='$convenience'
15295 archive_cmds_need_lc=yes
15296 # This is similar to how AIX traditionally builds its shared libraries.
15297 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'
15303 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)'
15304 hardcode_libdir_flag_spec='-L$libdir'
15305 hardcode_minus_L=yes
15306 # see comment about different semantics on the GNU ld section
15311 export_dynamic_flag_spec=-rdynamic
15314 cygwin* | mingw* | pw32*)
15315 # When not using gcc, we currently assume that we are using
15316 # Microsoft Visual C++.
15317 # hardcode_libdir_flag_spec is actually meaningless, as there is
15318 # no search path for DLLs.
15319 hardcode_libdir_flag_spec=' '
15320 allow_undefined_flag=unsupported
15321 # Tell ltmain to make .lib files, not .a files.
15323 # Tell ltmain to make .dll files, not .so files.
15325 # FIXME: Setting linknames here is a bad hack.
15326 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15327 # The linker will automatically build a .lib file if we build a DLL.
15328 old_archive_From_new_cmds='true'
15329 # FIXME: Should let the user specify the lib program.
15330 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15331 fix_srcfile_path='`cygpath -w "$srcfile"`'
15332 enable_shared_with_static_runtimes=yes
15335 darwin* | rhapsody*)
15337 rhapsody* | darwin1.[012])
15338 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15341 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15342 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15344 case ${MACOSX_DEPLOYMENT_TARGET} in
15346 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15349 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15355 archive_cmds_need_lc=no
15357 hardcode_automatic=yes
15358 hardcode_shlibpath_var=unsupported
15359 whole_archive_flag_spec=''
15360 link_all_deplibs=yes
15361 if test "$GCC" = yes ; then
15362 output_verbose_link_cmd='echo'
15363 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15364 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15365 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15366 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}'
15367 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}'
15369 case $cc_basename in
15371 output_verbose_link_cmd='echo'
15372 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15373 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15374 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15375 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}'
15376 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}'
15386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15387 hardcode_libdir_flag_spec='-L$libdir'
15388 hardcode_shlibpath_var=no
15395 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15396 # support. Future versions do this automatically, but an explicit c++rt0.o
15397 # does not break anything, and helps significantly (at the cost of a little
15400 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15401 hardcode_libdir_flag_spec='-R$libdir'
15402 hardcode_direct=yes
15403 hardcode_shlibpath_var=no
15406 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15408 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15409 hardcode_direct=yes
15410 hardcode_minus_L=yes
15411 hardcode_shlibpath_var=no
15414 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15415 freebsd* | kfreebsd*-gnu | dragonfly*)
15416 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15417 hardcode_libdir_flag_spec='-R$libdir'
15418 hardcode_direct=yes
15419 hardcode_shlibpath_var=no
15423 if test "$GCC" = yes; then
15424 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'
15426 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'
15428 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15429 hardcode_libdir_separator=:
15430 hardcode_direct=yes
15432 # hardcode_minus_L: Not really in the search PATH,
15433 # but as the default location of the library.
15434 hardcode_minus_L=yes
15435 export_dynamic_flag_spec='${wl}-E'
15439 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15440 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15442 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15444 if test "$with_gnu_ld" = no; then
15445 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15446 hardcode_libdir_separator=:
15448 hardcode_direct=yes
15449 export_dynamic_flag_spec='${wl}-E'
15451 # hardcode_minus_L: Not really in the search PATH,
15452 # but as the default location of the library.
15453 hardcode_minus_L=yes
15458 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15461 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15464 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15467 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15473 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15476 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15479 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15483 if test "$with_gnu_ld" = no; then
15484 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15485 hardcode_libdir_separator=:
15489 hardcode_libdir_flag_spec_ld='+b $libdir'
15491 hardcode_shlibpath_var=no
15494 hardcode_direct=yes
15495 export_dynamic_flag_spec='${wl}-E'
15497 # hardcode_minus_L: Not really in the search PATH,
15498 # but as the default location of the library.
15499 hardcode_minus_L=yes
15505 irix5* | irix6* | nonstopux*)
15506 if test "$GCC" = yes; then
15507 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'
15509 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'
15510 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15512 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15513 hardcode_libdir_separator=:
15514 link_all_deplibs=yes
15518 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15519 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15521 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15523 hardcode_libdir_flag_spec='-R$libdir'
15524 hardcode_direct=yes
15525 hardcode_shlibpath_var=no
15529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15530 hardcode_direct=yes
15531 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15532 hardcode_libdir_separator=:
15533 hardcode_shlibpath_var=no
15537 hardcode_direct=yes
15538 hardcode_shlibpath_var=no
15539 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15540 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15541 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15542 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15543 export_dynamic_flag_spec='${wl}-E'
15546 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15548 hardcode_libdir_flag_spec='-R$libdir'
15551 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15552 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15559 hardcode_libdir_flag_spec='-L$libdir'
15560 hardcode_minus_L=yes
15561 allow_undefined_flag=unsupported
15562 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'
15563 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15567 if test "$GCC" = yes; then
15568 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15569 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'
15571 allow_undefined_flag=' -expect_unresolved \*'
15572 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'
15574 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15575 hardcode_libdir_separator=:
15578 osf4* | osf5*) # as osf3* with the addition of -msym flag
15579 if test "$GCC" = yes; then
15580 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15581 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'
15582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15584 allow_undefined_flag=' -expect_unresolved \*'
15585 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'
15586 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15587 $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'
15589 # Both c and cxx compiler support -rpath directly
15590 hardcode_libdir_flag_spec='-rpath $libdir'
15592 hardcode_libdir_separator=:
15596 no_undefined_flag=' -z text'
15597 if test "$GCC" = yes; then
15599 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15600 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15601 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15604 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15605 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15606 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15608 hardcode_libdir_flag_spec='-R$libdir'
15609 hardcode_shlibpath_var=no
15611 solaris2.[0-5] | solaris2.[0-5].*) ;;
15613 # The compiler driver will combine linker options so we
15614 # cannot just pass the convience library names through
15615 # without $wl, iff we do not link with $LD.
15616 # Luckily, gcc supports the same syntax we need for Sun Studio.
15617 # Supported since Solaris 2.6 (maybe 2.5.1?)
15620 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15622 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' ;;
15625 link_all_deplibs=yes
15629 if test "x$host_vendor" = xsequent; then
15630 # Use $CC to link under sequent, because it throws in some extra .o
15631 # files that make .init and .fini sections work.
15632 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15634 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15636 hardcode_libdir_flag_spec='-L$libdir'
15637 hardcode_direct=yes
15638 hardcode_minus_L=yes
15639 hardcode_shlibpath_var=no
15643 case $host_vendor in
15645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15646 hardcode_direct=yes # is this really true???
15649 ## LD is ld it makes a PLAMLIB
15650 ## CC just makes a GrossModule.
15651 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15652 reload_cmds='$CC -r -o $output$reload_objs'
15656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15657 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15660 runpath_var='LD_RUN_PATH'
15661 hardcode_shlibpath_var=no
15665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15666 hardcode_shlibpath_var=no
15667 export_dynamic_flag_spec='-Bexport'
15671 if test -d /usr/nec; then
15672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15673 hardcode_shlibpath_var=no
15674 runpath_var=LD_RUN_PATH
15675 hardcode_runpath_var=yes
15680 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15681 no_undefined_flag='${wl}-z,text'
15682 archive_cmds_need_lc=no
15683 hardcode_shlibpath_var=no
15684 runpath_var='LD_RUN_PATH'
15686 if test "$GCC" = yes; then
15687 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15688 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15690 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15691 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15695 sysv5* | sco3.2v5* | sco5v6*)
15696 # Note: We can NOT use -z defs as we might desire, because we do not
15697 # link with -lc, and that would cause any symbols used from libc to
15698 # always be unresolved, which means just about no library would
15699 # ever link correctly. If we're not using GNU ld we use -z text
15700 # though, which does catch some bad symbols but isn't as heavy-handed
15702 no_undefined_flag='${wl}-z,text'
15703 allow_undefined_flag='${wl}-z,nodefs'
15704 archive_cmds_need_lc=no
15705 hardcode_shlibpath_var=no
15706 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15707 hardcode_libdir_separator=':'
15708 link_all_deplibs=yes
15709 export_dynamic_flag_spec='${wl}-Bexport'
15710 runpath_var='LD_RUN_PATH'
15712 if test "$GCC" = yes; then
15713 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15714 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15716 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15717 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15723 hardcode_libdir_flag_spec='-L$libdir'
15724 hardcode_shlibpath_var=no
15733 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15734 echo "${ECHO_T}$ld_shlibs" >&6; }
15735 test "$ld_shlibs" = no && can_build_shared=no
15738 # Do we need to explicitly link libc?
15740 case "x$archive_cmds_need_lc" in
15742 # Assume -lc should be added
15743 archive_cmds_need_lc=yes
15745 if test "$enable_shared" = yes && test "$GCC" = yes; then
15746 case $archive_cmds in
15748 # FIXME: we may have to deal with multi-command sequences.
15751 # Test whether the compiler implicitly links with -lc since on some
15752 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15753 # to ld, don't add -lc before -lgcc.
15754 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15755 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15757 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15760 (eval $ac_compile) 2>&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); } 2>conftest.err; then
15766 libobjs=conftest.$ac_objext
15768 wl=$lt_prog_compiler_wl
15769 pic_flag=$lt_prog_compiler_pic
15775 lt_save_allow_undefined_flag=$allow_undefined_flag
15776 allow_undefined_flag=
15777 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15778 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); }
15783 archive_cmds_need_lc=no
15785 archive_cmds_need_lc=yes
15787 allow_undefined_flag=$lt_save_allow_undefined_flag
15789 cat conftest.err 1>&5
15792 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15793 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15800 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15801 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15802 library_names_spec=
15803 libname_spec='lib$name'
15807 postuninstall_cmds=
15811 shlibpath_overrides_runpath=unknown
15813 dynamic_linker="$host_os ld.so"
15814 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15815 if test "$GCC" = yes; then
15816 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15817 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15818 # if the path contains ";" then we assume it to be the separator
15819 # otherwise default to the standard path separator (i.e. ":") - it is
15820 # assumed that no part of a normal pathname contains ";" but that should
15821 # okay in the real world where ";" in dirpaths is itself problematic.
15822 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15824 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15827 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15829 need_lib_prefix=unknown
15830 hardcode_into_libs=no
15832 # when you set need_version to no, make sure it does not cause -set_version
15833 # flags to be left without arguments
15834 need_version=unknown
15839 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15840 shlibpath_var=LIBPATH
15842 # AIX 3 has no versioning support, so we append a major version to the name.
15843 soname_spec='${libname}${release}${shared_ext}$major'
15850 hardcode_into_libs=yes
15851 if test "$host_cpu" = ia64; then
15852 # AIX 5 supports IA64
15853 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15854 shlibpath_var=LD_LIBRARY_PATH
15856 # With GCC up to 2.95.x, collect2 would create an import file
15857 # for dependence libraries. The import file would start with
15858 # the line `#! .'. This would cause the generated library to
15859 # depend on `.', always an invalid library. This was fixed in
15860 # development snapshots of GCC prior to 3.0.
15862 aix4 | aix4.[01] | aix4.[01].*)
15863 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15865 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15868 can_build_shared=no
15872 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15873 # soname into executable. Probably we can add versioning support to
15874 # collect2, so additional links can be useful in future.
15875 if test "$aix_use_runtimelinking" = yes; then
15876 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15877 # instead of lib<name>.a to let people know that these are not
15878 # typical AIX shared libraries.
15879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15881 # We preserve .a as extension for shared libraries through AIX4.2
15882 # and later when we are not doing run time linking.
15883 library_names_spec='${libname}${release}.a $libname.a'
15884 soname_spec='${libname}${release}${shared_ext}$major'
15886 shlibpath_var=LIBPATH
15891 library_names_spec='$libname.ixlibrary $libname.a'
15892 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15893 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'
15897 library_names_spec='${libname}${shared_ext}'
15898 dynamic_linker="$host_os ld.so"
15899 shlibpath_var=LIBRARY_PATH
15905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15906 soname_spec='${libname}${release}${shared_ext}$major'
15907 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15908 shlibpath_var=LD_LIBRARY_PATH
15909 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15910 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15911 # the default ld.so.conf also contains /usr/contrib/lib and
15912 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15913 # libtool to hard-code these into programs
15916 cygwin* | mingw* | pw32*)
15917 version_type=windows
15922 case $GCC,$host_os in
15923 yes,cygwin* | yes,mingw* | yes,pw32*)
15924 library_names_spec='$libname.dll.a'
15925 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15926 postinstall_cmds='base_file=`basename \${file}`~
15927 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15928 dldir=$destdir/`dirname \$dlpath`~
15929 test -d \$dldir || mkdir -p \$dldir~
15930 $install_prog $dir/$dlname \$dldir/$dlname~
15931 chmod a+x \$dldir/$dlname'
15932 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15933 dlpath=$dir/\$dldll~
15935 shlibpath_overrides_runpath=yes
15939 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15940 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15941 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15944 # MinGW DLLs use traditional 'lib' prefix
15945 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15946 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15947 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15948 # It is most probably a Windows format PATH printed by
15949 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15950 # path with ; separators, and with drive letters. We can handle the
15951 # drive letters (cygwin fileutils understands them), so leave them,
15952 # especially as we might pass files found there to a mingw objdump,
15953 # which wouldn't understand a cygwinified path. Ahh.
15954 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15956 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15960 # pw32 DLLs use 'pw' prefix rather than 'lib'
15961 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15967 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15970 dynamic_linker='Win32 ld.exe'
15971 # FIXME: first we should search . and the directory the executable is in
15975 darwin* | rhapsody*)
15976 dynamic_linker="$host_os dyld"
15977 version_type=darwin
15980 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15981 soname_spec='${libname}${release}${major}$shared_ext'
15982 shlibpath_overrides_runpath=yes
15983 shlibpath_var=DYLD_LIBRARY_PATH
15984 shrext_cmds='.dylib'
15985 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15986 if test "$GCC" = yes; then
15987 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"`
15989 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15991 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15999 soname_spec='${libname}${release}${shared_ext}$major'
16000 shlibpath_var=LD_LIBRARY_PATH
16011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16012 soname_spec='${libname}${release}${shared_ext}$major'
16013 shlibpath_var=LD_LIBRARY_PATH
16014 shlibpath_overrides_runpath=no
16015 hardcode_into_libs=yes
16016 dynamic_linker='GNU ld.so'
16019 freebsd* | dragonfly*)
16020 # DragonFly does not have aout. When/if they implement a new
16021 # versioning mechanism, adjust this.
16022 if test -x /usr/bin/objformat; then
16023 objformat=`/usr/bin/objformat`
16026 freebsd[123]*) objformat=aout ;;
16027 *) objformat=elf ;;
16030 version_type=freebsd-$objformat
16031 case $version_type in
16033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16038 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16042 shlibpath_var=LD_LIBRARY_PATH
16045 shlibpath_overrides_runpath=yes
16047 freebsd3.[01]* | freebsdelf3.[01]*)
16048 shlibpath_overrides_runpath=yes
16049 hardcode_into_libs=yes
16051 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16052 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16053 shlibpath_overrides_runpath=no
16054 hardcode_into_libs=yes
16056 freebsd*) # from 4.6 on
16057 shlibpath_overrides_runpath=yes
16058 hardcode_into_libs=yes
16067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16068 soname_spec='${libname}${release}${shared_ext}$major'
16069 shlibpath_var=LD_LIBRARY_PATH
16070 hardcode_into_libs=yes
16073 hpux9* | hpux10* | hpux11*)
16074 # Give a soname corresponding to the major version so that dld.sl refuses to
16075 # link against other versions.
16082 hardcode_into_libs=yes
16083 dynamic_linker="$host_os dld.so"
16084 shlibpath_var=LD_LIBRARY_PATH
16085 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087 soname_spec='${libname}${release}${shared_ext}$major'
16088 if test "X$HPUX_IA64_MODE" = X32; then
16089 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16091 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16097 hardcode_into_libs=yes
16098 dynamic_linker="$host_os dld.sl"
16099 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16102 soname_spec='${libname}${release}${shared_ext}$major'
16103 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16104 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16108 dynamic_linker="$host_os dld.sl"
16109 shlibpath_var=SHLIB_PATH
16110 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16112 soname_spec='${libname}${release}${shared_ext}$major'
16115 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16116 postinstall_cmds='chmod 555 $lib'
16123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16124 soname_spec='${libname}${release}${shared_ext}$major'
16125 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16126 shlibpath_var=LD_LIBRARY_PATH
16127 shlibpath_overrides_runpath=no
16128 hardcode_into_libs=yes
16131 irix5* | irix6* | nonstopux*)
16133 nonstopux*) version_type=nonstopux ;;
16135 if test "$lt_cv_prog_gnu_ld" = yes; then
16143 soname_spec='${libname}${release}${shared_ext}$major'
16144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16146 irix5* | nonstopux*)
16147 libsuff= shlibsuff=
16150 case $LD in # libtool.m4 will add one of these switches to LD
16151 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16152 libsuff= shlibsuff= libmagic=32-bit;;
16153 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16154 libsuff=32 shlibsuff=N32 libmagic=N32;;
16155 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16156 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16157 *) libsuff= shlibsuff= libmagic=never-match;;
16161 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16162 shlibpath_overrides_runpath=no
16163 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16164 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16165 hardcode_into_libs=yes
16168 # No shared lib support for Linux oldld, aout, or coff.
16169 linux*oldld* | linux*aout* | linux*coff*)
16173 # This must be Linux ELF.
16178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16179 soname_spec='${libname}${release}${shared_ext}$major'
16180 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16181 shlibpath_var=LD_LIBRARY_PATH
16182 shlibpath_overrides_runpath=no
16183 # This implies no fast_install, which is unacceptable.
16184 # Some rework will be needed to allow for fast_install
16185 # before this can be enabled.
16186 hardcode_into_libs=yes
16188 # Append ld.so.conf contents to the search path
16189 if test -f /etc/ld.so.conf; then
16190 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' ' '`
16191 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16194 # We used to test for /lib/ld.so.1 and disable shared libraries on
16195 # powerpc, because MkLinux only supported shared libraries with the
16196 # GNU dynamic linker. Since this was broken with cross compilers,
16197 # most powerpc-linux boxes support dynamic linking these days and
16198 # people can always --disable-shared, the test was removed, and we
16199 # assume the GNU/Linux dynamic linker is in use.
16200 dynamic_linker='GNU/Linux ld.so'
16207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16208 soname_spec='${libname}${release}${shared_ext}$major'
16209 shlibpath_var=LD_LIBRARY_PATH
16210 shlibpath_overrides_runpath=no
16211 hardcode_into_libs=yes
16212 dynamic_linker='GNU ld.so'
16219 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16222 dynamic_linker='NetBSD (a.out) ld.so'
16224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16225 soname_spec='${libname}${release}${shared_ext}$major'
16226 dynamic_linker='NetBSD ld.elf_so'
16228 shlibpath_var=LD_LIBRARY_PATH
16229 shlibpath_overrides_runpath=yes
16230 hardcode_into_libs=yes
16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16236 shlibpath_var=LD_LIBRARY_PATH
16237 shlibpath_overrides_runpath=yes
16244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16245 soname_spec='${libname}${release}${shared_ext}$major'
16246 shlibpath_var=LD_LIBRARY_PATH
16247 shlibpath_overrides_runpath=yes
16252 sys_lib_dlsearch_path_spec="/usr/lib"
16254 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16256 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16257 *) need_version=no ;;
16259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16261 shlibpath_var=LD_LIBRARY_PATH
16262 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16264 openbsd2.[89] | openbsd2.[89].*)
16265 shlibpath_overrides_runpath=no
16268 shlibpath_overrides_runpath=yes
16272 shlibpath_overrides_runpath=yes
16277 libname_spec='$name'
16280 library_names_spec='$libname${shared_ext} $libname.a'
16281 dynamic_linker='OS/2 ld.exe'
16282 shlibpath_var=LIBPATH
16285 osf3* | osf4* | osf5*)
16289 soname_spec='${libname}${release}${shared_ext}$major'
16290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16291 shlibpath_var=LD_LIBRARY_PATH
16292 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16293 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
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'
16302 shlibpath_var=LD_LIBRARY_PATH
16303 shlibpath_overrides_runpath=yes
16304 hardcode_into_libs=yes
16305 # ldd complains unless libraries are executable
16306 postinstall_cmds='chmod +x $lib'
16311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16312 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16313 shlibpath_var=LD_LIBRARY_PATH
16314 shlibpath_overrides_runpath=yes
16315 if test "$with_gnu_ld" = yes; then
16323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16324 soname_spec='${libname}${release}${shared_ext}$major'
16325 shlibpath_var=LD_LIBRARY_PATH
16326 case $host_vendor in
16328 shlibpath_overrides_runpath=no
16330 export_dynamic_flag_spec='${wl}-Blargedynsym'
16331 runpath_var=LD_RUN_PATH
16339 shlibpath_overrides_runpath=no
16340 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16346 if test -d /usr/nec ;then
16348 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16349 soname_spec='$libname${shared_ext}.$major'
16350 shlibpath_var=LD_LIBRARY_PATH
16354 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16355 version_type=freebsd-elf
16358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16359 soname_spec='${libname}${release}${shared_ext}$major'
16360 shlibpath_var=LD_LIBRARY_PATH
16361 hardcode_into_libs=yes
16362 if test "$with_gnu_ld" = yes; then
16363 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16364 shlibpath_overrides_runpath=no
16366 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16367 shlibpath_overrides_runpath=yes
16370 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16374 sys_lib_dlsearch_path_spec='/usr/lib'
16379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16380 soname_spec='${libname}${release}${shared_ext}$major'
16381 shlibpath_var=LD_LIBRARY_PATH
16388 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16389 echo "${ECHO_T}$dynamic_linker" >&6; }
16390 test "$dynamic_linker" = no && can_build_shared=no
16392 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16393 if test "$GCC" = yes; then
16394 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16397 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16398 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16400 if test -n "$hardcode_libdir_flag_spec" || \
16401 test -n "$runpath_var" || \
16402 test "X$hardcode_automatic" = "Xyes" ; then
16404 # We can hardcode non-existant directories.
16405 if test "$hardcode_direct" != no &&
16406 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16407 # have to relink, otherwise we might link with an installed library
16408 # when we should be linking with a yet-to-be-installed one
16409 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16410 test "$hardcode_minus_L" != no; then
16411 # Linking always hardcodes the temporary library directory.
16412 hardcode_action=relink
16414 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16415 hardcode_action=immediate
16418 # We cannot hardcode anything, or else we can only hardcode existing
16420 hardcode_action=unsupported
16422 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16423 echo "${ECHO_T}$hardcode_action" >&6; }
16425 if test "$hardcode_action" = relink; then
16426 # Fast installation is not supported
16427 enable_fast_install=no
16428 elif test "$shlibpath_overrides_runpath" = yes ||
16429 test "$enable_shared" = no; then
16430 # Fast installation is not necessary
16431 enable_fast_install=needless
16436 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16437 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16438 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16439 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16440 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16441 { echo "$as_me:$LINENO: result: yes" >&5
16442 echo "${ECHO_T}yes" >&6; }
16444 # FIXME - insert some real tests, host_os isn't really good enough
16447 if test -n "$STRIP" ; then
16448 striplib="$STRIP -x"
16449 { echo "$as_me:$LINENO: result: yes" >&5
16450 echo "${ECHO_T}yes" >&6; }
16452 { echo "$as_me:$LINENO: result: no" >&5
16453 echo "${ECHO_T}no" >&6; }
16457 { echo "$as_me:$LINENO: result: no" >&5
16458 echo "${ECHO_T}no" >&6; }
16463 if test "x$enable_dlopen" != xyes; then
16464 enable_dlopen=unknown
16465 enable_dlopen_self=unknown
16466 enable_dlopen_self_static=unknown
16473 lt_cv_dlopen="load_add_on"
16475 lt_cv_dlopen_self=yes
16479 lt_cv_dlopen="LoadLibrary"
16484 lt_cv_dlopen="dlopen"
16489 # if libdl is installed we need to link against it
16490 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16491 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16492 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
16495 ac_check_lib_save_LIBS=$LIBS
16497 cat >conftest.$ac_ext <<_ACEOF
16500 cat confdefs.h >>conftest.$ac_ext
16501 cat >>conftest.$ac_ext <<_ACEOF
16502 /* end confdefs.h. */
16504 /* Override any GCC internal prototype to avoid an error.
16505 Use char because int might match the return type of a GCC
16506 builtin and then its argument prototype would still apply. */
16519 rm -f conftest.$ac_objext conftest$ac_exeext
16520 if { (ac_try="$ac_link"
16521 case "(($ac_try" in
16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526 (eval "$ac_link") 2>conftest.er1
16528 grep -v '^ *+' conftest.er1 >conftest.err
16530 cat conftest.err >&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); } &&
16533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16534 { (case "(($ac_try" in
16535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536 *) ac_try_echo=$ac_try;;
16538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539 (eval "$ac_try") 2>&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; } &&
16543 { ac_try='test -s conftest$ac_exeext'
16544 { (case "(($ac_try" in
16545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16546 *) ac_try_echo=$ac_try;;
16548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16549 (eval "$ac_try") 2>&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); }; }; then
16553 ac_cv_lib_dl_dlopen=yes
16555 echo "$as_me: failed program was:" >&5
16556 sed 's/^/| /' conftest.$ac_ext >&5
16558 ac_cv_lib_dl_dlopen=no
16561 rm -f core conftest.err conftest.$ac_objext \
16562 conftest$ac_exeext conftest.$ac_ext
16563 LIBS=$ac_check_lib_save_LIBS
16565 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16566 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16567 if test $ac_cv_lib_dl_dlopen = yes; then
16568 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16571 lt_cv_dlopen="dyld"
16573 lt_cv_dlopen_self=yes
16580 { echo "$as_me:$LINENO: checking for shl_load" >&5
16581 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16582 if test "${ac_cv_func_shl_load+set}" = set; then
16583 echo $ECHO_N "(cached) $ECHO_C" >&6
16585 cat >conftest.$ac_ext <<_ACEOF
16588 cat confdefs.h >>conftest.$ac_ext
16589 cat >>conftest.$ac_ext <<_ACEOF
16590 /* end confdefs.h. */
16591 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16593 #define shl_load innocuous_shl_load
16595 /* System header to define __stub macros and hopefully few prototypes,
16596 which can conflict with char shl_load (); below.
16597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16598 <limits.h> exists even on freestanding compilers. */
16601 # include <limits.h>
16603 # include <assert.h>
16608 /* Override any GCC internal prototype to avoid an error.
16609 Use char because int might match the return type of a GCC
16610 builtin and then its argument prototype would still apply. */
16615 /* The GNU C library defines this for functions which it implements
16616 to always fail with ENOSYS. Some functions are actually named
16617 something starting with __ and the normal name is an alias. */
16618 #if defined __stub_shl_load || defined __stub___shl_load
16625 return shl_load ();
16630 rm -f conftest.$ac_objext conftest$ac_exeext
16631 if { (ac_try="$ac_link"
16632 case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_link") 2>conftest.er1
16639 grep -v '^ *+' conftest.er1 >conftest.err
16641 cat conftest.err >&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } &&
16644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16645 { (case "(($ac_try" in
16646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647 *) ac_try_echo=$ac_try;;
16649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650 (eval "$ac_try") 2>&5
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; } &&
16654 { ac_try='test -s conftest$ac_exeext'
16655 { (case "(($ac_try" in
16656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16657 *) ac_try_echo=$ac_try;;
16659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16660 (eval "$ac_try") 2>&5
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); }; }; then
16664 ac_cv_func_shl_load=yes
16666 echo "$as_me: failed program was:" >&5
16667 sed 's/^/| /' conftest.$ac_ext >&5
16669 ac_cv_func_shl_load=no
16672 rm -f core conftest.err conftest.$ac_objext \
16673 conftest$ac_exeext conftest.$ac_ext
16675 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16676 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16677 if test $ac_cv_func_shl_load = yes; then
16678 lt_cv_dlopen="shl_load"
16680 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16681 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16682 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16685 ac_check_lib_save_LIBS=$LIBS
16687 cat >conftest.$ac_ext <<_ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16694 /* Override any GCC internal prototype to avoid an error.
16695 Use char because int might match the return type of a GCC
16696 builtin and then its argument prototype would still apply. */
16704 return shl_load ();
16709 rm -f conftest.$ac_objext conftest$ac_exeext
16710 if { (ac_try="$ac_link"
16711 case "(($ac_try" in
16712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16713 *) ac_try_echo=$ac_try;;
16715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16716 (eval "$ac_link") 2>conftest.er1
16718 grep -v '^ *+' conftest.er1 >conftest.err
16720 cat conftest.err >&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); } &&
16723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16724 { (case "(($ac_try" in
16725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726 *) ac_try_echo=$ac_try;;
16728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16729 (eval "$ac_try") 2>&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; } &&
16733 { ac_try='test -s conftest$ac_exeext'
16734 { (case "(($ac_try" in
16735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736 *) ac_try_echo=$ac_try;;
16738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16739 (eval "$ac_try") 2>&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; }; then
16743 ac_cv_lib_dld_shl_load=yes
16745 echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16748 ac_cv_lib_dld_shl_load=no
16751 rm -f core conftest.err conftest.$ac_objext \
16752 conftest$ac_exeext conftest.$ac_ext
16753 LIBS=$ac_check_lib_save_LIBS
16755 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16756 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16757 if test $ac_cv_lib_dld_shl_load = yes; then
16758 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16760 { echo "$as_me:$LINENO: checking for dlopen" >&5
16761 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16762 if test "${ac_cv_func_dlopen+set}" = set; then
16763 echo $ECHO_N "(cached) $ECHO_C" >&6
16765 cat >conftest.$ac_ext <<_ACEOF
16768 cat confdefs.h >>conftest.$ac_ext
16769 cat >>conftest.$ac_ext <<_ACEOF
16770 /* end confdefs.h. */
16771 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16773 #define dlopen innocuous_dlopen
16775 /* System header to define __stub macros and hopefully few prototypes,
16776 which can conflict with char dlopen (); below.
16777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16778 <limits.h> exists even on freestanding compilers. */
16781 # include <limits.h>
16783 # include <assert.h>
16788 /* Override any GCC internal prototype to avoid an error.
16789 Use char because int might match the return type of a GCC
16790 builtin and then its argument prototype would still apply. */
16795 /* The GNU C library defines this for functions which it implements
16796 to always fail with ENOSYS. Some functions are actually named
16797 something starting with __ and the normal name is an alias. */
16798 #if defined __stub_dlopen || defined __stub___dlopen
16810 rm -f conftest.$ac_objext conftest$ac_exeext
16811 if { (ac_try="$ac_link"
16812 case "(($ac_try" in
16813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814 *) ac_try_echo=$ac_try;;
16816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817 (eval "$ac_link") 2>conftest.er1
16819 grep -v '^ *+' conftest.er1 >conftest.err
16821 cat conftest.err >&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } &&
16824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16825 { (case "(($ac_try" in
16826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827 *) ac_try_echo=$ac_try;;
16829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830 (eval "$ac_try") 2>&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; } &&
16834 { ac_try='test -s conftest$ac_exeext'
16835 { (case "(($ac_try" in
16836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837 *) ac_try_echo=$ac_try;;
16839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840 (eval "$ac_try") 2>&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); }; }; then
16844 ac_cv_func_dlopen=yes
16846 echo "$as_me: failed program was:" >&5
16847 sed 's/^/| /' conftest.$ac_ext >&5
16849 ac_cv_func_dlopen=no
16852 rm -f core conftest.err conftest.$ac_objext \
16853 conftest$ac_exeext conftest.$ac_ext
16855 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16856 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16857 if test $ac_cv_func_dlopen = yes; then
16858 lt_cv_dlopen="dlopen"
16860 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16861 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16862 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16863 echo $ECHO_N "(cached) $ECHO_C" >&6
16865 ac_check_lib_save_LIBS=$LIBS
16867 cat >conftest.$ac_ext <<_ACEOF
16870 cat confdefs.h >>conftest.$ac_ext
16871 cat >>conftest.$ac_ext <<_ACEOF
16872 /* end confdefs.h. */
16874 /* Override any GCC internal prototype to avoid an error.
16875 Use char because int might match the return type of a GCC
16876 builtin and then its argument prototype would still apply. */
16889 rm -f conftest.$ac_objext conftest$ac_exeext
16890 if { (ac_try="$ac_link"
16891 case "(($ac_try" in
16892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893 *) ac_try_echo=$ac_try;;
16895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896 (eval "$ac_link") 2>conftest.er1
16898 grep -v '^ *+' conftest.er1 >conftest.err
16900 cat conftest.err >&5
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); } &&
16903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16904 { (case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_try") 2>&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; } &&
16913 { ac_try='test -s conftest$ac_exeext'
16914 { (case "(($ac_try" in
16915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16916 *) ac_try_echo=$ac_try;;
16918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16919 (eval "$ac_try") 2>&5
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; }; then
16923 ac_cv_lib_dl_dlopen=yes
16925 echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.$ac_ext >&5
16928 ac_cv_lib_dl_dlopen=no
16931 rm -f core conftest.err conftest.$ac_objext \
16932 conftest$ac_exeext conftest.$ac_ext
16933 LIBS=$ac_check_lib_save_LIBS
16935 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16936 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16937 if test $ac_cv_lib_dl_dlopen = yes; then
16938 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16940 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16941 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16942 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16943 echo $ECHO_N "(cached) $ECHO_C" >&6
16945 ac_check_lib_save_LIBS=$LIBS
16946 LIBS="-lsvld $LIBS"
16947 cat >conftest.$ac_ext <<_ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h. */
16954 /* Override any GCC internal prototype to avoid an error.
16955 Use char because int might match the return type of a GCC
16956 builtin and then its argument prototype would still apply. */
16969 rm -f conftest.$ac_objext conftest$ac_exeext
16970 if { (ac_try="$ac_link"
16971 case "(($ac_try" in
16972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973 *) ac_try_echo=$ac_try;;
16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976 (eval "$ac_link") 2>conftest.er1
16978 grep -v '^ *+' conftest.er1 >conftest.err
16980 cat conftest.err >&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } &&
16983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16984 { (case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_try") 2>&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; } &&
16993 { ac_try='test -s conftest$ac_exeext'
16994 { (case "(($ac_try" in
16995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16996 *) ac_try_echo=$ac_try;;
16998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16999 (eval "$ac_try") 2>&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; }; then
17003 ac_cv_lib_svld_dlopen=yes
17005 echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.$ac_ext >&5
17008 ac_cv_lib_svld_dlopen=no
17011 rm -f core conftest.err conftest.$ac_objext \
17012 conftest$ac_exeext conftest.$ac_ext
17013 LIBS=$ac_check_lib_save_LIBS
17015 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17016 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17017 if test $ac_cv_lib_svld_dlopen = yes; then
17018 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17020 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17021 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17022 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17023 echo $ECHO_N "(cached) $ECHO_C" >&6
17025 ac_check_lib_save_LIBS=$LIBS
17027 cat >conftest.$ac_ext <<_ACEOF
17030 cat confdefs.h >>conftest.$ac_ext
17031 cat >>conftest.$ac_ext <<_ACEOF
17032 /* end confdefs.h. */
17034 /* Override any GCC internal prototype to avoid an error.
17035 Use char because int might match the return type of a GCC
17036 builtin and then its argument prototype would still apply. */
17044 return dld_link ();
17049 rm -f conftest.$ac_objext conftest$ac_exeext
17050 if { (ac_try="$ac_link"
17051 case "(($ac_try" in
17052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053 *) ac_try_echo=$ac_try;;
17055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056 (eval "$ac_link") 2>conftest.er1
17058 grep -v '^ *+' conftest.er1 >conftest.err
17060 cat conftest.err >&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); } &&
17063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17064 { (case "(($ac_try" in
17065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066 *) ac_try_echo=$ac_try;;
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069 (eval "$ac_try") 2>&5
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; } &&
17073 { ac_try='test -s conftest$ac_exeext'
17074 { (case "(($ac_try" in
17075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17076 *) ac_try_echo=$ac_try;;
17078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17079 (eval "$ac_try") 2>&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; }; then
17083 ac_cv_lib_dld_dld_link=yes
17085 echo "$as_me: failed program was:" >&5
17086 sed 's/^/| /' conftest.$ac_ext >&5
17088 ac_cv_lib_dld_dld_link=no
17091 rm -f core conftest.err conftest.$ac_objext \
17092 conftest$ac_exeext conftest.$ac_ext
17093 LIBS=$ac_check_lib_save_LIBS
17095 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17096 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17097 if test $ac_cv_lib_dld_dld_link = yes; then
17098 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17119 if test "x$lt_cv_dlopen" != xno; then
17125 case $lt_cv_dlopen in
17127 save_CPPFLAGS="$CPPFLAGS"
17128 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17130 save_LDFLAGS="$LDFLAGS"
17131 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17134 LIBS="$lt_cv_dlopen_libs $LIBS"
17136 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17137 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17138 if test "${lt_cv_dlopen_self+set}" = set; then
17139 echo $ECHO_N "(cached) $ECHO_C" >&6
17141 if test "$cross_compiling" = yes; then :
17142 lt_cv_dlopen_self=cross
17144 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17145 lt_status=$lt_dlunknown
17146 cat > conftest.$ac_ext <<EOF
17147 #line 17147 "configure"
17148 #include "confdefs.h"
17157 # define LT_DLGLOBAL RTLD_GLOBAL
17160 # define LT_DLGLOBAL DL_GLOBAL
17162 # define LT_DLGLOBAL 0
17166 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17167 find out it does not work in some platform. */
17168 #ifndef LT_DLLAZY_OR_NOW
17170 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17173 # define LT_DLLAZY_OR_NOW DL_LAZY
17176 # define LT_DLLAZY_OR_NOW RTLD_NOW
17179 # define LT_DLLAZY_OR_NOW DL_NOW
17181 # define LT_DLLAZY_OR_NOW 0
17189 extern "C" void exit (int);
17192 void fnord() { int i=42;}
17195 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17196 int status = $lt_dlunknown;
17200 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17201 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17202 /* dlclose (self); */
17210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17211 (eval $ac_link) 2>&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17215 (./conftest; exit; ) >&5 2>/dev/null
17217 case x$lt_status in
17218 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17219 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17220 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17223 # compilation failed
17224 lt_cv_dlopen_self=no
17231 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17232 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17234 if test "x$lt_cv_dlopen_self" = xyes; then
17235 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17236 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17237 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17238 if test "${lt_cv_dlopen_self_static+set}" = set; then
17239 echo $ECHO_N "(cached) $ECHO_C" >&6
17241 if test "$cross_compiling" = yes; then :
17242 lt_cv_dlopen_self_static=cross
17244 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17245 lt_status=$lt_dlunknown
17246 cat > conftest.$ac_ext <<EOF
17247 #line 17247 "configure"
17248 #include "confdefs.h"
17257 # define LT_DLGLOBAL RTLD_GLOBAL
17260 # define LT_DLGLOBAL DL_GLOBAL
17262 # define LT_DLGLOBAL 0
17266 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17267 find out it does not work in some platform. */
17268 #ifndef LT_DLLAZY_OR_NOW
17270 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17273 # define LT_DLLAZY_OR_NOW DL_LAZY
17276 # define LT_DLLAZY_OR_NOW RTLD_NOW
17279 # define LT_DLLAZY_OR_NOW DL_NOW
17281 # define LT_DLLAZY_OR_NOW 0
17289 extern "C" void exit (int);
17292 void fnord() { int i=42;}
17295 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17296 int status = $lt_dlunknown;
17300 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17301 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17302 /* dlclose (self); */
17310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17311 (eval $ac_link) 2>&5
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17315 (./conftest; exit; ) >&5 2>/dev/null
17317 case x$lt_status in
17318 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17319 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17320 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17323 # compilation failed
17324 lt_cv_dlopen_self_static=no
17331 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17332 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17335 CPPFLAGS="$save_CPPFLAGS"
17336 LDFLAGS="$save_LDFLAGS"
17341 case $lt_cv_dlopen_self in
17342 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17343 *) enable_dlopen_self=unknown ;;
17346 case $lt_cv_dlopen_self_static in
17347 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17348 *) enable_dlopen_self_static=unknown ;;
17353 # Report which library types will actually be built
17354 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17355 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17356 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17357 echo "${ECHO_T}$can_build_shared" >&6; }
17359 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17360 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17361 test "$can_build_shared" = "no" && enable_shared=no
17363 # On AIX, shared libraries and static libraries use the same namespace, and
17364 # are all built from PIC.
17367 test "$enable_shared" = yes && enable_static=no
17368 if test -n "$RANLIB"; then
17369 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17370 postinstall_cmds='$RANLIB $lib'
17375 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17376 test "$enable_shared" = yes && enable_static=no
17380 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17381 echo "${ECHO_T}$enable_shared" >&6; }
17383 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17384 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17385 # Make sure either enable_shared or enable_static is yes.
17386 test "$enable_shared" = yes || enable_static=yes
17387 { echo "$as_me:$LINENO: result: $enable_static" >&5
17388 echo "${ECHO_T}$enable_static" >&6; }
17390 # The else clause should only fire when bootstrapping the
17391 # libtool distribution, otherwise you forgot to ship ltmain.sh
17392 # with your package, and you will get complaints that there are
17393 # no rules to generate ltmain.sh.
17394 if test -f "$ltmain"; then
17395 # See if we are running on zsh, and set the options which allow our commands through
17396 # without removal of \ escapes.
17397 if test -n "${ZSH_VERSION+set}" ; then
17398 setopt NO_GLOB_SUBST
17400 # Now quote all the things that may contain metacharacters while being
17401 # careful not to overquote the AC_SUBSTed values. We take copies of the
17402 # variables and quote the copies for generation of the libtool script.
17403 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17405 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17406 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17407 deplibs_check_method reload_flag reload_cmds need_locks \
17408 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17409 lt_cv_sys_global_symbol_to_c_name_address \
17410 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17411 old_postinstall_cmds old_postuninstall_cmds \
17415 lt_prog_compiler_wl \
17416 lt_prog_compiler_pic \
17417 lt_prog_compiler_static \
17418 lt_prog_compiler_no_builtin_flag \
17419 export_dynamic_flag_spec \
17420 thread_safe_flag_spec \
17421 whole_archive_flag_spec \
17422 enable_shared_with_static_runtimes \
17424 old_archive_from_new_cmds \
17429 compiler_lib_search_path \
17431 archive_expsym_cmds \
17433 postuninstall_cmds \
17434 old_archive_from_expsyms_cmds \
17435 allow_undefined_flag \
17436 no_undefined_flag \
17437 export_symbols_cmds \
17438 hardcode_libdir_flag_spec \
17439 hardcode_libdir_flag_spec_ld \
17440 hardcode_libdir_separator \
17441 hardcode_automatic \
17443 module_expsym_cmds \
17444 lt_cv_prog_compiler_c_o \
17446 include_expsyms; do
17449 old_archive_cmds | \
17450 old_archive_from_new_cmds | \
17452 archive_expsym_cmds | \
17454 module_expsym_cmds | \
17455 old_archive_from_expsyms_cmds | \
17456 export_symbols_cmds | \
17457 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17458 postinstall_cmds | postuninstall_cmds | \
17459 old_postinstall_cmds | old_postuninstall_cmds | \
17460 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17461 # Double-quote double-evaled strings.
17462 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17465 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17471 *'\$0 --fallback-echo"')
17472 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17476 cfgfile="${ofile}T"
17477 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17479 { echo "$as_me:$LINENO: creating $ofile" >&5
17480 echo "$as_me: creating $ofile" >&6;}
17482 cat <<__EOF__ >> "$cfgfile"
17485 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17486 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17487 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17489 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17490 # Free Software Foundation, Inc.
17492 # This file is part of GNU Libtool:
17493 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17495 # This program is free software; you can redistribute it and/or modify
17496 # it under the terms of the GNU General Public License as published by
17497 # the Free Software Foundation; either version 2 of the License, or
17498 # (at your option) any later version.
17500 # This program is distributed in the hope that it will be useful, but
17501 # WITHOUT ANY WARRANTY; without even the implied warranty of
17502 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17503 # General Public License for more details.
17505 # You should have received a copy of the GNU General Public License
17506 # along with this program; if not, write to the Free Software
17507 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17509 # As a special exception to the GNU General Public License, if you
17510 # distribute this file as part of a program that contains a
17511 # configuration script generated by Autoconf, you may include it under
17512 # the same distribution terms that you use for the rest of that program.
17514 # A sed program that does not truncate output.
17517 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17518 Xsed="$SED -e 1s/^X//"
17520 # The HP-UX ksh and POSIX shell print the target directory to stdout
17521 # if CDPATH is set.
17522 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17524 # The names of the tagged configurations supported by this script.
17527 # ### BEGIN LIBTOOL CONFIG
17529 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17531 # Shell to use when invoking shell scripts.
17534 # Whether or not to build shared libraries.
17535 build_libtool_libs=$enable_shared
17537 # Whether or not to build static libraries.
17538 build_old_libs=$enable_static
17540 # Whether or not to add -lc for building shared libraries.
17541 build_libtool_need_lc=$archive_cmds_need_lc
17543 # Whether or not to disallow shared libs when runtime libs are static
17544 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17546 # Whether or not to optimize for fast installation.
17547 fast_install=$enable_fast_install
17550 host_alias=$host_alias
17554 # The build system.
17555 build_alias=$build_alias
17559 # An echo program that does not interpret backslashes.
17564 AR_FLAGS=$lt_AR_FLAGS
17569 # LTCC compiler flags.
17570 LTCFLAGS=$lt_LTCFLAGS
17572 # A language-specific compiler.
17575 # Is the compiler the GNU C compiler?
17581 # The linker used to build libraries.
17584 # Whether we need hard or soft links.
17587 # A BSD-compatible nm program.
17590 # A symbol stripping program
17593 # Used to examine libraries when file_magic_cmd begins "file"
17594 MAGIC_CMD=$MAGIC_CMD
17596 # Used on cygwin: DLL creation program.
17599 # Used on cygwin: object dumper.
17602 # Used on cygwin: assembler.
17605 # The name of the directory that contains temporary libtool files.
17608 # How to create reloadable object files.
17609 reload_flag=$lt_reload_flag
17610 reload_cmds=$lt_reload_cmds
17612 # How to pass a linker flag through the compiler.
17613 wl=$lt_lt_prog_compiler_wl
17615 # Object file suffix (normally "o").
17616 objext="$ac_objext"
17618 # Old archive suffix (normally "a").
17621 # Shared library suffix (normally ".so").
17622 shrext_cmds='$shrext_cmds'
17624 # Executable file suffix (normally "").
17627 # Additional compiler flags for building library objects.
17628 pic_flag=$lt_lt_prog_compiler_pic
17631 # What is the maximum length of a command?
17632 max_cmd_len=$lt_cv_sys_max_cmd_len
17634 # Does compiler simultaneously support -c and -o options?
17635 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17637 # Must we lock files when doing compilation?
17638 need_locks=$lt_need_locks
17640 # Do we need the lib prefix for modules?
17641 need_lib_prefix=$need_lib_prefix
17643 # Do we need a version for libraries?
17644 need_version=$need_version
17646 # Whether dlopen is supported.
17647 dlopen_support=$enable_dlopen
17649 # Whether dlopen of programs is supported.
17650 dlopen_self=$enable_dlopen_self
17652 # Whether dlopen of statically linked programs is supported.
17653 dlopen_self_static=$enable_dlopen_self_static
17655 # Compiler flag to prevent dynamic linking.
17656 link_static_flag=$lt_lt_prog_compiler_static
17658 # Compiler flag to turn off builtin functions.
17659 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17661 # Compiler flag to allow reflexive dlopens.
17662 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17664 # Compiler flag to generate shared objects directly from archives.
17665 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17667 # Compiler flag to generate thread-safe objects.
17668 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17670 # Library versioning type.
17671 version_type=$version_type
17673 # Format of library name prefix.
17674 libname_spec=$lt_libname_spec
17676 # List of archive names. First name is the real one, the rest are links.
17677 # The last name is the one that the linker finds with -lNAME.
17678 library_names_spec=$lt_library_names_spec
17680 # The coded name of the library, if different from the real name.
17681 soname_spec=$lt_soname_spec
17683 # Commands used to build and install an old-style archive.
17685 old_archive_cmds=$lt_old_archive_cmds
17686 old_postinstall_cmds=$lt_old_postinstall_cmds
17687 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17689 # Create an old-style archive from a shared archive.
17690 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17692 # Create a temporary old-style archive to link instead of a shared archive.
17693 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17695 # Commands used to build and install a shared archive.
17696 archive_cmds=$lt_archive_cmds
17697 archive_expsym_cmds=$lt_archive_expsym_cmds
17698 postinstall_cmds=$lt_postinstall_cmds
17699 postuninstall_cmds=$lt_postuninstall_cmds
17701 # Commands used to build a loadable module (assumed same as above if empty)
17702 module_cmds=$lt_module_cmds
17703 module_expsym_cmds=$lt_module_expsym_cmds
17705 # Commands to strip libraries.
17706 old_striplib=$lt_old_striplib
17707 striplib=$lt_striplib
17709 # Dependencies to place before the objects being linked to create a
17711 predep_objects=$lt_predep_objects
17713 # Dependencies to place after the objects being linked to create a
17715 postdep_objects=$lt_postdep_objects
17717 # Dependencies to place before the objects being linked to create a
17719 predeps=$lt_predeps
17721 # Dependencies to place after the objects being linked to create a
17723 postdeps=$lt_postdeps
17725 # The library search path used internally by the compiler when linking
17726 # a shared library.
17727 compiler_lib_search_path=$lt_compiler_lib_search_path
17729 # Method to check whether dependent libraries are shared objects.
17730 deplibs_check_method=$lt_deplibs_check_method
17732 # Command to use when deplibs_check_method == file_magic.
17733 file_magic_cmd=$lt_file_magic_cmd
17735 # Flag that allows shared libraries with undefined symbols to be built.
17736 allow_undefined_flag=$lt_allow_undefined_flag
17738 # Flag that forces no undefined symbols.
17739 no_undefined_flag=$lt_no_undefined_flag
17741 # Commands used to finish a libtool library installation in a directory.
17742 finish_cmds=$lt_finish_cmds
17744 # Same as above, but a single script fragment to be evaled but not shown.
17745 finish_eval=$lt_finish_eval
17747 # Take the output of nm and produce a listing of raw symbols and C names.
17748 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17750 # Transform the output of nm in a proper C declaration
17751 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17753 # Transform the output of nm in a C name address pair
17754 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17756 # This is the shared library runtime path variable.
17757 runpath_var=$runpath_var
17759 # This is the shared library path variable.
17760 shlibpath_var=$shlibpath_var
17762 # Is shlibpath searched before the hard-coded library search path?
17763 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17765 # How to hardcode a shared library path into an executable.
17766 hardcode_action=$hardcode_action
17768 # Whether we should hardcode library paths into libraries.
17769 hardcode_into_libs=$hardcode_into_libs
17771 # Flag to hardcode \$libdir into a binary during linking.
17772 # This must work even if \$libdir does not exist.
17773 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17775 # If ld is used when linking, flag to hardcode \$libdir into
17776 # a binary during linking. This must work even if \$libdir does
17778 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17780 # Whether we need a single -rpath flag with a separated argument.
17781 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17783 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17784 # resulting binary.
17785 hardcode_direct=$hardcode_direct
17787 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17788 # resulting binary.
17789 hardcode_minus_L=$hardcode_minus_L
17791 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17792 # the resulting binary.
17793 hardcode_shlibpath_var=$hardcode_shlibpath_var
17795 # Set to yes if building a shared library automatically hardcodes DIR into the library
17796 # and all subsequent libraries and executables linked against it.
17797 hardcode_automatic=$hardcode_automatic
17799 # Variables whose values should be saved in libtool wrapper scripts and
17800 # restored at relink time.
17801 variables_saved_for_relink="$variables_saved_for_relink"
17803 # Whether libtool must link a program against all its dependency libraries.
17804 link_all_deplibs=$link_all_deplibs
17806 # Compile-time system search path for libraries
17807 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17809 # Run-time system search path for libraries
17810 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17812 # Fix the shell variable \$srcfile for the compiler.
17813 fix_srcfile_path="$fix_srcfile_path"
17815 # Set to yes if exported symbols are required.
17816 always_export_symbols=$always_export_symbols
17818 # The commands to list exported symbols.
17819 export_symbols_cmds=$lt_export_symbols_cmds
17821 # The commands to extract the exported symbol list from a shared archive.
17822 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17824 # Symbols that should not be listed in the preloaded symbols.
17825 exclude_expsyms=$lt_exclude_expsyms
17827 # Symbols that must always be exported.
17828 include_expsyms=$lt_include_expsyms
17830 # ### END LIBTOOL CONFIG
17837 cat <<\EOF >> "$cfgfile"
17839 # AIX sometimes has problems with the GCC collect2 program. For some
17840 # reason, if we set the COLLECT_NAMES environment variable, the problems
17841 # vanish in a puff of smoke.
17842 if test "X${COLLECT_NAMES+set}" != Xset; then
17844 export COLLECT_NAMES
17850 # We use sed instead of cat because bash on DJGPP gets confused if
17851 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17852 # text mode, it properly converts lines to CR/LF. This bash problem
17853 # is reportedly fixed, but why not run on old versions too?
17854 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17856 mv -f "$cfgfile" "$ofile" || \
17857 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17861 # If there is no Makefile yet, we rely on a make rule to execute
17862 # `config.status --recheck' to rerun these tests and create the
17863 # libtool script then.
17864 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17865 if test -f "$ltmain_in"; then
17866 test -f Makefile && make "$ltmain"
17872 ac_cpp='$CPP $CPPFLAGS'
17873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17880 # Check whether --with-tags was given.
17881 if test "${with_tags+set}" = set; then
17882 withval=$with_tags; tagnames="$withval"
17886 if test -f "$ltmain" && test -n "$tagnames"; then
17887 if test ! -f "${ofile}"; then
17888 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17889 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17892 if test -z "$LTCC"; then
17893 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17894 if test -z "$LTCC"; then
17895 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17896 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17898 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17899 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17902 if test -z "$LTCFLAGS"; then
17903 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17906 # Extract list of available tagged configurations in $ofile.
17907 # Note that this assumes the entire list is on one line.
17908 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17910 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17911 for tagname in $tagnames; do
17913 # Check whether tagname contains only valid characters
17914 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17916 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17917 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17918 { (exit 1); exit 1; }; }
17922 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17924 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17925 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17926 { (exit 1); exit 1; }; }
17929 # Update the list of available tags.
17930 if test -n "$tagname"; then
17931 echo appending configuration tag \"$tagname\" to $ofile
17935 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17936 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17937 (test "X$CXX" != "Xg++"))) ; then
17939 ac_cpp='$CXXCPP $CPPFLAGS'
17940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17947 archive_cmds_need_lc_CXX=no
17948 allow_undefined_flag_CXX=
17949 always_export_symbols_CXX=no
17950 archive_expsym_cmds_CXX=
17951 export_dynamic_flag_spec_CXX=
17952 hardcode_direct_CXX=no
17953 hardcode_libdir_flag_spec_CXX=
17954 hardcode_libdir_flag_spec_ld_CXX=
17955 hardcode_libdir_separator_CXX=
17956 hardcode_minus_L_CXX=no
17957 hardcode_shlibpath_var_CXX=unsupported
17958 hardcode_automatic_CXX=no
17960 module_expsym_cmds_CXX=
17961 link_all_deplibs_CXX=unknown
17962 old_archive_cmds_CXX=$old_archive_cmds
17963 no_undefined_flag_CXX=
17964 whole_archive_flag_spec_CXX=
17965 enable_shared_with_static_runtimes_CXX=no
17967 # Dependencies to place before and after the object being linked:
17968 predep_objects_CXX=
17969 postdep_objects_CXX=
17972 compiler_lib_search_path_CXX=
17974 # Source file extension for C++ test sources.
17977 # Object file extension for compiled C++ test sources.
17981 # Code to be used in simple compile tests
17982 lt_simple_compile_test_code="int some_variable = 0;\n"
17984 # Code to be used in simple link tests
17985 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17987 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17989 # If no C compiler was specified, use CC.
17992 # If no C compiler flags were specified, use CFLAGS.
17993 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17995 # Allow CC to be a program name with arguments.
17999 # save warnings/boilerplate of simple test code
18000 ac_outfile=conftest.$ac_objext
18001 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18002 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18003 _lt_compiler_boilerplate=`cat conftest.err`
18006 ac_outfile=conftest.$ac_objext
18007 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18008 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18009 _lt_linker_boilerplate=`cat conftest.err`
18013 # Allow CC to be a program name with arguments.
18018 lt_save_with_gnu_ld=$with_gnu_ld
18019 lt_save_path_LD=$lt_cv_path_LD
18020 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18021 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18023 $as_unset lt_cv_prog_gnu_ld
18025 if test -n "${lt_cv_path_LDCXX+set}"; then
18026 lt_cv_path_LD=$lt_cv_path_LDCXX
18028 $as_unset lt_cv_path_LD
18030 test -z "${LDCXX+set}" || LD=$LDCXX
18034 for cc_temp in $compiler""; do
18036 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18037 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18042 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18045 # We don't want -fno-exception wen compiling C++ code, so set the
18046 # no_builtin_flag separately
18047 if test "$GXX" = yes; then
18048 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18050 lt_prog_compiler_no_builtin_flag_CXX=
18053 if test "$GXX" = yes; then
18054 # Set up default GNU C++ configuration
18057 # Check whether --with-gnu-ld was given.
18058 if test "${with_gnu_ld+set}" = set; then
18059 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18065 if test "$GCC" = yes; then
18066 # Check if gcc -print-prog-name=ld gives a path.
18067 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18068 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18071 # gcc leaves a trailing carriage return which upsets mingw
18072 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18074 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18077 # Accept absolute paths.
18079 re_direlt='/[^/][^/]*/\.\./'
18080 # Canonicalize the pathname of ld
18081 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18082 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18083 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18085 test -z "$LD" && LD="$ac_prog"
18088 # If it fails, then pretend we aren't using GCC.
18092 # If it is relative, then search for the first ld in PATH.
18093 with_gnu_ld=unknown
18096 elif test "$with_gnu_ld" = yes; then
18097 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18098 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18100 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18101 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18103 if test "${lt_cv_path_LD+set}" = set; then
18104 echo $ECHO_N "(cached) $ECHO_C" >&6
18106 if test -z "$LD"; then
18107 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18108 for ac_dir in $PATH; do
18110 test -z "$ac_dir" && ac_dir=.
18111 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18112 lt_cv_path_LD="$ac_dir/$ac_prog"
18113 # Check to see if the program is GNU ld. I'd rather use --version,
18114 # but apparently some variants of GNU ld only accept -v.
18115 # Break only if it was the GNU/non-GNU ld that we prefer.
18116 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18117 *GNU* | *'with BFD'*)
18118 test "$with_gnu_ld" != no && break
18121 test "$with_gnu_ld" != yes && break
18128 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18132 LD="$lt_cv_path_LD"
18133 if test -n "$LD"; then
18134 { echo "$as_me:$LINENO: result: $LD" >&5
18135 echo "${ECHO_T}$LD" >&6; }
18137 { echo "$as_me:$LINENO: result: no" >&5
18138 echo "${ECHO_T}no" >&6; }
18140 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18141 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18142 { (exit 1); exit 1; }; }
18143 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18144 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18145 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18148 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18149 case `$LD -v 2>&1 </dev/null` in
18150 *GNU* | *'with BFD'*)
18151 lt_cv_prog_gnu_ld=yes
18154 lt_cv_prog_gnu_ld=no
18158 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18159 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18160 with_gnu_ld=$lt_cv_prog_gnu_ld
18164 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18165 # archiving commands below assume that GNU ld is being used.
18166 if test "$with_gnu_ld" = yes; then
18167 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18168 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'
18170 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18171 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18173 # If archive_cmds runs LD, not CC, wlarc should be empty
18174 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18175 # investigate it a little bit more. (MM)
18178 # ancient GNU ld didn't support --whole-archive et. al.
18179 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18180 grep 'no-whole-archive' > /dev/null; then
18181 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18183 whole_archive_flag_spec_CXX=
18189 # A generic and very simple default shared library creation
18190 # command for GNU C++ for the case where it uses the native
18191 # linker, instead of GNU ld. If possible, this setting should
18192 # overridden to take advantage of the native linker features on
18193 # the platform it is being used on.
18194 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18197 # Commands to make compiler produce verbose output that lists
18198 # what "hidden" libraries, object files and flags are used when
18199 # linking a shared library.
18200 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18208 # PORTME: fill in a description of your system's C++ link characteristics
18209 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18210 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18214 # FIXME: insert proper C++ library support
18218 if test "$host_cpu" = ia64; then
18219 # On IA64, the linker does run time linking by default, so we don't
18220 # have to do anything special.
18221 aix_use_runtimelinking=no
18222 exp_sym_flag='-Bexport'
18225 aix_use_runtimelinking=no
18227 # Test if we are trying to use run time linking or normal
18228 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18229 # need to do runtime linking.
18230 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18231 for ld_flag in $LDFLAGS; do
18234 aix_use_runtimelinking=yes
18242 exp_sym_flag='-bexport'
18243 no_entry_flag='-bnoentry'
18246 # When large executables or shared objects are built, AIX ld can
18247 # have problems creating the table of contents. If linking a library
18248 # or program results in "error TOC overflow" add -mminimal-toc to
18249 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18250 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18252 archive_cmds_CXX=''
18253 hardcode_direct_CXX=yes
18254 hardcode_libdir_separator_CXX=':'
18255 link_all_deplibs_CXX=yes
18257 if test "$GXX" = yes; then
18258 case $host_os in aix4.[012]|aix4.[012].*)
18259 # We only want to do this on AIX 4.2 and lower, the check
18260 # below for broken collect2 doesn't work under 4.3+
18261 collect2name=`${CC} -print-prog-name=collect2`
18262 if test -f "$collect2name" && \
18263 strings "$collect2name" | grep resolve_lib_name >/dev/null
18265 # We have reworked collect2
18266 hardcode_direct_CXX=yes
18268 # We have old collect2
18269 hardcode_direct_CXX=unsupported
18270 # It fails to find uninstalled libraries when the uninstalled
18271 # path is not listed in the libpath. Setting hardcode_minus_L
18272 # to unsupported forces relinking
18273 hardcode_minus_L_CXX=yes
18274 hardcode_libdir_flag_spec_CXX='-L$libdir'
18275 hardcode_libdir_separator_CXX=
18279 shared_flag='-shared'
18280 if test "$aix_use_runtimelinking" = yes; then
18281 shared_flag="$shared_flag "'${wl}-G'
18285 if test "$host_cpu" = ia64; then
18286 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18287 # chokes on -Wl,-G. The following line is correct:
18290 if test "$aix_use_runtimelinking" = yes; then
18291 shared_flag='${wl}-G'
18293 shared_flag='${wl}-bM:SRE'
18298 # It seems that -bexpall does not export symbols beginning with
18299 # underscore (_), so it is better to generate a list of symbols to export.
18300 always_export_symbols_CXX=yes
18301 if test "$aix_use_runtimelinking" = yes; then
18302 # Warning - without using the other runtime loading flags (-brtl),
18303 # -berok will link without error, but may produce a broken library.
18304 allow_undefined_flag_CXX='-berok'
18305 # Determine the default libpath from the value encoded in an empty executable.
18306 cat >conftest.$ac_ext <<_ACEOF
18309 cat confdefs.h >>conftest.$ac_ext
18310 cat >>conftest.$ac_ext <<_ACEOF
18311 /* end confdefs.h. */
18321 rm -f conftest.$ac_objext conftest$ac_exeext
18322 if { (ac_try="$ac_link"
18323 case "(($ac_try" in
18324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325 *) ac_try_echo=$ac_try;;
18327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18328 (eval "$ac_link") 2>conftest.er1
18330 grep -v '^ *+' conftest.er1 >conftest.err
18332 cat conftest.err >&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); } &&
18335 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18336 { (case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_try") 2>&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; } &&
18345 { ac_try='test -s conftest$ac_exeext'
18346 { (case "(($ac_try" in
18347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18348 *) ac_try_echo=$ac_try;;
18350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18351 (eval "$ac_try") 2>&5
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; }; then
18356 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18358 # Check for a 64-bit object if we didn't find anything.
18359 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; }
18362 echo "$as_me: failed program was:" >&5
18363 sed 's/^/| /' conftest.$ac_ext >&5
18368 rm -f core conftest.err conftest.$ac_objext \
18369 conftest$ac_exeext conftest.$ac_ext
18370 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18372 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18374 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"
18376 if test "$host_cpu" = ia64; then
18377 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18378 allow_undefined_flag_CXX="-z nodefs"
18379 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"
18381 # Determine the default libpath from the value encoded in an empty executable.
18382 cat >conftest.$ac_ext <<_ACEOF
18385 cat confdefs.h >>conftest.$ac_ext
18386 cat >>conftest.$ac_ext <<_ACEOF
18387 /* end confdefs.h. */
18397 rm -f conftest.$ac_objext conftest$ac_exeext
18398 if { (ac_try="$ac_link"
18399 case "(($ac_try" in
18400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18401 *) ac_try_echo=$ac_try;;
18403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18404 (eval "$ac_link") 2>conftest.er1
18406 grep -v '^ *+' conftest.er1 >conftest.err
18408 cat conftest.err >&5
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); } &&
18411 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18412 { (case "(($ac_try" in
18413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18414 *) ac_try_echo=$ac_try;;
18416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18417 (eval "$ac_try") 2>&5
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); }; } &&
18421 { ac_try='test -s conftest$ac_exeext'
18422 { (case "(($ac_try" in
18423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18424 *) ac_try_echo=$ac_try;;
18426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18427 (eval "$ac_try") 2>&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); }; }; then
18432 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18434 # Check for a 64-bit object if we didn't find anything.
18435 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; }
18438 echo "$as_me: failed program was:" >&5
18439 sed 's/^/| /' conftest.$ac_ext >&5
18444 rm -f core conftest.err conftest.$ac_objext \
18445 conftest$ac_exeext conftest.$ac_ext
18446 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18448 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18449 # Warning - without using the other run time loading flags,
18450 # -berok will link without error, but may produce a broken library.
18451 no_undefined_flag_CXX=' ${wl}-bernotok'
18452 allow_undefined_flag_CXX=' ${wl}-berok'
18453 # Exported symbols can be pulled into shared objects from archives
18454 whole_archive_flag_spec_CXX='$convenience'
18455 archive_cmds_need_lc_CXX=yes
18456 # This is similar to how AIX traditionally builds its shared libraries.
18457 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'
18463 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18464 allow_undefined_flag_CXX=unsupported
18465 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18466 # support --undefined. This deserves some investigation. FIXME
18467 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18474 case $cc_basename in
18476 # FIXME: insert proper C++ library support
18482 cygwin* | mingw* | pw32*)
18483 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18484 # as there is no search path for DLLs.
18485 hardcode_libdir_flag_spec_CXX='-L$libdir'
18486 allow_undefined_flag_CXX=unsupported
18487 always_export_symbols_CXX=no
18488 enable_shared_with_static_runtimes_CXX=yes
18490 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18491 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'
18492 # If the export-symbols file already is a .def file (1st line
18493 # is EXPORTS), use it as is; otherwise, prepend...
18494 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18495 cp $export_symbols $output_objdir/$soname.def;
18497 echo EXPORTS > $output_objdir/$soname.def;
18498 cat $export_symbols >> $output_objdir/$soname.def;
18500 $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'
18505 darwin* | rhapsody*)
18507 rhapsody* | darwin1.[012])
18508 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18511 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18512 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18514 case ${MACOSX_DEPLOYMENT_TARGET} in
18516 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18519 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18525 archive_cmds_need_lc_CXX=no
18526 hardcode_direct_CXX=no
18527 hardcode_automatic_CXX=yes
18528 hardcode_shlibpath_var_CXX=unsupported
18529 whole_archive_flag_spec_CXX=''
18530 link_all_deplibs_CXX=yes
18532 if test "$GXX" = yes ; then
18533 lt_int_apple_cc_single_mod=no
18534 output_verbose_link_cmd='echo'
18535 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18536 lt_int_apple_cc_single_mod=yes
18538 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18539 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18541 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'
18543 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18544 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18545 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18546 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}'
18548 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}'
18550 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}'
18552 case $cc_basename in
18554 output_verbose_link_cmd='echo'
18555 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'
18556 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18557 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18558 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}'
18559 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}'
18569 case $cc_basename in
18571 # FIXME: insert proper C++ library support
18575 # Green Hills C++ Compiler
18576 # FIXME: insert proper C++ library support
18580 # FIXME: insert proper C++ library support
18586 # C++ shared libraries reported to be fairly broken before switch to ELF
18590 archive_cmds_need_lc_CXX=no
18592 freebsd* | kfreebsd*-gnu | dragonfly*)
18593 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18600 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18601 hardcode_libdir_separator_CXX=:
18602 export_dynamic_flag_spec_CXX='${wl}-E'
18603 hardcode_direct_CXX=yes
18604 hardcode_minus_L_CXX=yes # Not in the search PATH,
18605 # but as the default
18606 # location of the library.
18608 case $cc_basename in
18610 # FIXME: insert proper C++ library support
18614 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'
18615 # Commands to make compiler produce verbose output that lists
18616 # what "hidden" libraries, object files and flags are used when
18617 # linking a shared library.
18619 # There doesn't appear to be a way to prevent this compiler from
18620 # explicitly linking system object files so we need to strip them
18621 # from the output so that they don't get included in the library
18623 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'
18626 if test "$GXX" = yes; then
18627 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'
18629 # FIXME: insert proper C++ library support
18636 if test $with_gnu_ld = no; then
18637 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18638 hardcode_libdir_separator_CXX=:
18642 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18645 export_dynamic_flag_spec_CXX='${wl}-E'
18651 hardcode_direct_CXX=no
18652 hardcode_shlibpath_var_CXX=no
18655 hardcode_direct_CXX=yes
18656 hardcode_minus_L_CXX=yes # Not in the search PATH,
18657 # but as the default
18658 # location of the library.
18662 case $cc_basename in
18664 # FIXME: insert proper C++ library support
18670 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18673 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18676 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18679 # Commands to make compiler produce verbose output that lists
18680 # what "hidden" libraries, object files and flags are used when
18681 # linking a shared library.
18683 # There doesn't appear to be a way to prevent this compiler from
18684 # explicitly linking system object files so we need to strip them
18685 # from the output so that they don't get included in the library
18687 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'
18690 if test "$GXX" = yes; then
18691 if test $with_gnu_ld = no; then
18694 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18697 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18700 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'
18705 # FIXME: insert proper C++ library support
18712 hardcode_direct_CXX=no
18713 hardcode_shlibpath_var_CXX=no
18714 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18715 export_dynamic_flag_spec_CXX='${wl}-E'
18716 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18717 # Instead, shared libraries are loaded at an image base (0x10000000 by
18718 # default) and relocated if they conflict, which is a slow very memory
18719 # consuming and fragmenting process. To avoid this, we pick a random,
18720 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18721 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18722 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'
18723 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'
18726 case $cc_basename in
18729 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'
18731 # Archives containing C++ object files must be created using
18732 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18733 # necessary to make sure instantiated templates are included
18735 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18738 if test "$GXX" = yes; then
18739 if test "$with_gnu_ld" = no; then
18740 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'
18742 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'
18745 link_all_deplibs_CXX=yes
18748 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18749 hardcode_libdir_separator_CXX=:
18752 case $cc_basename in
18754 # Kuck and Associates, Inc. (KAI) C++ Compiler
18756 # KCC will only create a shared library if the output file
18757 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18758 # to its proper name (with version) after linking.
18759 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'
18760 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'
18761 # Commands to make compiler produce verbose output that lists
18762 # what "hidden" libraries, object files and flags are used when
18763 # linking a shared library.
18765 # There doesn't appear to be a way to prevent this compiler from
18766 # explicitly linking system object files so we need to strip them
18767 # from the output so that they don't get included in the library
18769 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'
18771 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18772 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18774 # Archives containing C++ object files must be created using
18775 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18776 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18781 # version 8.0 and above of icpc choke on multiply defined symbols
18782 # if we add $predep_objects and $postdep_objects, however 7.1 and
18783 # earlier do not add the objects themselves.
18784 case `$CC -V 2>&1` in
18786 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18787 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'
18789 *) # Version 8.0 or newer
18792 ia64*) tmp_idyn=' -i_dynamic';;
18794 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18795 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'
18798 archive_cmds_need_lc_CXX=no
18799 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18800 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18801 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18804 # Portland Group C++ compiler
18805 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18806 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'
18808 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18809 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18810 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'
18814 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18815 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'
18817 runpath_var=LD_RUN_PATH
18818 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18819 hardcode_libdir_separator_CXX=:
18821 # Commands to make compiler produce verbose output that lists
18822 # what "hidden" libraries, object files and flags are used when
18823 # linking a shared library.
18825 # There doesn't appear to be a way to prevent this compiler from
18826 # explicitly linking system object files so we need to strip them
18827 # from the output so that they don't get included in the library
18829 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'
18834 # FIXME: insert proper C++ library support
18838 # FIXME: insert proper C++ library support
18842 case $cc_basename in
18844 # FIXME: insert proper C++ library support
18848 # FIXME: insert proper C++ library support
18854 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18855 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18857 hardcode_libdir_flag_spec_CXX='-R$libdir'
18858 hardcode_direct_CXX=yes
18859 hardcode_shlibpath_var_CXX=no
18861 # Workaround some broken pre-1.5 toolchains
18862 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18865 # C++ shared libraries are fairly broken
18869 hardcode_direct_CXX=yes
18870 hardcode_shlibpath_var_CXX=no
18871 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18872 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18873 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18874 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18875 export_dynamic_flag_spec_CXX='${wl}-E'
18876 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18878 output_verbose_link_cmd='echo'
18881 case $cc_basename in
18883 # Kuck and Associates, Inc. (KAI) C++ Compiler
18885 # KCC will only create a shared library if the output file
18886 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18887 # to its proper name (with version) after linking.
18888 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'
18890 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18891 hardcode_libdir_separator_CXX=:
18893 # Archives containing C++ object files must be created using
18894 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18895 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18899 # Rational C++ 2.4.1
18900 # FIXME: insert proper C++ library support
18904 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18905 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'
18907 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18908 hardcode_libdir_separator_CXX=:
18910 # Commands to make compiler produce verbose output that lists
18911 # what "hidden" libraries, object files and flags are used when
18912 # linking a shared library.
18914 # There doesn't appear to be a way to prevent this compiler from
18915 # explicitly linking system object files so we need to strip them
18916 # from the output so that they don't get included in the library
18918 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'
18921 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18922 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18923 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'
18925 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18926 hardcode_libdir_separator_CXX=:
18928 # Commands to make compiler produce verbose output that lists
18929 # what "hidden" libraries, object files and flags are used when
18930 # linking a shared library.
18931 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18934 # FIXME: insert proper C++ library support
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'
18950 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18951 hardcode_libdir_separator_CXX=:
18953 # Archives containing C++ object files must be created using
18954 # the KAI C++ compiler.
18955 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18958 # Rational C++ 2.4.1
18959 # FIXME: insert proper C++ library support
18963 allow_undefined_flag_CXX=' -expect_unresolved \*'
18964 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'
18965 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18966 echo "-hidden">> $lib.exp~
18967 $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~
18970 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18971 hardcode_libdir_separator_CXX=:
18973 # Commands to make compiler produce verbose output that lists
18974 # what "hidden" libraries, object files and flags are used when
18975 # linking a shared library.
18977 # There doesn't appear to be a way to prevent this compiler from
18978 # explicitly linking system object files so we need to strip them
18979 # from the output so that they don't get included in the library
18981 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'
18984 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18985 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18986 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'
18988 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18989 hardcode_libdir_separator_CXX=:
18991 # Commands to make compiler produce verbose output that lists
18992 # what "hidden" libraries, object files and flags are used when
18993 # linking a shared library.
18994 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18997 # FIXME: insert proper C++ library support
19004 # FIXME: insert proper C++ library support
19008 case $cc_basename in
19011 # FIXME: insert proper C++ library support
19016 # FIXME: insert proper C++ library support
19020 # FIXME: insert proper C++ library support
19026 case $cc_basename in
19028 # Sun C++ 4.2, 5.x and Centerline C++
19029 archive_cmds_need_lc_CXX=yes
19030 no_undefined_flag_CXX=' -zdefs'
19031 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19032 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19033 $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'
19035 hardcode_libdir_flag_spec_CXX='-R$libdir'
19036 hardcode_shlibpath_var_CXX=no
19038 solaris2.[0-5] | solaris2.[0-5].*) ;;
19040 # The C++ compiler is used as linker so we must use $wl
19041 # flag to pass the commands to the underlying system
19042 # linker. We must also pass each convience library through
19043 # to the system linker between allextract/defaultextract.
19044 # The C++ compiler will combine linker options so we
19045 # cannot just pass the convience library names through
19047 # Supported since Solaris 2.6 (maybe 2.5.1?)
19048 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'
19051 link_all_deplibs_CXX=yes
19053 output_verbose_link_cmd='echo'
19055 # Archives containing C++ object files must be created using
19056 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19057 # necessary to make sure instantiated templates are included
19059 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19062 # Green Hills C++ Compiler
19063 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19065 # The C++ compiler must be used to create the archive.
19066 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19069 # GNU C++ compiler with Solaris linker
19070 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19071 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19072 if $CC --version | grep -v '^2\.7' > /dev/null; then
19073 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19074 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19075 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19077 # Commands to make compiler produce verbose output that lists
19078 # what "hidden" libraries, object files and flags are used when
19079 # linking a shared library.
19080 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19082 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19084 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19085 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19086 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19088 # Commands to make compiler produce verbose output that lists
19089 # what "hidden" libraries, object files and flags are used when
19090 # linking a shared library.
19091 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19094 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19099 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19100 no_undefined_flag_CXX='${wl}-z,text'
19101 archive_cmds_need_lc_CXX=no
19102 hardcode_shlibpath_var_CXX=no
19103 runpath_var='LD_RUN_PATH'
19105 case $cc_basename in
19107 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19108 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19111 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19112 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19116 sysv5* | sco3.2v5* | sco5v6*)
19117 # Note: We can NOT use -z defs as we might desire, because we do not
19118 # link with -lc, and that would cause any symbols used from libc to
19119 # always be unresolved, which means just about no library would
19120 # ever link correctly. If we're not using GNU ld we use -z text
19121 # though, which does catch some bad symbols but isn't as heavy-handed
19123 # For security reasons, it is highly recommended that you always
19124 # use absolute paths for naming shared libraries, and exclude the
19125 # DT_RUNPATH tag from executables and libraries. But doing so
19126 # requires that you compile everything twice, which is a pain.
19127 # So that behaviour is only enabled if SCOABSPATH is set to a
19128 # non-empty value in the environment. Most likely only useful for
19129 # creating official distributions of packages.
19130 # This is a hack until libtool officially supports absolute path
19131 # names for shared libraries.
19132 no_undefined_flag_CXX='${wl}-z,text'
19133 allow_undefined_flag_CXX='${wl}-z,nodefs'
19134 archive_cmds_need_lc_CXX=no
19135 hardcode_shlibpath_var_CXX=no
19136 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19137 hardcode_libdir_separator_CXX=':'
19138 link_all_deplibs_CXX=yes
19139 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19140 runpath_var='LD_RUN_PATH'
19142 case $cc_basename in
19144 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19145 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19148 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19149 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19154 case $cc_basename in
19156 # NonStop-UX NCC 3.20
19157 # FIXME: insert proper C++ library support
19161 # FIXME: insert proper C++ library support
19167 # FIXME: insert proper C++ library support
19171 # FIXME: insert proper C++ library support
19175 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19176 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19177 test "$ld_shlibs_CXX" = no && can_build_shared=no
19183 cat > conftest.$ac_ext <<EOF
19187 Foo (void) { a = 0; }
19193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19194 (eval $ac_compile) 2>&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); }; then
19198 # Parse the compiler output and extract the necessary
19199 # objects, libraries and library flags.
19201 # Sentinel used to keep track of whether or not we are before
19202 # the conftest object file.
19203 pre_test_object_deps_done=no
19205 # The `*' in the case matches for architectures that use `case' in
19206 # $output_verbose_cmd can trigger glob expansion during the loop
19207 # eval without this substitution.
19208 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19210 for p in `eval $output_verbose_link_cmd`; do
19214 # Some compilers place space between "-{L,R}" and the path.
19215 # Remove the space.
19216 if test $p = "-L" \
19217 || test $p = "-R"; then
19224 if test "$pre_test_object_deps_done" = no; then
19227 # Internal compiler library paths should come after those
19228 # provided the user. The postdeps already come after the
19229 # user supplied libs so there is no need to process them.
19230 if test -z "$compiler_lib_search_path_CXX"; then
19231 compiler_lib_search_path_CXX="${prev}${p}"
19233 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19236 # The "-l" case would never come before the object being
19237 # linked, so don't bother handling this case.
19240 if test -z "$postdeps_CXX"; then
19241 postdeps_CXX="${prev}${p}"
19243 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19249 # This assumes that the test object file only shows up
19250 # once in the compiler output.
19251 if test "$p" = "conftest.$objext"; then
19252 pre_test_object_deps_done=yes
19256 if test "$pre_test_object_deps_done" = no; then
19257 if test -z "$predep_objects_CXX"; then
19258 predep_objects_CXX="$p"
19260 predep_objects_CXX="$predep_objects_CXX $p"
19263 if test -z "$postdep_objects_CXX"; then
19264 postdep_objects_CXX="$p"
19266 postdep_objects_CXX="$postdep_objects_CXX $p"
19271 *) ;; # Ignore the rest.
19279 echo "libtool.m4: error: problem compiling CXX test program"
19282 $rm -f confest.$objext
19284 # PORTME: override above test on systems where it is broken
19287 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19288 # hack all around it, let's just trust "g++" to DTRT.
19289 predep_objects_CXX=
19290 postdep_objects_CXX=
19295 case $cc_basename in
19297 # Adding this requires a known-good setup of shared libraries for
19298 # Sun compiler versions before 5.6, else PIC objects from an old
19299 # archive will be linked into the output, leading to subtle bugs.
19300 postdeps_CXX='-lCstd -lCrun'
19307 case " $postdeps_CXX " in
19308 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19311 lt_prog_compiler_wl_CXX=
19312 lt_prog_compiler_pic_CXX=
19313 lt_prog_compiler_static_CXX=
19315 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19316 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19318 # C++ specific cases for pic, static, wl, etc.
19319 if test "$GXX" = yes; then
19320 lt_prog_compiler_wl_CXX='-Wl,'
19321 lt_prog_compiler_static_CXX='-static'
19325 # All AIX code is PIC.
19326 if test "$host_cpu" = ia64; then
19327 # AIX 5 now supports IA64 processor
19328 lt_prog_compiler_static_CXX='-Bstatic'
19332 # FIXME: we need at least 68020 code to build shared libraries, but
19333 # adding the `-m68020' flag to GCC prevents building anything better,
19335 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19337 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19338 # PIC is the default for these OSes.
19340 mingw* | os2* | pw32*)
19341 # This hack is so that the source file can tell whether it is being
19342 # built for inclusion in a dll (and should export symbols for example).
19343 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19345 darwin* | rhapsody*)
19346 # PIC is the default on this platform
19347 # Common symbols not allowed in MH_DYLIB files
19348 lt_prog_compiler_pic_CXX='-fno-common'
19351 # DJGPP does not support shared libraries at all
19352 lt_prog_compiler_pic_CXX=
19355 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19356 # Instead, we relocate shared libraries at runtime.
19359 if test -d /usr/nec; then
19360 lt_prog_compiler_pic_CXX=-Kconform_pic
19364 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19365 # not for PA HP-UX.
19370 lt_prog_compiler_pic_CXX='-fPIC'
19375 lt_prog_compiler_pic_CXX='-fPIC'
19381 # All AIX code is PIC.
19382 if test "$host_cpu" = ia64; then
19383 # AIX 5 now supports IA64 processor
19384 lt_prog_compiler_static_CXX='-Bstatic'
19386 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19390 case $cc_basename in
19392 # Green Hills C++ Compiler
19393 # _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"
19398 # PIC is the default on this platform
19399 # Common symbols not allowed in MH_DYLIB files
19400 case $cc_basename in
19402 lt_prog_compiler_pic_CXX='-qnocommon'
19403 lt_prog_compiler_wl_CXX='-Wl,'
19408 case $cc_basename in
19410 lt_prog_compiler_pic_CXX='-KPIC'
19413 # Green Hills C++ Compiler
19414 lt_prog_compiler_pic_CXX='-pic'
19420 freebsd* | kfreebsd*-gnu | dragonfly*)
19421 # FreeBSD uses GNU C++
19423 hpux9* | hpux10* | hpux11*)
19424 case $cc_basename in
19426 lt_prog_compiler_wl_CXX='-Wl,'
19427 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19428 if test "$host_cpu" != ia64; then
19429 lt_prog_compiler_pic_CXX='+Z'
19433 lt_prog_compiler_wl_CXX='-Wl,'
19434 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19440 lt_prog_compiler_pic_CXX='+Z'
19449 # This is c89, which is MS Visual C++ (no shared libs)
19450 # Anyone wants to do a port?
19452 irix5* | irix6* | nonstopux*)
19453 case $cc_basename in
19455 lt_prog_compiler_wl_CXX='-Wl,'
19456 lt_prog_compiler_static_CXX='-non_shared'
19457 # CC pic flag -KPIC is the default.
19464 case $cc_basename in
19467 lt_prog_compiler_wl_CXX='--backend -Wl,'
19468 lt_prog_compiler_pic_CXX='-fPIC'
19472 lt_prog_compiler_wl_CXX='-Wl,'
19473 lt_prog_compiler_pic_CXX='-KPIC'
19474 lt_prog_compiler_static_CXX='-static'
19477 # Portland Group C++ compiler.
19478 lt_prog_compiler_wl_CXX='-Wl,'
19479 lt_prog_compiler_pic_CXX='-fpic'
19480 lt_prog_compiler_static_CXX='-Bstatic'
19484 # Make sure the PIC flag is empty. It appears that all Alpha
19485 # Linux and Compaq Tru64 Unix objects are PIC.
19486 lt_prog_compiler_pic_CXX=
19487 lt_prog_compiler_static_CXX='-non_shared'
19498 case $cc_basename in
19500 lt_prog_compiler_pic_CXX='-W c,exportall'
19508 osf3* | osf4* | osf5*)
19509 case $cc_basename in
19511 lt_prog_compiler_wl_CXX='--backend -Wl,'
19514 # Rational C++ 2.4.1
19515 lt_prog_compiler_pic_CXX='-pic'
19518 # Digital/Compaq C++
19519 lt_prog_compiler_wl_CXX='-Wl,'
19520 # Make sure the PIC flag is empty. It appears that all Alpha
19521 # Linux and Compaq Tru64 Unix objects are PIC.
19522 lt_prog_compiler_pic_CXX=
19523 lt_prog_compiler_static_CXX='-non_shared'
19532 case $cc_basename in
19534 # Sun C++ 4.2, 5.x and Centerline C++
19535 lt_prog_compiler_pic_CXX='-KPIC'
19536 lt_prog_compiler_static_CXX='-Bstatic'
19537 lt_prog_compiler_wl_CXX='-Qoption ld '
19540 # Green Hills C++ Compiler
19541 lt_prog_compiler_pic_CXX='-PIC'
19548 case $cc_basename in
19551 lt_prog_compiler_pic_CXX='-pic'
19552 lt_prog_compiler_static_CXX='-Bstatic'
19556 lt_prog_compiler_pic_CXX='-pic'
19563 case $cc_basename in
19565 # NonStop-UX NCC 3.20
19566 lt_prog_compiler_pic_CXX='-KPIC'
19572 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19573 case $cc_basename in
19575 lt_prog_compiler_wl_CXX='-Wl,'
19576 lt_prog_compiler_pic_CXX='-KPIC'
19577 lt_prog_compiler_static_CXX='-Bstatic'
19584 lt_prog_compiler_can_build_shared_CXX=no
19589 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19590 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19593 # Check to make sure the PIC flag actually works.
19595 if test -n "$lt_prog_compiler_pic_CXX"; then
19597 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19598 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19599 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19600 echo $ECHO_N "(cached) $ECHO_C" >&6
19602 lt_prog_compiler_pic_works_CXX=no
19603 ac_outfile=conftest.$ac_objext
19604 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19605 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19606 # Insert the option either (1) after the last *FLAGS variable, or
19607 # (2) before a word containing "conftest.", or (3) at the end.
19608 # Note that $ac_compile itself does not contain backslashes and begins
19609 # with a dollar sign (not a hyphen), so the echo should work correctly.
19610 # The option is referenced via a variable to avoid confusing sed.
19611 lt_compile=`echo "$ac_compile" | $SED \
19612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19614 -e 's:$: $lt_compiler_flag:'`
19615 (eval echo "\"\$as_me:19615: $lt_compile\"" >&5)
19616 (eval "$lt_compile" 2>conftest.err)
19618 cat conftest.err >&5
19619 echo "$as_me:19619: \$? = $ac_status" >&5
19620 if (exit $ac_status) && test -s "$ac_outfile"; then
19621 # The compiler can only warn and ignore the option if not recognized
19622 # So say no if there are warnings other than the usual output.
19623 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19624 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19625 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19626 lt_prog_compiler_pic_works_CXX=yes
19632 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19633 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19635 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19636 case $lt_prog_compiler_pic_CXX in
19638 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19641 lt_prog_compiler_pic_CXX=
19642 lt_prog_compiler_can_build_shared_CXX=no
19647 # For platforms which do not support PIC, -DPIC is meaningless:
19649 lt_prog_compiler_pic_CXX=
19652 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19657 # Check to make sure the static flag actually works.
19659 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19660 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19661 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19662 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19663 echo $ECHO_N "(cached) $ECHO_C" >&6
19665 lt_prog_compiler_static_works_CXX=no
19666 save_LDFLAGS="$LDFLAGS"
19667 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19668 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19669 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19670 # The linker can only warn and ignore the option if not recognized
19671 # So say no if there are warnings
19672 if test -s conftest.err; then
19673 # Append any errors to the config.log.
19674 cat conftest.err 1>&5
19675 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19676 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19677 if diff conftest.exp conftest.er2 >/dev/null; then
19678 lt_prog_compiler_static_works_CXX=yes
19681 lt_prog_compiler_static_works_CXX=yes
19685 LDFLAGS="$save_LDFLAGS"
19688 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19689 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19691 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19694 lt_prog_compiler_static_CXX=
19698 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19699 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19700 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19701 echo $ECHO_N "(cached) $ECHO_C" >&6
19703 lt_cv_prog_compiler_c_o_CXX=no
19704 $rm -r conftest 2>/dev/null
19708 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19710 lt_compiler_flag="-o out/conftest2.$ac_objext"
19711 # Insert the option either (1) after the last *FLAGS variable, or
19712 # (2) before a word containing "conftest.", or (3) at the end.
19713 # Note that $ac_compile itself does not contain backslashes and begins
19714 # with a dollar sign (not a hyphen), so the echo should work correctly.
19715 lt_compile=`echo "$ac_compile" | $SED \
19716 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19717 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19718 -e 's:$: $lt_compiler_flag:'`
19719 (eval echo "\"\$as_me:19719: $lt_compile\"" >&5)
19720 (eval "$lt_compile" 2>out/conftest.err)
19722 cat out/conftest.err >&5
19723 echo "$as_me:19723: \$? = $ac_status" >&5
19724 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19726 # The compiler can only warn and ignore the option if not recognized
19727 # So say no if there are warnings
19728 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19729 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19730 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19731 lt_cv_prog_compiler_c_o_CXX=yes
19736 # SGI C++ compiler will create directory out/ii_files/ for
19737 # template instantiation
19738 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19739 $rm out/* && rmdir out
19745 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19746 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19749 hard_links="nottested"
19750 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19751 # do not overwrite the value of need_locks provided by the user
19752 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19753 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19756 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19758 ln conftest.a conftest.b 2>&5 || hard_links=no
19759 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19760 { echo "$as_me:$LINENO: result: $hard_links" >&5
19761 echo "${ECHO_T}$hard_links" >&6; }
19762 if test "$hard_links" = no; then
19763 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19764 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19771 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19772 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19774 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19777 # If we're using GNU nm, then we don't want the "-C" option.
19778 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19779 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19780 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'
19782 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'
19786 export_symbols_cmds_CXX="$ltdll_cmds"
19789 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'
19792 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19796 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19797 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19798 test "$ld_shlibs_CXX" = no && can_build_shared=no
19801 # Do we need to explicitly link libc?
19803 case "x$archive_cmds_need_lc_CXX" in
19805 # Assume -lc should be added
19806 archive_cmds_need_lc_CXX=yes
19808 if test "$enable_shared" = yes && test "$GCC" = yes; then
19809 case $archive_cmds_CXX in
19811 # FIXME: we may have to deal with multi-command sequences.
19814 # Test whether the compiler implicitly links with -lc since on some
19815 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19816 # to ld, don't add -lc before -lgcc.
19817 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19818 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19820 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19823 (eval $ac_compile) 2>&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); } 2>conftest.err; then
19829 libobjs=conftest.$ac_objext
19831 wl=$lt_prog_compiler_wl_CXX
19832 pic_flag=$lt_prog_compiler_pic_CXX
19838 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19839 allow_undefined_flag_CXX=
19840 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19841 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }
19846 archive_cmds_need_lc_CXX=no
19848 archive_cmds_need_lc_CXX=yes
19850 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19852 cat conftest.err 1>&5
19855 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19856 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19863 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19864 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19865 library_names_spec=
19866 libname_spec='lib$name'
19870 postuninstall_cmds=
19874 shlibpath_overrides_runpath=unknown
19876 dynamic_linker="$host_os ld.so"
19877 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19878 if test "$GCC" = yes; then
19879 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19880 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19881 # if the path contains ";" then we assume it to be the separator
19882 # otherwise default to the standard path separator (i.e. ":") - it is
19883 # assumed that no part of a normal pathname contains ";" but that should
19884 # okay in the real world where ";" in dirpaths is itself problematic.
19885 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19887 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19890 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19892 need_lib_prefix=unknown
19893 hardcode_into_libs=no
19895 # when you set need_version to no, make sure it does not cause -set_version
19896 # flags to be left without arguments
19897 need_version=unknown
19902 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19903 shlibpath_var=LIBPATH
19905 # AIX 3 has no versioning support, so we append a major version to the name.
19906 soname_spec='${libname}${release}${shared_ext}$major'
19913 hardcode_into_libs=yes
19914 if test "$host_cpu" = ia64; then
19915 # AIX 5 supports IA64
19916 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19917 shlibpath_var=LD_LIBRARY_PATH
19919 # With GCC up to 2.95.x, collect2 would create an import file
19920 # for dependence libraries. The import file would start with
19921 # the line `#! .'. This would cause the generated library to
19922 # depend on `.', always an invalid library. This was fixed in
19923 # development snapshots of GCC prior to 3.0.
19925 aix4 | aix4.[01] | aix4.[01].*)
19926 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19928 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19931 can_build_shared=no
19935 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19936 # soname into executable. Probably we can add versioning support to
19937 # collect2, so additional links can be useful in future.
19938 if test "$aix_use_runtimelinking" = yes; then
19939 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19940 # instead of lib<name>.a to let people know that these are not
19941 # typical AIX shared libraries.
19942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19944 # We preserve .a as extension for shared libraries through AIX4.2
19945 # and later when we are not doing run time linking.
19946 library_names_spec='${libname}${release}.a $libname.a'
19947 soname_spec='${libname}${release}${shared_ext}$major'
19949 shlibpath_var=LIBPATH
19954 library_names_spec='$libname.ixlibrary $libname.a'
19955 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19956 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'
19960 library_names_spec='${libname}${shared_ext}'
19961 dynamic_linker="$host_os ld.so"
19962 shlibpath_var=LIBRARY_PATH
19968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19969 soname_spec='${libname}${release}${shared_ext}$major'
19970 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19971 shlibpath_var=LD_LIBRARY_PATH
19972 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19973 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19974 # the default ld.so.conf also contains /usr/contrib/lib and
19975 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19976 # libtool to hard-code these into programs
19979 cygwin* | mingw* | pw32*)
19980 version_type=windows
19985 case $GCC,$host_os in
19986 yes,cygwin* | yes,mingw* | yes,pw32*)
19987 library_names_spec='$libname.dll.a'
19988 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19989 postinstall_cmds='base_file=`basename \${file}`~
19990 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19991 dldir=$destdir/`dirname \$dlpath`~
19992 test -d \$dldir || mkdir -p \$dldir~
19993 $install_prog $dir/$dlname \$dldir/$dlname~
19994 chmod a+x \$dldir/$dlname'
19995 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19996 dlpath=$dir/\$dldll~
19998 shlibpath_overrides_runpath=yes
20002 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20003 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20004 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20007 # MinGW DLLs use traditional 'lib' prefix
20008 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20009 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20010 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20011 # It is most probably a Windows format PATH printed by
20012 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20013 # path with ; separators, and with drive letters. We can handle the
20014 # drive letters (cygwin fileutils understands them), so leave them,
20015 # especially as we might pass files found there to a mingw objdump,
20016 # which wouldn't understand a cygwinified path. Ahh.
20017 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20019 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20023 # pw32 DLLs use 'pw' prefix rather than 'lib'
20024 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20030 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20033 dynamic_linker='Win32 ld.exe'
20034 # FIXME: first we should search . and the directory the executable is in
20038 darwin* | rhapsody*)
20039 dynamic_linker="$host_os dyld"
20040 version_type=darwin
20043 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20044 soname_spec='${libname}${release}${major}$shared_ext'
20045 shlibpath_overrides_runpath=yes
20046 shlibpath_var=DYLD_LIBRARY_PATH
20047 shrext_cmds='.dylib'
20048 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20049 if test "$GCC" = yes; then
20050 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"`
20052 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20054 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20062 soname_spec='${libname}${release}${shared_ext}$major'
20063 shlibpath_var=LD_LIBRARY_PATH
20074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20075 soname_spec='${libname}${release}${shared_ext}$major'
20076 shlibpath_var=LD_LIBRARY_PATH
20077 shlibpath_overrides_runpath=no
20078 hardcode_into_libs=yes
20079 dynamic_linker='GNU ld.so'
20082 freebsd* | dragonfly*)
20083 # DragonFly does not have aout. When/if they implement a new
20084 # versioning mechanism, adjust this.
20085 if test -x /usr/bin/objformat; then
20086 objformat=`/usr/bin/objformat`
20089 freebsd[123]*) objformat=aout ;;
20090 *) objformat=elf ;;
20093 version_type=freebsd-$objformat
20094 case $version_type in
20096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20101 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20105 shlibpath_var=LD_LIBRARY_PATH
20108 shlibpath_overrides_runpath=yes
20110 freebsd3.[01]* | freebsdelf3.[01]*)
20111 shlibpath_overrides_runpath=yes
20112 hardcode_into_libs=yes
20114 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20115 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20116 shlibpath_overrides_runpath=no
20117 hardcode_into_libs=yes
20119 freebsd*) # from 4.6 on
20120 shlibpath_overrides_runpath=yes
20121 hardcode_into_libs=yes
20130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20131 soname_spec='${libname}${release}${shared_ext}$major'
20132 shlibpath_var=LD_LIBRARY_PATH
20133 hardcode_into_libs=yes
20136 hpux9* | hpux10* | hpux11*)
20137 # Give a soname corresponding to the major version so that dld.sl refuses to
20138 # link against other versions.
20145 hardcode_into_libs=yes
20146 dynamic_linker="$host_os dld.so"
20147 shlibpath_var=LD_LIBRARY_PATH
20148 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20150 soname_spec='${libname}${release}${shared_ext}$major'
20151 if test "X$HPUX_IA64_MODE" = X32; then
20152 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20154 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20156 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20160 hardcode_into_libs=yes
20161 dynamic_linker="$host_os dld.sl"
20162 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20163 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20165 soname_spec='${libname}${release}${shared_ext}$major'
20166 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20167 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20171 dynamic_linker="$host_os dld.sl"
20172 shlibpath_var=SHLIB_PATH
20173 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20175 soname_spec='${libname}${release}${shared_ext}$major'
20178 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20179 postinstall_cmds='chmod 555 $lib'
20186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20187 soname_spec='${libname}${release}${shared_ext}$major'
20188 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20189 shlibpath_var=LD_LIBRARY_PATH
20190 shlibpath_overrides_runpath=no
20191 hardcode_into_libs=yes
20194 irix5* | irix6* | nonstopux*)
20196 nonstopux*) version_type=nonstopux ;;
20198 if test "$lt_cv_prog_gnu_ld" = yes; then
20206 soname_spec='${libname}${release}${shared_ext}$major'
20207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20209 irix5* | nonstopux*)
20210 libsuff= shlibsuff=
20213 case $LD in # libtool.m4 will add one of these switches to LD
20214 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20215 libsuff= shlibsuff= libmagic=32-bit;;
20216 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20217 libsuff=32 shlibsuff=N32 libmagic=N32;;
20218 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20219 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20220 *) libsuff= shlibsuff= libmagic=never-match;;
20224 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20225 shlibpath_overrides_runpath=no
20226 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20227 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20228 hardcode_into_libs=yes
20231 # No shared lib support for Linux oldld, aout, or coff.
20232 linux*oldld* | linux*aout* | linux*coff*)
20236 # This must be Linux ELF.
20241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20242 soname_spec='${libname}${release}${shared_ext}$major'
20243 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20244 shlibpath_var=LD_LIBRARY_PATH
20245 shlibpath_overrides_runpath=no
20246 # This implies no fast_install, which is unacceptable.
20247 # Some rework will be needed to allow for fast_install
20248 # before this can be enabled.
20249 hardcode_into_libs=yes
20251 # Append ld.so.conf contents to the search path
20252 if test -f /etc/ld.so.conf; then
20253 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' ' '`
20254 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20257 # We used to test for /lib/ld.so.1 and disable shared libraries on
20258 # powerpc, because MkLinux only supported shared libraries with the
20259 # GNU dynamic linker. Since this was broken with cross compilers,
20260 # most powerpc-linux boxes support dynamic linking these days and
20261 # people can always --disable-shared, the test was removed, and we
20262 # assume the GNU/Linux dynamic linker is in use.
20263 dynamic_linker='GNU/Linux ld.so'
20270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20271 soname_spec='${libname}${release}${shared_ext}$major'
20272 shlibpath_var=LD_LIBRARY_PATH
20273 shlibpath_overrides_runpath=no
20274 hardcode_into_libs=yes
20275 dynamic_linker='GNU ld.so'
20282 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20285 dynamic_linker='NetBSD (a.out) ld.so'
20287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20288 soname_spec='${libname}${release}${shared_ext}$major'
20289 dynamic_linker='NetBSD ld.elf_so'
20291 shlibpath_var=LD_LIBRARY_PATH
20292 shlibpath_overrides_runpath=yes
20293 hardcode_into_libs=yes
20298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20299 shlibpath_var=LD_LIBRARY_PATH
20300 shlibpath_overrides_runpath=yes
20307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20308 soname_spec='${libname}${release}${shared_ext}$major'
20309 shlibpath_var=LD_LIBRARY_PATH
20310 shlibpath_overrides_runpath=yes
20315 sys_lib_dlsearch_path_spec="/usr/lib"
20317 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20319 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20320 *) need_version=no ;;
20322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20324 shlibpath_var=LD_LIBRARY_PATH
20325 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20327 openbsd2.[89] | openbsd2.[89].*)
20328 shlibpath_overrides_runpath=no
20331 shlibpath_overrides_runpath=yes
20335 shlibpath_overrides_runpath=yes
20340 libname_spec='$name'
20343 library_names_spec='$libname${shared_ext} $libname.a'
20344 dynamic_linker='OS/2 ld.exe'
20345 shlibpath_var=LIBPATH
20348 osf3* | osf4* | osf5*)
20352 soname_spec='${libname}${release}${shared_ext}$major'
20353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20354 shlibpath_var=LD_LIBRARY_PATH
20355 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20356 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
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'
20365 shlibpath_var=LD_LIBRARY_PATH
20366 shlibpath_overrides_runpath=yes
20367 hardcode_into_libs=yes
20368 # ldd complains unless libraries are executable
20369 postinstall_cmds='chmod +x $lib'
20374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20375 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20376 shlibpath_var=LD_LIBRARY_PATH
20377 shlibpath_overrides_runpath=yes
20378 if test "$with_gnu_ld" = yes; then
20386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20387 soname_spec='${libname}${release}${shared_ext}$major'
20388 shlibpath_var=LD_LIBRARY_PATH
20389 case $host_vendor in
20391 shlibpath_overrides_runpath=no
20393 export_dynamic_flag_spec='${wl}-Blargedynsym'
20394 runpath_var=LD_RUN_PATH
20402 shlibpath_overrides_runpath=no
20403 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20409 if test -d /usr/nec ;then
20411 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20412 soname_spec='$libname${shared_ext}.$major'
20413 shlibpath_var=LD_LIBRARY_PATH
20417 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20418 version_type=freebsd-elf
20421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20422 soname_spec='${libname}${release}${shared_ext}$major'
20423 shlibpath_var=LD_LIBRARY_PATH
20424 hardcode_into_libs=yes
20425 if test "$with_gnu_ld" = yes; then
20426 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20427 shlibpath_overrides_runpath=no
20429 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20430 shlibpath_overrides_runpath=yes
20433 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20437 sys_lib_dlsearch_path_spec='/usr/lib'
20442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20443 soname_spec='${libname}${release}${shared_ext}$major'
20444 shlibpath_var=LD_LIBRARY_PATH
20451 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20452 echo "${ECHO_T}$dynamic_linker" >&6; }
20453 test "$dynamic_linker" = no && can_build_shared=no
20455 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20456 if test "$GCC" = yes; then
20457 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20460 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20461 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20462 hardcode_action_CXX=
20463 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20464 test -n "$runpath_var_CXX" || \
20465 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20467 # We can hardcode non-existant directories.
20468 if test "$hardcode_direct_CXX" != no &&
20469 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20470 # have to relink, otherwise we might link with an installed library
20471 # when we should be linking with a yet-to-be-installed one
20472 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20473 test "$hardcode_minus_L_CXX" != no; then
20474 # Linking always hardcodes the temporary library directory.
20475 hardcode_action_CXX=relink
20477 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20478 hardcode_action_CXX=immediate
20481 # We cannot hardcode anything, or else we can only hardcode existing
20483 hardcode_action_CXX=unsupported
20485 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20486 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20488 if test "$hardcode_action_CXX" = relink; then
20489 # Fast installation is not supported
20490 enable_fast_install=no
20491 elif test "$shlibpath_overrides_runpath" = yes ||
20492 test "$enable_shared" = no; then
20493 # Fast installation is not necessary
20494 enable_fast_install=needless
20498 # The else clause should only fire when bootstrapping the
20499 # libtool distribution, otherwise you forgot to ship ltmain.sh
20500 # with your package, and you will get complaints that there are
20501 # no rules to generate ltmain.sh.
20502 if test -f "$ltmain"; then
20503 # See if we are running on zsh, and set the options which allow our commands through
20504 # without removal of \ escapes.
20505 if test -n "${ZSH_VERSION+set}" ; then
20506 setopt NO_GLOB_SUBST
20508 # Now quote all the things that may contain metacharacters while being
20509 # careful not to overquote the AC_SUBSTed values. We take copies of the
20510 # variables and quote the copies for generation of the libtool script.
20511 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20513 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20514 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20515 deplibs_check_method reload_flag reload_cmds need_locks \
20516 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20517 lt_cv_sys_global_symbol_to_c_name_address \
20518 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20519 old_postinstall_cmds old_postuninstall_cmds \
20523 lt_prog_compiler_wl_CXX \
20524 lt_prog_compiler_pic_CXX \
20525 lt_prog_compiler_static_CXX \
20526 lt_prog_compiler_no_builtin_flag_CXX \
20527 export_dynamic_flag_spec_CXX \
20528 thread_safe_flag_spec_CXX \
20529 whole_archive_flag_spec_CXX \
20530 enable_shared_with_static_runtimes_CXX \
20531 old_archive_cmds_CXX \
20532 old_archive_from_new_cmds_CXX \
20533 predep_objects_CXX \
20534 postdep_objects_CXX \
20537 compiler_lib_search_path_CXX \
20539 archive_expsym_cmds_CXX \
20540 postinstall_cmds_CXX \
20541 postuninstall_cmds_CXX \
20542 old_archive_from_expsyms_cmds_CXX \
20543 allow_undefined_flag_CXX \
20544 no_undefined_flag_CXX \
20545 export_symbols_cmds_CXX \
20546 hardcode_libdir_flag_spec_CXX \
20547 hardcode_libdir_flag_spec_ld_CXX \
20548 hardcode_libdir_separator_CXX \
20549 hardcode_automatic_CXX \
20551 module_expsym_cmds_CXX \
20552 lt_cv_prog_compiler_c_o_CXX \
20553 exclude_expsyms_CXX \
20554 include_expsyms_CXX; do
20557 old_archive_cmds_CXX | \
20558 old_archive_from_new_cmds_CXX | \
20559 archive_cmds_CXX | \
20560 archive_expsym_cmds_CXX | \
20561 module_cmds_CXX | \
20562 module_expsym_cmds_CXX | \
20563 old_archive_from_expsyms_cmds_CXX | \
20564 export_symbols_cmds_CXX | \
20565 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20566 postinstall_cmds | postuninstall_cmds | \
20567 old_postinstall_cmds | old_postuninstall_cmds | \
20568 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20569 # Double-quote double-evaled strings.
20570 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20573 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20579 *'\$0 --fallback-echo"')
20580 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20586 cat <<__EOF__ >> "$cfgfile"
20587 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20589 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20591 # Shell to use when invoking shell scripts.
20594 # Whether or not to build shared libraries.
20595 build_libtool_libs=$enable_shared
20597 # Whether or not to build static libraries.
20598 build_old_libs=$enable_static
20600 # Whether or not to add -lc for building shared libraries.
20601 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20603 # Whether or not to disallow shared libs when runtime libs are static
20604 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20606 # Whether or not to optimize for fast installation.
20607 fast_install=$enable_fast_install
20610 host_alias=$host_alias
20614 # The build system.
20615 build_alias=$build_alias
20619 # An echo program that does not interpret backslashes.
20624 AR_FLAGS=$lt_AR_FLAGS
20629 # LTCC compiler flags.
20630 LTCFLAGS=$lt_LTCFLAGS
20632 # A language-specific compiler.
20633 CC=$lt_compiler_CXX
20635 # Is the compiler the GNU C compiler?
20641 # The linker used to build libraries.
20644 # Whether we need hard or soft links.
20647 # A BSD-compatible nm program.
20650 # A symbol stripping program
20653 # Used to examine libraries when file_magic_cmd begins "file"
20654 MAGIC_CMD=$MAGIC_CMD
20656 # Used on cygwin: DLL creation program.
20659 # Used on cygwin: object dumper.
20662 # Used on cygwin: assembler.
20665 # The name of the directory that contains temporary libtool files.
20668 # How to create reloadable object files.
20669 reload_flag=$lt_reload_flag
20670 reload_cmds=$lt_reload_cmds
20672 # How to pass a linker flag through the compiler.
20673 wl=$lt_lt_prog_compiler_wl_CXX
20675 # Object file suffix (normally "o").
20676 objext="$ac_objext"
20678 # Old archive suffix (normally "a").
20681 # Shared library suffix (normally ".so").
20682 shrext_cmds='$shrext_cmds'
20684 # Executable file suffix (normally "").
20687 # Additional compiler flags for building library objects.
20688 pic_flag=$lt_lt_prog_compiler_pic_CXX
20691 # What is the maximum length of a command?
20692 max_cmd_len=$lt_cv_sys_max_cmd_len
20694 # Does compiler simultaneously support -c and -o options?
20695 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20697 # Must we lock files when doing compilation?
20698 need_locks=$lt_need_locks
20700 # Do we need the lib prefix for modules?
20701 need_lib_prefix=$need_lib_prefix
20703 # Do we need a version for libraries?
20704 need_version=$need_version
20706 # Whether dlopen is supported.
20707 dlopen_support=$enable_dlopen
20709 # Whether dlopen of programs is supported.
20710 dlopen_self=$enable_dlopen_self
20712 # Whether dlopen of statically linked programs is supported.
20713 dlopen_self_static=$enable_dlopen_self_static
20715 # Compiler flag to prevent dynamic linking.
20716 link_static_flag=$lt_lt_prog_compiler_static_CXX
20718 # Compiler flag to turn off builtin functions.
20719 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20721 # Compiler flag to allow reflexive dlopens.
20722 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20724 # Compiler flag to generate shared objects directly from archives.
20725 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20727 # Compiler flag to generate thread-safe objects.
20728 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20730 # Library versioning type.
20731 version_type=$version_type
20733 # Format of library name prefix.
20734 libname_spec=$lt_libname_spec
20736 # List of archive names. First name is the real one, the rest are links.
20737 # The last name is the one that the linker finds with -lNAME.
20738 library_names_spec=$lt_library_names_spec
20740 # The coded name of the library, if different from the real name.
20741 soname_spec=$lt_soname_spec
20743 # Commands used to build and install an old-style archive.
20745 old_archive_cmds=$lt_old_archive_cmds_CXX
20746 old_postinstall_cmds=$lt_old_postinstall_cmds
20747 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20749 # Create an old-style archive from a shared archive.
20750 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20752 # Create a temporary old-style archive to link instead of a shared archive.
20753 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20755 # Commands used to build and install a shared archive.
20756 archive_cmds=$lt_archive_cmds_CXX
20757 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20758 postinstall_cmds=$lt_postinstall_cmds
20759 postuninstall_cmds=$lt_postuninstall_cmds
20761 # Commands used to build a loadable module (assumed same as above if empty)
20762 module_cmds=$lt_module_cmds_CXX
20763 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20765 # Commands to strip libraries.
20766 old_striplib=$lt_old_striplib
20767 striplib=$lt_striplib
20769 # Dependencies to place before the objects being linked to create a
20771 predep_objects=$lt_predep_objects_CXX
20773 # Dependencies to place after the objects being linked to create a
20775 postdep_objects=$lt_postdep_objects_CXX
20777 # Dependencies to place before the objects being linked to create a
20779 predeps=$lt_predeps_CXX
20781 # Dependencies to place after the objects being linked to create a
20783 postdeps=$lt_postdeps_CXX
20785 # The library search path used internally by the compiler when linking
20786 # a shared library.
20787 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20789 # Method to check whether dependent libraries are shared objects.
20790 deplibs_check_method=$lt_deplibs_check_method
20792 # Command to use when deplibs_check_method == file_magic.
20793 file_magic_cmd=$lt_file_magic_cmd
20795 # Flag that allows shared libraries with undefined symbols to be built.
20796 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20798 # Flag that forces no undefined symbols.
20799 no_undefined_flag=$lt_no_undefined_flag_CXX
20801 # Commands used to finish a libtool library installation in a directory.
20802 finish_cmds=$lt_finish_cmds
20804 # Same as above, but a single script fragment to be evaled but not shown.
20805 finish_eval=$lt_finish_eval
20807 # Take the output of nm and produce a listing of raw symbols and C names.
20808 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20810 # Transform the output of nm in a proper C declaration
20811 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20813 # Transform the output of nm in a C name address pair
20814 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20816 # This is the shared library runtime path variable.
20817 runpath_var=$runpath_var
20819 # This is the shared library path variable.
20820 shlibpath_var=$shlibpath_var
20822 # Is shlibpath searched before the hard-coded library search path?
20823 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20825 # How to hardcode a shared library path into an executable.
20826 hardcode_action=$hardcode_action_CXX
20828 # Whether we should hardcode library paths into libraries.
20829 hardcode_into_libs=$hardcode_into_libs
20831 # Flag to hardcode \$libdir into a binary during linking.
20832 # This must work even if \$libdir does not exist.
20833 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20835 # If ld is used when linking, flag to hardcode \$libdir into
20836 # a binary during linking. This must work even if \$libdir does
20838 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20840 # Whether we need a single -rpath flag with a separated argument.
20841 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20843 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20844 # resulting binary.
20845 hardcode_direct=$hardcode_direct_CXX
20847 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20848 # resulting binary.
20849 hardcode_minus_L=$hardcode_minus_L_CXX
20851 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20852 # the resulting binary.
20853 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20855 # Set to yes if building a shared library automatically hardcodes DIR into the library
20856 # and all subsequent libraries and executables linked against it.
20857 hardcode_automatic=$hardcode_automatic_CXX
20859 # Variables whose values should be saved in libtool wrapper scripts and
20860 # restored at relink time.
20861 variables_saved_for_relink="$variables_saved_for_relink"
20863 # Whether libtool must link a program against all its dependency libraries.
20864 link_all_deplibs=$link_all_deplibs_CXX
20866 # Compile-time system search path for libraries
20867 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20869 # Run-time system search path for libraries
20870 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20872 # Fix the shell variable \$srcfile for the compiler.
20873 fix_srcfile_path="$fix_srcfile_path_CXX"
20875 # Set to yes if exported symbols are required.
20876 always_export_symbols=$always_export_symbols_CXX
20878 # The commands to list exported symbols.
20879 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20881 # The commands to extract the exported symbol list from a shared archive.
20882 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20884 # Symbols that should not be listed in the preloaded symbols.
20885 exclude_expsyms=$lt_exclude_expsyms_CXX
20887 # Symbols that must always be exported.
20888 include_expsyms=$lt_include_expsyms_CXX
20890 # ### END LIBTOOL TAG CONFIG: $tagname
20896 # If there is no Makefile yet, we rely on a make rule to execute
20897 # `config.status --recheck' to rerun these tests and create the
20898 # libtool script then.
20899 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20900 if test -f "$ltmain_in"; then
20901 test -f Makefile && make "$ltmain"
20907 ac_cpp='$CPP $CPPFLAGS'
20908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20916 with_gnu_ldcxx=$with_gnu_ld
20917 with_gnu_ld=$lt_save_with_gnu_ld
20918 lt_cv_path_LDCXX=$lt_cv_path_LD
20919 lt_cv_path_LD=$lt_save_path_LD
20920 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20921 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20929 if test -n "$F77" && test "X$F77" != "Xno"; then
20932 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20933 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20934 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20937 archive_cmds_need_lc_F77=no
20938 allow_undefined_flag_F77=
20939 always_export_symbols_F77=no
20940 archive_expsym_cmds_F77=
20941 export_dynamic_flag_spec_F77=
20942 hardcode_direct_F77=no
20943 hardcode_libdir_flag_spec_F77=
20944 hardcode_libdir_flag_spec_ld_F77=
20945 hardcode_libdir_separator_F77=
20946 hardcode_minus_L_F77=no
20947 hardcode_automatic_F77=no
20949 module_expsym_cmds_F77=
20950 link_all_deplibs_F77=unknown
20951 old_archive_cmds_F77=$old_archive_cmds
20952 no_undefined_flag_F77=
20953 whole_archive_flag_spec_F77=
20954 enable_shared_with_static_runtimes_F77=no
20956 # Source file extension for f77 test sources.
20959 # Object file extension for compiled f77 test sources.
20963 # Code to be used in simple compile tests
20964 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20966 # Code to be used in simple link tests
20967 lt_simple_link_test_code=" program t\n end\n"
20969 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20971 # If no C compiler was specified, use CC.
20974 # If no C compiler flags were specified, use CFLAGS.
20975 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20977 # Allow CC to be a program name with arguments.
20981 # save warnings/boilerplate of simple test code
20982 ac_outfile=conftest.$ac_objext
20983 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20984 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20985 _lt_compiler_boilerplate=`cat conftest.err`
20988 ac_outfile=conftest.$ac_objext
20989 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20990 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20991 _lt_linker_boilerplate=`cat conftest.err`
20995 # Allow CC to be a program name with arguments.
21000 for cc_temp in $compiler""; do
21002 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21003 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21008 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21011 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21012 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21013 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21014 echo "${ECHO_T}$can_build_shared" >&6; }
21016 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21017 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21018 test "$can_build_shared" = "no" && enable_shared=no
21020 # On AIX, shared libraries and static libraries use the same namespace, and
21021 # are all built from PIC.
21024 test "$enable_shared" = yes && enable_static=no
21025 if test -n "$RANLIB"; then
21026 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21027 postinstall_cmds='$RANLIB $lib'
21031 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21032 test "$enable_shared" = yes && enable_static=no
21036 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21037 echo "${ECHO_T}$enable_shared" >&6; }
21039 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21040 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21041 # Make sure either enable_shared or enable_static is yes.
21042 test "$enable_shared" = yes || enable_static=yes
21043 { echo "$as_me:$LINENO: result: $enable_static" >&5
21044 echo "${ECHO_T}$enable_static" >&6; }
21049 lt_prog_compiler_wl_F77=
21050 lt_prog_compiler_pic_F77=
21051 lt_prog_compiler_static_F77=
21053 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21054 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21056 if test "$GCC" = yes; then
21057 lt_prog_compiler_wl_F77='-Wl,'
21058 lt_prog_compiler_static_F77='-static'
21062 # All AIX code is PIC.
21063 if test "$host_cpu" = ia64; then
21064 # AIX 5 now supports IA64 processor
21065 lt_prog_compiler_static_F77='-Bstatic'
21070 # FIXME: we need at least 68020 code to build shared libraries, but
21071 # adding the `-m68020' flag to GCC prevents building anything better,
21073 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21076 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21077 # PIC is the default for these OSes.
21080 mingw* | pw32* | os2*)
21081 # This hack is so that the source file can tell whether it is being
21082 # built for inclusion in a dll (and should export symbols for example).
21083 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21086 darwin* | rhapsody*)
21087 # PIC is the default on this platform
21088 # Common symbols not allowed in MH_DYLIB files
21089 lt_prog_compiler_pic_F77='-fno-common'
21093 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21094 # Instead, we relocate shared libraries at runtime.
21098 # Just because we use GCC doesn't mean we suddenly get shared libraries
21099 # on systems that don't support them.
21100 lt_prog_compiler_can_build_shared_F77=no
21105 if test -d /usr/nec; then
21106 lt_prog_compiler_pic_F77=-Kconform_pic
21111 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21112 # not for PA HP-UX.
21118 lt_prog_compiler_pic_F77='-fPIC'
21124 lt_prog_compiler_pic_F77='-fPIC'
21128 # PORTME Check for flag to pass linker flags through the system compiler.
21131 lt_prog_compiler_wl_F77='-Wl,'
21132 if test "$host_cpu" = ia64; then
21133 # AIX 5 now supports IA64 processor
21134 lt_prog_compiler_static_F77='-Bstatic'
21136 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21140 # PIC is the default on this platform
21141 # Common symbols not allowed in MH_DYLIB files
21142 case $cc_basename in
21144 lt_prog_compiler_pic_F77='-qnocommon'
21145 lt_prog_compiler_wl_F77='-Wl,'
21150 mingw* | pw32* | os2*)
21151 # This hack is so that the source file can tell whether it is being
21152 # built for inclusion in a dll (and should export symbols for example).
21153 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21156 hpux9* | hpux10* | hpux11*)
21157 lt_prog_compiler_wl_F77='-Wl,'
21158 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21159 # not for PA HP-UX.
21165 lt_prog_compiler_pic_F77='+Z'
21168 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21169 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21172 irix5* | irix6* | nonstopux*)
21173 lt_prog_compiler_wl_F77='-Wl,'
21174 # PIC (with -KPIC) is the default.
21175 lt_prog_compiler_static_F77='-non_shared'
21179 lt_prog_compiler_pic_F77='-KPIC'
21180 lt_prog_compiler_static_F77='-Bstatic'
21184 case $cc_basename in
21186 lt_prog_compiler_wl_F77='-Wl,'
21187 lt_prog_compiler_pic_F77='-KPIC'
21188 lt_prog_compiler_static_F77='-static'
21190 pgcc* | pgf77* | pgf90* | pgf95*)
21191 # Portland Group compilers (*not* the Pentium gcc compiler,
21192 # which looks to be a dead project)
21193 lt_prog_compiler_wl_F77='-Wl,'
21194 lt_prog_compiler_pic_F77='-fpic'
21195 lt_prog_compiler_static_F77='-Bstatic'
21198 lt_prog_compiler_wl_F77='-Wl,'
21199 # All Alpha code is PIC.
21200 lt_prog_compiler_static_F77='-non_shared'
21205 osf3* | osf4* | osf5*)
21206 lt_prog_compiler_wl_F77='-Wl,'
21207 # All OSF/1 code is PIC.
21208 lt_prog_compiler_static_F77='-non_shared'
21212 lt_prog_compiler_pic_F77='-KPIC'
21213 lt_prog_compiler_static_F77='-Bstatic'
21214 case $cc_basename in
21215 f77* | f90* | f95*)
21216 lt_prog_compiler_wl_F77='-Qoption ld ';;
21218 lt_prog_compiler_wl_F77='-Wl,';;
21223 lt_prog_compiler_wl_F77='-Qoption ld '
21224 lt_prog_compiler_pic_F77='-PIC'
21225 lt_prog_compiler_static_F77='-Bstatic'
21228 sysv4 | sysv4.2uw2* | sysv4.3*)
21229 lt_prog_compiler_wl_F77='-Wl,'
21230 lt_prog_compiler_pic_F77='-KPIC'
21231 lt_prog_compiler_static_F77='-Bstatic'
21235 if test -d /usr/nec ;then
21236 lt_prog_compiler_pic_F77='-Kconform_pic'
21237 lt_prog_compiler_static_F77='-Bstatic'
21241 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21242 lt_prog_compiler_wl_F77='-Wl,'
21243 lt_prog_compiler_pic_F77='-KPIC'
21244 lt_prog_compiler_static_F77='-Bstatic'
21248 lt_prog_compiler_wl_F77='-Wl,'
21249 lt_prog_compiler_can_build_shared_F77=no
21253 lt_prog_compiler_pic_F77='-pic'
21254 lt_prog_compiler_static_F77='-Bstatic'
21258 lt_prog_compiler_can_build_shared_F77=no
21263 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21264 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21267 # Check to make sure the PIC flag actually works.
21269 if test -n "$lt_prog_compiler_pic_F77"; then
21271 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21272 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21273 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21276 lt_prog_compiler_pic_works_F77=no
21277 ac_outfile=conftest.$ac_objext
21278 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21279 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21280 # Insert the option either (1) after the last *FLAGS variable, or
21281 # (2) before a word containing "conftest.", or (3) at the end.
21282 # Note that $ac_compile itself does not contain backslashes and begins
21283 # with a dollar sign (not a hyphen), so the echo should work correctly.
21284 # The option is referenced via a variable to avoid confusing sed.
21285 lt_compile=`echo "$ac_compile" | $SED \
21286 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21287 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21288 -e 's:$: $lt_compiler_flag:'`
21289 (eval echo "\"\$as_me:21289: $lt_compile\"" >&5)
21290 (eval "$lt_compile" 2>conftest.err)
21292 cat conftest.err >&5
21293 echo "$as_me:21293: \$? = $ac_status" >&5
21294 if (exit $ac_status) && test -s "$ac_outfile"; then
21295 # The compiler can only warn and ignore the option if not recognized
21296 # So say no if there are warnings other than the usual output.
21297 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21298 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21299 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21300 lt_prog_compiler_pic_works_F77=yes
21306 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21307 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21309 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21310 case $lt_prog_compiler_pic_F77 in
21312 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21315 lt_prog_compiler_pic_F77=
21316 lt_prog_compiler_can_build_shared_F77=no
21321 # For platforms which do not support PIC, -DPIC is meaningless:
21323 lt_prog_compiler_pic_F77=
21326 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21331 # Check to make sure the static flag actually works.
21333 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21334 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21335 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21336 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21337 echo $ECHO_N "(cached) $ECHO_C" >&6
21339 lt_prog_compiler_static_works_F77=no
21340 save_LDFLAGS="$LDFLAGS"
21341 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21342 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21343 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21344 # The linker can only warn and ignore the option if not recognized
21345 # So say no if there are warnings
21346 if test -s conftest.err; then
21347 # Append any errors to the config.log.
21348 cat conftest.err 1>&5
21349 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21350 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21351 if diff conftest.exp conftest.er2 >/dev/null; then
21352 lt_prog_compiler_static_works_F77=yes
21355 lt_prog_compiler_static_works_F77=yes
21359 LDFLAGS="$save_LDFLAGS"
21362 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21363 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21365 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21368 lt_prog_compiler_static_F77=
21372 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21373 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21374 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21375 echo $ECHO_N "(cached) $ECHO_C" >&6
21377 lt_cv_prog_compiler_c_o_F77=no
21378 $rm -r conftest 2>/dev/null
21382 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21384 lt_compiler_flag="-o out/conftest2.$ac_objext"
21385 # Insert the option either (1) after the last *FLAGS variable, or
21386 # (2) before a word containing "conftest.", or (3) at the end.
21387 # Note that $ac_compile itself does not contain backslashes and begins
21388 # with a dollar sign (not a hyphen), so the echo should work correctly.
21389 lt_compile=`echo "$ac_compile" | $SED \
21390 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21391 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21392 -e 's:$: $lt_compiler_flag:'`
21393 (eval echo "\"\$as_me:21393: $lt_compile\"" >&5)
21394 (eval "$lt_compile" 2>out/conftest.err)
21396 cat out/conftest.err >&5
21397 echo "$as_me:21397: \$? = $ac_status" >&5
21398 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21400 # The compiler can only warn and ignore the option if not recognized
21401 # So say no if there are warnings
21402 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21403 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21404 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21405 lt_cv_prog_compiler_c_o_F77=yes
21410 # SGI C++ compiler will create directory out/ii_files/ for
21411 # template instantiation
21412 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21413 $rm out/* && rmdir out
21419 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21420 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21423 hard_links="nottested"
21424 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21425 # do not overwrite the value of need_locks provided by the user
21426 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21427 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21430 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21432 ln conftest.a conftest.b 2>&5 || hard_links=no
21433 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21434 { echo "$as_me:$LINENO: result: $hard_links" >&5
21435 echo "${ECHO_T}$hard_links" >&6; }
21436 if test "$hard_links" = no; then
21437 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21438 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21445 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21446 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21449 allow_undefined_flag_F77=
21450 enable_shared_with_static_runtimes_F77=no
21452 archive_expsym_cmds_F77=
21453 old_archive_From_new_cmds_F77=
21454 old_archive_from_expsyms_cmds_F77=
21455 export_dynamic_flag_spec_F77=
21456 whole_archive_flag_spec_F77=
21457 thread_safe_flag_spec_F77=
21458 hardcode_libdir_flag_spec_F77=
21459 hardcode_libdir_flag_spec_ld_F77=
21460 hardcode_libdir_separator_F77=
21461 hardcode_direct_F77=no
21462 hardcode_minus_L_F77=no
21463 hardcode_shlibpath_var_F77=unsupported
21464 link_all_deplibs_F77=unknown
21465 hardcode_automatic_F77=no
21467 module_expsym_cmds_F77=
21468 always_export_symbols_F77=no
21469 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21470 # include_expsyms should be a list of space-separated symbols to be *always*
21471 # included in the symbol list
21472 include_expsyms_F77=
21473 # exclude_expsyms can be an extended regexp of symbols to exclude
21474 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21475 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21476 # as well as any symbol that contains `d'.
21477 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21478 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21479 # platforms (ab)use it in PIC code, but their linkers get confused if
21480 # the symbol is explicitly referenced. Since portable code cannot
21481 # rely on this symbol name, it's probably fine to never include it in
21482 # preloaded symbol tables.
21483 extract_expsyms_cmds=
21484 # Just being paranoid about ensuring that cc_basename is set.
21485 for cc_temp in $compiler""; do
21487 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21488 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21493 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21496 cygwin* | mingw* | pw32*)
21497 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21498 # When not using gcc, we currently assume that we are using
21499 # Microsoft Visual C++.
21500 if test "$GCC" != yes; then
21505 # we just hope/assume this is gcc and not c89 (= MSVC++)
21514 if test "$with_gnu_ld" = yes; then
21515 # If archive_cmds runs LD, not CC, wlarc should be empty
21518 # Set some defaults for GNU ld with shared library support. These
21519 # are reset later if shared libraries are not supported. Putting them
21520 # here allows them to be overridden if necessary.
21521 runpath_var=LD_RUN_PATH
21522 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21523 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21524 # ancient GNU ld didn't support --whole-archive et. al.
21525 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21526 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21528 whole_archive_flag_spec_F77=
21530 supports_anon_versioning=no
21531 case `$LD -v 2>/dev/null` in
21532 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21533 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21534 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21535 *\ 2.11.*) ;; # other 2.11 versions
21536 *) supports_anon_versioning=yes ;;
21539 # See if GNU ld supports shared libraries.
21541 aix3* | aix4* | aix5*)
21542 # On AIX/PPC, the GNU linker is very broken
21543 if test "$host_cpu" != ia64; then
21547 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21548 *** to be unable to reliably create shared libraries on AIX.
21549 *** Therefore, libtool is disabling shared libraries support. If you
21550 *** really care for shared libraries, you may want to modify your PATH
21551 *** so that a non-GNU linker is found, and then restart.
21558 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)'
21559 hardcode_libdir_flag_spec_F77='-L$libdir'
21560 hardcode_minus_L_F77=yes
21562 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21563 # that the semantics of dynamic libraries on AmigaOS, at least up
21564 # to version 4, is to share data among multiple programs linked
21565 # with the same dynamic library. Since this doesn't match the
21566 # behavior of shared libraries on other platforms, we can't use
21572 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21573 allow_undefined_flag_F77=unsupported
21574 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21575 # support --undefined. This deserves some investigation. FIXME
21576 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21582 cygwin* | mingw* | pw32*)
21583 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21584 # as there is no search path for DLLs.
21585 hardcode_libdir_flag_spec_F77='-L$libdir'
21586 allow_undefined_flag_F77=unsupported
21587 always_export_symbols_F77=no
21588 enable_shared_with_static_runtimes_F77=yes
21589 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21591 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21592 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21593 # If the export-symbols file already is a .def file (1st line
21594 # is EXPORTS), use it as is; otherwise, prepend...
21595 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21596 cp $export_symbols $output_objdir/$soname.def;
21598 echo EXPORTS > $output_objdir/$soname.def;
21599 cat $export_symbols >> $output_objdir/$soname.def;
21601 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21608 hardcode_direct_F77=no
21609 hardcode_shlibpath_var_F77=no
21610 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21611 export_dynamic_flag_spec_F77='${wl}-E'
21612 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21613 # Instead, shared libraries are loaded at an image base (0x10000000 by
21614 # default) and relocated if they conflict, which is a slow very memory
21615 # consuming and fragmenting process. To avoid this, we pick a random,
21616 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21617 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21618 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'
21619 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'
21623 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21625 case $cc_basename,$host_cpu in
21626 pgcc*) # Portland Group C compiler
21627 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'
21628 tmp_addflag=' $pic_flag'
21630 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21631 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'
21632 tmp_addflag=' $pic_flag -Mnomain' ;;
21633 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21634 tmp_addflag=' -i_dynamic' ;;
21635 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21636 tmp_addflag=' -i_dynamic -nofor_main' ;;
21637 ifc* | ifort*) # Intel Fortran compiler
21638 tmp_addflag=' -nofor_main' ;;
21640 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21642 if test $supports_anon_versioning = yes; then
21643 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21644 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21645 $echo "local: *; };" >> $output_objdir/$libname.ver~
21646 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21654 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21655 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21658 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21659 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21664 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21668 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21669 *** create shared libraries on Solaris systems. Therefore, libtool
21670 *** is disabling shared libraries support. We urge you to upgrade GNU
21671 *** binutils to release 2.9.1 or newer. Another option is to modify
21672 *** your PATH or compiler configuration so that the native linker is
21673 *** used, and then restart.
21676 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21677 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21678 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21684 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21685 case `$LD -v 2>&1` in
21686 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21690 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21691 *** reliably create shared libraries on SCO systems. Therefore, libtool
21692 *** is disabling shared libraries support. We urge you to upgrade GNU
21693 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21694 *** your PATH or compiler configuration so that the native linker is
21695 *** used, and then restart.
21700 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21701 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21702 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21703 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21712 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21714 hardcode_direct_F77=yes
21715 hardcode_shlibpath_var_F77=no
21719 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21720 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21721 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21728 if test "$ld_shlibs_F77" = no; then
21730 hardcode_libdir_flag_spec_F77=
21731 export_dynamic_flag_spec_F77=
21732 whole_archive_flag_spec_F77=
21735 # PORTME fill in a description of your system's linker (not GNU ld)
21738 allow_undefined_flag_F77=unsupported
21739 always_export_symbols_F77=yes
21740 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'
21741 # Note: this linker hardcodes the directories in LIBPATH if there
21742 # are no directories specified by -L.
21743 hardcode_minus_L_F77=yes
21744 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21745 # Neither direct hardcoding nor static linking is supported with a
21747 hardcode_direct_F77=unsupported
21752 if test "$host_cpu" = ia64; then
21753 # On IA64, the linker does run time linking by default, so we don't
21754 # have to do anything special.
21755 aix_use_runtimelinking=no
21756 exp_sym_flag='-Bexport'
21759 # If we're using GNU nm, then we don't want the "-C" option.
21760 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21761 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21762 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'
21764 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'
21766 aix_use_runtimelinking=no
21768 # Test if we are trying to use run time linking or normal
21769 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21770 # need to do runtime linking.
21771 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21772 for ld_flag in $LDFLAGS; do
21773 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21774 aix_use_runtimelinking=yes
21781 exp_sym_flag='-bexport'
21782 no_entry_flag='-bnoentry'
21785 # When large executables or shared objects are built, AIX ld can
21786 # have problems creating the table of contents. If linking a library
21787 # or program results in "error TOC overflow" add -mminimal-toc to
21788 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21789 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21791 archive_cmds_F77=''
21792 hardcode_direct_F77=yes
21793 hardcode_libdir_separator_F77=':'
21794 link_all_deplibs_F77=yes
21796 if test "$GCC" = yes; then
21797 case $host_os in aix4.[012]|aix4.[012].*)
21798 # We only want to do this on AIX 4.2 and lower, the check
21799 # below for broken collect2 doesn't work under 4.3+
21800 collect2name=`${CC} -print-prog-name=collect2`
21801 if test -f "$collect2name" && \
21802 strings "$collect2name" | grep resolve_lib_name >/dev/null
21804 # We have reworked collect2
21805 hardcode_direct_F77=yes
21807 # We have old collect2
21808 hardcode_direct_F77=unsupported
21809 # It fails to find uninstalled libraries when the uninstalled
21810 # path is not listed in the libpath. Setting hardcode_minus_L
21811 # to unsupported forces relinking
21812 hardcode_minus_L_F77=yes
21813 hardcode_libdir_flag_spec_F77='-L$libdir'
21814 hardcode_libdir_separator_F77=
21818 shared_flag='-shared'
21819 if test "$aix_use_runtimelinking" = yes; then
21820 shared_flag="$shared_flag "'${wl}-G'
21824 if test "$host_cpu" = ia64; then
21825 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21826 # chokes on -Wl,-G. The following line is correct:
21829 if test "$aix_use_runtimelinking" = yes; then
21830 shared_flag='${wl}-G'
21832 shared_flag='${wl}-bM:SRE'
21837 # It seems that -bexpall does not export symbols beginning with
21838 # underscore (_), so it is better to generate a list of symbols to export.
21839 always_export_symbols_F77=yes
21840 if test "$aix_use_runtimelinking" = yes; then
21841 # Warning - without using the other runtime loading flags (-brtl),
21842 # -berok will link without error, but may produce a broken library.
21843 allow_undefined_flag_F77='-berok'
21844 # Determine the default libpath from the value encoded in an empty executable.
21845 cat >conftest.$ac_ext <<_ACEOF
21850 rm -f conftest.$ac_objext conftest$ac_exeext
21851 if { (ac_try="$ac_link"
21852 case "(($ac_try" in
21853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854 *) ac_try_echo=$ac_try;;
21856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21857 (eval "$ac_link") 2>conftest.er1
21859 grep -v '^ *+' conftest.er1 >conftest.err
21861 cat conftest.err >&5
21862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863 (exit $ac_status); } &&
21864 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21865 { (case "(($ac_try" in
21866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867 *) ac_try_echo=$ac_try;;
21869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21870 (eval "$ac_try") 2>&5
21872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873 (exit $ac_status); }; } &&
21874 { ac_try='test -s conftest$ac_exeext'
21875 { (case "(($ac_try" in
21876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21877 *) ac_try_echo=$ac_try;;
21879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21880 (eval "$ac_try") 2>&5
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); }; }; then
21885 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21887 # Check for a 64-bit object if we didn't find anything.
21888 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; }
21891 echo "$as_me: failed program was:" >&5
21892 sed 's/^/| /' conftest.$ac_ext >&5
21897 rm -f core conftest.err conftest.$ac_objext \
21898 conftest$ac_exeext conftest.$ac_ext
21899 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21901 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21902 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"
21904 if test "$host_cpu" = ia64; then
21905 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21906 allow_undefined_flag_F77="-z nodefs"
21907 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"
21909 # Determine the default libpath from the value encoded in an empty executable.
21910 cat >conftest.$ac_ext <<_ACEOF
21915 rm -f conftest.$ac_objext conftest$ac_exeext
21916 if { (ac_try="$ac_link"
21917 case "(($ac_try" in
21918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21919 *) ac_try_echo=$ac_try;;
21921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21922 (eval "$ac_link") 2>conftest.er1
21924 grep -v '^ *+' conftest.er1 >conftest.err
21926 cat conftest.err >&5
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); } &&
21929 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21930 { (case "(($ac_try" in
21931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21932 *) ac_try_echo=$ac_try;;
21934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21935 (eval "$ac_try") 2>&5
21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); }; } &&
21939 { ac_try='test -s conftest$ac_exeext'
21940 { (case "(($ac_try" in
21941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21942 *) ac_try_echo=$ac_try;;
21944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21945 (eval "$ac_try") 2>&5
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); }; }; then
21950 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21952 # Check for a 64-bit object if we didn't find anything.
21953 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; }
21956 echo "$as_me: failed program was:" >&5
21957 sed 's/^/| /' conftest.$ac_ext >&5
21962 rm -f core conftest.err conftest.$ac_objext \
21963 conftest$ac_exeext conftest.$ac_ext
21964 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21966 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21967 # Warning - without using the other run time loading flags,
21968 # -berok will link without error, but may produce a broken library.
21969 no_undefined_flag_F77=' ${wl}-bernotok'
21970 allow_undefined_flag_F77=' ${wl}-berok'
21971 # Exported symbols can be pulled into shared objects from archives
21972 whole_archive_flag_spec_F77='$convenience'
21973 archive_cmds_need_lc_F77=yes
21974 # This is similar to how AIX traditionally builds its shared libraries.
21975 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'
21981 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)'
21982 hardcode_libdir_flag_spec_F77='-L$libdir'
21983 hardcode_minus_L_F77=yes
21984 # see comment about different semantics on the GNU ld section
21989 export_dynamic_flag_spec_F77=-rdynamic
21992 cygwin* | mingw* | pw32*)
21993 # When not using gcc, we currently assume that we are using
21994 # Microsoft Visual C++.
21995 # hardcode_libdir_flag_spec is actually meaningless, as there is
21996 # no search path for DLLs.
21997 hardcode_libdir_flag_spec_F77=' '
21998 allow_undefined_flag_F77=unsupported
21999 # Tell ltmain to make .lib files, not .a files.
22001 # Tell ltmain to make .dll files, not .so files.
22003 # FIXME: Setting linknames here is a bad hack.
22004 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22005 # The linker will automatically build a .lib file if we build a DLL.
22006 old_archive_From_new_cmds_F77='true'
22007 # FIXME: Should let the user specify the lib program.
22008 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22009 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22010 enable_shared_with_static_runtimes_F77=yes
22013 darwin* | rhapsody*)
22015 rhapsody* | darwin1.[012])
22016 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22019 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22020 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22022 case ${MACOSX_DEPLOYMENT_TARGET} in
22024 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22027 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22033 archive_cmds_need_lc_F77=no
22034 hardcode_direct_F77=no
22035 hardcode_automatic_F77=yes
22036 hardcode_shlibpath_var_F77=unsupported
22037 whole_archive_flag_spec_F77=''
22038 link_all_deplibs_F77=yes
22039 if test "$GCC" = yes ; then
22040 output_verbose_link_cmd='echo'
22041 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22042 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22043 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22044 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}'
22045 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}'
22047 case $cc_basename in
22049 output_verbose_link_cmd='echo'
22050 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22051 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22052 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22053 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}'
22054 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}'
22064 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22065 hardcode_libdir_flag_spec_F77='-L$libdir'
22066 hardcode_shlibpath_var_F77=no
22073 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22074 # support. Future versions do this automatically, but an explicit c++rt0.o
22075 # does not break anything, and helps significantly (at the cost of a little
22078 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22079 hardcode_libdir_flag_spec_F77='-R$libdir'
22080 hardcode_direct_F77=yes
22081 hardcode_shlibpath_var_F77=no
22084 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22086 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22087 hardcode_direct_F77=yes
22088 hardcode_minus_L_F77=yes
22089 hardcode_shlibpath_var_F77=no
22092 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22093 freebsd* | kfreebsd*-gnu | dragonfly*)
22094 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22095 hardcode_libdir_flag_spec_F77='-R$libdir'
22096 hardcode_direct_F77=yes
22097 hardcode_shlibpath_var_F77=no
22101 if test "$GCC" = yes; then
22102 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'
22104 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'
22106 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22107 hardcode_libdir_separator_F77=:
22108 hardcode_direct_F77=yes
22110 # hardcode_minus_L: Not really in the search PATH,
22111 # but as the default location of the library.
22112 hardcode_minus_L_F77=yes
22113 export_dynamic_flag_spec_F77='${wl}-E'
22117 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22118 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22120 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22122 if test "$with_gnu_ld" = no; then
22123 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22124 hardcode_libdir_separator_F77=:
22126 hardcode_direct_F77=yes
22127 export_dynamic_flag_spec_F77='${wl}-E'
22129 # hardcode_minus_L: Not really in the search PATH,
22130 # but as the default location of the library.
22131 hardcode_minus_L_F77=yes
22136 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22139 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22142 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22145 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22151 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22154 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22157 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22161 if test "$with_gnu_ld" = no; then
22162 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22163 hardcode_libdir_separator_F77=:
22167 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22168 hardcode_direct_F77=no
22169 hardcode_shlibpath_var_F77=no
22172 hardcode_direct_F77=yes
22173 export_dynamic_flag_spec_F77='${wl}-E'
22175 # hardcode_minus_L: Not really in the search PATH,
22176 # but as the default location of the library.
22177 hardcode_minus_L_F77=yes
22183 irix5* | irix6* | nonstopux*)
22184 if test "$GCC" = yes; then
22185 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'
22187 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'
22188 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22190 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22191 hardcode_libdir_separator_F77=:
22192 link_all_deplibs_F77=yes
22196 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22197 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22199 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22201 hardcode_libdir_flag_spec_F77='-R$libdir'
22202 hardcode_direct_F77=yes
22203 hardcode_shlibpath_var_F77=no
22207 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22208 hardcode_direct_F77=yes
22209 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22210 hardcode_libdir_separator_F77=:
22211 hardcode_shlibpath_var_F77=no
22215 hardcode_direct_F77=yes
22216 hardcode_shlibpath_var_F77=no
22217 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22218 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22219 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22220 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22221 export_dynamic_flag_spec_F77='${wl}-E'
22224 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22225 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22226 hardcode_libdir_flag_spec_F77='-R$libdir'
22229 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22230 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22237 hardcode_libdir_flag_spec_F77='-L$libdir'
22238 hardcode_minus_L_F77=yes
22239 allow_undefined_flag_F77=unsupported
22240 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'
22241 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22245 if test "$GCC" = yes; then
22246 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22247 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'
22249 allow_undefined_flag_F77=' -expect_unresolved \*'
22250 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'
22252 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22253 hardcode_libdir_separator_F77=:
22256 osf4* | osf5*) # as osf3* with the addition of -msym flag
22257 if test "$GCC" = yes; then
22258 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22259 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'
22260 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22262 allow_undefined_flag_F77=' -expect_unresolved \*'
22263 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'
22264 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~
22265 $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'
22267 # Both c and cxx compiler support -rpath directly
22268 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22270 hardcode_libdir_separator_F77=:
22274 no_undefined_flag_F77=' -z text'
22275 if test "$GCC" = yes; then
22277 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22278 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22279 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22282 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22283 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22284 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22286 hardcode_libdir_flag_spec_F77='-R$libdir'
22287 hardcode_shlibpath_var_F77=no
22289 solaris2.[0-5] | solaris2.[0-5].*) ;;
22291 # The compiler driver will combine linker options so we
22292 # cannot just pass the convience library names through
22293 # without $wl, iff we do not link with $LD.
22294 # Luckily, gcc supports the same syntax we need for Sun Studio.
22295 # Supported since Solaris 2.6 (maybe 2.5.1?)
22298 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22300 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' ;;
22303 link_all_deplibs_F77=yes
22307 if test "x$host_vendor" = xsequent; then
22308 # Use $CC to link under sequent, because it throws in some extra .o
22309 # files that make .init and .fini sections work.
22310 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22312 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22314 hardcode_libdir_flag_spec_F77='-L$libdir'
22315 hardcode_direct_F77=yes
22316 hardcode_minus_L_F77=yes
22317 hardcode_shlibpath_var_F77=no
22321 case $host_vendor in
22323 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22324 hardcode_direct_F77=yes # is this really true???
22327 ## LD is ld it makes a PLAMLIB
22328 ## CC just makes a GrossModule.
22329 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22330 reload_cmds_F77='$CC -r -o $output$reload_objs'
22331 hardcode_direct_F77=no
22334 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22335 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22338 runpath_var='LD_RUN_PATH'
22339 hardcode_shlibpath_var_F77=no
22343 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22344 hardcode_shlibpath_var_F77=no
22345 export_dynamic_flag_spec_F77='-Bexport'
22349 if test -d /usr/nec; then
22350 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22351 hardcode_shlibpath_var_F77=no
22352 runpath_var=LD_RUN_PATH
22353 hardcode_runpath_var=yes
22358 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22359 no_undefined_flag_F77='${wl}-z,text'
22360 archive_cmds_need_lc_F77=no
22361 hardcode_shlibpath_var_F77=no
22362 runpath_var='LD_RUN_PATH'
22364 if test "$GCC" = yes; then
22365 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22366 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22368 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22369 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22373 sysv5* | sco3.2v5* | sco5v6*)
22374 # Note: We can NOT use -z defs as we might desire, because we do not
22375 # link with -lc, and that would cause any symbols used from libc to
22376 # always be unresolved, which means just about no library would
22377 # ever link correctly. If we're not using GNU ld we use -z text
22378 # though, which does catch some bad symbols but isn't as heavy-handed
22380 no_undefined_flag_F77='${wl}-z,text'
22381 allow_undefined_flag_F77='${wl}-z,nodefs'
22382 archive_cmds_need_lc_F77=no
22383 hardcode_shlibpath_var_F77=no
22384 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22385 hardcode_libdir_separator_F77=':'
22386 link_all_deplibs_F77=yes
22387 export_dynamic_flag_spec_F77='${wl}-Bexport'
22388 runpath_var='LD_RUN_PATH'
22390 if test "$GCC" = yes; then
22391 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22392 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22394 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22395 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22400 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22401 hardcode_libdir_flag_spec_F77='-L$libdir'
22402 hardcode_shlibpath_var_F77=no
22411 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22412 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22413 test "$ld_shlibs_F77" = no && can_build_shared=no
22416 # Do we need to explicitly link libc?
22418 case "x$archive_cmds_need_lc_F77" in
22420 # Assume -lc should be added
22421 archive_cmds_need_lc_F77=yes
22423 if test "$enable_shared" = yes && test "$GCC" = yes; then
22424 case $archive_cmds_F77 in
22426 # FIXME: we may have to deal with multi-command sequences.
22429 # Test whether the compiler implicitly links with -lc since on some
22430 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22431 # to ld, don't add -lc before -lgcc.
22432 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22433 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22435 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22438 (eval $ac_compile) 2>&5
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); } 2>conftest.err; then
22444 libobjs=conftest.$ac_objext
22446 wl=$lt_prog_compiler_wl_F77
22447 pic_flag=$lt_prog_compiler_pic_F77
22453 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22454 allow_undefined_flag_F77=
22455 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22456 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); }
22461 archive_cmds_need_lc_F77=no
22463 archive_cmds_need_lc_F77=yes
22465 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22467 cat conftest.err 1>&5
22470 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22471 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22478 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22479 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22480 library_names_spec=
22481 libname_spec='lib$name'
22485 postuninstall_cmds=
22489 shlibpath_overrides_runpath=unknown
22491 dynamic_linker="$host_os ld.so"
22492 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22493 if test "$GCC" = yes; then
22494 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22495 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22496 # if the path contains ";" then we assume it to be the separator
22497 # otherwise default to the standard path separator (i.e. ":") - it is
22498 # assumed that no part of a normal pathname contains ";" but that should
22499 # okay in the real world where ";" in dirpaths is itself problematic.
22500 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22502 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22505 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22507 need_lib_prefix=unknown
22508 hardcode_into_libs=no
22510 # when you set need_version to no, make sure it does not cause -set_version
22511 # flags to be left without arguments
22512 need_version=unknown
22517 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22518 shlibpath_var=LIBPATH
22520 # AIX 3 has no versioning support, so we append a major version to the name.
22521 soname_spec='${libname}${release}${shared_ext}$major'
22528 hardcode_into_libs=yes
22529 if test "$host_cpu" = ia64; then
22530 # AIX 5 supports IA64
22531 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22532 shlibpath_var=LD_LIBRARY_PATH
22534 # With GCC up to 2.95.x, collect2 would create an import file
22535 # for dependence libraries. The import file would start with
22536 # the line `#! .'. This would cause the generated library to
22537 # depend on `.', always an invalid library. This was fixed in
22538 # development snapshots of GCC prior to 3.0.
22540 aix4 | aix4.[01] | aix4.[01].*)
22541 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22543 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22546 can_build_shared=no
22550 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22551 # soname into executable. Probably we can add versioning support to
22552 # collect2, so additional links can be useful in future.
22553 if test "$aix_use_runtimelinking" = yes; then
22554 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22555 # instead of lib<name>.a to let people know that these are not
22556 # typical AIX shared libraries.
22557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22559 # We preserve .a as extension for shared libraries through AIX4.2
22560 # and later when we are not doing run time linking.
22561 library_names_spec='${libname}${release}.a $libname.a'
22562 soname_spec='${libname}${release}${shared_ext}$major'
22564 shlibpath_var=LIBPATH
22569 library_names_spec='$libname.ixlibrary $libname.a'
22570 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22571 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'
22575 library_names_spec='${libname}${shared_ext}'
22576 dynamic_linker="$host_os ld.so"
22577 shlibpath_var=LIBRARY_PATH
22583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22584 soname_spec='${libname}${release}${shared_ext}$major'
22585 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22586 shlibpath_var=LD_LIBRARY_PATH
22587 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22588 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22589 # the default ld.so.conf also contains /usr/contrib/lib and
22590 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22591 # libtool to hard-code these into programs
22594 cygwin* | mingw* | pw32*)
22595 version_type=windows
22600 case $GCC,$host_os in
22601 yes,cygwin* | yes,mingw* | yes,pw32*)
22602 library_names_spec='$libname.dll.a'
22603 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22604 postinstall_cmds='base_file=`basename \${file}`~
22605 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22606 dldir=$destdir/`dirname \$dlpath`~
22607 test -d \$dldir || mkdir -p \$dldir~
22608 $install_prog $dir/$dlname \$dldir/$dlname~
22609 chmod a+x \$dldir/$dlname'
22610 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22611 dlpath=$dir/\$dldll~
22613 shlibpath_overrides_runpath=yes
22617 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22618 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22619 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22622 # MinGW DLLs use traditional 'lib' prefix
22623 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22624 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22625 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22626 # It is most probably a Windows format PATH printed by
22627 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22628 # path with ; separators, and with drive letters. We can handle the
22629 # drive letters (cygwin fileutils understands them), so leave them,
22630 # especially as we might pass files found there to a mingw objdump,
22631 # which wouldn't understand a cygwinified path. Ahh.
22632 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22634 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22638 # pw32 DLLs use 'pw' prefix rather than 'lib'
22639 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22645 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22648 dynamic_linker='Win32 ld.exe'
22649 # FIXME: first we should search . and the directory the executable is in
22653 darwin* | rhapsody*)
22654 dynamic_linker="$host_os dyld"
22655 version_type=darwin
22658 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22659 soname_spec='${libname}${release}${major}$shared_ext'
22660 shlibpath_overrides_runpath=yes
22661 shlibpath_var=DYLD_LIBRARY_PATH
22662 shrext_cmds='.dylib'
22663 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22664 if test "$GCC" = yes; then
22665 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"`
22667 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22669 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22677 soname_spec='${libname}${release}${shared_ext}$major'
22678 shlibpath_var=LD_LIBRARY_PATH
22689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22690 soname_spec='${libname}${release}${shared_ext}$major'
22691 shlibpath_var=LD_LIBRARY_PATH
22692 shlibpath_overrides_runpath=no
22693 hardcode_into_libs=yes
22694 dynamic_linker='GNU ld.so'
22697 freebsd* | dragonfly*)
22698 # DragonFly does not have aout. When/if they implement a new
22699 # versioning mechanism, adjust this.
22700 if test -x /usr/bin/objformat; then
22701 objformat=`/usr/bin/objformat`
22704 freebsd[123]*) objformat=aout ;;
22705 *) objformat=elf ;;
22708 version_type=freebsd-$objformat
22709 case $version_type in
22711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22716 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22720 shlibpath_var=LD_LIBRARY_PATH
22723 shlibpath_overrides_runpath=yes
22725 freebsd3.[01]* | freebsdelf3.[01]*)
22726 shlibpath_overrides_runpath=yes
22727 hardcode_into_libs=yes
22729 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22730 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22731 shlibpath_overrides_runpath=no
22732 hardcode_into_libs=yes
22734 freebsd*) # from 4.6 on
22735 shlibpath_overrides_runpath=yes
22736 hardcode_into_libs=yes
22745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22746 soname_spec='${libname}${release}${shared_ext}$major'
22747 shlibpath_var=LD_LIBRARY_PATH
22748 hardcode_into_libs=yes
22751 hpux9* | hpux10* | hpux11*)
22752 # Give a soname corresponding to the major version so that dld.sl refuses to
22753 # link against other versions.
22760 hardcode_into_libs=yes
22761 dynamic_linker="$host_os dld.so"
22762 shlibpath_var=LD_LIBRARY_PATH
22763 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22765 soname_spec='${libname}${release}${shared_ext}$major'
22766 if test "X$HPUX_IA64_MODE" = X32; then
22767 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22769 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22775 hardcode_into_libs=yes
22776 dynamic_linker="$host_os dld.sl"
22777 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22778 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22780 soname_spec='${libname}${release}${shared_ext}$major'
22781 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22782 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22786 dynamic_linker="$host_os dld.sl"
22787 shlibpath_var=SHLIB_PATH
22788 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22790 soname_spec='${libname}${release}${shared_ext}$major'
22793 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22794 postinstall_cmds='chmod 555 $lib'
22801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22802 soname_spec='${libname}${release}${shared_ext}$major'
22803 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22804 shlibpath_var=LD_LIBRARY_PATH
22805 shlibpath_overrides_runpath=no
22806 hardcode_into_libs=yes
22809 irix5* | irix6* | nonstopux*)
22811 nonstopux*) version_type=nonstopux ;;
22813 if test "$lt_cv_prog_gnu_ld" = yes; then
22821 soname_spec='${libname}${release}${shared_ext}$major'
22822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22824 irix5* | nonstopux*)
22825 libsuff= shlibsuff=
22828 case $LD in # libtool.m4 will add one of these switches to LD
22829 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22830 libsuff= shlibsuff= libmagic=32-bit;;
22831 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22832 libsuff=32 shlibsuff=N32 libmagic=N32;;
22833 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22834 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22835 *) libsuff= shlibsuff= libmagic=never-match;;
22839 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22840 shlibpath_overrides_runpath=no
22841 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22842 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22843 hardcode_into_libs=yes
22846 # No shared lib support for Linux oldld, aout, or coff.
22847 linux*oldld* | linux*aout* | linux*coff*)
22851 # This must be Linux ELF.
22856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22857 soname_spec='${libname}${release}${shared_ext}$major'
22858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22859 shlibpath_var=LD_LIBRARY_PATH
22860 shlibpath_overrides_runpath=no
22861 # This implies no fast_install, which is unacceptable.
22862 # Some rework will be needed to allow for fast_install
22863 # before this can be enabled.
22864 hardcode_into_libs=yes
22866 # Append ld.so.conf contents to the search path
22867 if test -f /etc/ld.so.conf; then
22868 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' ' '`
22869 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22872 # We used to test for /lib/ld.so.1 and disable shared libraries on
22873 # powerpc, because MkLinux only supported shared libraries with the
22874 # GNU dynamic linker. Since this was broken with cross compilers,
22875 # most powerpc-linux boxes support dynamic linking these days and
22876 # people can always --disable-shared, the test was removed, and we
22877 # assume the GNU/Linux dynamic linker is in use.
22878 dynamic_linker='GNU/Linux ld.so'
22885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22886 soname_spec='${libname}${release}${shared_ext}$major'
22887 shlibpath_var=LD_LIBRARY_PATH
22888 shlibpath_overrides_runpath=no
22889 hardcode_into_libs=yes
22890 dynamic_linker='GNU ld.so'
22897 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22900 dynamic_linker='NetBSD (a.out) ld.so'
22902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22903 soname_spec='${libname}${release}${shared_ext}$major'
22904 dynamic_linker='NetBSD ld.elf_so'
22906 shlibpath_var=LD_LIBRARY_PATH
22907 shlibpath_overrides_runpath=yes
22908 hardcode_into_libs=yes
22913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22914 shlibpath_var=LD_LIBRARY_PATH
22915 shlibpath_overrides_runpath=yes
22922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22923 soname_spec='${libname}${release}${shared_ext}$major'
22924 shlibpath_var=LD_LIBRARY_PATH
22925 shlibpath_overrides_runpath=yes
22930 sys_lib_dlsearch_path_spec="/usr/lib"
22932 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22934 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22935 *) need_version=no ;;
22937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22939 shlibpath_var=LD_LIBRARY_PATH
22940 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22942 openbsd2.[89] | openbsd2.[89].*)
22943 shlibpath_overrides_runpath=no
22946 shlibpath_overrides_runpath=yes
22950 shlibpath_overrides_runpath=yes
22955 libname_spec='$name'
22958 library_names_spec='$libname${shared_ext} $libname.a'
22959 dynamic_linker='OS/2 ld.exe'
22960 shlibpath_var=LIBPATH
22963 osf3* | osf4* | osf5*)
22967 soname_spec='${libname}${release}${shared_ext}$major'
22968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22969 shlibpath_var=LD_LIBRARY_PATH
22970 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22971 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
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'
22980 shlibpath_var=LD_LIBRARY_PATH
22981 shlibpath_overrides_runpath=yes
22982 hardcode_into_libs=yes
22983 # ldd complains unless libraries are executable
22984 postinstall_cmds='chmod +x $lib'
22989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22990 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22991 shlibpath_var=LD_LIBRARY_PATH
22992 shlibpath_overrides_runpath=yes
22993 if test "$with_gnu_ld" = yes; then
23001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23002 soname_spec='${libname}${release}${shared_ext}$major'
23003 shlibpath_var=LD_LIBRARY_PATH
23004 case $host_vendor in
23006 shlibpath_overrides_runpath=no
23008 export_dynamic_flag_spec='${wl}-Blargedynsym'
23009 runpath_var=LD_RUN_PATH
23017 shlibpath_overrides_runpath=no
23018 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23024 if test -d /usr/nec ;then
23026 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23027 soname_spec='$libname${shared_ext}.$major'
23028 shlibpath_var=LD_LIBRARY_PATH
23032 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23033 version_type=freebsd-elf
23036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23037 soname_spec='${libname}${release}${shared_ext}$major'
23038 shlibpath_var=LD_LIBRARY_PATH
23039 hardcode_into_libs=yes
23040 if test "$with_gnu_ld" = yes; then
23041 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23042 shlibpath_overrides_runpath=no
23044 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23045 shlibpath_overrides_runpath=yes
23048 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23052 sys_lib_dlsearch_path_spec='/usr/lib'
23057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23058 soname_spec='${libname}${release}${shared_ext}$major'
23059 shlibpath_var=LD_LIBRARY_PATH
23066 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23067 echo "${ECHO_T}$dynamic_linker" >&6; }
23068 test "$dynamic_linker" = no && can_build_shared=no
23070 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23071 if test "$GCC" = yes; then
23072 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23075 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23076 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23077 hardcode_action_F77=
23078 if test -n "$hardcode_libdir_flag_spec_F77" || \
23079 test -n "$runpath_var_F77" || \
23080 test "X$hardcode_automatic_F77" = "Xyes" ; then
23082 # We can hardcode non-existant directories.
23083 if test "$hardcode_direct_F77" != no &&
23084 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23085 # have to relink, otherwise we might link with an installed library
23086 # when we should be linking with a yet-to-be-installed one
23087 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23088 test "$hardcode_minus_L_F77" != no; then
23089 # Linking always hardcodes the temporary library directory.
23090 hardcode_action_F77=relink
23092 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23093 hardcode_action_F77=immediate
23096 # We cannot hardcode anything, or else we can only hardcode existing
23098 hardcode_action_F77=unsupported
23100 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23101 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23103 if test "$hardcode_action_F77" = relink; then
23104 # Fast installation is not supported
23105 enable_fast_install=no
23106 elif test "$shlibpath_overrides_runpath" = yes ||
23107 test "$enable_shared" = no; then
23108 # Fast installation is not necessary
23109 enable_fast_install=needless
23113 # The else clause should only fire when bootstrapping the
23114 # libtool distribution, otherwise you forgot to ship ltmain.sh
23115 # with your package, and you will get complaints that there are
23116 # no rules to generate ltmain.sh.
23117 if test -f "$ltmain"; then
23118 # See if we are running on zsh, and set the options which allow our commands through
23119 # without removal of \ escapes.
23120 if test -n "${ZSH_VERSION+set}" ; then
23121 setopt NO_GLOB_SUBST
23123 # Now quote all the things that may contain metacharacters while being
23124 # careful not to overquote the AC_SUBSTed values. We take copies of the
23125 # variables and quote the copies for generation of the libtool script.
23126 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23128 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23129 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23130 deplibs_check_method reload_flag reload_cmds need_locks \
23131 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23132 lt_cv_sys_global_symbol_to_c_name_address \
23133 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23134 old_postinstall_cmds old_postuninstall_cmds \
23138 lt_prog_compiler_wl_F77 \
23139 lt_prog_compiler_pic_F77 \
23140 lt_prog_compiler_static_F77 \
23141 lt_prog_compiler_no_builtin_flag_F77 \
23142 export_dynamic_flag_spec_F77 \
23143 thread_safe_flag_spec_F77 \
23144 whole_archive_flag_spec_F77 \
23145 enable_shared_with_static_runtimes_F77 \
23146 old_archive_cmds_F77 \
23147 old_archive_from_new_cmds_F77 \
23148 predep_objects_F77 \
23149 postdep_objects_F77 \
23152 compiler_lib_search_path_F77 \
23154 archive_expsym_cmds_F77 \
23155 postinstall_cmds_F77 \
23156 postuninstall_cmds_F77 \
23157 old_archive_from_expsyms_cmds_F77 \
23158 allow_undefined_flag_F77 \
23159 no_undefined_flag_F77 \
23160 export_symbols_cmds_F77 \
23161 hardcode_libdir_flag_spec_F77 \
23162 hardcode_libdir_flag_spec_ld_F77 \
23163 hardcode_libdir_separator_F77 \
23164 hardcode_automatic_F77 \
23166 module_expsym_cmds_F77 \
23167 lt_cv_prog_compiler_c_o_F77 \
23168 exclude_expsyms_F77 \
23169 include_expsyms_F77; do
23172 old_archive_cmds_F77 | \
23173 old_archive_from_new_cmds_F77 | \
23174 archive_cmds_F77 | \
23175 archive_expsym_cmds_F77 | \
23176 module_cmds_F77 | \
23177 module_expsym_cmds_F77 | \
23178 old_archive_from_expsyms_cmds_F77 | \
23179 export_symbols_cmds_F77 | \
23180 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23181 postinstall_cmds | postuninstall_cmds | \
23182 old_postinstall_cmds | old_postuninstall_cmds | \
23183 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23184 # Double-quote double-evaled strings.
23185 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23188 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23194 *'\$0 --fallback-echo"')
23195 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23201 cat <<__EOF__ >> "$cfgfile"
23202 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23204 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23206 # Shell to use when invoking shell scripts.
23209 # Whether or not to build shared libraries.
23210 build_libtool_libs=$enable_shared
23212 # Whether or not to build static libraries.
23213 build_old_libs=$enable_static
23215 # Whether or not to add -lc for building shared libraries.
23216 build_libtool_need_lc=$archive_cmds_need_lc_F77
23218 # Whether or not to disallow shared libs when runtime libs are static
23219 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23221 # Whether or not to optimize for fast installation.
23222 fast_install=$enable_fast_install
23225 host_alias=$host_alias
23229 # The build system.
23230 build_alias=$build_alias
23234 # An echo program that does not interpret backslashes.
23239 AR_FLAGS=$lt_AR_FLAGS
23244 # LTCC compiler flags.
23245 LTCFLAGS=$lt_LTCFLAGS
23247 # A language-specific compiler.
23248 CC=$lt_compiler_F77
23250 # Is the compiler the GNU C compiler?
23256 # The linker used to build libraries.
23259 # Whether we need hard or soft links.
23262 # A BSD-compatible nm program.
23265 # A symbol stripping program
23268 # Used to examine libraries when file_magic_cmd begins "file"
23269 MAGIC_CMD=$MAGIC_CMD
23271 # Used on cygwin: DLL creation program.
23274 # Used on cygwin: object dumper.
23277 # Used on cygwin: assembler.
23280 # The name of the directory that contains temporary libtool files.
23283 # How to create reloadable object files.
23284 reload_flag=$lt_reload_flag
23285 reload_cmds=$lt_reload_cmds
23287 # How to pass a linker flag through the compiler.
23288 wl=$lt_lt_prog_compiler_wl_F77
23290 # Object file suffix (normally "o").
23291 objext="$ac_objext"
23293 # Old archive suffix (normally "a").
23296 # Shared library suffix (normally ".so").
23297 shrext_cmds='$shrext_cmds'
23299 # Executable file suffix (normally "").
23302 # Additional compiler flags for building library objects.
23303 pic_flag=$lt_lt_prog_compiler_pic_F77
23306 # What is the maximum length of a command?
23307 max_cmd_len=$lt_cv_sys_max_cmd_len
23309 # Does compiler simultaneously support -c and -o options?
23310 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23312 # Must we lock files when doing compilation?
23313 need_locks=$lt_need_locks
23315 # Do we need the lib prefix for modules?
23316 need_lib_prefix=$need_lib_prefix
23318 # Do we need a version for libraries?
23319 need_version=$need_version
23321 # Whether dlopen is supported.
23322 dlopen_support=$enable_dlopen
23324 # Whether dlopen of programs is supported.
23325 dlopen_self=$enable_dlopen_self
23327 # Whether dlopen of statically linked programs is supported.
23328 dlopen_self_static=$enable_dlopen_self_static
23330 # Compiler flag to prevent dynamic linking.
23331 link_static_flag=$lt_lt_prog_compiler_static_F77
23333 # Compiler flag to turn off builtin functions.
23334 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23336 # Compiler flag to allow reflexive dlopens.
23337 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23339 # Compiler flag to generate shared objects directly from archives.
23340 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23342 # Compiler flag to generate thread-safe objects.
23343 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23345 # Library versioning type.
23346 version_type=$version_type
23348 # Format of library name prefix.
23349 libname_spec=$lt_libname_spec
23351 # List of archive names. First name is the real one, the rest are links.
23352 # The last name is the one that the linker finds with -lNAME.
23353 library_names_spec=$lt_library_names_spec
23355 # The coded name of the library, if different from the real name.
23356 soname_spec=$lt_soname_spec
23358 # Commands used to build and install an old-style archive.
23360 old_archive_cmds=$lt_old_archive_cmds_F77
23361 old_postinstall_cmds=$lt_old_postinstall_cmds
23362 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23364 # Create an old-style archive from a shared archive.
23365 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23367 # Create a temporary old-style archive to link instead of a shared archive.
23368 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23370 # Commands used to build and install a shared archive.
23371 archive_cmds=$lt_archive_cmds_F77
23372 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23373 postinstall_cmds=$lt_postinstall_cmds
23374 postuninstall_cmds=$lt_postuninstall_cmds
23376 # Commands used to build a loadable module (assumed same as above if empty)
23377 module_cmds=$lt_module_cmds_F77
23378 module_expsym_cmds=$lt_module_expsym_cmds_F77
23380 # Commands to strip libraries.
23381 old_striplib=$lt_old_striplib
23382 striplib=$lt_striplib
23384 # Dependencies to place before the objects being linked to create a
23386 predep_objects=$lt_predep_objects_F77
23388 # Dependencies to place after the objects being linked to create a
23390 postdep_objects=$lt_postdep_objects_F77
23392 # Dependencies to place before the objects being linked to create a
23394 predeps=$lt_predeps_F77
23396 # Dependencies to place after the objects being linked to create a
23398 postdeps=$lt_postdeps_F77
23400 # The library search path used internally by the compiler when linking
23401 # a shared library.
23402 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23404 # Method to check whether dependent libraries are shared objects.
23405 deplibs_check_method=$lt_deplibs_check_method
23407 # Command to use when deplibs_check_method == file_magic.
23408 file_magic_cmd=$lt_file_magic_cmd
23410 # Flag that allows shared libraries with undefined symbols to be built.
23411 allow_undefined_flag=$lt_allow_undefined_flag_F77
23413 # Flag that forces no undefined symbols.
23414 no_undefined_flag=$lt_no_undefined_flag_F77
23416 # Commands used to finish a libtool library installation in a directory.
23417 finish_cmds=$lt_finish_cmds
23419 # Same as above, but a single script fragment to be evaled but not shown.
23420 finish_eval=$lt_finish_eval
23422 # Take the output of nm and produce a listing of raw symbols and C names.
23423 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23425 # Transform the output of nm in a proper C declaration
23426 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23428 # Transform the output of nm in a C name address pair
23429 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23431 # This is the shared library runtime path variable.
23432 runpath_var=$runpath_var
23434 # This is the shared library path variable.
23435 shlibpath_var=$shlibpath_var
23437 # Is shlibpath searched before the hard-coded library search path?
23438 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23440 # How to hardcode a shared library path into an executable.
23441 hardcode_action=$hardcode_action_F77
23443 # Whether we should hardcode library paths into libraries.
23444 hardcode_into_libs=$hardcode_into_libs
23446 # Flag to hardcode \$libdir into a binary during linking.
23447 # This must work even if \$libdir does not exist.
23448 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23450 # If ld is used when linking, flag to hardcode \$libdir into
23451 # a binary during linking. This must work even if \$libdir does
23453 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23455 # Whether we need a single -rpath flag with a separated argument.
23456 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23458 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23459 # resulting binary.
23460 hardcode_direct=$hardcode_direct_F77
23462 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23463 # resulting binary.
23464 hardcode_minus_L=$hardcode_minus_L_F77
23466 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23467 # the resulting binary.
23468 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23470 # Set to yes if building a shared library automatically hardcodes DIR into the library
23471 # and all subsequent libraries and executables linked against it.
23472 hardcode_automatic=$hardcode_automatic_F77
23474 # Variables whose values should be saved in libtool wrapper scripts and
23475 # restored at relink time.
23476 variables_saved_for_relink="$variables_saved_for_relink"
23478 # Whether libtool must link a program against all its dependency libraries.
23479 link_all_deplibs=$link_all_deplibs_F77
23481 # Compile-time system search path for libraries
23482 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23484 # Run-time system search path for libraries
23485 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23487 # Fix the shell variable \$srcfile for the compiler.
23488 fix_srcfile_path="$fix_srcfile_path_F77"
23490 # Set to yes if exported symbols are required.
23491 always_export_symbols=$always_export_symbols_F77
23493 # The commands to list exported symbols.
23494 export_symbols_cmds=$lt_export_symbols_cmds_F77
23496 # The commands to extract the exported symbol list from a shared archive.
23497 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23499 # Symbols that should not be listed in the preloaded symbols.
23500 exclude_expsyms=$lt_exclude_expsyms_F77
23502 # Symbols that must always be exported.
23503 include_expsyms=$lt_include_expsyms_F77
23505 # ### END LIBTOOL TAG CONFIG: $tagname
23511 # If there is no Makefile yet, we rely on a make rule to execute
23512 # `config.status --recheck' to rerun these tests and create the
23513 # libtool script then.
23514 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23515 if test -f "$ltmain_in"; then
23516 test -f Makefile && make "$ltmain"
23522 ac_cpp='$CPP $CPPFLAGS'
23523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23535 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23537 ac_cpp='$CPP $CPPFLAGS'
23538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23543 # Source file extension for Java test sources.
23546 # Object file extension for compiled Java test sources.
23550 # Code to be used in simple compile tests
23551 lt_simple_compile_test_code="class foo {}\n"
23553 # Code to be used in simple link tests
23554 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23556 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23558 # If no C compiler was specified, use CC.
23561 # If no C compiler flags were specified, use CFLAGS.
23562 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23564 # Allow CC to be a program name with arguments.
23568 # save warnings/boilerplate of simple test code
23569 ac_outfile=conftest.$ac_objext
23570 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23571 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23572 _lt_compiler_boilerplate=`cat conftest.err`
23575 ac_outfile=conftest.$ac_objext
23576 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23577 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23578 _lt_linker_boilerplate=`cat conftest.err`
23582 # Allow CC to be a program name with arguments.
23587 for cc_temp in $compiler""; do
23589 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23590 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23595 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23598 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23599 archive_cmds_need_lc_GCJ=no
23601 old_archive_cmds_GCJ=$old_archive_cmds
23604 lt_prog_compiler_no_builtin_flag_GCJ=
23606 if test "$GCC" = yes; then
23607 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23610 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23611 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23612 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23613 echo $ECHO_N "(cached) $ECHO_C" >&6
23615 lt_cv_prog_compiler_rtti_exceptions=no
23616 ac_outfile=conftest.$ac_objext
23617 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23618 lt_compiler_flag="-fno-rtti -fno-exceptions"
23619 # Insert the option either (1) after the last *FLAGS variable, or
23620 # (2) before a word containing "conftest.", or (3) at the end.
23621 # Note that $ac_compile itself does not contain backslashes and begins
23622 # with a dollar sign (not a hyphen), so the echo should work correctly.
23623 # The option is referenced via a variable to avoid confusing sed.
23624 lt_compile=`echo "$ac_compile" | $SED \
23625 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23627 -e 's:$: $lt_compiler_flag:'`
23628 (eval echo "\"\$as_me:23628: $lt_compile\"" >&5)
23629 (eval "$lt_compile" 2>conftest.err)
23631 cat conftest.err >&5
23632 echo "$as_me:23632: \$? = $ac_status" >&5
23633 if (exit $ac_status) && test -s "$ac_outfile"; then
23634 # The compiler can only warn and ignore the option if not recognized
23635 # So say no if there are warnings other than the usual output.
23636 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23637 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23638 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23639 lt_cv_prog_compiler_rtti_exceptions=yes
23645 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23646 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23648 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23649 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23656 lt_prog_compiler_wl_GCJ=
23657 lt_prog_compiler_pic_GCJ=
23658 lt_prog_compiler_static_GCJ=
23660 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23661 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23663 if test "$GCC" = yes; then
23664 lt_prog_compiler_wl_GCJ='-Wl,'
23665 lt_prog_compiler_static_GCJ='-static'
23669 # All AIX code is PIC.
23670 if test "$host_cpu" = ia64; then
23671 # AIX 5 now supports IA64 processor
23672 lt_prog_compiler_static_GCJ='-Bstatic'
23677 # FIXME: we need at least 68020 code to build shared libraries, but
23678 # adding the `-m68020' flag to GCC prevents building anything better,
23680 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23683 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23684 # PIC is the default for these OSes.
23687 mingw* | pw32* | os2*)
23688 # This hack is so that the source file can tell whether it is being
23689 # built for inclusion in a dll (and should export symbols for example).
23690 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23693 darwin* | rhapsody*)
23694 # PIC is the default on this platform
23695 # Common symbols not allowed in MH_DYLIB files
23696 lt_prog_compiler_pic_GCJ='-fno-common'
23700 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23701 # Instead, we relocate shared libraries at runtime.
23705 # Just because we use GCC doesn't mean we suddenly get shared libraries
23706 # on systems that don't support them.
23707 lt_prog_compiler_can_build_shared_GCJ=no
23712 if test -d /usr/nec; then
23713 lt_prog_compiler_pic_GCJ=-Kconform_pic
23718 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23719 # not for PA HP-UX.
23725 lt_prog_compiler_pic_GCJ='-fPIC'
23731 lt_prog_compiler_pic_GCJ='-fPIC'
23735 # PORTME Check for flag to pass linker flags through the system compiler.
23738 lt_prog_compiler_wl_GCJ='-Wl,'
23739 if test "$host_cpu" = ia64; then
23740 # AIX 5 now supports IA64 processor
23741 lt_prog_compiler_static_GCJ='-Bstatic'
23743 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23747 # PIC is the default on this platform
23748 # Common symbols not allowed in MH_DYLIB files
23749 case $cc_basename in
23751 lt_prog_compiler_pic_GCJ='-qnocommon'
23752 lt_prog_compiler_wl_GCJ='-Wl,'
23757 mingw* | pw32* | os2*)
23758 # This hack is so that the source file can tell whether it is being
23759 # built for inclusion in a dll (and should export symbols for example).
23760 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23763 hpux9* | hpux10* | hpux11*)
23764 lt_prog_compiler_wl_GCJ='-Wl,'
23765 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23766 # not for PA HP-UX.
23772 lt_prog_compiler_pic_GCJ='+Z'
23775 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23776 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23779 irix5* | irix6* | nonstopux*)
23780 lt_prog_compiler_wl_GCJ='-Wl,'
23781 # PIC (with -KPIC) is the default.
23782 lt_prog_compiler_static_GCJ='-non_shared'
23786 lt_prog_compiler_pic_GCJ='-KPIC'
23787 lt_prog_compiler_static_GCJ='-Bstatic'
23791 case $cc_basename in
23793 lt_prog_compiler_wl_GCJ='-Wl,'
23794 lt_prog_compiler_pic_GCJ='-KPIC'
23795 lt_prog_compiler_static_GCJ='-static'
23797 pgcc* | pgf77* | pgf90* | pgf95*)
23798 # Portland Group compilers (*not* the Pentium gcc compiler,
23799 # which looks to be a dead project)
23800 lt_prog_compiler_wl_GCJ='-Wl,'
23801 lt_prog_compiler_pic_GCJ='-fpic'
23802 lt_prog_compiler_static_GCJ='-Bstatic'
23805 lt_prog_compiler_wl_GCJ='-Wl,'
23806 # All Alpha code is PIC.
23807 lt_prog_compiler_static_GCJ='-non_shared'
23812 osf3* | osf4* | osf5*)
23813 lt_prog_compiler_wl_GCJ='-Wl,'
23814 # All OSF/1 code is PIC.
23815 lt_prog_compiler_static_GCJ='-non_shared'
23819 lt_prog_compiler_pic_GCJ='-KPIC'
23820 lt_prog_compiler_static_GCJ='-Bstatic'
23821 case $cc_basename in
23822 f77* | f90* | f95*)
23823 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23825 lt_prog_compiler_wl_GCJ='-Wl,';;
23830 lt_prog_compiler_wl_GCJ='-Qoption ld '
23831 lt_prog_compiler_pic_GCJ='-PIC'
23832 lt_prog_compiler_static_GCJ='-Bstatic'
23835 sysv4 | sysv4.2uw2* | sysv4.3*)
23836 lt_prog_compiler_wl_GCJ='-Wl,'
23837 lt_prog_compiler_pic_GCJ='-KPIC'
23838 lt_prog_compiler_static_GCJ='-Bstatic'
23842 if test -d /usr/nec ;then
23843 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23844 lt_prog_compiler_static_GCJ='-Bstatic'
23848 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23849 lt_prog_compiler_wl_GCJ='-Wl,'
23850 lt_prog_compiler_pic_GCJ='-KPIC'
23851 lt_prog_compiler_static_GCJ='-Bstatic'
23855 lt_prog_compiler_wl_GCJ='-Wl,'
23856 lt_prog_compiler_can_build_shared_GCJ=no
23860 lt_prog_compiler_pic_GCJ='-pic'
23861 lt_prog_compiler_static_GCJ='-Bstatic'
23865 lt_prog_compiler_can_build_shared_GCJ=no
23870 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23871 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23874 # Check to make sure the PIC flag actually works.
23876 if test -n "$lt_prog_compiler_pic_GCJ"; then
23878 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23879 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23880 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23881 echo $ECHO_N "(cached) $ECHO_C" >&6
23883 lt_prog_compiler_pic_works_GCJ=no
23884 ac_outfile=conftest.$ac_objext
23885 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23886 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23887 # Insert the option either (1) after the last *FLAGS variable, or
23888 # (2) before a word containing "conftest.", or (3) at the end.
23889 # Note that $ac_compile itself does not contain backslashes and begins
23890 # with a dollar sign (not a hyphen), so the echo should work correctly.
23891 # The option is referenced via a variable to avoid confusing sed.
23892 lt_compile=`echo "$ac_compile" | $SED \
23893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23895 -e 's:$: $lt_compiler_flag:'`
23896 (eval echo "\"\$as_me:23896: $lt_compile\"" >&5)
23897 (eval "$lt_compile" 2>conftest.err)
23899 cat conftest.err >&5
23900 echo "$as_me:23900: \$? = $ac_status" >&5
23901 if (exit $ac_status) && test -s "$ac_outfile"; then
23902 # The compiler can only warn and ignore the option if not recognized
23903 # So say no if there are warnings other than the usual output.
23904 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23905 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23906 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23907 lt_prog_compiler_pic_works_GCJ=yes
23913 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23914 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23916 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23917 case $lt_prog_compiler_pic_GCJ in
23919 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23922 lt_prog_compiler_pic_GCJ=
23923 lt_prog_compiler_can_build_shared_GCJ=no
23928 # For platforms which do not support PIC, -DPIC is meaningless:
23930 lt_prog_compiler_pic_GCJ=
23933 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23938 # Check to make sure the static flag actually works.
23940 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23941 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23942 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23943 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23944 echo $ECHO_N "(cached) $ECHO_C" >&6
23946 lt_prog_compiler_static_works_GCJ=no
23947 save_LDFLAGS="$LDFLAGS"
23948 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23949 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23950 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23951 # The linker can only warn and ignore the option if not recognized
23952 # So say no if there are warnings
23953 if test -s conftest.err; then
23954 # Append any errors to the config.log.
23955 cat conftest.err 1>&5
23956 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23958 if diff conftest.exp conftest.er2 >/dev/null; then
23959 lt_prog_compiler_static_works_GCJ=yes
23962 lt_prog_compiler_static_works_GCJ=yes
23966 LDFLAGS="$save_LDFLAGS"
23969 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23970 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23972 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23975 lt_prog_compiler_static_GCJ=
23979 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23980 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23981 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23982 echo $ECHO_N "(cached) $ECHO_C" >&6
23984 lt_cv_prog_compiler_c_o_GCJ=no
23985 $rm -r conftest 2>/dev/null
23989 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23991 lt_compiler_flag="-o out/conftest2.$ac_objext"
23992 # Insert the option either (1) after the last *FLAGS variable, or
23993 # (2) before a word containing "conftest.", or (3) at the end.
23994 # Note that $ac_compile itself does not contain backslashes and begins
23995 # with a dollar sign (not a hyphen), so the echo should work correctly.
23996 lt_compile=`echo "$ac_compile" | $SED \
23997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23999 -e 's:$: $lt_compiler_flag:'`
24000 (eval echo "\"\$as_me:24000: $lt_compile\"" >&5)
24001 (eval "$lt_compile" 2>out/conftest.err)
24003 cat out/conftest.err >&5
24004 echo "$as_me:24004: \$? = $ac_status" >&5
24005 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24007 # The compiler can only warn and ignore the option if not recognized
24008 # So say no if there are warnings
24009 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24010 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24011 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24012 lt_cv_prog_compiler_c_o_GCJ=yes
24017 # SGI C++ compiler will create directory out/ii_files/ for
24018 # template instantiation
24019 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24020 $rm out/* && rmdir out
24026 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24027 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24030 hard_links="nottested"
24031 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24032 # do not overwrite the value of need_locks provided by the user
24033 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24034 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24037 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24039 ln conftest.a conftest.b 2>&5 || hard_links=no
24040 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24041 { echo "$as_me:$LINENO: result: $hard_links" >&5
24042 echo "${ECHO_T}$hard_links" >&6; }
24043 if test "$hard_links" = no; then
24044 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24045 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24052 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24053 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24056 allow_undefined_flag_GCJ=
24057 enable_shared_with_static_runtimes_GCJ=no
24059 archive_expsym_cmds_GCJ=
24060 old_archive_From_new_cmds_GCJ=
24061 old_archive_from_expsyms_cmds_GCJ=
24062 export_dynamic_flag_spec_GCJ=
24063 whole_archive_flag_spec_GCJ=
24064 thread_safe_flag_spec_GCJ=
24065 hardcode_libdir_flag_spec_GCJ=
24066 hardcode_libdir_flag_spec_ld_GCJ=
24067 hardcode_libdir_separator_GCJ=
24068 hardcode_direct_GCJ=no
24069 hardcode_minus_L_GCJ=no
24070 hardcode_shlibpath_var_GCJ=unsupported
24071 link_all_deplibs_GCJ=unknown
24072 hardcode_automatic_GCJ=no
24074 module_expsym_cmds_GCJ=
24075 always_export_symbols_GCJ=no
24076 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24077 # include_expsyms should be a list of space-separated symbols to be *always*
24078 # included in the symbol list
24079 include_expsyms_GCJ=
24080 # exclude_expsyms can be an extended regexp of symbols to exclude
24081 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24082 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24083 # as well as any symbol that contains `d'.
24084 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24085 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24086 # platforms (ab)use it in PIC code, but their linkers get confused if
24087 # the symbol is explicitly referenced. Since portable code cannot
24088 # rely on this symbol name, it's probably fine to never include it in
24089 # preloaded symbol tables.
24090 extract_expsyms_cmds=
24091 # Just being paranoid about ensuring that cc_basename is set.
24092 for cc_temp in $compiler""; do
24094 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24095 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24100 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24103 cygwin* | mingw* | pw32*)
24104 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24105 # When not using gcc, we currently assume that we are using
24106 # Microsoft Visual C++.
24107 if test "$GCC" != yes; then
24112 # we just hope/assume this is gcc and not c89 (= MSVC++)
24121 if test "$with_gnu_ld" = yes; then
24122 # If archive_cmds runs LD, not CC, wlarc should be empty
24125 # Set some defaults for GNU ld with shared library support. These
24126 # are reset later if shared libraries are not supported. Putting them
24127 # here allows them to be overridden if necessary.
24128 runpath_var=LD_RUN_PATH
24129 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24130 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24131 # ancient GNU ld didn't support --whole-archive et. al.
24132 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24133 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24135 whole_archive_flag_spec_GCJ=
24137 supports_anon_versioning=no
24138 case `$LD -v 2>/dev/null` in
24139 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24140 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24141 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24142 *\ 2.11.*) ;; # other 2.11 versions
24143 *) supports_anon_versioning=yes ;;
24146 # See if GNU ld supports shared libraries.
24148 aix3* | aix4* | aix5*)
24149 # On AIX/PPC, the GNU linker is very broken
24150 if test "$host_cpu" != ia64; then
24154 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24155 *** to be unable to reliably create shared libraries on AIX.
24156 *** Therefore, libtool is disabling shared libraries support. If you
24157 *** really care for shared libraries, you may want to modify your PATH
24158 *** so that a non-GNU linker is found, and then restart.
24165 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)'
24166 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24167 hardcode_minus_L_GCJ=yes
24169 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24170 # that the semantics of dynamic libraries on AmigaOS, at least up
24171 # to version 4, is to share data among multiple programs linked
24172 # with the same dynamic library. Since this doesn't match the
24173 # behavior of shared libraries on other platforms, we can't use
24179 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24180 allow_undefined_flag_GCJ=unsupported
24181 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24182 # support --undefined. This deserves some investigation. FIXME
24183 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24189 cygwin* | mingw* | pw32*)
24190 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24191 # as there is no search path for DLLs.
24192 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24193 allow_undefined_flag_GCJ=unsupported
24194 always_export_symbols_GCJ=no
24195 enable_shared_with_static_runtimes_GCJ=yes
24196 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24198 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24199 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24200 # If the export-symbols file already is a .def file (1st line
24201 # is EXPORTS), use it as is; otherwise, prepend...
24202 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24203 cp $export_symbols $output_objdir/$soname.def;
24205 echo EXPORTS > $output_objdir/$soname.def;
24206 cat $export_symbols >> $output_objdir/$soname.def;
24208 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24215 hardcode_direct_GCJ=no
24216 hardcode_shlibpath_var_GCJ=no
24217 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24218 export_dynamic_flag_spec_GCJ='${wl}-E'
24219 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24220 # Instead, shared libraries are loaded at an image base (0x10000000 by
24221 # default) and relocated if they conflict, which is a slow very memory
24222 # consuming and fragmenting process. To avoid this, we pick a random,
24223 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24224 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24225 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'
24226 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'
24230 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24232 case $cc_basename,$host_cpu in
24233 pgcc*) # Portland Group C compiler
24234 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'
24235 tmp_addflag=' $pic_flag'
24237 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24238 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'
24239 tmp_addflag=' $pic_flag -Mnomain' ;;
24240 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24241 tmp_addflag=' -i_dynamic' ;;
24242 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24243 tmp_addflag=' -i_dynamic -nofor_main' ;;
24244 ifc* | ifort*) # Intel Fortran compiler
24245 tmp_addflag=' -nofor_main' ;;
24247 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24249 if test $supports_anon_versioning = yes; then
24250 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24251 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24252 $echo "local: *; };" >> $output_objdir/$libname.ver~
24253 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24261 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24262 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24265 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24266 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24271 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24275 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24276 *** create shared libraries on Solaris systems. Therefore, libtool
24277 *** is disabling shared libraries support. We urge you to upgrade GNU
24278 *** binutils to release 2.9.1 or newer. Another option is to modify
24279 *** your PATH or compiler configuration so that the native linker is
24280 *** used, and then restart.
24283 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24284 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24285 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24291 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24292 case `$LD -v 2>&1` in
24293 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24297 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24298 *** reliably create shared libraries on SCO systems. Therefore, libtool
24299 *** is disabling shared libraries support. We urge you to upgrade GNU
24300 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24301 *** your PATH or compiler configuration so that the native linker is
24302 *** used, and then restart.
24307 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24308 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24309 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24310 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24319 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24321 hardcode_direct_GCJ=yes
24322 hardcode_shlibpath_var_GCJ=no
24326 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24327 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24328 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24335 if test "$ld_shlibs_GCJ" = no; then
24337 hardcode_libdir_flag_spec_GCJ=
24338 export_dynamic_flag_spec_GCJ=
24339 whole_archive_flag_spec_GCJ=
24342 # PORTME fill in a description of your system's linker (not GNU ld)
24345 allow_undefined_flag_GCJ=unsupported
24346 always_export_symbols_GCJ=yes
24347 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'
24348 # Note: this linker hardcodes the directories in LIBPATH if there
24349 # are no directories specified by -L.
24350 hardcode_minus_L_GCJ=yes
24351 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24352 # Neither direct hardcoding nor static linking is supported with a
24354 hardcode_direct_GCJ=unsupported
24359 if test "$host_cpu" = ia64; then
24360 # On IA64, the linker does run time linking by default, so we don't
24361 # have to do anything special.
24362 aix_use_runtimelinking=no
24363 exp_sym_flag='-Bexport'
24366 # If we're using GNU nm, then we don't want the "-C" option.
24367 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24368 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24369 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'
24371 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'
24373 aix_use_runtimelinking=no
24375 # Test if we are trying to use run time linking or normal
24376 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24377 # need to do runtime linking.
24378 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24379 for ld_flag in $LDFLAGS; do
24380 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24381 aix_use_runtimelinking=yes
24388 exp_sym_flag='-bexport'
24389 no_entry_flag='-bnoentry'
24392 # When large executables or shared objects are built, AIX ld can
24393 # have problems creating the table of contents. If linking a library
24394 # or program results in "error TOC overflow" add -mminimal-toc to
24395 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24396 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24398 archive_cmds_GCJ=''
24399 hardcode_direct_GCJ=yes
24400 hardcode_libdir_separator_GCJ=':'
24401 link_all_deplibs_GCJ=yes
24403 if test "$GCC" = yes; then
24404 case $host_os in aix4.[012]|aix4.[012].*)
24405 # We only want to do this on AIX 4.2 and lower, the check
24406 # below for broken collect2 doesn't work under 4.3+
24407 collect2name=`${CC} -print-prog-name=collect2`
24408 if test -f "$collect2name" && \
24409 strings "$collect2name" | grep resolve_lib_name >/dev/null
24411 # We have reworked collect2
24412 hardcode_direct_GCJ=yes
24414 # We have old collect2
24415 hardcode_direct_GCJ=unsupported
24416 # It fails to find uninstalled libraries when the uninstalled
24417 # path is not listed in the libpath. Setting hardcode_minus_L
24418 # to unsupported forces relinking
24419 hardcode_minus_L_GCJ=yes
24420 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24421 hardcode_libdir_separator_GCJ=
24425 shared_flag='-shared'
24426 if test "$aix_use_runtimelinking" = yes; then
24427 shared_flag="$shared_flag "'${wl}-G'
24431 if test "$host_cpu" = ia64; then
24432 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24433 # chokes on -Wl,-G. The following line is correct:
24436 if test "$aix_use_runtimelinking" = yes; then
24437 shared_flag='${wl}-G'
24439 shared_flag='${wl}-bM:SRE'
24444 # It seems that -bexpall does not export symbols beginning with
24445 # underscore (_), so it is better to generate a list of symbols to export.
24446 always_export_symbols_GCJ=yes
24447 if test "$aix_use_runtimelinking" = yes; then
24448 # Warning - without using the other runtime loading flags (-brtl),
24449 # -berok will link without error, but may produce a broken library.
24450 allow_undefined_flag_GCJ='-berok'
24451 # Determine the default libpath from the value encoded in an empty executable.
24452 cat >conftest.$ac_ext <<_ACEOF
24455 cat confdefs.h >>conftest.$ac_ext
24456 cat >>conftest.$ac_ext <<_ACEOF
24457 /* end confdefs.h. */
24467 rm -f conftest.$ac_objext conftest$ac_exeext
24468 if { (ac_try="$ac_link"
24469 case "(($ac_try" in
24470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24471 *) ac_try_echo=$ac_try;;
24473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24474 (eval "$ac_link") 2>conftest.er1
24476 grep -v '^ *+' conftest.er1 >conftest.err
24478 cat conftest.err >&5
24479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480 (exit $ac_status); } &&
24481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24482 { (case "(($ac_try" in
24483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24484 *) ac_try_echo=$ac_try;;
24486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24487 (eval "$ac_try") 2>&5
24489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490 (exit $ac_status); }; } &&
24491 { ac_try='test -s conftest$ac_exeext'
24492 { (case "(($ac_try" in
24493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24494 *) ac_try_echo=$ac_try;;
24496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24497 (eval "$ac_try") 2>&5
24499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24500 (exit $ac_status); }; }; then
24502 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24504 # Check for a 64-bit object if we didn't find anything.
24505 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; }
24508 echo "$as_me: failed program was:" >&5
24509 sed 's/^/| /' conftest.$ac_ext >&5
24514 rm -f core conftest.err conftest.$ac_objext \
24515 conftest$ac_exeext conftest.$ac_ext
24516 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24518 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24519 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"
24521 if test "$host_cpu" = ia64; then
24522 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24523 allow_undefined_flag_GCJ="-z nodefs"
24524 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"
24526 # Determine the default libpath from the value encoded in an empty executable.
24527 cat >conftest.$ac_ext <<_ACEOF
24530 cat confdefs.h >>conftest.$ac_ext
24531 cat >>conftest.$ac_ext <<_ACEOF
24532 /* end confdefs.h. */
24542 rm -f conftest.$ac_objext conftest$ac_exeext
24543 if { (ac_try="$ac_link"
24544 case "(($ac_try" in
24545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24546 *) ac_try_echo=$ac_try;;
24548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24549 (eval "$ac_link") 2>conftest.er1
24551 grep -v '^ *+' conftest.er1 >conftest.err
24553 cat conftest.err >&5
24554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555 (exit $ac_status); } &&
24556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24557 { (case "(($ac_try" in
24558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24559 *) ac_try_echo=$ac_try;;
24561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24562 (eval "$ac_try") 2>&5
24564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565 (exit $ac_status); }; } &&
24566 { ac_try='test -s conftest$ac_exeext'
24567 { (case "(($ac_try" in
24568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24569 *) ac_try_echo=$ac_try;;
24571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24572 (eval "$ac_try") 2>&5
24574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575 (exit $ac_status); }; }; then
24577 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24579 # Check for a 64-bit object if we didn't find anything.
24580 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; }
24583 echo "$as_me: failed program was:" >&5
24584 sed 's/^/| /' conftest.$ac_ext >&5
24589 rm -f core conftest.err conftest.$ac_objext \
24590 conftest$ac_exeext conftest.$ac_ext
24591 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24593 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24594 # Warning - without using the other run time loading flags,
24595 # -berok will link without error, but may produce a broken library.
24596 no_undefined_flag_GCJ=' ${wl}-bernotok'
24597 allow_undefined_flag_GCJ=' ${wl}-berok'
24598 # Exported symbols can be pulled into shared objects from archives
24599 whole_archive_flag_spec_GCJ='$convenience'
24600 archive_cmds_need_lc_GCJ=yes
24601 # This is similar to how AIX traditionally builds its shared libraries.
24602 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'
24608 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)'
24609 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24610 hardcode_minus_L_GCJ=yes
24611 # see comment about different semantics on the GNU ld section
24616 export_dynamic_flag_spec_GCJ=-rdynamic
24619 cygwin* | mingw* | pw32*)
24620 # When not using gcc, we currently assume that we are using
24621 # Microsoft Visual C++.
24622 # hardcode_libdir_flag_spec is actually meaningless, as there is
24623 # no search path for DLLs.
24624 hardcode_libdir_flag_spec_GCJ=' '
24625 allow_undefined_flag_GCJ=unsupported
24626 # Tell ltmain to make .lib files, not .a files.
24628 # Tell ltmain to make .dll files, not .so files.
24630 # FIXME: Setting linknames here is a bad hack.
24631 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24632 # The linker will automatically build a .lib file if we build a DLL.
24633 old_archive_From_new_cmds_GCJ='true'
24634 # FIXME: Should let the user specify the lib program.
24635 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24636 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24637 enable_shared_with_static_runtimes_GCJ=yes
24640 darwin* | rhapsody*)
24642 rhapsody* | darwin1.[012])
24643 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24646 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24647 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24649 case ${MACOSX_DEPLOYMENT_TARGET} in
24651 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24654 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24660 archive_cmds_need_lc_GCJ=no
24661 hardcode_direct_GCJ=no
24662 hardcode_automatic_GCJ=yes
24663 hardcode_shlibpath_var_GCJ=unsupported
24664 whole_archive_flag_spec_GCJ=''
24665 link_all_deplibs_GCJ=yes
24666 if test "$GCC" = yes ; then
24667 output_verbose_link_cmd='echo'
24668 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24669 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24670 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24671 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}'
24672 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}'
24674 case $cc_basename in
24676 output_verbose_link_cmd='echo'
24677 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24678 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24679 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24680 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}'
24681 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}'
24691 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24692 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24693 hardcode_shlibpath_var_GCJ=no
24700 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24701 # support. Future versions do this automatically, but an explicit c++rt0.o
24702 # does not break anything, and helps significantly (at the cost of a little
24705 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24706 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24707 hardcode_direct_GCJ=yes
24708 hardcode_shlibpath_var_GCJ=no
24711 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24713 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24714 hardcode_direct_GCJ=yes
24715 hardcode_minus_L_GCJ=yes
24716 hardcode_shlibpath_var_GCJ=no
24719 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24720 freebsd* | kfreebsd*-gnu | dragonfly*)
24721 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24722 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24723 hardcode_direct_GCJ=yes
24724 hardcode_shlibpath_var_GCJ=no
24728 if test "$GCC" = yes; then
24729 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'
24731 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'
24733 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24734 hardcode_libdir_separator_GCJ=:
24735 hardcode_direct_GCJ=yes
24737 # hardcode_minus_L: Not really in the search PATH,
24738 # but as the default location of the library.
24739 hardcode_minus_L_GCJ=yes
24740 export_dynamic_flag_spec_GCJ='${wl}-E'
24744 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24745 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24747 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24749 if test "$with_gnu_ld" = no; then
24750 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24751 hardcode_libdir_separator_GCJ=:
24753 hardcode_direct_GCJ=yes
24754 export_dynamic_flag_spec_GCJ='${wl}-E'
24756 # hardcode_minus_L: Not really in the search PATH,
24757 # but as the default location of the library.
24758 hardcode_minus_L_GCJ=yes
24763 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24766 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24769 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24772 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24778 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24781 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24784 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24788 if test "$with_gnu_ld" = no; then
24789 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24790 hardcode_libdir_separator_GCJ=:
24794 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24795 hardcode_direct_GCJ=no
24796 hardcode_shlibpath_var_GCJ=no
24799 hardcode_direct_GCJ=yes
24800 export_dynamic_flag_spec_GCJ='${wl}-E'
24802 # hardcode_minus_L: Not really in the search PATH,
24803 # but as the default location of the library.
24804 hardcode_minus_L_GCJ=yes
24810 irix5* | irix6* | nonstopux*)
24811 if test "$GCC" = yes; then
24812 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'
24814 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'
24815 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24817 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24818 hardcode_libdir_separator_GCJ=:
24819 link_all_deplibs_GCJ=yes
24823 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24824 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24826 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24828 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24829 hardcode_direct_GCJ=yes
24830 hardcode_shlibpath_var_GCJ=no
24834 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24835 hardcode_direct_GCJ=yes
24836 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24837 hardcode_libdir_separator_GCJ=:
24838 hardcode_shlibpath_var_GCJ=no
24842 hardcode_direct_GCJ=yes
24843 hardcode_shlibpath_var_GCJ=no
24844 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24845 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24846 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24847 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24848 export_dynamic_flag_spec_GCJ='${wl}-E'
24851 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24852 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24853 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24856 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24857 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24864 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24865 hardcode_minus_L_GCJ=yes
24866 allow_undefined_flag_GCJ=unsupported
24867 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'
24868 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24872 if test "$GCC" = yes; then
24873 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24874 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'
24876 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24877 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'
24879 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24880 hardcode_libdir_separator_GCJ=:
24883 osf4* | osf5*) # as osf3* with the addition of -msym flag
24884 if test "$GCC" = yes; then
24885 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24886 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'
24887 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24889 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24890 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'
24891 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~
24892 $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'
24894 # Both c and cxx compiler support -rpath directly
24895 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24897 hardcode_libdir_separator_GCJ=:
24901 no_undefined_flag_GCJ=' -z text'
24902 if test "$GCC" = yes; then
24904 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24905 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24906 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24909 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24910 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24911 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24913 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24914 hardcode_shlibpath_var_GCJ=no
24916 solaris2.[0-5] | solaris2.[0-5].*) ;;
24918 # The compiler driver will combine linker options so we
24919 # cannot just pass the convience library names through
24920 # without $wl, iff we do not link with $LD.
24921 # Luckily, gcc supports the same syntax we need for Sun Studio.
24922 # Supported since Solaris 2.6 (maybe 2.5.1?)
24925 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24927 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' ;;
24930 link_all_deplibs_GCJ=yes
24934 if test "x$host_vendor" = xsequent; then
24935 # Use $CC to link under sequent, because it throws in some extra .o
24936 # files that make .init and .fini sections work.
24937 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24939 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24941 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24942 hardcode_direct_GCJ=yes
24943 hardcode_minus_L_GCJ=yes
24944 hardcode_shlibpath_var_GCJ=no
24948 case $host_vendor in
24950 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24951 hardcode_direct_GCJ=yes # is this really true???
24954 ## LD is ld it makes a PLAMLIB
24955 ## CC just makes a GrossModule.
24956 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24957 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24958 hardcode_direct_GCJ=no
24961 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24962 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24965 runpath_var='LD_RUN_PATH'
24966 hardcode_shlibpath_var_GCJ=no
24970 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24971 hardcode_shlibpath_var_GCJ=no
24972 export_dynamic_flag_spec_GCJ='-Bexport'
24976 if test -d /usr/nec; then
24977 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24978 hardcode_shlibpath_var_GCJ=no
24979 runpath_var=LD_RUN_PATH
24980 hardcode_runpath_var=yes
24985 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24986 no_undefined_flag_GCJ='${wl}-z,text'
24987 archive_cmds_need_lc_GCJ=no
24988 hardcode_shlibpath_var_GCJ=no
24989 runpath_var='LD_RUN_PATH'
24991 if test "$GCC" = yes; then
24992 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24993 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24995 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24996 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25000 sysv5* | sco3.2v5* | sco5v6*)
25001 # Note: We can NOT use -z defs as we might desire, because we do not
25002 # link with -lc, and that would cause any symbols used from libc to
25003 # always be unresolved, which means just about no library would
25004 # ever link correctly. If we're not using GNU ld we use -z text
25005 # though, which does catch some bad symbols but isn't as heavy-handed
25007 no_undefined_flag_GCJ='${wl}-z,text'
25008 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25009 archive_cmds_need_lc_GCJ=no
25010 hardcode_shlibpath_var_GCJ=no
25011 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25012 hardcode_libdir_separator_GCJ=':'
25013 link_all_deplibs_GCJ=yes
25014 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25015 runpath_var='LD_RUN_PATH'
25017 if test "$GCC" = yes; then
25018 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25019 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25021 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25022 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25027 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25028 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25029 hardcode_shlibpath_var_GCJ=no
25038 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25039 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25040 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25043 # Do we need to explicitly link libc?
25045 case "x$archive_cmds_need_lc_GCJ" in
25047 # Assume -lc should be added
25048 archive_cmds_need_lc_GCJ=yes
25050 if test "$enable_shared" = yes && test "$GCC" = yes; then
25051 case $archive_cmds_GCJ in
25053 # FIXME: we may have to deal with multi-command sequences.
25056 # Test whether the compiler implicitly links with -lc since on some
25057 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25058 # to ld, don't add -lc before -lgcc.
25059 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25060 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25062 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25065 (eval $ac_compile) 2>&5
25067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068 (exit $ac_status); } 2>conftest.err; then
25071 libobjs=conftest.$ac_objext
25073 wl=$lt_prog_compiler_wl_GCJ
25074 pic_flag=$lt_prog_compiler_pic_GCJ
25080 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25081 allow_undefined_flag_GCJ=
25082 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25083 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25086 (exit $ac_status); }
25088 archive_cmds_need_lc_GCJ=no
25090 archive_cmds_need_lc_GCJ=yes
25092 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25094 cat conftest.err 1>&5
25097 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25098 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25105 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25106 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25107 library_names_spec=
25108 libname_spec='lib$name'
25112 postuninstall_cmds=
25116 shlibpath_overrides_runpath=unknown
25118 dynamic_linker="$host_os ld.so"
25119 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25120 if test "$GCC" = yes; then
25121 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25122 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25123 # if the path contains ";" then we assume it to be the separator
25124 # otherwise default to the standard path separator (i.e. ":") - it is
25125 # assumed that no part of a normal pathname contains ";" but that should
25126 # okay in the real world where ";" in dirpaths is itself problematic.
25127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25132 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25134 need_lib_prefix=unknown
25135 hardcode_into_libs=no
25137 # when you set need_version to no, make sure it does not cause -set_version
25138 # flags to be left without arguments
25139 need_version=unknown
25144 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25145 shlibpath_var=LIBPATH
25147 # AIX 3 has no versioning support, so we append a major version to the name.
25148 soname_spec='${libname}${release}${shared_ext}$major'
25155 hardcode_into_libs=yes
25156 if test "$host_cpu" = ia64; then
25157 # AIX 5 supports IA64
25158 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25159 shlibpath_var=LD_LIBRARY_PATH
25161 # With GCC up to 2.95.x, collect2 would create an import file
25162 # for dependence libraries. The import file would start with
25163 # the line `#! .'. This would cause the generated library to
25164 # depend on `.', always an invalid library. This was fixed in
25165 # development snapshots of GCC prior to 3.0.
25167 aix4 | aix4.[01] | aix4.[01].*)
25168 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25170 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25173 can_build_shared=no
25177 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25178 # soname into executable. Probably we can add versioning support to
25179 # collect2, so additional links can be useful in future.
25180 if test "$aix_use_runtimelinking" = yes; then
25181 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25182 # instead of lib<name>.a to let people know that these are not
25183 # typical AIX shared libraries.
25184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25186 # We preserve .a as extension for shared libraries through AIX4.2
25187 # and later when we are not doing run time linking.
25188 library_names_spec='${libname}${release}.a $libname.a'
25189 soname_spec='${libname}${release}${shared_ext}$major'
25191 shlibpath_var=LIBPATH
25196 library_names_spec='$libname.ixlibrary $libname.a'
25197 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25198 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'
25202 library_names_spec='${libname}${shared_ext}'
25203 dynamic_linker="$host_os ld.so"
25204 shlibpath_var=LIBRARY_PATH
25210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25211 soname_spec='${libname}${release}${shared_ext}$major'
25212 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25213 shlibpath_var=LD_LIBRARY_PATH
25214 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25215 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25216 # the default ld.so.conf also contains /usr/contrib/lib and
25217 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25218 # libtool to hard-code these into programs
25221 cygwin* | mingw* | pw32*)
25222 version_type=windows
25227 case $GCC,$host_os in
25228 yes,cygwin* | yes,mingw* | yes,pw32*)
25229 library_names_spec='$libname.dll.a'
25230 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25231 postinstall_cmds='base_file=`basename \${file}`~
25232 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25233 dldir=$destdir/`dirname \$dlpath`~
25234 test -d \$dldir || mkdir -p \$dldir~
25235 $install_prog $dir/$dlname \$dldir/$dlname~
25236 chmod a+x \$dldir/$dlname'
25237 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25238 dlpath=$dir/\$dldll~
25240 shlibpath_overrides_runpath=yes
25244 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25245 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25246 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25249 # MinGW DLLs use traditional 'lib' prefix
25250 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25251 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25252 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25253 # It is most probably a Windows format PATH printed by
25254 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25255 # path with ; separators, and with drive letters. We can handle the
25256 # drive letters (cygwin fileutils understands them), so leave them,
25257 # especially as we might pass files found there to a mingw objdump,
25258 # which wouldn't understand a cygwinified path. Ahh.
25259 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25261 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25265 # pw32 DLLs use 'pw' prefix rather than 'lib'
25266 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25272 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25275 dynamic_linker='Win32 ld.exe'
25276 # FIXME: first we should search . and the directory the executable is in
25280 darwin* | rhapsody*)
25281 dynamic_linker="$host_os dyld"
25282 version_type=darwin
25285 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25286 soname_spec='${libname}${release}${major}$shared_ext'
25287 shlibpath_overrides_runpath=yes
25288 shlibpath_var=DYLD_LIBRARY_PATH
25289 shrext_cmds='.dylib'
25290 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25291 if test "$GCC" = yes; then
25292 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"`
25294 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25296 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25304 soname_spec='${libname}${release}${shared_ext}$major'
25305 shlibpath_var=LD_LIBRARY_PATH
25316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25317 soname_spec='${libname}${release}${shared_ext}$major'
25318 shlibpath_var=LD_LIBRARY_PATH
25319 shlibpath_overrides_runpath=no
25320 hardcode_into_libs=yes
25321 dynamic_linker='GNU ld.so'
25324 freebsd* | dragonfly*)
25325 # DragonFly does not have aout. When/if they implement a new
25326 # versioning mechanism, adjust this.
25327 if test -x /usr/bin/objformat; then
25328 objformat=`/usr/bin/objformat`
25331 freebsd[123]*) objformat=aout ;;
25332 *) objformat=elf ;;
25335 version_type=freebsd-$objformat
25336 case $version_type in
25338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25343 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25347 shlibpath_var=LD_LIBRARY_PATH
25350 shlibpath_overrides_runpath=yes
25352 freebsd3.[01]* | freebsdelf3.[01]*)
25353 shlibpath_overrides_runpath=yes
25354 hardcode_into_libs=yes
25356 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25357 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25358 shlibpath_overrides_runpath=no
25359 hardcode_into_libs=yes
25361 freebsd*) # from 4.6 on
25362 shlibpath_overrides_runpath=yes
25363 hardcode_into_libs=yes
25372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25373 soname_spec='${libname}${release}${shared_ext}$major'
25374 shlibpath_var=LD_LIBRARY_PATH
25375 hardcode_into_libs=yes
25378 hpux9* | hpux10* | hpux11*)
25379 # Give a soname corresponding to the major version so that dld.sl refuses to
25380 # link against other versions.
25387 hardcode_into_libs=yes
25388 dynamic_linker="$host_os dld.so"
25389 shlibpath_var=LD_LIBRARY_PATH
25390 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25392 soname_spec='${libname}${release}${shared_ext}$major'
25393 if test "X$HPUX_IA64_MODE" = X32; then
25394 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25396 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25398 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25402 hardcode_into_libs=yes
25403 dynamic_linker="$host_os dld.sl"
25404 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25405 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25407 soname_spec='${libname}${release}${shared_ext}$major'
25408 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25409 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25413 dynamic_linker="$host_os dld.sl"
25414 shlibpath_var=SHLIB_PATH
25415 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25417 soname_spec='${libname}${release}${shared_ext}$major'
25420 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25421 postinstall_cmds='chmod 555 $lib'
25428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25429 soname_spec='${libname}${release}${shared_ext}$major'
25430 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25431 shlibpath_var=LD_LIBRARY_PATH
25432 shlibpath_overrides_runpath=no
25433 hardcode_into_libs=yes
25436 irix5* | irix6* | nonstopux*)
25438 nonstopux*) version_type=nonstopux ;;
25440 if test "$lt_cv_prog_gnu_ld" = yes; then
25448 soname_spec='${libname}${release}${shared_ext}$major'
25449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25451 irix5* | nonstopux*)
25452 libsuff= shlibsuff=
25455 case $LD in # libtool.m4 will add one of these switches to LD
25456 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25457 libsuff= shlibsuff= libmagic=32-bit;;
25458 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25459 libsuff=32 shlibsuff=N32 libmagic=N32;;
25460 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25461 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25462 *) libsuff= shlibsuff= libmagic=never-match;;
25466 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25467 shlibpath_overrides_runpath=no
25468 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25469 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25470 hardcode_into_libs=yes
25473 # No shared lib support for Linux oldld, aout, or coff.
25474 linux*oldld* | linux*aout* | linux*coff*)
25478 # This must be Linux ELF.
25483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25484 soname_spec='${libname}${release}${shared_ext}$major'
25485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25486 shlibpath_var=LD_LIBRARY_PATH
25487 shlibpath_overrides_runpath=no
25488 # This implies no fast_install, which is unacceptable.
25489 # Some rework will be needed to allow for fast_install
25490 # before this can be enabled.
25491 hardcode_into_libs=yes
25493 # Append ld.so.conf contents to the search path
25494 if test -f /etc/ld.so.conf; then
25495 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' ' '`
25496 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25499 # We used to test for /lib/ld.so.1 and disable shared libraries on
25500 # powerpc, because MkLinux only supported shared libraries with the
25501 # GNU dynamic linker. Since this was broken with cross compilers,
25502 # most powerpc-linux boxes support dynamic linking these days and
25503 # people can always --disable-shared, the test was removed, and we
25504 # assume the GNU/Linux dynamic linker is in use.
25505 dynamic_linker='GNU/Linux ld.so'
25512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25513 soname_spec='${libname}${release}${shared_ext}$major'
25514 shlibpath_var=LD_LIBRARY_PATH
25515 shlibpath_overrides_runpath=no
25516 hardcode_into_libs=yes
25517 dynamic_linker='GNU ld.so'
25524 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25527 dynamic_linker='NetBSD (a.out) ld.so'
25529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25530 soname_spec='${libname}${release}${shared_ext}$major'
25531 dynamic_linker='NetBSD ld.elf_so'
25533 shlibpath_var=LD_LIBRARY_PATH
25534 shlibpath_overrides_runpath=yes
25535 hardcode_into_libs=yes
25540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25541 shlibpath_var=LD_LIBRARY_PATH
25542 shlibpath_overrides_runpath=yes
25549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25550 soname_spec='${libname}${release}${shared_ext}$major'
25551 shlibpath_var=LD_LIBRARY_PATH
25552 shlibpath_overrides_runpath=yes
25557 sys_lib_dlsearch_path_spec="/usr/lib"
25559 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25561 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25562 *) need_version=no ;;
25564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25565 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25566 shlibpath_var=LD_LIBRARY_PATH
25567 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25569 openbsd2.[89] | openbsd2.[89].*)
25570 shlibpath_overrides_runpath=no
25573 shlibpath_overrides_runpath=yes
25577 shlibpath_overrides_runpath=yes
25582 libname_spec='$name'
25585 library_names_spec='$libname${shared_ext} $libname.a'
25586 dynamic_linker='OS/2 ld.exe'
25587 shlibpath_var=LIBPATH
25590 osf3* | osf4* | osf5*)
25594 soname_spec='${libname}${release}${shared_ext}$major'
25595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25596 shlibpath_var=LD_LIBRARY_PATH
25597 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25598 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
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'
25607 shlibpath_var=LD_LIBRARY_PATH
25608 shlibpath_overrides_runpath=yes
25609 hardcode_into_libs=yes
25610 # ldd complains unless libraries are executable
25611 postinstall_cmds='chmod +x $lib'
25616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25617 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25618 shlibpath_var=LD_LIBRARY_PATH
25619 shlibpath_overrides_runpath=yes
25620 if test "$with_gnu_ld" = yes; then
25628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25629 soname_spec='${libname}${release}${shared_ext}$major'
25630 shlibpath_var=LD_LIBRARY_PATH
25631 case $host_vendor in
25633 shlibpath_overrides_runpath=no
25635 export_dynamic_flag_spec='${wl}-Blargedynsym'
25636 runpath_var=LD_RUN_PATH
25644 shlibpath_overrides_runpath=no
25645 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25651 if test -d /usr/nec ;then
25653 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25654 soname_spec='$libname${shared_ext}.$major'
25655 shlibpath_var=LD_LIBRARY_PATH
25659 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25660 version_type=freebsd-elf
25663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25664 soname_spec='${libname}${release}${shared_ext}$major'
25665 shlibpath_var=LD_LIBRARY_PATH
25666 hardcode_into_libs=yes
25667 if test "$with_gnu_ld" = yes; then
25668 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25669 shlibpath_overrides_runpath=no
25671 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25672 shlibpath_overrides_runpath=yes
25675 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25679 sys_lib_dlsearch_path_spec='/usr/lib'
25684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25685 soname_spec='${libname}${release}${shared_ext}$major'
25686 shlibpath_var=LD_LIBRARY_PATH
25693 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25694 echo "${ECHO_T}$dynamic_linker" >&6; }
25695 test "$dynamic_linker" = no && can_build_shared=no
25697 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25698 if test "$GCC" = yes; then
25699 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25702 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25703 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25704 hardcode_action_GCJ=
25705 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25706 test -n "$runpath_var_GCJ" || \
25707 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25709 # We can hardcode non-existant directories.
25710 if test "$hardcode_direct_GCJ" != no &&
25711 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25712 # have to relink, otherwise we might link with an installed library
25713 # when we should be linking with a yet-to-be-installed one
25714 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25715 test "$hardcode_minus_L_GCJ" != no; then
25716 # Linking always hardcodes the temporary library directory.
25717 hardcode_action_GCJ=relink
25719 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25720 hardcode_action_GCJ=immediate
25723 # We cannot hardcode anything, or else we can only hardcode existing
25725 hardcode_action_GCJ=unsupported
25727 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25728 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25730 if test "$hardcode_action_GCJ" = relink; then
25731 # Fast installation is not supported
25732 enable_fast_install=no
25733 elif test "$shlibpath_overrides_runpath" = yes ||
25734 test "$enable_shared" = no; then
25735 # Fast installation is not necessary
25736 enable_fast_install=needless
25740 # The else clause should only fire when bootstrapping the
25741 # libtool distribution, otherwise you forgot to ship ltmain.sh
25742 # with your package, and you will get complaints that there are
25743 # no rules to generate ltmain.sh.
25744 if test -f "$ltmain"; then
25745 # See if we are running on zsh, and set the options which allow our commands through
25746 # without removal of \ escapes.
25747 if test -n "${ZSH_VERSION+set}" ; then
25748 setopt NO_GLOB_SUBST
25750 # Now quote all the things that may contain metacharacters while being
25751 # careful not to overquote the AC_SUBSTed values. We take copies of the
25752 # variables and quote the copies for generation of the libtool script.
25753 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25755 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25756 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25757 deplibs_check_method reload_flag reload_cmds need_locks \
25758 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25759 lt_cv_sys_global_symbol_to_c_name_address \
25760 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25761 old_postinstall_cmds old_postuninstall_cmds \
25765 lt_prog_compiler_wl_GCJ \
25766 lt_prog_compiler_pic_GCJ \
25767 lt_prog_compiler_static_GCJ \
25768 lt_prog_compiler_no_builtin_flag_GCJ \
25769 export_dynamic_flag_spec_GCJ \
25770 thread_safe_flag_spec_GCJ \
25771 whole_archive_flag_spec_GCJ \
25772 enable_shared_with_static_runtimes_GCJ \
25773 old_archive_cmds_GCJ \
25774 old_archive_from_new_cmds_GCJ \
25775 predep_objects_GCJ \
25776 postdep_objects_GCJ \
25779 compiler_lib_search_path_GCJ \
25781 archive_expsym_cmds_GCJ \
25782 postinstall_cmds_GCJ \
25783 postuninstall_cmds_GCJ \
25784 old_archive_from_expsyms_cmds_GCJ \
25785 allow_undefined_flag_GCJ \
25786 no_undefined_flag_GCJ \
25787 export_symbols_cmds_GCJ \
25788 hardcode_libdir_flag_spec_GCJ \
25789 hardcode_libdir_flag_spec_ld_GCJ \
25790 hardcode_libdir_separator_GCJ \
25791 hardcode_automatic_GCJ \
25793 module_expsym_cmds_GCJ \
25794 lt_cv_prog_compiler_c_o_GCJ \
25795 exclude_expsyms_GCJ \
25796 include_expsyms_GCJ; do
25799 old_archive_cmds_GCJ | \
25800 old_archive_from_new_cmds_GCJ | \
25801 archive_cmds_GCJ | \
25802 archive_expsym_cmds_GCJ | \
25803 module_cmds_GCJ | \
25804 module_expsym_cmds_GCJ | \
25805 old_archive_from_expsyms_cmds_GCJ | \
25806 export_symbols_cmds_GCJ | \
25807 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25808 postinstall_cmds | postuninstall_cmds | \
25809 old_postinstall_cmds | old_postuninstall_cmds | \
25810 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25811 # Double-quote double-evaled strings.
25812 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25815 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25821 *'\$0 --fallback-echo"')
25822 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25828 cat <<__EOF__ >> "$cfgfile"
25829 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25831 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25833 # Shell to use when invoking shell scripts.
25836 # Whether or not to build shared libraries.
25837 build_libtool_libs=$enable_shared
25839 # Whether or not to build static libraries.
25840 build_old_libs=$enable_static
25842 # Whether or not to add -lc for building shared libraries.
25843 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25845 # Whether or not to disallow shared libs when runtime libs are static
25846 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25848 # Whether or not to optimize for fast installation.
25849 fast_install=$enable_fast_install
25852 host_alias=$host_alias
25856 # The build system.
25857 build_alias=$build_alias
25861 # An echo program that does not interpret backslashes.
25866 AR_FLAGS=$lt_AR_FLAGS
25871 # LTCC compiler flags.
25872 LTCFLAGS=$lt_LTCFLAGS
25874 # A language-specific compiler.
25875 CC=$lt_compiler_GCJ
25877 # Is the compiler the GNU C compiler?
25883 # The linker used to build libraries.
25886 # Whether we need hard or soft links.
25889 # A BSD-compatible nm program.
25892 # A symbol stripping program
25895 # Used to examine libraries when file_magic_cmd begins "file"
25896 MAGIC_CMD=$MAGIC_CMD
25898 # Used on cygwin: DLL creation program.
25901 # Used on cygwin: object dumper.
25904 # Used on cygwin: assembler.
25907 # The name of the directory that contains temporary libtool files.
25910 # How to create reloadable object files.
25911 reload_flag=$lt_reload_flag
25912 reload_cmds=$lt_reload_cmds
25914 # How to pass a linker flag through the compiler.
25915 wl=$lt_lt_prog_compiler_wl_GCJ
25917 # Object file suffix (normally "o").
25918 objext="$ac_objext"
25920 # Old archive suffix (normally "a").
25923 # Shared library suffix (normally ".so").
25924 shrext_cmds='$shrext_cmds'
25926 # Executable file suffix (normally "").
25929 # Additional compiler flags for building library objects.
25930 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25933 # What is the maximum length of a command?
25934 max_cmd_len=$lt_cv_sys_max_cmd_len
25936 # Does compiler simultaneously support -c and -o options?
25937 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25939 # Must we lock files when doing compilation?
25940 need_locks=$lt_need_locks
25942 # Do we need the lib prefix for modules?
25943 need_lib_prefix=$need_lib_prefix
25945 # Do we need a version for libraries?
25946 need_version=$need_version
25948 # Whether dlopen is supported.
25949 dlopen_support=$enable_dlopen
25951 # Whether dlopen of programs is supported.
25952 dlopen_self=$enable_dlopen_self
25954 # Whether dlopen of statically linked programs is supported.
25955 dlopen_self_static=$enable_dlopen_self_static
25957 # Compiler flag to prevent dynamic linking.
25958 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25960 # Compiler flag to turn off builtin functions.
25961 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25963 # Compiler flag to allow reflexive dlopens.
25964 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25966 # Compiler flag to generate shared objects directly from archives.
25967 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25969 # Compiler flag to generate thread-safe objects.
25970 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25972 # Library versioning type.
25973 version_type=$version_type
25975 # Format of library name prefix.
25976 libname_spec=$lt_libname_spec
25978 # List of archive names. First name is the real one, the rest are links.
25979 # The last name is the one that the linker finds with -lNAME.
25980 library_names_spec=$lt_library_names_spec
25982 # The coded name of the library, if different from the real name.
25983 soname_spec=$lt_soname_spec
25985 # Commands used to build and install an old-style archive.
25987 old_archive_cmds=$lt_old_archive_cmds_GCJ
25988 old_postinstall_cmds=$lt_old_postinstall_cmds
25989 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25991 # Create an old-style archive from a shared archive.
25992 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25994 # Create a temporary old-style archive to link instead of a shared archive.
25995 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25997 # Commands used to build and install a shared archive.
25998 archive_cmds=$lt_archive_cmds_GCJ
25999 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26000 postinstall_cmds=$lt_postinstall_cmds
26001 postuninstall_cmds=$lt_postuninstall_cmds
26003 # Commands used to build a loadable module (assumed same as above if empty)
26004 module_cmds=$lt_module_cmds_GCJ
26005 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26007 # Commands to strip libraries.
26008 old_striplib=$lt_old_striplib
26009 striplib=$lt_striplib
26011 # Dependencies to place before the objects being linked to create a
26013 predep_objects=$lt_predep_objects_GCJ
26015 # Dependencies to place after the objects being linked to create a
26017 postdep_objects=$lt_postdep_objects_GCJ
26019 # Dependencies to place before the objects being linked to create a
26021 predeps=$lt_predeps_GCJ
26023 # Dependencies to place after the objects being linked to create a
26025 postdeps=$lt_postdeps_GCJ
26027 # The library search path used internally by the compiler when linking
26028 # a shared library.
26029 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26031 # Method to check whether dependent libraries are shared objects.
26032 deplibs_check_method=$lt_deplibs_check_method
26034 # Command to use when deplibs_check_method == file_magic.
26035 file_magic_cmd=$lt_file_magic_cmd
26037 # Flag that allows shared libraries with undefined symbols to be built.
26038 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26040 # Flag that forces no undefined symbols.
26041 no_undefined_flag=$lt_no_undefined_flag_GCJ
26043 # Commands used to finish a libtool library installation in a directory.
26044 finish_cmds=$lt_finish_cmds
26046 # Same as above, but a single script fragment to be evaled but not shown.
26047 finish_eval=$lt_finish_eval
26049 # Take the output of nm and produce a listing of raw symbols and C names.
26050 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26052 # Transform the output of nm in a proper C declaration
26053 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26055 # Transform the output of nm in a C name address pair
26056 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26058 # This is the shared library runtime path variable.
26059 runpath_var=$runpath_var
26061 # This is the shared library path variable.
26062 shlibpath_var=$shlibpath_var
26064 # Is shlibpath searched before the hard-coded library search path?
26065 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26067 # How to hardcode a shared library path into an executable.
26068 hardcode_action=$hardcode_action_GCJ
26070 # Whether we should hardcode library paths into libraries.
26071 hardcode_into_libs=$hardcode_into_libs
26073 # Flag to hardcode \$libdir into a binary during linking.
26074 # This must work even if \$libdir does not exist.
26075 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26077 # If ld is used when linking, flag to hardcode \$libdir into
26078 # a binary during linking. This must work even if \$libdir does
26080 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26082 # Whether we need a single -rpath flag with a separated argument.
26083 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26085 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26086 # resulting binary.
26087 hardcode_direct=$hardcode_direct_GCJ
26089 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26090 # resulting binary.
26091 hardcode_minus_L=$hardcode_minus_L_GCJ
26093 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26094 # the resulting binary.
26095 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26097 # Set to yes if building a shared library automatically hardcodes DIR into the library
26098 # and all subsequent libraries and executables linked against it.
26099 hardcode_automatic=$hardcode_automatic_GCJ
26101 # Variables whose values should be saved in libtool wrapper scripts and
26102 # restored at relink time.
26103 variables_saved_for_relink="$variables_saved_for_relink"
26105 # Whether libtool must link a program against all its dependency libraries.
26106 link_all_deplibs=$link_all_deplibs_GCJ
26108 # Compile-time system search path for libraries
26109 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26111 # Run-time system search path for libraries
26112 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26114 # Fix the shell variable \$srcfile for the compiler.
26115 fix_srcfile_path="$fix_srcfile_path_GCJ"
26117 # Set to yes if exported symbols are required.
26118 always_export_symbols=$always_export_symbols_GCJ
26120 # The commands to list exported symbols.
26121 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26123 # The commands to extract the exported symbol list from a shared archive.
26124 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26126 # Symbols that should not be listed in the preloaded symbols.
26127 exclude_expsyms=$lt_exclude_expsyms_GCJ
26129 # Symbols that must always be exported.
26130 include_expsyms=$lt_include_expsyms_GCJ
26132 # ### END LIBTOOL TAG CONFIG: $tagname
26138 # If there is no Makefile yet, we rely on a make rule to execute
26139 # `config.status --recheck' to rerun these tests and create the
26140 # libtool script then.
26141 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26142 if test -f "$ltmain_in"; then
26143 test -f Makefile && make "$ltmain"
26149 ac_cpp='$CPP $CPPFLAGS'
26150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26163 ac_cpp='$CPP $CPPFLAGS'
26164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26169 # Source file extension for RC test sources.
26172 # Object file extension for compiled RC test sources.
26176 # Code to be used in simple compile tests
26177 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26179 # Code to be used in simple link tests
26180 lt_simple_link_test_code="$lt_simple_compile_test_code"
26182 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26184 # If no C compiler was specified, use CC.
26187 # If no C compiler flags were specified, use CFLAGS.
26188 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26190 # Allow CC to be a program name with arguments.
26194 # save warnings/boilerplate of simple test code
26195 ac_outfile=conftest.$ac_objext
26196 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26197 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26198 _lt_compiler_boilerplate=`cat conftest.err`
26201 ac_outfile=conftest.$ac_objext
26202 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26203 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26204 _lt_linker_boilerplate=`cat conftest.err`
26208 # Allow CC to be a program name with arguments.
26213 for cc_temp in $compiler""; do
26215 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26216 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26221 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26223 lt_cv_prog_compiler_c_o_RC=yes
26225 # The else clause should only fire when bootstrapping the
26226 # libtool distribution, otherwise you forgot to ship ltmain.sh
26227 # with your package, and you will get complaints that there are
26228 # no rules to generate ltmain.sh.
26229 if test -f "$ltmain"; then
26230 # See if we are running on zsh, and set the options which allow our commands through
26231 # without removal of \ escapes.
26232 if test -n "${ZSH_VERSION+set}" ; then
26233 setopt NO_GLOB_SUBST
26235 # Now quote all the things that may contain metacharacters while being
26236 # careful not to overquote the AC_SUBSTed values. We take copies of the
26237 # variables and quote the copies for generation of the libtool script.
26238 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26240 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26241 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26242 deplibs_check_method reload_flag reload_cmds need_locks \
26243 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26244 lt_cv_sys_global_symbol_to_c_name_address \
26245 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26246 old_postinstall_cmds old_postuninstall_cmds \
26250 lt_prog_compiler_wl_RC \
26251 lt_prog_compiler_pic_RC \
26252 lt_prog_compiler_static_RC \
26253 lt_prog_compiler_no_builtin_flag_RC \
26254 export_dynamic_flag_spec_RC \
26255 thread_safe_flag_spec_RC \
26256 whole_archive_flag_spec_RC \
26257 enable_shared_with_static_runtimes_RC \
26258 old_archive_cmds_RC \
26259 old_archive_from_new_cmds_RC \
26260 predep_objects_RC \
26261 postdep_objects_RC \
26264 compiler_lib_search_path_RC \
26266 archive_expsym_cmds_RC \
26267 postinstall_cmds_RC \
26268 postuninstall_cmds_RC \
26269 old_archive_from_expsyms_cmds_RC \
26270 allow_undefined_flag_RC \
26271 no_undefined_flag_RC \
26272 export_symbols_cmds_RC \
26273 hardcode_libdir_flag_spec_RC \
26274 hardcode_libdir_flag_spec_ld_RC \
26275 hardcode_libdir_separator_RC \
26276 hardcode_automatic_RC \
26278 module_expsym_cmds_RC \
26279 lt_cv_prog_compiler_c_o_RC \
26280 exclude_expsyms_RC \
26281 include_expsyms_RC; do
26284 old_archive_cmds_RC | \
26285 old_archive_from_new_cmds_RC | \
26286 archive_cmds_RC | \
26287 archive_expsym_cmds_RC | \
26289 module_expsym_cmds_RC | \
26290 old_archive_from_expsyms_cmds_RC | \
26291 export_symbols_cmds_RC | \
26292 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26293 postinstall_cmds | postuninstall_cmds | \
26294 old_postinstall_cmds | old_postuninstall_cmds | \
26295 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26296 # Double-quote double-evaled strings.
26297 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26300 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26306 *'\$0 --fallback-echo"')
26307 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26313 cat <<__EOF__ >> "$cfgfile"
26314 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26316 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26318 # Shell to use when invoking shell scripts.
26321 # Whether or not to build shared libraries.
26322 build_libtool_libs=$enable_shared
26324 # Whether or not to build static libraries.
26325 build_old_libs=$enable_static
26327 # Whether or not to add -lc for building shared libraries.
26328 build_libtool_need_lc=$archive_cmds_need_lc_RC
26330 # Whether or not to disallow shared libs when runtime libs are static
26331 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26333 # Whether or not to optimize for fast installation.
26334 fast_install=$enable_fast_install
26337 host_alias=$host_alias
26341 # The build system.
26342 build_alias=$build_alias
26346 # An echo program that does not interpret backslashes.
26351 AR_FLAGS=$lt_AR_FLAGS
26356 # LTCC compiler flags.
26357 LTCFLAGS=$lt_LTCFLAGS
26359 # A language-specific compiler.
26362 # Is the compiler the GNU C compiler?
26368 # The linker used to build libraries.
26371 # Whether we need hard or soft links.
26374 # A BSD-compatible nm program.
26377 # A symbol stripping program
26380 # Used to examine libraries when file_magic_cmd begins "file"
26381 MAGIC_CMD=$MAGIC_CMD
26383 # Used on cygwin: DLL creation program.
26386 # Used on cygwin: object dumper.
26389 # Used on cygwin: assembler.
26392 # The name of the directory that contains temporary libtool files.
26395 # How to create reloadable object files.
26396 reload_flag=$lt_reload_flag
26397 reload_cmds=$lt_reload_cmds
26399 # How to pass a linker flag through the compiler.
26400 wl=$lt_lt_prog_compiler_wl_RC
26402 # Object file suffix (normally "o").
26403 objext="$ac_objext"
26405 # Old archive suffix (normally "a").
26408 # Shared library suffix (normally ".so").
26409 shrext_cmds='$shrext_cmds'
26411 # Executable file suffix (normally "").
26414 # Additional compiler flags for building library objects.
26415 pic_flag=$lt_lt_prog_compiler_pic_RC
26418 # What is the maximum length of a command?
26419 max_cmd_len=$lt_cv_sys_max_cmd_len
26421 # Does compiler simultaneously support -c and -o options?
26422 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26424 # Must we lock files when doing compilation?
26425 need_locks=$lt_need_locks
26427 # Do we need the lib prefix for modules?
26428 need_lib_prefix=$need_lib_prefix
26430 # Do we need a version for libraries?
26431 need_version=$need_version
26433 # Whether dlopen is supported.
26434 dlopen_support=$enable_dlopen
26436 # Whether dlopen of programs is supported.
26437 dlopen_self=$enable_dlopen_self
26439 # Whether dlopen of statically linked programs is supported.
26440 dlopen_self_static=$enable_dlopen_self_static
26442 # Compiler flag to prevent dynamic linking.
26443 link_static_flag=$lt_lt_prog_compiler_static_RC
26445 # Compiler flag to turn off builtin functions.
26446 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26448 # Compiler flag to allow reflexive dlopens.
26449 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26451 # Compiler flag to generate shared objects directly from archives.
26452 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26454 # Compiler flag to generate thread-safe objects.
26455 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26457 # Library versioning type.
26458 version_type=$version_type
26460 # Format of library name prefix.
26461 libname_spec=$lt_libname_spec
26463 # List of archive names. First name is the real one, the rest are links.
26464 # The last name is the one that the linker finds with -lNAME.
26465 library_names_spec=$lt_library_names_spec
26467 # The coded name of the library, if different from the real name.
26468 soname_spec=$lt_soname_spec
26470 # Commands used to build and install an old-style archive.
26472 old_archive_cmds=$lt_old_archive_cmds_RC
26473 old_postinstall_cmds=$lt_old_postinstall_cmds
26474 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26476 # Create an old-style archive from a shared archive.
26477 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26479 # Create a temporary old-style archive to link instead of a shared archive.
26480 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26482 # Commands used to build and install a shared archive.
26483 archive_cmds=$lt_archive_cmds_RC
26484 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26485 postinstall_cmds=$lt_postinstall_cmds
26486 postuninstall_cmds=$lt_postuninstall_cmds
26488 # Commands used to build a loadable module (assumed same as above if empty)
26489 module_cmds=$lt_module_cmds_RC
26490 module_expsym_cmds=$lt_module_expsym_cmds_RC
26492 # Commands to strip libraries.
26493 old_striplib=$lt_old_striplib
26494 striplib=$lt_striplib
26496 # Dependencies to place before the objects being linked to create a
26498 predep_objects=$lt_predep_objects_RC
26500 # Dependencies to place after the objects being linked to create a
26502 postdep_objects=$lt_postdep_objects_RC
26504 # Dependencies to place before the objects being linked to create a
26506 predeps=$lt_predeps_RC
26508 # Dependencies to place after the objects being linked to create a
26510 postdeps=$lt_postdeps_RC
26512 # The library search path used internally by the compiler when linking
26513 # a shared library.
26514 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26516 # Method to check whether dependent libraries are shared objects.
26517 deplibs_check_method=$lt_deplibs_check_method
26519 # Command to use when deplibs_check_method == file_magic.
26520 file_magic_cmd=$lt_file_magic_cmd
26522 # Flag that allows shared libraries with undefined symbols to be built.
26523 allow_undefined_flag=$lt_allow_undefined_flag_RC
26525 # Flag that forces no undefined symbols.
26526 no_undefined_flag=$lt_no_undefined_flag_RC
26528 # Commands used to finish a libtool library installation in a directory.
26529 finish_cmds=$lt_finish_cmds
26531 # Same as above, but a single script fragment to be evaled but not shown.
26532 finish_eval=$lt_finish_eval
26534 # Take the output of nm and produce a listing of raw symbols and C names.
26535 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26537 # Transform the output of nm in a proper C declaration
26538 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26540 # Transform the output of nm in a C name address pair
26541 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26543 # This is the shared library runtime path variable.
26544 runpath_var=$runpath_var
26546 # This is the shared library path variable.
26547 shlibpath_var=$shlibpath_var
26549 # Is shlibpath searched before the hard-coded library search path?
26550 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26552 # How to hardcode a shared library path into an executable.
26553 hardcode_action=$hardcode_action_RC
26555 # Whether we should hardcode library paths into libraries.
26556 hardcode_into_libs=$hardcode_into_libs
26558 # Flag to hardcode \$libdir into a binary during linking.
26559 # This must work even if \$libdir does not exist.
26560 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26562 # If ld is used when linking, flag to hardcode \$libdir into
26563 # a binary during linking. This must work even if \$libdir does
26565 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26567 # Whether we need a single -rpath flag with a separated argument.
26568 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26570 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26571 # resulting binary.
26572 hardcode_direct=$hardcode_direct_RC
26574 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26575 # resulting binary.
26576 hardcode_minus_L=$hardcode_minus_L_RC
26578 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26579 # the resulting binary.
26580 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26582 # Set to yes if building a shared library automatically hardcodes DIR into the library
26583 # and all subsequent libraries and executables linked against it.
26584 hardcode_automatic=$hardcode_automatic_RC
26586 # Variables whose values should be saved in libtool wrapper scripts and
26587 # restored at relink time.
26588 variables_saved_for_relink="$variables_saved_for_relink"
26590 # Whether libtool must link a program against all its dependency libraries.
26591 link_all_deplibs=$link_all_deplibs_RC
26593 # Compile-time system search path for libraries
26594 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26596 # Run-time system search path for libraries
26597 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26599 # Fix the shell variable \$srcfile for the compiler.
26600 fix_srcfile_path="$fix_srcfile_path_RC"
26602 # Set to yes if exported symbols are required.
26603 always_export_symbols=$always_export_symbols_RC
26605 # The commands to list exported symbols.
26606 export_symbols_cmds=$lt_export_symbols_cmds_RC
26608 # The commands to extract the exported symbol list from a shared archive.
26609 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26611 # Symbols that should not be listed in the preloaded symbols.
26612 exclude_expsyms=$lt_exclude_expsyms_RC
26614 # Symbols that must always be exported.
26615 include_expsyms=$lt_include_expsyms_RC
26617 # ### END LIBTOOL TAG CONFIG: $tagname
26623 # If there is no Makefile yet, we rely on a make rule to execute
26624 # `config.status --recheck' to rerun these tests and create the
26625 # libtool script then.
26626 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26627 if test -f "$ltmain_in"; then
26628 test -f Makefile && make "$ltmain"
26634 ac_cpp='$CPP $CPPFLAGS'
26635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26644 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26645 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26646 { (exit 1); exit 1; }; }
26650 # Append the new tag name to the list of available tags.
26651 if test -n "$tagname" ; then
26652 available_tags="$available_tags $tagname"
26658 # Now substitute the updated list of available tags.
26659 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26660 mv "${ofile}T" "$ofile"
26664 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26665 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26666 { (exit 1); exit 1; }; }
26672 # This can be used to rebuild libtool when needed
26673 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26675 # Always use our own libtool.
26676 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26678 # Prevent multiple expansion
26700 if test "$lt_cv_dlopen_self" = "yes" ; then
26702 cat >>confdefs.h <<\_ACEOF
26703 #define CAN_DLOPEN_SELF 1
26708 etags_version=`$ETAGS --version 2>&1`
26709 case "$etags_version" in
26710 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26711 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26712 *) ETAGSFLAGS="" ;;
26714 ETAGSFLAGS=$ETAGSFLAGS
26717 if test "$WITH_LLVMGCCDIR" = "default" ; then
26718 LLVMGCC="llvm-gcc${EXEEXT}"
26719 LLVMGXX="llvm-g++${EXEEXT}"
26720 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26721 set dummy $LLVMGCC; ac_word=$2
26722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26724 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26725 echo $ECHO_N "(cached) $ECHO_C" >&6
26729 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26733 for as_dir in $PATH
26736 test -z "$as_dir" && as_dir=.
26737 for ac_exec_ext in '' $ac_executable_extensions; do
26738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26739 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26750 LLVMGCC=$ac_cv_path_LLVMGCC
26751 if test -n "$LLVMGCC"; then
26752 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26753 echo "${ECHO_T}$LLVMGCC" >&6; }
26755 { echo "$as_me:$LINENO: result: no" >&5
26756 echo "${ECHO_T}no" >&6; }
26760 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26761 set dummy $LLVMGXX; ac_word=$2
26762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26764 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26765 echo $ECHO_N "(cached) $ECHO_C" >&6
26769 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26773 for as_dir in $PATH
26776 test -z "$as_dir" && as_dir=.
26777 for ac_exec_ext in '' $ac_executable_extensions; do
26778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26779 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26790 LLVMGXX=$ac_cv_path_LLVMGXX
26791 if test -n "$LLVMGXX"; then
26792 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26793 echo "${ECHO_T}$LLVMGXX" >&6; }
26795 { echo "$as_me:$LINENO: result: no" >&5
26796 echo "${ECHO_T}no" >&6; }
26801 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26802 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26809 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26810 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26823 if test "$GCC" != "yes" && test "$ICC" != "yes"
26825 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26826 echo "$as_me: error: gcc|icc required but not found" >&2;}
26827 { (exit 1); exit 1; }; }
26830 if test "$GXX" != "yes" && test "$IXX" != "yes"
26832 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26833 echo "$as_me: error: g++|icc required but not found" >&2;}
26834 { (exit 1); exit 1; }; }
26837 if test "$GCC" = "yes"
26839 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26840 if test "$gccmajor" -lt "3"
26842 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26843 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26844 { (exit 1); exit 1; }; }
26848 if test -z "$llvm_cv_gnu_make_command"
26850 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26851 echo "$as_me: error: GNU Make required but not found" >&2;}
26852 { (exit 1); exit 1; }; }
26855 { echo "$as_me:$LINENO: result: ok" >&5
26856 echo "${ECHO_T}ok" >&6; }
26860 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26861 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26862 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26863 echo $ECHO_N "(cached) $ECHO_C" >&6
26865 ac_check_lib_save_LIBS=$LIBS
26867 cat >conftest.$ac_ext <<_ACEOF
26870 cat confdefs.h >>conftest.$ac_ext
26871 cat >>conftest.$ac_ext <<_ACEOF
26872 /* end confdefs.h. */
26874 /* Override any GCC internal prototype to avoid an error.
26875 Use char because int might match the return type of a GCC
26876 builtin and then its argument prototype would still apply. */
26884 return elf_begin ();
26889 rm -f conftest.$ac_objext conftest$ac_exeext
26890 if { (ac_try="$ac_link"
26891 case "(($ac_try" in
26892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26893 *) ac_try_echo=$ac_try;;
26895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26896 (eval "$ac_link") 2>conftest.er1
26898 grep -v '^ *+' conftest.er1 >conftest.err
26900 cat conftest.err >&5
26901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902 (exit $ac_status); } &&
26903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26904 { (case "(($ac_try" in
26905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26906 *) ac_try_echo=$ac_try;;
26908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26909 (eval "$ac_try") 2>&5
26911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912 (exit $ac_status); }; } &&
26913 { ac_try='test -s conftest$ac_exeext'
26914 { (case "(($ac_try" in
26915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26916 *) ac_try_echo=$ac_try;;
26918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26919 (eval "$ac_try") 2>&5
26921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26922 (exit $ac_status); }; }; then
26923 ac_cv_lib_elf_elf_begin=yes
26925 echo "$as_me: failed program was:" >&5
26926 sed 's/^/| /' conftest.$ac_ext >&5
26928 ac_cv_lib_elf_elf_begin=no
26931 rm -f core conftest.err conftest.$ac_objext \
26932 conftest$ac_exeext conftest.$ac_ext
26933 LIBS=$ac_check_lib_save_LIBS
26935 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26936 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26937 if test $ac_cv_lib_elf_elf_begin = yes; then
26938 cat >>confdefs.h <<_ACEOF
26939 #define HAVE_LIBELF 1
26947 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26948 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26949 if test "${ac_cv_lib_m_sin+set}" = set; then
26950 echo $ECHO_N "(cached) $ECHO_C" >&6
26952 ac_check_lib_save_LIBS=$LIBS
26954 cat >conftest.$ac_ext <<_ACEOF
26957 cat confdefs.h >>conftest.$ac_ext
26958 cat >>conftest.$ac_ext <<_ACEOF
26959 /* end confdefs.h. */
26961 /* Override any GCC internal prototype to avoid an error.
26962 Use char because int might match the return type of a GCC
26963 builtin and then its argument prototype would still apply. */
26976 rm -f conftest.$ac_objext conftest$ac_exeext
26977 if { (ac_try="$ac_link"
26978 case "(($ac_try" in
26979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26980 *) ac_try_echo=$ac_try;;
26982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26983 (eval "$ac_link") 2>conftest.er1
26985 grep -v '^ *+' conftest.er1 >conftest.err
26987 cat conftest.err >&5
26988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989 (exit $ac_status); } &&
26990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26991 { (case "(($ac_try" in
26992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26993 *) ac_try_echo=$ac_try;;
26995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26996 (eval "$ac_try") 2>&5
26998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999 (exit $ac_status); }; } &&
27000 { ac_try='test -s conftest$ac_exeext'
27001 { (case "(($ac_try" in
27002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27003 *) ac_try_echo=$ac_try;;
27005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27006 (eval "$ac_try") 2>&5
27008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009 (exit $ac_status); }; }; then
27010 ac_cv_lib_m_sin=yes
27012 echo "$as_me: failed program was:" >&5
27013 sed 's/^/| /' conftest.$ac_ext >&5
27018 rm -f core conftest.err conftest.$ac_objext \
27019 conftest$ac_exeext conftest.$ac_ext
27020 LIBS=$ac_check_lib_save_LIBS
27022 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27023 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27024 if test $ac_cv_lib_m_sin = yes; then
27025 cat >>confdefs.h <<_ACEOF
27026 #define HAVE_LIBM 1
27033 if test "$llvm_cv_os_type" = "MingW" ; then
27035 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27036 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27037 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27038 echo $ECHO_N "(cached) $ECHO_C" >&6
27040 ac_check_lib_save_LIBS=$LIBS
27041 LIBS="-limagehlp $LIBS"
27042 cat >conftest.$ac_ext <<_ACEOF
27045 cat confdefs.h >>conftest.$ac_ext
27046 cat >>conftest.$ac_ext <<_ACEOF
27047 /* end confdefs.h. */
27058 rm -f conftest.$ac_objext conftest$ac_exeext
27059 if { (ac_try="$ac_link"
27060 case "(($ac_try" in
27061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27062 *) ac_try_echo=$ac_try;;
27064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27065 (eval "$ac_link") 2>conftest.er1
27067 grep -v '^ *+' conftest.er1 >conftest.err
27069 cat conftest.err >&5
27070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071 (exit $ac_status); } &&
27072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27073 { (case "(($ac_try" in
27074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27075 *) ac_try_echo=$ac_try;;
27077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27078 (eval "$ac_try") 2>&5
27080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081 (exit $ac_status); }; } &&
27082 { ac_try='test -s conftest$ac_exeext'
27083 { (case "(($ac_try" in
27084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085 *) ac_try_echo=$ac_try;;
27087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27088 (eval "$ac_try") 2>&5
27090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091 (exit $ac_status); }; }; then
27092 ac_cv_lib_imagehlp_main=yes
27094 echo "$as_me: failed program was:" >&5
27095 sed 's/^/| /' conftest.$ac_ext >&5
27097 ac_cv_lib_imagehlp_main=no
27100 rm -f core conftest.err conftest.$ac_objext \
27101 conftest$ac_exeext conftest.$ac_ext
27102 LIBS=$ac_check_lib_save_LIBS
27104 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27105 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27106 if test $ac_cv_lib_imagehlp_main = yes; then
27107 cat >>confdefs.h <<_ACEOF
27108 #define HAVE_LIBIMAGEHLP 1
27111 LIBS="-limagehlp $LIBS"
27116 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27117 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27118 if test "${ac_cv_lib_psapi_main+set}" = set; then
27119 echo $ECHO_N "(cached) $ECHO_C" >&6
27121 ac_check_lib_save_LIBS=$LIBS
27122 LIBS="-lpsapi $LIBS"
27123 cat >conftest.$ac_ext <<_ACEOF
27126 cat confdefs.h >>conftest.$ac_ext
27127 cat >>conftest.$ac_ext <<_ACEOF
27128 /* end confdefs.h. */
27139 rm -f conftest.$ac_objext conftest$ac_exeext
27140 if { (ac_try="$ac_link"
27141 case "(($ac_try" in
27142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27143 *) ac_try_echo=$ac_try;;
27145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27146 (eval "$ac_link") 2>conftest.er1
27148 grep -v '^ *+' conftest.er1 >conftest.err
27150 cat conftest.err >&5
27151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152 (exit $ac_status); } &&
27153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27154 { (case "(($ac_try" in
27155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27156 *) ac_try_echo=$ac_try;;
27158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27159 (eval "$ac_try") 2>&5
27161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162 (exit $ac_status); }; } &&
27163 { ac_try='test -s conftest$ac_exeext'
27164 { (case "(($ac_try" in
27165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27166 *) ac_try_echo=$ac_try;;
27168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27169 (eval "$ac_try") 2>&5
27171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27172 (exit $ac_status); }; }; then
27173 ac_cv_lib_psapi_main=yes
27175 echo "$as_me: failed program was:" >&5
27176 sed 's/^/| /' conftest.$ac_ext >&5
27178 ac_cv_lib_psapi_main=no
27181 rm -f core conftest.err conftest.$ac_objext \
27182 conftest$ac_exeext conftest.$ac_ext
27183 LIBS=$ac_check_lib_save_LIBS
27185 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27186 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27187 if test $ac_cv_lib_psapi_main = yes; then
27188 cat >>confdefs.h <<_ACEOF
27189 #define HAVE_LIBPSAPI 1
27192 LIBS="-lpsapi $LIBS"
27198 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27199 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27200 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27201 echo $ECHO_N "(cached) $ECHO_C" >&6
27203 ac_func_search_save_LIBS=$LIBS
27204 cat >conftest.$ac_ext <<_ACEOF
27207 cat confdefs.h >>conftest.$ac_ext
27208 cat >>conftest.$ac_ext <<_ACEOF
27209 /* end confdefs.h. */
27211 /* Override any GCC internal prototype to avoid an error.
27212 Use char because int might match the return type of a GCC
27213 builtin and then its argument prototype would still apply. */
27221 return lt_dlopen ();
27226 for ac_lib in '' ltdl; do
27227 if test -z "$ac_lib"; then
27228 ac_res="none required"
27231 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27233 rm -f conftest.$ac_objext conftest$ac_exeext
27234 if { (ac_try="$ac_link"
27235 case "(($ac_try" in
27236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27237 *) ac_try_echo=$ac_try;;
27239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27240 (eval "$ac_link") 2>conftest.er1
27242 grep -v '^ *+' conftest.er1 >conftest.err
27244 cat conftest.err >&5
27245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246 (exit $ac_status); } &&
27247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27248 { (case "(($ac_try" in
27249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27250 *) ac_try_echo=$ac_try;;
27252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27253 (eval "$ac_try") 2>&5
27255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256 (exit $ac_status); }; } &&
27257 { ac_try='test -s conftest$ac_exeext'
27258 { (case "(($ac_try" in
27259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27260 *) ac_try_echo=$ac_try;;
27262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27263 (eval "$ac_try") 2>&5
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); }; }; then
27267 ac_cv_search_lt_dlopen=$ac_res
27269 echo "$as_me: failed program was:" >&5
27270 sed 's/^/| /' conftest.$ac_ext >&5
27275 rm -f core conftest.err conftest.$ac_objext \
27277 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27281 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27284 ac_cv_search_lt_dlopen=no
27286 rm conftest.$ac_ext
27287 LIBS=$ac_func_search_save_LIBS
27289 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27290 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27291 ac_res=$ac_cv_search_lt_dlopen
27292 if test "$ac_res" != no; then
27293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27295 cat >>confdefs.h <<\_ACEOF
27296 #define HAVE_LT_DLOPEN 1
27300 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27301 not be available" >&5
27302 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27303 not be available" >&2;}
27307 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27308 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27309 if test "${ac_cv_search_dlopen+set}" = set; then
27310 echo $ECHO_N "(cached) $ECHO_C" >&6
27312 ac_func_search_save_LIBS=$LIBS
27313 cat >conftest.$ac_ext <<_ACEOF
27316 cat confdefs.h >>conftest.$ac_ext
27317 cat >>conftest.$ac_ext <<_ACEOF
27318 /* end confdefs.h. */
27320 /* Override any GCC internal prototype to avoid an error.
27321 Use char because int might match the return type of a GCC
27322 builtin and then its argument prototype would still apply. */
27335 for ac_lib in '' dl; do
27336 if test -z "$ac_lib"; then
27337 ac_res="none required"
27340 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27342 rm -f conftest.$ac_objext conftest$ac_exeext
27343 if { (ac_try="$ac_link"
27344 case "(($ac_try" in
27345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27346 *) ac_try_echo=$ac_try;;
27348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27349 (eval "$ac_link") 2>conftest.er1
27351 grep -v '^ *+' conftest.er1 >conftest.err
27353 cat conftest.err >&5
27354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355 (exit $ac_status); } &&
27356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27357 { (case "(($ac_try" in
27358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27359 *) ac_try_echo=$ac_try;;
27361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27362 (eval "$ac_try") 2>&5
27364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365 (exit $ac_status); }; } &&
27366 { ac_try='test -s conftest$ac_exeext'
27367 { (case "(($ac_try" in
27368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27369 *) ac_try_echo=$ac_try;;
27371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27372 (eval "$ac_try") 2>&5
27374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375 (exit $ac_status); }; }; then
27376 ac_cv_search_dlopen=$ac_res
27378 echo "$as_me: failed program was:" >&5
27379 sed 's/^/| /' conftest.$ac_ext >&5
27384 rm -f core conftest.err conftest.$ac_objext \
27386 if test "${ac_cv_search_dlopen+set}" = set; then
27390 if test "${ac_cv_search_dlopen+set}" = set; then
27393 ac_cv_search_dlopen=no
27395 rm conftest.$ac_ext
27396 LIBS=$ac_func_search_save_LIBS
27398 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27399 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27400 ac_res=$ac_cv_search_dlopen
27401 if test "$ac_res" != no; then
27402 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27404 cat >>confdefs.h <<\_ACEOF
27405 #define HAVE_DLOPEN 1
27409 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27410 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27414 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27415 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27416 if test "${ac_cv_search_mallinfo+set}" = set; then
27417 echo $ECHO_N "(cached) $ECHO_C" >&6
27419 ac_func_search_save_LIBS=$LIBS
27420 cat >conftest.$ac_ext <<_ACEOF
27423 cat confdefs.h >>conftest.$ac_ext
27424 cat >>conftest.$ac_ext <<_ACEOF
27425 /* end confdefs.h. */
27427 /* Override any GCC internal prototype to avoid an error.
27428 Use char because int might match the return type of a GCC
27429 builtin and then its argument prototype would still apply. */
27437 return mallinfo ();
27442 for ac_lib in '' malloc; do
27443 if test -z "$ac_lib"; then
27444 ac_res="none required"
27447 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27449 rm -f conftest.$ac_objext conftest$ac_exeext
27450 if { (ac_try="$ac_link"
27451 case "(($ac_try" in
27452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27453 *) ac_try_echo=$ac_try;;
27455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27456 (eval "$ac_link") 2>conftest.er1
27458 grep -v '^ *+' conftest.er1 >conftest.err
27460 cat conftest.err >&5
27461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462 (exit $ac_status); } &&
27463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27464 { (case "(($ac_try" in
27465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27466 *) ac_try_echo=$ac_try;;
27468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27469 (eval "$ac_try") 2>&5
27471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472 (exit $ac_status); }; } &&
27473 { ac_try='test -s conftest$ac_exeext'
27474 { (case "(($ac_try" in
27475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27476 *) ac_try_echo=$ac_try;;
27478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27479 (eval "$ac_try") 2>&5
27481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27482 (exit $ac_status); }; }; then
27483 ac_cv_search_mallinfo=$ac_res
27485 echo "$as_me: failed program was:" >&5
27486 sed 's/^/| /' conftest.$ac_ext >&5
27491 rm -f core conftest.err conftest.$ac_objext \
27493 if test "${ac_cv_search_mallinfo+set}" = set; then
27497 if test "${ac_cv_search_mallinfo+set}" = set; then
27500 ac_cv_search_mallinfo=no
27502 rm conftest.$ac_ext
27503 LIBS=$ac_func_search_save_LIBS
27505 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27506 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27507 ac_res=$ac_cv_search_mallinfo
27508 if test "$ac_res" != no; then
27509 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27511 cat >>confdefs.h <<\_ACEOF
27512 #define HAVE_MALLINFO 1
27518 if test "$ENABLE_THREADS" -eq 1 ; then
27520 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27521 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27522 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27523 echo $ECHO_N "(cached) $ECHO_C" >&6
27525 ac_check_lib_save_LIBS=$LIBS
27526 LIBS="-lpthread $LIBS"
27527 cat >conftest.$ac_ext <<_ACEOF
27530 cat confdefs.h >>conftest.$ac_ext
27531 cat >>conftest.$ac_ext <<_ACEOF
27532 /* end confdefs.h. */
27534 /* Override any GCC internal prototype to avoid an error.
27535 Use char because int might match the return type of a GCC
27536 builtin and then its argument prototype would still apply. */
27540 char pthread_mutex_init ();
27544 return pthread_mutex_init ();
27549 rm -f conftest.$ac_objext conftest$ac_exeext
27550 if { (ac_try="$ac_link"
27551 case "(($ac_try" in
27552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27553 *) ac_try_echo=$ac_try;;
27555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27556 (eval "$ac_link") 2>conftest.er1
27558 grep -v '^ *+' conftest.er1 >conftest.err
27560 cat conftest.err >&5
27561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562 (exit $ac_status); } &&
27563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27564 { (case "(($ac_try" in
27565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27566 *) ac_try_echo=$ac_try;;
27568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27569 (eval "$ac_try") 2>&5
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); }; } &&
27573 { ac_try='test -s conftest$ac_exeext'
27574 { (case "(($ac_try" in
27575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27576 *) ac_try_echo=$ac_try;;
27578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27579 (eval "$ac_try") 2>&5
27581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582 (exit $ac_status); }; }; then
27583 ac_cv_lib_pthread_pthread_mutex_init=yes
27585 echo "$as_me: failed program was:" >&5
27586 sed 's/^/| /' conftest.$ac_ext >&5
27588 ac_cv_lib_pthread_pthread_mutex_init=no
27591 rm -f core conftest.err conftest.$ac_objext \
27592 conftest$ac_exeext conftest.$ac_ext
27593 LIBS=$ac_check_lib_save_LIBS
27595 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27596 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27597 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27598 cat >>confdefs.h <<_ACEOF
27599 #define HAVE_LIBPTHREAD 1
27602 LIBS="-lpthread $LIBS"
27606 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27607 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27608 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27609 echo $ECHO_N "(cached) $ECHO_C" >&6
27611 ac_func_search_save_LIBS=$LIBS
27612 cat >conftest.$ac_ext <<_ACEOF
27615 cat confdefs.h >>conftest.$ac_ext
27616 cat >>conftest.$ac_ext <<_ACEOF
27617 /* end confdefs.h. */
27619 /* Override any GCC internal prototype to avoid an error.
27620 Use char because int might match the return type of a GCC
27621 builtin and then its argument prototype would still apply. */
27625 char pthread_mutex_lock ();
27629 return pthread_mutex_lock ();
27634 for ac_lib in '' pthread; do
27635 if test -z "$ac_lib"; then
27636 ac_res="none required"
27639 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27641 rm -f conftest.$ac_objext conftest$ac_exeext
27642 if { (ac_try="$ac_link"
27643 case "(($ac_try" in
27644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27645 *) ac_try_echo=$ac_try;;
27647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27648 (eval "$ac_link") 2>conftest.er1
27650 grep -v '^ *+' conftest.er1 >conftest.err
27652 cat conftest.err >&5
27653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654 (exit $ac_status); } &&
27655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27656 { (case "(($ac_try" in
27657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27658 *) ac_try_echo=$ac_try;;
27660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27661 (eval "$ac_try") 2>&5
27663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664 (exit $ac_status); }; } &&
27665 { ac_try='test -s conftest$ac_exeext'
27666 { (case "(($ac_try" in
27667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27668 *) ac_try_echo=$ac_try;;
27670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27671 (eval "$ac_try") 2>&5
27673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674 (exit $ac_status); }; }; then
27675 ac_cv_search_pthread_mutex_lock=$ac_res
27677 echo "$as_me: failed program was:" >&5
27678 sed 's/^/| /' conftest.$ac_ext >&5
27683 rm -f core conftest.err conftest.$ac_objext \
27685 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27689 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27692 ac_cv_search_pthread_mutex_lock=no
27694 rm conftest.$ac_ext
27695 LIBS=$ac_func_search_save_LIBS
27697 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27698 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27699 ac_res=$ac_cv_search_pthread_mutex_lock
27700 if test "$ac_res" != no; then
27701 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27703 cat >>confdefs.h <<\_ACEOF
27704 #define HAVE_PTHREAD_MUTEX_LOCK 1
27712 # Check whether --with-udis86 was given.
27713 if test "${with_udis86+set}" = set; then
27714 withval=$with_udis86;
27719 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27722 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27723 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27724 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27725 echo $ECHO_N "(cached) $ECHO_C" >&6
27727 ac_check_lib_save_LIBS=$LIBS
27728 LIBS="-ludis86 $LIBS"
27729 cat >conftest.$ac_ext <<_ACEOF
27732 cat confdefs.h >>conftest.$ac_ext
27733 cat >>conftest.$ac_ext <<_ACEOF
27734 /* end confdefs.h. */
27736 /* Override any GCC internal prototype to avoid an error.
27737 Use char because int might match the return type of a GCC
27738 builtin and then its argument prototype would still apply. */
27751 rm -f conftest.$ac_objext conftest$ac_exeext
27752 if { (ac_try="$ac_link"
27753 case "(($ac_try" in
27754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27755 *) ac_try_echo=$ac_try;;
27757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27758 (eval "$ac_link") 2>conftest.er1
27760 grep -v '^ *+' conftest.er1 >conftest.err
27762 cat conftest.err >&5
27763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764 (exit $ac_status); } &&
27765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27766 { (case "(($ac_try" in
27767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27768 *) ac_try_echo=$ac_try;;
27770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27771 (eval "$ac_try") 2>&5
27773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27774 (exit $ac_status); }; } &&
27775 { ac_try='test -s conftest$ac_exeext'
27776 { (case "(($ac_try" in
27777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27778 *) ac_try_echo=$ac_try;;
27780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27781 (eval "$ac_try") 2>&5
27783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27784 (exit $ac_status); }; }; then
27785 ac_cv_lib_udis86_ud_init=yes
27787 echo "$as_me: failed program was:" >&5
27788 sed 's/^/| /' conftest.$ac_ext >&5
27790 ac_cv_lib_udis86_ud_init=no
27793 rm -f core conftest.err conftest.$ac_objext \
27794 conftest$ac_exeext conftest.$ac_ext
27795 LIBS=$ac_check_lib_save_LIBS
27797 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27798 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27799 if test $ac_cv_lib_udis86_ud_init = yes; then
27800 cat >>confdefs.h <<_ACEOF
27801 #define HAVE_LIBUDIS86 1
27804 LIBS="-ludis86 $LIBS"
27808 echo "Error! You need to have libudis86 around."
27820 cat >>confdefs.h <<_ACEOF
27821 #define USE_UDIS86 $USE_UDIS86
27831 ac_header_dirent=no
27832 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27833 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27834 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27835 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27837 echo $ECHO_N "(cached) $ECHO_C" >&6
27839 cat >conftest.$ac_ext <<_ACEOF
27842 cat confdefs.h >>conftest.$ac_ext
27843 cat >>conftest.$ac_ext <<_ACEOF
27844 /* end confdefs.h. */
27845 #include <sys/types.h>
27857 rm -f conftest.$ac_objext
27858 if { (ac_try="$ac_compile"
27859 case "(($ac_try" in
27860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27861 *) ac_try_echo=$ac_try;;
27863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27864 (eval "$ac_compile") 2>conftest.er1
27866 grep -v '^ *+' conftest.er1 >conftest.err
27868 cat conftest.err >&5
27869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870 (exit $ac_status); } &&
27871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
27879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27880 (exit $ac_status); }; } &&
27881 { ac_try='test -s conftest.$ac_objext'
27882 { (case "(($ac_try" in
27883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27884 *) ac_try_echo=$ac_try;;
27886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27887 (eval "$ac_try") 2>&5
27889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890 (exit $ac_status); }; }; then
27891 eval "$as_ac_Header=yes"
27893 echo "$as_me: failed program was:" >&5
27894 sed 's/^/| /' conftest.$ac_ext >&5
27896 eval "$as_ac_Header=no"
27899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27901 ac_res=`eval echo '${'$as_ac_Header'}'`
27902 { echo "$as_me:$LINENO: result: $ac_res" >&5
27903 echo "${ECHO_T}$ac_res" >&6; }
27904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27905 cat >>confdefs.h <<_ACEOF
27906 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27909 ac_header_dirent=$ac_hdr; break
27913 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27914 if test $ac_header_dirent = dirent.h; then
27915 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27916 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27917 if test "${ac_cv_search_opendir+set}" = set; then
27918 echo $ECHO_N "(cached) $ECHO_C" >&6
27920 ac_func_search_save_LIBS=$LIBS
27921 cat >conftest.$ac_ext <<_ACEOF
27924 cat confdefs.h >>conftest.$ac_ext
27925 cat >>conftest.$ac_ext <<_ACEOF
27926 /* end confdefs.h. */
27928 /* Override any GCC internal prototype to avoid an error.
27929 Use char because int might match the return type of a GCC
27930 builtin and then its argument prototype would still apply. */
27943 for ac_lib in '' dir; do
27944 if test -z "$ac_lib"; then
27945 ac_res="none required"
27948 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27950 rm -f conftest.$ac_objext conftest$ac_exeext
27951 if { (ac_try="$ac_link"
27952 case "(($ac_try" in
27953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27954 *) ac_try_echo=$ac_try;;
27956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27957 (eval "$ac_link") 2>conftest.er1
27959 grep -v '^ *+' conftest.er1 >conftest.err
27961 cat conftest.err >&5
27962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); } &&
27964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27965 { (case "(($ac_try" in
27966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27967 *) ac_try_echo=$ac_try;;
27969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27970 (eval "$ac_try") 2>&5
27972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973 (exit $ac_status); }; } &&
27974 { ac_try='test -s conftest$ac_exeext'
27975 { (case "(($ac_try" in
27976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27977 *) ac_try_echo=$ac_try;;
27979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27980 (eval "$ac_try") 2>&5
27982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983 (exit $ac_status); }; }; then
27984 ac_cv_search_opendir=$ac_res
27986 echo "$as_me: failed program was:" >&5
27987 sed 's/^/| /' conftest.$ac_ext >&5
27992 rm -f core conftest.err conftest.$ac_objext \
27994 if test "${ac_cv_search_opendir+set}" = set; then
27998 if test "${ac_cv_search_opendir+set}" = set; then
28001 ac_cv_search_opendir=no
28003 rm conftest.$ac_ext
28004 LIBS=$ac_func_search_save_LIBS
28006 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28007 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28008 ac_res=$ac_cv_search_opendir
28009 if test "$ac_res" != no; then
28010 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28015 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28016 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28017 if test "${ac_cv_search_opendir+set}" = set; then
28018 echo $ECHO_N "(cached) $ECHO_C" >&6
28020 ac_func_search_save_LIBS=$LIBS
28021 cat >conftest.$ac_ext <<_ACEOF
28024 cat confdefs.h >>conftest.$ac_ext
28025 cat >>conftest.$ac_ext <<_ACEOF
28026 /* end confdefs.h. */
28028 /* Override any GCC internal prototype to avoid an error.
28029 Use char because int might match the return type of a GCC
28030 builtin and then its argument prototype would still apply. */
28043 for ac_lib in '' x; do
28044 if test -z "$ac_lib"; then
28045 ac_res="none required"
28048 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28050 rm -f conftest.$ac_objext conftest$ac_exeext
28051 if { (ac_try="$ac_link"
28052 case "(($ac_try" in
28053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28054 *) ac_try_echo=$ac_try;;
28056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28057 (eval "$ac_link") 2>conftest.er1
28059 grep -v '^ *+' conftest.er1 >conftest.err
28061 cat conftest.err >&5
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); } &&
28064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28065 { (case "(($ac_try" in
28066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067 *) ac_try_echo=$ac_try;;
28069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28070 (eval "$ac_try") 2>&5
28072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073 (exit $ac_status); }; } &&
28074 { ac_try='test -s conftest$ac_exeext'
28075 { (case "(($ac_try" in
28076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28077 *) ac_try_echo=$ac_try;;
28079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28080 (eval "$ac_try") 2>&5
28082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083 (exit $ac_status); }; }; then
28084 ac_cv_search_opendir=$ac_res
28086 echo "$as_me: failed program was:" >&5
28087 sed 's/^/| /' conftest.$ac_ext >&5
28092 rm -f core conftest.err conftest.$ac_objext \
28094 if test "${ac_cv_search_opendir+set}" = set; then
28098 if test "${ac_cv_search_opendir+set}" = set; then
28101 ac_cv_search_opendir=no
28103 rm conftest.$ac_ext
28104 LIBS=$ac_func_search_save_LIBS
28106 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28107 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28108 ac_res=$ac_cv_search_opendir
28109 if test "$ac_res" != no; then
28110 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28116 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28117 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28118 if test "${ac_cv_header_mmap_anon+set}" = set; then
28119 echo $ECHO_N "(cached) $ECHO_C" >&6
28122 ac_cpp='$CPP $CPPFLAGS'
28123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28127 cat >conftest.$ac_ext <<_ACEOF
28130 cat confdefs.h >>conftest.$ac_ext
28131 cat >>conftest.$ac_ext <<_ACEOF
28132 /* end confdefs.h. */
28133 #include <sys/mman.h>
28134 #include <unistd.h>
28139 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28144 rm -f conftest.$ac_objext
28145 if { (ac_try="$ac_compile"
28146 case "(($ac_try" in
28147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28148 *) ac_try_echo=$ac_try;;
28150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28151 (eval "$ac_compile") 2>conftest.er1
28153 grep -v '^ *+' conftest.er1 >conftest.err
28155 cat conftest.err >&5
28156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157 (exit $ac_status); } &&
28158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28159 { (case "(($ac_try" in
28160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28161 *) ac_try_echo=$ac_try;;
28163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28164 (eval "$ac_try") 2>&5
28166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167 (exit $ac_status); }; } &&
28168 { ac_try='test -s conftest.$ac_objext'
28169 { (case "(($ac_try" in
28170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28171 *) ac_try_echo=$ac_try;;
28173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28174 (eval "$ac_try") 2>&5
28176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177 (exit $ac_status); }; }; then
28178 ac_cv_header_mmap_anon=yes
28180 echo "$as_me: failed program was:" >&5
28181 sed 's/^/| /' conftest.$ac_ext >&5
28183 ac_cv_header_mmap_anon=no
28186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28188 ac_cpp='$CPP $CPPFLAGS'
28189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28195 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28196 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28197 if test "$ac_cv_header_mmap_anon" = yes; then
28199 cat >>confdefs.h <<\_ACEOF
28200 #define HAVE_MMAP_ANONYMOUS 1
28205 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28206 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28207 if test "${ac_cv_header_stat_broken+set}" = set; then
28208 echo $ECHO_N "(cached) $ECHO_C" >&6
28210 cat >conftest.$ac_ext <<_ACEOF
28213 cat confdefs.h >>conftest.$ac_ext
28214 cat >>conftest.$ac_ext <<_ACEOF
28215 /* end confdefs.h. */
28216 #include <sys/types.h>
28217 #include <sys/stat.h>
28219 #if defined S_ISBLK && defined S_IFDIR
28220 # if S_ISBLK (S_IFDIR)
28225 #if defined S_ISBLK && defined S_IFCHR
28226 # if S_ISBLK (S_IFCHR)
28231 #if defined S_ISLNK && defined S_IFREG
28232 # if S_ISLNK (S_IFREG)
28237 #if defined S_ISSOCK && defined S_IFREG
28238 # if S_ISSOCK (S_IFREG)
28244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28245 $EGREP "You lose" >/dev/null 2>&1; then
28246 ac_cv_header_stat_broken=yes
28248 ac_cv_header_stat_broken=no
28253 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28254 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28255 if test $ac_cv_header_stat_broken = yes; then
28257 cat >>confdefs.h <<\_ACEOF
28258 #define STAT_MACROS_BROKEN 1
28263 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28264 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28265 if test "${ac_cv_header_stdc+set}" = set; then
28266 echo $ECHO_N "(cached) $ECHO_C" >&6
28268 cat >conftest.$ac_ext <<_ACEOF
28271 cat confdefs.h >>conftest.$ac_ext
28272 cat >>conftest.$ac_ext <<_ACEOF
28273 /* end confdefs.h. */
28274 #include <stdlib.h>
28275 #include <stdarg.h>
28276 #include <string.h>
28287 rm -f conftest.$ac_objext
28288 if { (ac_try="$ac_compile"
28289 case "(($ac_try" in
28290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28291 *) ac_try_echo=$ac_try;;
28293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28294 (eval "$ac_compile") 2>conftest.er1
28296 grep -v '^ *+' conftest.er1 >conftest.err
28298 cat conftest.err >&5
28299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28300 (exit $ac_status); } &&
28301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28302 { (case "(($ac_try" in
28303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28304 *) ac_try_echo=$ac_try;;
28306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28307 (eval "$ac_try") 2>&5
28309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310 (exit $ac_status); }; } &&
28311 { ac_try='test -s conftest.$ac_objext'
28312 { (case "(($ac_try" in
28313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28314 *) ac_try_echo=$ac_try;;
28316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28317 (eval "$ac_try") 2>&5
28319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320 (exit $ac_status); }; }; then
28321 ac_cv_header_stdc=yes
28323 echo "$as_me: failed program was:" >&5
28324 sed 's/^/| /' conftest.$ac_ext >&5
28326 ac_cv_header_stdc=no
28329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28331 if test $ac_cv_header_stdc = yes; then
28332 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28333 cat >conftest.$ac_ext <<_ACEOF
28336 cat confdefs.h >>conftest.$ac_ext
28337 cat >>conftest.$ac_ext <<_ACEOF
28338 /* end confdefs.h. */
28339 #include <string.h>
28342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28343 $EGREP "memchr" >/dev/null 2>&1; then
28346 ac_cv_header_stdc=no
28352 if test $ac_cv_header_stdc = yes; then
28353 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28354 cat >conftest.$ac_ext <<_ACEOF
28357 cat confdefs.h >>conftest.$ac_ext
28358 cat >>conftest.$ac_ext <<_ACEOF
28359 /* end confdefs.h. */
28360 #include <stdlib.h>
28363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28364 $EGREP "free" >/dev/null 2>&1; then
28367 ac_cv_header_stdc=no
28373 if test $ac_cv_header_stdc = yes; then
28374 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28375 if test "$cross_compiling" = yes; then
28378 cat >conftest.$ac_ext <<_ACEOF
28381 cat confdefs.h >>conftest.$ac_ext
28382 cat >>conftest.$ac_ext <<_ACEOF
28383 /* end confdefs.h. */
28385 #include <stdlib.h>
28386 #if ((' ' & 0x0FF) == 0x020)
28387 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28388 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28390 # define ISLOWER(c) \
28391 (('a' <= (c) && (c) <= 'i') \
28392 || ('j' <= (c) && (c) <= 'r') \
28393 || ('s' <= (c) && (c) <= 'z'))
28394 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28397 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28402 for (i = 0; i < 256; i++)
28403 if (XOR (islower (i), ISLOWER (i))
28404 || toupper (i) != TOUPPER (i))
28409 rm -f conftest$ac_exeext
28410 if { (ac_try="$ac_link"
28411 case "(($ac_try" in
28412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28413 *) ac_try_echo=$ac_try;;
28415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28416 (eval "$ac_link") 2>&5
28418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28420 { (case "(($ac_try" in
28421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28422 *) ac_try_echo=$ac_try;;
28424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28425 (eval "$ac_try") 2>&5
28427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428 (exit $ac_status); }; }; then
28431 echo "$as_me: program exited with status $ac_status" >&5
28432 echo "$as_me: failed program was:" >&5
28433 sed 's/^/| /' conftest.$ac_ext >&5
28435 ( exit $ac_status )
28436 ac_cv_header_stdc=no
28438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28444 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28445 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28446 if test $ac_cv_header_stdc = yes; then
28448 cat >>confdefs.h <<\_ACEOF
28449 #define STDC_HEADERS 1
28454 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28455 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28456 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28457 echo $ECHO_N "(cached) $ECHO_C" >&6
28459 cat >conftest.$ac_ext <<_ACEOF
28462 cat confdefs.h >>conftest.$ac_ext
28463 cat >>conftest.$ac_ext <<_ACEOF
28464 /* end confdefs.h. */
28465 #include <sys/types.h>
28466 #include <sys/wait.h>
28467 #ifndef WEXITSTATUS
28468 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28471 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28479 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28484 rm -f conftest.$ac_objext
28485 if { (ac_try="$ac_compile"
28486 case "(($ac_try" in
28487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28488 *) ac_try_echo=$ac_try;;
28490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28491 (eval "$ac_compile") 2>conftest.er1
28493 grep -v '^ *+' conftest.er1 >conftest.err
28495 cat conftest.err >&5
28496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497 (exit $ac_status); } &&
28498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28499 { (case "(($ac_try" in
28500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28501 *) ac_try_echo=$ac_try;;
28503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28504 (eval "$ac_try") 2>&5
28506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28507 (exit $ac_status); }; } &&
28508 { ac_try='test -s conftest.$ac_objext'
28509 { (case "(($ac_try" in
28510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28511 *) ac_try_echo=$ac_try;;
28513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28514 (eval "$ac_try") 2>&5
28516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517 (exit $ac_status); }; }; then
28518 ac_cv_header_sys_wait_h=yes
28520 echo "$as_me: failed program was:" >&5
28521 sed 's/^/| /' conftest.$ac_ext >&5
28523 ac_cv_header_sys_wait_h=no
28526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28528 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28529 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28530 if test $ac_cv_header_sys_wait_h = yes; then
28532 cat >>confdefs.h <<\_ACEOF
28533 #define HAVE_SYS_WAIT_H 1
28538 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28539 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28540 if test "${ac_cv_header_time+set}" = set; then
28541 echo $ECHO_N "(cached) $ECHO_C" >&6
28543 cat >conftest.$ac_ext <<_ACEOF
28546 cat confdefs.h >>conftest.$ac_ext
28547 cat >>conftest.$ac_ext <<_ACEOF
28548 /* end confdefs.h. */
28549 #include <sys/types.h>
28550 #include <sys/time.h>
28556 if ((struct tm *) 0)
28562 rm -f conftest.$ac_objext
28563 if { (ac_try="$ac_compile"
28564 case "(($ac_try" in
28565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28566 *) ac_try_echo=$ac_try;;
28568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28569 (eval "$ac_compile") 2>conftest.er1
28571 grep -v '^ *+' conftest.er1 >conftest.err
28573 cat conftest.err >&5
28574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575 (exit $ac_status); } &&
28576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28577 { (case "(($ac_try" in
28578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28579 *) ac_try_echo=$ac_try;;
28581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28582 (eval "$ac_try") 2>&5
28584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28585 (exit $ac_status); }; } &&
28586 { ac_try='test -s conftest.$ac_objext'
28587 { (case "(($ac_try" in
28588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28589 *) ac_try_echo=$ac_try;;
28591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28592 (eval "$ac_try") 2>&5
28594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595 (exit $ac_status); }; }; then
28596 ac_cv_header_time=yes
28598 echo "$as_me: failed program was:" >&5
28599 sed 's/^/| /' conftest.$ac_ext >&5
28601 ac_cv_header_time=no
28604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28606 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28607 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28608 if test $ac_cv_header_time = yes; then
28610 cat >>confdefs.h <<\_ACEOF
28611 #define TIME_WITH_SYS_TIME 1
28623 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28630 echo $ECHO_N "(cached) $ECHO_C" >&6
28632 ac_res=`eval echo '${'$as_ac_Header'}'`
28633 { echo "$as_me:$LINENO: result: $ac_res" >&5
28634 echo "${ECHO_T}$ac_res" >&6; }
28636 # Is the header compilable?
28637 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28639 cat >conftest.$ac_ext <<_ACEOF
28642 cat confdefs.h >>conftest.$ac_ext
28643 cat >>conftest.$ac_ext <<_ACEOF
28644 /* end confdefs.h. */
28645 $ac_includes_default
28646 #include <$ac_header>
28648 rm -f conftest.$ac_objext
28649 if { (ac_try="$ac_compile"
28650 case "(($ac_try" in
28651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28652 *) ac_try_echo=$ac_try;;
28654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28655 (eval "$ac_compile") 2>conftest.er1
28657 grep -v '^ *+' conftest.er1 >conftest.err
28659 cat conftest.err >&5
28660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28661 (exit $ac_status); } &&
28662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28663 { (case "(($ac_try" in
28664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28665 *) ac_try_echo=$ac_try;;
28667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28668 (eval "$ac_try") 2>&5
28670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671 (exit $ac_status); }; } &&
28672 { ac_try='test -s conftest.$ac_objext'
28673 { (case "(($ac_try" in
28674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28675 *) ac_try_echo=$ac_try;;
28677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28678 (eval "$ac_try") 2>&5
28680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681 (exit $ac_status); }; }; then
28682 ac_header_compiler=yes
28684 echo "$as_me: failed program was:" >&5
28685 sed 's/^/| /' conftest.$ac_ext >&5
28687 ac_header_compiler=no
28690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28692 echo "${ECHO_T}$ac_header_compiler" >&6; }
28694 # Is the header present?
28695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28697 cat >conftest.$ac_ext <<_ACEOF
28700 cat confdefs.h >>conftest.$ac_ext
28701 cat >>conftest.$ac_ext <<_ACEOF
28702 /* end confdefs.h. */
28703 #include <$ac_header>
28705 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
28713 grep -v '^ *+' conftest.er1 >conftest.err
28715 cat conftest.err >&5
28716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717 (exit $ac_status); } >/dev/null; then
28718 if test -s conftest.err; then
28719 ac_cpp_err=$ac_c_preproc_warn_flag
28720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28727 if test -z "$ac_cpp_err"; then
28728 ac_header_preproc=yes
28730 echo "$as_me: failed program was:" >&5
28731 sed 's/^/| /' conftest.$ac_ext >&5
28733 ac_header_preproc=no
28736 rm -f conftest.err conftest.$ac_ext
28737 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28738 echo "${ECHO_T}$ac_header_preproc" >&6; }
28740 # So? What about this header?
28741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28747 ac_header_preproc=yes
28750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28757 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28763 ## ----------------------------------- ##
28764 ## Report this to llvmbugs@cs.uiuc.edu ##
28765 ## ----------------------------------- ##
28767 ) | sed "s/^/$as_me: WARNING: /" >&2
28770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28773 echo $ECHO_N "(cached) $ECHO_C" >&6
28775 eval "$as_ac_Header=\$ac_header_preproc"
28777 ac_res=`eval echo '${'$as_ac_Header'}'`
28778 { echo "$as_me:$LINENO: result: $ac_res" >&5
28779 echo "${ECHO_T}$ac_res" >&6; }
28782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28783 cat >>confdefs.h <<_ACEOF
28784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28797 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28804 echo $ECHO_N "(cached) $ECHO_C" >&6
28806 ac_res=`eval echo '${'$as_ac_Header'}'`
28807 { echo "$as_me:$LINENO: result: $ac_res" >&5
28808 echo "${ECHO_T}$ac_res" >&6; }
28810 # Is the header compilable?
28811 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28813 cat >conftest.$ac_ext <<_ACEOF
28816 cat confdefs.h >>conftest.$ac_ext
28817 cat >>conftest.$ac_ext <<_ACEOF
28818 /* end confdefs.h. */
28819 $ac_includes_default
28820 #include <$ac_header>
28822 rm -f conftest.$ac_objext
28823 if { (ac_try="$ac_compile"
28824 case "(($ac_try" in
28825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28826 *) ac_try_echo=$ac_try;;
28828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28829 (eval "$ac_compile") 2>conftest.er1
28831 grep -v '^ *+' conftest.er1 >conftest.err
28833 cat conftest.err >&5
28834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835 (exit $ac_status); } &&
28836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28837 { (case "(($ac_try" in
28838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28839 *) ac_try_echo=$ac_try;;
28841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28842 (eval "$ac_try") 2>&5
28844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28845 (exit $ac_status); }; } &&
28846 { ac_try='test -s conftest.$ac_objext'
28847 { (case "(($ac_try" in
28848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28849 *) ac_try_echo=$ac_try;;
28851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28852 (eval "$ac_try") 2>&5
28854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855 (exit $ac_status); }; }; then
28856 ac_header_compiler=yes
28858 echo "$as_me: failed program was:" >&5
28859 sed 's/^/| /' conftest.$ac_ext >&5
28861 ac_header_compiler=no
28864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28866 echo "${ECHO_T}$ac_header_compiler" >&6; }
28868 # Is the header present?
28869 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28871 cat >conftest.$ac_ext <<_ACEOF
28874 cat confdefs.h >>conftest.$ac_ext
28875 cat >>conftest.$ac_ext <<_ACEOF
28876 /* end confdefs.h. */
28877 #include <$ac_header>
28879 if { (ac_try="$ac_cpp conftest.$ac_ext"
28880 case "(($ac_try" in
28881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28882 *) ac_try_echo=$ac_try;;
28884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28887 grep -v '^ *+' conftest.er1 >conftest.err
28889 cat conftest.err >&5
28890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891 (exit $ac_status); } >/dev/null; then
28892 if test -s conftest.err; then
28893 ac_cpp_err=$ac_c_preproc_warn_flag
28894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28901 if test -z "$ac_cpp_err"; then
28902 ac_header_preproc=yes
28904 echo "$as_me: failed program was:" >&5
28905 sed 's/^/| /' conftest.$ac_ext >&5
28907 ac_header_preproc=no
28910 rm -f conftest.err conftest.$ac_ext
28911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28912 echo "${ECHO_T}$ac_header_preproc" >&6; }
28914 # So? What about this header?
28915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28921 ac_header_preproc=yes
28924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28937 ## ----------------------------------- ##
28938 ## Report this to llvmbugs@cs.uiuc.edu ##
28939 ## ----------------------------------- ##
28941 ) | sed "s/^/$as_me: WARNING: /" >&2
28944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28947 echo $ECHO_N "(cached) $ECHO_C" >&6
28949 eval "$as_ac_Header=\$ac_header_preproc"
28951 ac_res=`eval echo '${'$as_ac_Header'}'`
28952 { echo "$as_me:$LINENO: result: $ac_res" >&5
28953 echo "${ECHO_T}$ac_res" >&6; }
28956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28957 cat >>confdefs.h <<_ACEOF
28958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28966 for ac_header in windows.h
28968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28973 echo $ECHO_N "(cached) $ECHO_C" >&6
28975 ac_res=`eval echo '${'$as_ac_Header'}'`
28976 { echo "$as_me:$LINENO: result: $ac_res" >&5
28977 echo "${ECHO_T}$ac_res" >&6; }
28979 # Is the header compilable?
28980 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28982 cat >conftest.$ac_ext <<_ACEOF
28985 cat confdefs.h >>conftest.$ac_ext
28986 cat >>conftest.$ac_ext <<_ACEOF
28987 /* end confdefs.h. */
28988 $ac_includes_default
28989 #include <$ac_header>
28991 rm -f conftest.$ac_objext
28992 if { (ac_try="$ac_compile"
28993 case "(($ac_try" in
28994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28995 *) ac_try_echo=$ac_try;;
28997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28998 (eval "$ac_compile") 2>conftest.er1
29000 grep -v '^ *+' conftest.er1 >conftest.err
29002 cat conftest.err >&5
29003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004 (exit $ac_status); } &&
29005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29006 { (case "(($ac_try" in
29007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29008 *) ac_try_echo=$ac_try;;
29010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29011 (eval "$ac_try") 2>&5
29013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014 (exit $ac_status); }; } &&
29015 { ac_try='test -s conftest.$ac_objext'
29016 { (case "(($ac_try" in
29017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29018 *) ac_try_echo=$ac_try;;
29020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29021 (eval "$ac_try") 2>&5
29023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024 (exit $ac_status); }; }; then
29025 ac_header_compiler=yes
29027 echo "$as_me: failed program was:" >&5
29028 sed 's/^/| /' conftest.$ac_ext >&5
29030 ac_header_compiler=no
29033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29035 echo "${ECHO_T}$ac_header_compiler" >&6; }
29037 # Is the header present?
29038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29040 cat >conftest.$ac_ext <<_ACEOF
29043 cat confdefs.h >>conftest.$ac_ext
29044 cat >>conftest.$ac_ext <<_ACEOF
29045 /* end confdefs.h. */
29046 #include <$ac_header>
29048 if { (ac_try="$ac_cpp conftest.$ac_ext"
29049 case "(($ac_try" in
29050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29051 *) ac_try_echo=$ac_try;;
29053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29056 grep -v '^ *+' conftest.er1 >conftest.err
29058 cat conftest.err >&5
29059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29060 (exit $ac_status); } >/dev/null; then
29061 if test -s conftest.err; then
29062 ac_cpp_err=$ac_c_preproc_warn_flag
29063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29070 if test -z "$ac_cpp_err"; then
29071 ac_header_preproc=yes
29073 echo "$as_me: failed program was:" >&5
29074 sed 's/^/| /' conftest.$ac_ext >&5
29076 ac_header_preproc=no
29079 rm -f conftest.err conftest.$ac_ext
29080 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29081 echo "${ECHO_T}$ac_header_preproc" >&6; }
29083 # So? What about this header?
29084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29087 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29089 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29090 ac_header_preproc=yes
29093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29096 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29098 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29100 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29104 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29106 ## ----------------------------------- ##
29107 ## Report this to llvmbugs@cs.uiuc.edu ##
29108 ## ----------------------------------- ##
29110 ) | sed "s/^/$as_me: WARNING: /" >&2
29113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29116 echo $ECHO_N "(cached) $ECHO_C" >&6
29118 eval "$as_ac_Header=\$ac_header_preproc"
29120 ac_res=`eval echo '${'$as_ac_Header'}'`
29121 { echo "$as_me:$LINENO: result: $ac_res" >&5
29122 echo "${ECHO_T}$ac_res" >&6; }
29125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29126 cat >>confdefs.h <<_ACEOF
29127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29138 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29145 echo $ECHO_N "(cached) $ECHO_C" >&6
29147 ac_res=`eval echo '${'$as_ac_Header'}'`
29148 { echo "$as_me:$LINENO: result: $ac_res" >&5
29149 echo "${ECHO_T}$ac_res" >&6; }
29151 # Is the header compilable?
29152 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29154 cat >conftest.$ac_ext <<_ACEOF
29157 cat confdefs.h >>conftest.$ac_ext
29158 cat >>conftest.$ac_ext <<_ACEOF
29159 /* end confdefs.h. */
29160 $ac_includes_default
29161 #include <$ac_header>
29163 rm -f conftest.$ac_objext
29164 if { (ac_try="$ac_compile"
29165 case "(($ac_try" in
29166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29167 *) ac_try_echo=$ac_try;;
29169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29170 (eval "$ac_compile") 2>conftest.er1
29172 grep -v '^ *+' conftest.er1 >conftest.err
29174 cat conftest.err >&5
29175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29176 (exit $ac_status); } &&
29177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29178 { (case "(($ac_try" in
29179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29180 *) ac_try_echo=$ac_try;;
29182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29183 (eval "$ac_try") 2>&5
29185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29186 (exit $ac_status); }; } &&
29187 { ac_try='test -s conftest.$ac_objext'
29188 { (case "(($ac_try" in
29189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29190 *) ac_try_echo=$ac_try;;
29192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29193 (eval "$ac_try") 2>&5
29195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29196 (exit $ac_status); }; }; then
29197 ac_header_compiler=yes
29199 echo "$as_me: failed program was:" >&5
29200 sed 's/^/| /' conftest.$ac_ext >&5
29202 ac_header_compiler=no
29205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29207 echo "${ECHO_T}$ac_header_compiler" >&6; }
29209 # Is the header present?
29210 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29212 cat >conftest.$ac_ext <<_ACEOF
29215 cat confdefs.h >>conftest.$ac_ext
29216 cat >>conftest.$ac_ext <<_ACEOF
29217 /* end confdefs.h. */
29218 #include <$ac_header>
29220 if { (ac_try="$ac_cpp conftest.$ac_ext"
29221 case "(($ac_try" in
29222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29223 *) ac_try_echo=$ac_try;;
29225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29228 grep -v '^ *+' conftest.er1 >conftest.err
29230 cat conftest.err >&5
29231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232 (exit $ac_status); } >/dev/null; then
29233 if test -s conftest.err; then
29234 ac_cpp_err=$ac_c_preproc_warn_flag
29235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29242 if test -z "$ac_cpp_err"; then
29243 ac_header_preproc=yes
29245 echo "$as_me: failed program was:" >&5
29246 sed 's/^/| /' conftest.$ac_ext >&5
29248 ac_header_preproc=no
29251 rm -f conftest.err conftest.$ac_ext
29252 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29253 echo "${ECHO_T}$ac_header_preproc" >&6; }
29255 # So? What about this header?
29256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29262 ac_header_preproc=yes
29265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29268 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29269 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29270 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29271 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29272 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29275 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29276 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29278 ## ----------------------------------- ##
29279 ## Report this to llvmbugs@cs.uiuc.edu ##
29280 ## ----------------------------------- ##
29282 ) | sed "s/^/$as_me: WARNING: /" >&2
29285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29288 echo $ECHO_N "(cached) $ECHO_C" >&6
29290 eval "$as_ac_Header=\$ac_header_preproc"
29292 ac_res=`eval echo '${'$as_ac_Header'}'`
29293 { echo "$as_me:$LINENO: result: $ac_res" >&5
29294 echo "${ECHO_T}$ac_res" >&6; }
29297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29298 cat >>confdefs.h <<_ACEOF
29299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29309 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29316 echo $ECHO_N "(cached) $ECHO_C" >&6
29318 ac_res=`eval echo '${'$as_ac_Header'}'`
29319 { echo "$as_me:$LINENO: result: $ac_res" >&5
29320 echo "${ECHO_T}$ac_res" >&6; }
29322 # Is the header compilable?
29323 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29325 cat >conftest.$ac_ext <<_ACEOF
29328 cat confdefs.h >>conftest.$ac_ext
29329 cat >>conftest.$ac_ext <<_ACEOF
29330 /* end confdefs.h. */
29331 $ac_includes_default
29332 #include <$ac_header>
29334 rm -f conftest.$ac_objext
29335 if { (ac_try="$ac_compile"
29336 case "(($ac_try" in
29337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29338 *) ac_try_echo=$ac_try;;
29340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29341 (eval "$ac_compile") 2>conftest.er1
29343 grep -v '^ *+' conftest.er1 >conftest.err
29345 cat conftest.err >&5
29346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347 (exit $ac_status); } &&
29348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29349 { (case "(($ac_try" in
29350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29351 *) ac_try_echo=$ac_try;;
29353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29354 (eval "$ac_try") 2>&5
29356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357 (exit $ac_status); }; } &&
29358 { ac_try='test -s conftest.$ac_objext'
29359 { (case "(($ac_try" in
29360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29361 *) ac_try_echo=$ac_try;;
29363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29364 (eval "$ac_try") 2>&5
29366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29367 (exit $ac_status); }; }; then
29368 ac_header_compiler=yes
29370 echo "$as_me: failed program was:" >&5
29371 sed 's/^/| /' conftest.$ac_ext >&5
29373 ac_header_compiler=no
29376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29378 echo "${ECHO_T}$ac_header_compiler" >&6; }
29380 # Is the header present?
29381 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29383 cat >conftest.$ac_ext <<_ACEOF
29386 cat confdefs.h >>conftest.$ac_ext
29387 cat >>conftest.$ac_ext <<_ACEOF
29388 /* end confdefs.h. */
29389 #include <$ac_header>
29391 if { (ac_try="$ac_cpp conftest.$ac_ext"
29392 case "(($ac_try" in
29393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29394 *) ac_try_echo=$ac_try;;
29396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29399 grep -v '^ *+' conftest.er1 >conftest.err
29401 cat conftest.err >&5
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); } >/dev/null; then
29404 if test -s conftest.err; then
29405 ac_cpp_err=$ac_c_preproc_warn_flag
29406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29413 if test -z "$ac_cpp_err"; then
29414 ac_header_preproc=yes
29416 echo "$as_me: failed program was:" >&5
29417 sed 's/^/| /' conftest.$ac_ext >&5
29419 ac_header_preproc=no
29422 rm -f conftest.err conftest.$ac_ext
29423 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29424 echo "${ECHO_T}$ac_header_preproc" >&6; }
29426 # So? What about this header?
29427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29433 ac_header_preproc=yes
29436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29439 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29443 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29449 ## ----------------------------------- ##
29450 ## Report this to llvmbugs@cs.uiuc.edu ##
29451 ## ----------------------------------- ##
29453 ) | sed "s/^/$as_me: WARNING: /" >&2
29456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29459 echo $ECHO_N "(cached) $ECHO_C" >&6
29461 eval "$as_ac_Header=\$ac_header_preproc"
29463 ac_res=`eval echo '${'$as_ac_Header'}'`
29464 { echo "$as_me:$LINENO: result: $ac_res" >&5
29465 echo "${ECHO_T}$ac_res" >&6; }
29468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29469 cat >>confdefs.h <<_ACEOF
29470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29477 if test "$ENABLE_THREADS" -eq 1 ; then
29479 for ac_header in pthread.h
29481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29486 echo $ECHO_N "(cached) $ECHO_C" >&6
29488 ac_res=`eval echo '${'$as_ac_Header'}'`
29489 { echo "$as_me:$LINENO: result: $ac_res" >&5
29490 echo "${ECHO_T}$ac_res" >&6; }
29492 # Is the header compilable?
29493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29495 cat >conftest.$ac_ext <<_ACEOF
29498 cat confdefs.h >>conftest.$ac_ext
29499 cat >>conftest.$ac_ext <<_ACEOF
29500 /* end confdefs.h. */
29501 $ac_includes_default
29502 #include <$ac_header>
29504 rm -f conftest.$ac_objext
29505 if { (ac_try="$ac_compile"
29506 case "(($ac_try" in
29507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29508 *) ac_try_echo=$ac_try;;
29510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29511 (eval "$ac_compile") 2>conftest.er1
29513 grep -v '^ *+' conftest.er1 >conftest.err
29515 cat conftest.err >&5
29516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); } &&
29518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29519 { (case "(($ac_try" in
29520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29521 *) ac_try_echo=$ac_try;;
29523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29524 (eval "$ac_try") 2>&5
29526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527 (exit $ac_status); }; } &&
29528 { ac_try='test -s conftest.$ac_objext'
29529 { (case "(($ac_try" in
29530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29531 *) ac_try_echo=$ac_try;;
29533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29534 (eval "$ac_try") 2>&5
29536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537 (exit $ac_status); }; }; then
29538 ac_header_compiler=yes
29540 echo "$as_me: failed program was:" >&5
29541 sed 's/^/| /' conftest.$ac_ext >&5
29543 ac_header_compiler=no
29546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29547 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29548 echo "${ECHO_T}$ac_header_compiler" >&6; }
29550 # Is the header present?
29551 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29553 cat >conftest.$ac_ext <<_ACEOF
29556 cat confdefs.h >>conftest.$ac_ext
29557 cat >>conftest.$ac_ext <<_ACEOF
29558 /* end confdefs.h. */
29559 #include <$ac_header>
29561 if { (ac_try="$ac_cpp conftest.$ac_ext"
29562 case "(($ac_try" in
29563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29564 *) ac_try_echo=$ac_try;;
29566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29569 grep -v '^ *+' conftest.er1 >conftest.err
29571 cat conftest.err >&5
29572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573 (exit $ac_status); } >/dev/null; then
29574 if test -s conftest.err; then
29575 ac_cpp_err=$ac_c_preproc_warn_flag
29576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29583 if test -z "$ac_cpp_err"; then
29584 ac_header_preproc=yes
29586 echo "$as_me: failed program was:" >&5
29587 sed 's/^/| /' conftest.$ac_ext >&5
29589 ac_header_preproc=no
29592 rm -f conftest.err conftest.$ac_ext
29593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29594 echo "${ECHO_T}$ac_header_preproc" >&6; }
29596 # So? What about this header?
29597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29603 ac_header_preproc=yes
29606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29609 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29613 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29619 ## ----------------------------------- ##
29620 ## Report this to llvmbugs@cs.uiuc.edu ##
29621 ## ----------------------------------- ##
29623 ) | sed "s/^/$as_me: WARNING: /" >&2
29626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29629 echo $ECHO_N "(cached) $ECHO_C" >&6
29631 eval "$as_ac_Header=\$ac_header_preproc"
29633 ac_res=`eval echo '${'$as_ac_Header'}'`
29634 { echo "$as_me:$LINENO: result: $ac_res" >&5
29635 echo "${ECHO_T}$ac_res" >&6; }
29638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29639 cat >>confdefs.h <<_ACEOF
29640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29658 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29659 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29660 if test "${ac_cv_huge_val_sanity+set}" = set; then
29661 echo $ECHO_N "(cached) $ECHO_C" >&6
29665 ac_cpp='$CXXCPP $CPPFLAGS'
29666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29671 if test "$cross_compiling" = yes; then
29672 ac_cv_huge_val_sanity=yes
29674 cat >conftest.$ac_ext <<_ACEOF
29677 cat confdefs.h >>conftest.$ac_ext
29678 cat >>conftest.$ac_ext <<_ACEOF
29679 /* end confdefs.h. */
29684 double x = HUGE_VAL; return x != x;
29689 rm -f conftest$ac_exeext
29690 if { (ac_try="$ac_link"
29691 case "(($ac_try" in
29692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29693 *) ac_try_echo=$ac_try;;
29695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29696 (eval "$ac_link") 2>&5
29698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29700 { (case "(($ac_try" in
29701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29702 *) ac_try_echo=$ac_try;;
29704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29705 (eval "$ac_try") 2>&5
29707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29708 (exit $ac_status); }; }; then
29709 ac_cv_huge_val_sanity=yes
29711 echo "$as_me: program exited with status $ac_status" >&5
29712 echo "$as_me: failed program was:" >&5
29713 sed 's/^/| /' conftest.$ac_ext >&5
29715 ( exit $ac_status )
29716 ac_cv_huge_val_sanity=no
29718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29723 ac_cpp='$CPP $CPPFLAGS'
29724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29730 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29731 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29732 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29735 { echo "$as_me:$LINENO: checking for pid_t" >&5
29736 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29737 if test "${ac_cv_type_pid_t+set}" = set; then
29738 echo $ECHO_N "(cached) $ECHO_C" >&6
29740 cat >conftest.$ac_ext <<_ACEOF
29743 cat confdefs.h >>conftest.$ac_ext
29744 cat >>conftest.$ac_ext <<_ACEOF
29745 /* end confdefs.h. */
29746 $ac_includes_default
29747 typedef pid_t ac__type_new_;
29751 if ((ac__type_new_ *) 0)
29753 if (sizeof (ac__type_new_))
29759 rm -f conftest.$ac_objext
29760 if { (ac_try="$ac_compile"
29761 case "(($ac_try" in
29762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29763 *) ac_try_echo=$ac_try;;
29765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29766 (eval "$ac_compile") 2>conftest.er1
29768 grep -v '^ *+' conftest.er1 >conftest.err
29770 cat conftest.err >&5
29771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772 (exit $ac_status); } &&
29773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29774 { (case "(($ac_try" in
29775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29776 *) ac_try_echo=$ac_try;;
29778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29779 (eval "$ac_try") 2>&5
29781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29782 (exit $ac_status); }; } &&
29783 { ac_try='test -s conftest.$ac_objext'
29784 { (case "(($ac_try" in
29785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29786 *) ac_try_echo=$ac_try;;
29788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29789 (eval "$ac_try") 2>&5
29791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29792 (exit $ac_status); }; }; then
29793 ac_cv_type_pid_t=yes
29795 echo "$as_me: failed program was:" >&5
29796 sed 's/^/| /' conftest.$ac_ext >&5
29798 ac_cv_type_pid_t=no
29801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29803 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29804 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29805 if test $ac_cv_type_pid_t = yes; then
29809 cat >>confdefs.h <<_ACEOF
29815 { echo "$as_me:$LINENO: checking for size_t" >&5
29816 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29817 if test "${ac_cv_type_size_t+set}" = set; then
29818 echo $ECHO_N "(cached) $ECHO_C" >&6
29820 cat >conftest.$ac_ext <<_ACEOF
29823 cat confdefs.h >>conftest.$ac_ext
29824 cat >>conftest.$ac_ext <<_ACEOF
29825 /* end confdefs.h. */
29826 $ac_includes_default
29827 typedef size_t ac__type_new_;
29831 if ((ac__type_new_ *) 0)
29833 if (sizeof (ac__type_new_))
29839 rm -f conftest.$ac_objext
29840 if { (ac_try="$ac_compile"
29841 case "(($ac_try" in
29842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29843 *) ac_try_echo=$ac_try;;
29845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29846 (eval "$ac_compile") 2>conftest.er1
29848 grep -v '^ *+' conftest.er1 >conftest.err
29850 cat conftest.err >&5
29851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852 (exit $ac_status); } &&
29853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29854 { (case "(($ac_try" in
29855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29856 *) ac_try_echo=$ac_try;;
29858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29859 (eval "$ac_try") 2>&5
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862 (exit $ac_status); }; } &&
29863 { ac_try='test -s conftest.$ac_objext'
29864 { (case "(($ac_try" in
29865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29866 *) ac_try_echo=$ac_try;;
29868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29869 (eval "$ac_try") 2>&5
29871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29872 (exit $ac_status); }; }; then
29873 ac_cv_type_size_t=yes
29875 echo "$as_me: failed program was:" >&5
29876 sed 's/^/| /' conftest.$ac_ext >&5
29878 ac_cv_type_size_t=no
29881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29883 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29884 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29885 if test $ac_cv_type_size_t = yes; then
29889 cat >>confdefs.h <<_ACEOF
29890 #define size_t unsigned int
29895 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29896 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29897 if test "${ac_cv_type_signal+set}" = set; then
29898 echo $ECHO_N "(cached) $ECHO_C" >&6
29900 cat >conftest.$ac_ext <<_ACEOF
29903 cat confdefs.h >>conftest.$ac_ext
29904 cat >>conftest.$ac_ext <<_ACEOF
29905 /* end confdefs.h. */
29906 #include <sys/types.h>
29907 #include <signal.h>
29912 return *(signal (0, 0)) (0) == 1;
29917 rm -f conftest.$ac_objext
29918 if { (ac_try="$ac_compile"
29919 case "(($ac_try" in
29920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29921 *) ac_try_echo=$ac_try;;
29923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29924 (eval "$ac_compile") 2>conftest.er1
29926 grep -v '^ *+' conftest.er1 >conftest.err
29928 cat conftest.err >&5
29929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930 (exit $ac_status); } &&
29931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29932 { (case "(($ac_try" in
29933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934 *) ac_try_echo=$ac_try;;
29936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937 (eval "$ac_try") 2>&5
29939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940 (exit $ac_status); }; } &&
29941 { ac_try='test -s conftest.$ac_objext'
29942 { (case "(($ac_try" in
29943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29944 *) ac_try_echo=$ac_try;;
29946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29947 (eval "$ac_try") 2>&5
29949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950 (exit $ac_status); }; }; then
29951 ac_cv_type_signal=int
29953 echo "$as_me: failed program was:" >&5
29954 sed 's/^/| /' conftest.$ac_ext >&5
29956 ac_cv_type_signal=void
29959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29961 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29962 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29964 cat >>confdefs.h <<_ACEOF
29965 #define RETSIGTYPE $ac_cv_type_signal
29969 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29970 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29971 if test "${ac_cv_struct_tm+set}" = set; then
29972 echo $ECHO_N "(cached) $ECHO_C" >&6
29974 cat >conftest.$ac_ext <<_ACEOF
29977 cat confdefs.h >>conftest.$ac_ext
29978 cat >>conftest.$ac_ext <<_ACEOF
29979 /* end confdefs.h. */
29980 #include <sys/types.h>
29986 struct tm *tp; tp->tm_sec;
29991 rm -f conftest.$ac_objext
29992 if { (ac_try="$ac_compile"
29993 case "(($ac_try" in
29994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29995 *) ac_try_echo=$ac_try;;
29997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29998 (eval "$ac_compile") 2>conftest.er1
30000 grep -v '^ *+' conftest.er1 >conftest.err
30002 cat conftest.err >&5
30003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30004 (exit $ac_status); } &&
30005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30006 { (case "(($ac_try" in
30007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30008 *) ac_try_echo=$ac_try;;
30010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30011 (eval "$ac_try") 2>&5
30013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014 (exit $ac_status); }; } &&
30015 { ac_try='test -s conftest.$ac_objext'
30016 { (case "(($ac_try" in
30017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30018 *) ac_try_echo=$ac_try;;
30020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30021 (eval "$ac_try") 2>&5
30023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30024 (exit $ac_status); }; }; then
30025 ac_cv_struct_tm=time.h
30027 echo "$as_me: failed program was:" >&5
30028 sed 's/^/| /' conftest.$ac_ext >&5
30030 ac_cv_struct_tm=sys/time.h
30033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30035 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30036 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30037 if test $ac_cv_struct_tm = sys/time.h; then
30039 cat >>confdefs.h <<\_ACEOF
30040 #define TM_IN_SYS_TIME 1
30045 { echo "$as_me:$LINENO: checking for int64_t" >&5
30046 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30047 if test "${ac_cv_type_int64_t+set}" = set; then
30048 echo $ECHO_N "(cached) $ECHO_C" >&6
30050 cat >conftest.$ac_ext <<_ACEOF
30053 cat confdefs.h >>conftest.$ac_ext
30054 cat >>conftest.$ac_ext <<_ACEOF
30055 /* end confdefs.h. */
30056 $ac_includes_default
30057 typedef int64_t ac__type_new_;
30061 if ((ac__type_new_ *) 0)
30063 if (sizeof (ac__type_new_))
30069 rm -f conftest.$ac_objext
30070 if { (ac_try="$ac_compile"
30071 case "(($ac_try" in
30072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30073 *) ac_try_echo=$ac_try;;
30075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30076 (eval "$ac_compile") 2>conftest.er1
30078 grep -v '^ *+' conftest.er1 >conftest.err
30080 cat conftest.err >&5
30081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082 (exit $ac_status); } &&
30083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30084 { (case "(($ac_try" in
30085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30086 *) ac_try_echo=$ac_try;;
30088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30089 (eval "$ac_try") 2>&5
30091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092 (exit $ac_status); }; } &&
30093 { ac_try='test -s conftest.$ac_objext'
30094 { (case "(($ac_try" in
30095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30096 *) ac_try_echo=$ac_try;;
30098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30099 (eval "$ac_try") 2>&5
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102 (exit $ac_status); }; }; then
30103 ac_cv_type_int64_t=yes
30105 echo "$as_me: failed program was:" >&5
30106 sed 's/^/| /' conftest.$ac_ext >&5
30108 ac_cv_type_int64_t=no
30111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30113 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30114 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30115 if test $ac_cv_type_int64_t = yes; then
30117 cat >>confdefs.h <<_ACEOF
30118 #define HAVE_INT64_T 1
30123 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30124 echo "$as_me: error: Type int64_t required but not found" >&2;}
30125 { (exit 1); exit 1; }; }
30128 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30129 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30130 if test "${ac_cv_type_uint64_t+set}" = set; then
30131 echo $ECHO_N "(cached) $ECHO_C" >&6
30133 cat >conftest.$ac_ext <<_ACEOF
30136 cat confdefs.h >>conftest.$ac_ext
30137 cat >>conftest.$ac_ext <<_ACEOF
30138 /* end confdefs.h. */
30139 $ac_includes_default
30140 typedef uint64_t ac__type_new_;
30144 if ((ac__type_new_ *) 0)
30146 if (sizeof (ac__type_new_))
30152 rm -f conftest.$ac_objext
30153 if { (ac_try="$ac_compile"
30154 case "(($ac_try" in
30155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30156 *) ac_try_echo=$ac_try;;
30158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30159 (eval "$ac_compile") 2>conftest.er1
30161 grep -v '^ *+' conftest.er1 >conftest.err
30163 cat conftest.err >&5
30164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30165 (exit $ac_status); } &&
30166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30167 { (case "(($ac_try" in
30168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30169 *) ac_try_echo=$ac_try;;
30171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30172 (eval "$ac_try") 2>&5
30174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30175 (exit $ac_status); }; } &&
30176 { ac_try='test -s conftest.$ac_objext'
30177 { (case "(($ac_try" in
30178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30179 *) ac_try_echo=$ac_try;;
30181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30182 (eval "$ac_try") 2>&5
30184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185 (exit $ac_status); }; }; then
30186 ac_cv_type_uint64_t=yes
30188 echo "$as_me: failed program was:" >&5
30189 sed 's/^/| /' conftest.$ac_ext >&5
30191 ac_cv_type_uint64_t=no
30194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30196 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30197 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30198 if test $ac_cv_type_uint64_t = yes; then
30200 cat >>confdefs.h <<_ACEOF
30201 #define HAVE_UINT64_T 1
30206 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30207 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30208 if test "${ac_cv_type_u_int64_t+set}" = set; then
30209 echo $ECHO_N "(cached) $ECHO_C" >&6
30211 cat >conftest.$ac_ext <<_ACEOF
30214 cat confdefs.h >>conftest.$ac_ext
30215 cat >>conftest.$ac_ext <<_ACEOF
30216 /* end confdefs.h. */
30217 $ac_includes_default
30218 typedef u_int64_t ac__type_new_;
30222 if ((ac__type_new_ *) 0)
30224 if (sizeof (ac__type_new_))
30230 rm -f conftest.$ac_objext
30231 if { (ac_try="$ac_compile"
30232 case "(($ac_try" in
30233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30234 *) ac_try_echo=$ac_try;;
30236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30237 (eval "$ac_compile") 2>conftest.er1
30239 grep -v '^ *+' conftest.er1 >conftest.err
30241 cat conftest.err >&5
30242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243 (exit $ac_status); } &&
30244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30245 { (case "(($ac_try" in
30246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30247 *) ac_try_echo=$ac_try;;
30249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30250 (eval "$ac_try") 2>&5
30252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30253 (exit $ac_status); }; } &&
30254 { ac_try='test -s conftest.$ac_objext'
30255 { (case "(($ac_try" in
30256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30257 *) ac_try_echo=$ac_try;;
30259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30260 (eval "$ac_try") 2>&5
30262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263 (exit $ac_status); }; }; then
30264 ac_cv_type_u_int64_t=yes
30266 echo "$as_me: failed program was:" >&5
30267 sed 's/^/| /' conftest.$ac_ext >&5
30269 ac_cv_type_u_int64_t=no
30272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30274 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30275 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30276 if test $ac_cv_type_u_int64_t = yes; then
30278 cat >>confdefs.h <<_ACEOF
30279 #define HAVE_U_INT64_T 1
30284 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30285 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30286 { (exit 1); exit 1; }; }
30300 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30303 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30305 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30306 echo $ECHO_N "(cached) $ECHO_C" >&6
30308 cat >conftest.$ac_ext <<_ACEOF
30311 cat confdefs.h >>conftest.$ac_ext
30312 cat >>conftest.$ac_ext <<_ACEOF
30313 /* end confdefs.h. */
30314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30316 #define $ac_func innocuous_$ac_func
30318 /* System header to define __stub macros and hopefully few prototypes,
30319 which can conflict with char $ac_func (); below.
30320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30321 <limits.h> exists even on freestanding compilers. */
30324 # include <limits.h>
30326 # include <assert.h>
30331 /* Override any GCC internal prototype to avoid an error.
30332 Use char because int might match the return type of a GCC
30333 builtin and then its argument prototype would still apply. */
30338 /* The GNU C library defines this for functions which it implements
30339 to always fail with ENOSYS. Some functions are actually named
30340 something starting with __ and the normal name is an alias. */
30341 #if defined __stub_$ac_func || defined __stub___$ac_func
30348 return $ac_func ();
30353 rm -f conftest.$ac_objext conftest$ac_exeext
30354 if { (ac_try="$ac_link"
30355 case "(($ac_try" in
30356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30357 *) ac_try_echo=$ac_try;;
30359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30360 (eval "$ac_link") 2>conftest.er1
30362 grep -v '^ *+' conftest.er1 >conftest.err
30364 cat conftest.err >&5
30365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366 (exit $ac_status); } &&
30367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30368 { (case "(($ac_try" in
30369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30370 *) ac_try_echo=$ac_try;;
30372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30373 (eval "$ac_try") 2>&5
30375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376 (exit $ac_status); }; } &&
30377 { ac_try='test -s conftest$ac_exeext'
30378 { (case "(($ac_try" in
30379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30380 *) ac_try_echo=$ac_try;;
30382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30383 (eval "$ac_try") 2>&5
30385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386 (exit $ac_status); }; }; then
30387 eval "$as_ac_var=yes"
30389 echo "$as_me: failed program was:" >&5
30390 sed 's/^/| /' conftest.$ac_ext >&5
30392 eval "$as_ac_var=no"
30395 rm -f core conftest.err conftest.$ac_objext \
30396 conftest$ac_exeext conftest.$ac_ext
30398 ac_res=`eval echo '${'$as_ac_var'}'`
30399 { echo "$as_me:$LINENO: result: $ac_res" >&5
30400 echo "${ECHO_T}$ac_res" >&6; }
30401 if test `eval echo '${'$as_ac_var'}'` = yes; then
30402 cat >>confdefs.h <<_ACEOF
30403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30413 for ac_func in powf fmodf strtof round
30415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30416 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30419 echo $ECHO_N "(cached) $ECHO_C" >&6
30421 cat >conftest.$ac_ext <<_ACEOF
30424 cat confdefs.h >>conftest.$ac_ext
30425 cat >>conftest.$ac_ext <<_ACEOF
30426 /* end confdefs.h. */
30427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30429 #define $ac_func innocuous_$ac_func
30431 /* System header to define __stub macros and hopefully few prototypes,
30432 which can conflict with char $ac_func (); below.
30433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30434 <limits.h> exists even on freestanding compilers. */
30437 # include <limits.h>
30439 # include <assert.h>
30444 /* Override any GCC internal prototype to avoid an error.
30445 Use char because int might match the return type of a GCC
30446 builtin and then its argument prototype would still apply. */
30451 /* The GNU C library defines this for functions which it implements
30452 to always fail with ENOSYS. Some functions are actually named
30453 something starting with __ and the normal name is an alias. */
30454 #if defined __stub_$ac_func || defined __stub___$ac_func
30461 return $ac_func ();
30466 rm -f conftest.$ac_objext conftest$ac_exeext
30467 if { (ac_try="$ac_link"
30468 case "(($ac_try" in
30469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30470 *) ac_try_echo=$ac_try;;
30472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30473 (eval "$ac_link") 2>conftest.er1
30475 grep -v '^ *+' conftest.er1 >conftest.err
30477 cat conftest.err >&5
30478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479 (exit $ac_status); } &&
30480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30481 { (case "(($ac_try" in
30482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30483 *) ac_try_echo=$ac_try;;
30485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30486 (eval "$ac_try") 2>&5
30488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489 (exit $ac_status); }; } &&
30490 { ac_try='test -s conftest$ac_exeext'
30491 { (case "(($ac_try" in
30492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30493 *) ac_try_echo=$ac_try;;
30495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30496 (eval "$ac_try") 2>&5
30498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499 (exit $ac_status); }; }; then
30500 eval "$as_ac_var=yes"
30502 echo "$as_me: failed program was:" >&5
30503 sed 's/^/| /' conftest.$ac_ext >&5
30505 eval "$as_ac_var=no"
30508 rm -f core conftest.err conftest.$ac_objext \
30509 conftest$ac_exeext conftest.$ac_ext
30511 ac_res=`eval echo '${'$as_ac_var'}'`
30512 { echo "$as_me:$LINENO: result: $ac_res" >&5
30513 echo "${ECHO_T}$ac_res" >&6; }
30514 if test `eval echo '${'$as_ac_var'}'` = yes; then
30515 cat >>confdefs.h <<_ACEOF
30516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30527 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30530 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30532 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30533 echo $ECHO_N "(cached) $ECHO_C" >&6
30535 cat >conftest.$ac_ext <<_ACEOF
30538 cat confdefs.h >>conftest.$ac_ext
30539 cat >>conftest.$ac_ext <<_ACEOF
30540 /* end confdefs.h. */
30541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30543 #define $ac_func innocuous_$ac_func
30545 /* System header to define __stub macros and hopefully few prototypes,
30546 which can conflict with char $ac_func (); below.
30547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30548 <limits.h> exists even on freestanding compilers. */
30551 # include <limits.h>
30553 # include <assert.h>
30558 /* Override any GCC internal prototype to avoid an error.
30559 Use char because int might match the return type of a GCC
30560 builtin and then its argument prototype would still apply. */
30565 /* The GNU C library defines this for functions which it implements
30566 to always fail with ENOSYS. Some functions are actually named
30567 something starting with __ and the normal name is an alias. */
30568 #if defined __stub_$ac_func || defined __stub___$ac_func
30575 return $ac_func ();
30580 rm -f conftest.$ac_objext conftest$ac_exeext
30581 if { (ac_try="$ac_link"
30582 case "(($ac_try" in
30583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30584 *) ac_try_echo=$ac_try;;
30586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30587 (eval "$ac_link") 2>conftest.er1
30589 grep -v '^ *+' conftest.er1 >conftest.err
30591 cat conftest.err >&5
30592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593 (exit $ac_status); } &&
30594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30595 { (case "(($ac_try" in
30596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30597 *) ac_try_echo=$ac_try;;
30599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30600 (eval "$ac_try") 2>&5
30602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30603 (exit $ac_status); }; } &&
30604 { ac_try='test -s conftest$ac_exeext'
30605 { (case "(($ac_try" in
30606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30607 *) ac_try_echo=$ac_try;;
30609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30610 (eval "$ac_try") 2>&5
30612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613 (exit $ac_status); }; }; then
30614 eval "$as_ac_var=yes"
30616 echo "$as_me: failed program was:" >&5
30617 sed 's/^/| /' conftest.$ac_ext >&5
30619 eval "$as_ac_var=no"
30622 rm -f core conftest.err conftest.$ac_objext \
30623 conftest$ac_exeext conftest.$ac_ext
30625 ac_res=`eval echo '${'$as_ac_var'}'`
30626 { echo "$as_me:$LINENO: result: $ac_res" >&5
30627 echo "${ECHO_T}$ac_res" >&6; }
30628 if test `eval echo '${'$as_ac_var'}'` = yes; then
30629 cat >>confdefs.h <<_ACEOF
30630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30639 for ac_func in isatty mkdtemp mkstemp
30641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30645 echo $ECHO_N "(cached) $ECHO_C" >&6
30647 cat >conftest.$ac_ext <<_ACEOF
30650 cat confdefs.h >>conftest.$ac_ext
30651 cat >>conftest.$ac_ext <<_ACEOF
30652 /* end confdefs.h. */
30653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30655 #define $ac_func innocuous_$ac_func
30657 /* System header to define __stub macros and hopefully few prototypes,
30658 which can conflict with char $ac_func (); below.
30659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30660 <limits.h> exists even on freestanding compilers. */
30663 # include <limits.h>
30665 # include <assert.h>
30670 /* Override any GCC internal prototype to avoid an error.
30671 Use char because int might match the return type of a GCC
30672 builtin and then its argument prototype would still apply. */
30677 /* The GNU C library defines this for functions which it implements
30678 to always fail with ENOSYS. Some functions are actually named
30679 something starting with __ and the normal name is an alias. */
30680 #if defined __stub_$ac_func || defined __stub___$ac_func
30687 return $ac_func ();
30692 rm -f conftest.$ac_objext conftest$ac_exeext
30693 if { (ac_try="$ac_link"
30694 case "(($ac_try" in
30695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30696 *) ac_try_echo=$ac_try;;
30698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30699 (eval "$ac_link") 2>conftest.er1
30701 grep -v '^ *+' conftest.er1 >conftest.err
30703 cat conftest.err >&5
30704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705 (exit $ac_status); } &&
30706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30707 { (case "(($ac_try" in
30708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30709 *) ac_try_echo=$ac_try;;
30711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30712 (eval "$ac_try") 2>&5
30714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715 (exit $ac_status); }; } &&
30716 { ac_try='test -s conftest$ac_exeext'
30717 { (case "(($ac_try" in
30718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30719 *) ac_try_echo=$ac_try;;
30721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30722 (eval "$ac_try") 2>&5
30724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30725 (exit $ac_status); }; }; then
30726 eval "$as_ac_var=yes"
30728 echo "$as_me: failed program was:" >&5
30729 sed 's/^/| /' conftest.$ac_ext >&5
30731 eval "$as_ac_var=no"
30734 rm -f core conftest.err conftest.$ac_objext \
30735 conftest$ac_exeext conftest.$ac_ext
30737 ac_res=`eval echo '${'$as_ac_var'}'`
30738 { echo "$as_me:$LINENO: result: $ac_res" >&5
30739 echo "${ECHO_T}$ac_res" >&6; }
30740 if test `eval echo '${'$as_ac_var'}'` = yes; then
30741 cat >>confdefs.h <<_ACEOF
30742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30755 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30758 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30760 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30761 echo $ECHO_N "(cached) $ECHO_C" >&6
30763 cat >conftest.$ac_ext <<_ACEOF
30766 cat confdefs.h >>conftest.$ac_ext
30767 cat >>conftest.$ac_ext <<_ACEOF
30768 /* end confdefs.h. */
30769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30771 #define $ac_func innocuous_$ac_func
30773 /* System header to define __stub macros and hopefully few prototypes,
30774 which can conflict with char $ac_func (); below.
30775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30776 <limits.h> exists even on freestanding compilers. */
30779 # include <limits.h>
30781 # include <assert.h>
30786 /* Override any GCC internal prototype to avoid an error.
30787 Use char because int might match the return type of a GCC
30788 builtin and then its argument prototype would still apply. */
30793 /* The GNU C library defines this for functions which it implements
30794 to always fail with ENOSYS. Some functions are actually named
30795 something starting with __ and the normal name is an alias. */
30796 #if defined __stub_$ac_func || defined __stub___$ac_func
30803 return $ac_func ();
30808 rm -f conftest.$ac_objext conftest$ac_exeext
30809 if { (ac_try="$ac_link"
30810 case "(($ac_try" in
30811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30812 *) ac_try_echo=$ac_try;;
30814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30815 (eval "$ac_link") 2>conftest.er1
30817 grep -v '^ *+' conftest.er1 >conftest.err
30819 cat conftest.err >&5
30820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30821 (exit $ac_status); } &&
30822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30823 { (case "(($ac_try" in
30824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30825 *) ac_try_echo=$ac_try;;
30827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30828 (eval "$ac_try") 2>&5
30830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30831 (exit $ac_status); }; } &&
30832 { ac_try='test -s conftest$ac_exeext'
30833 { (case "(($ac_try" in
30834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30835 *) ac_try_echo=$ac_try;;
30837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30838 (eval "$ac_try") 2>&5
30840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30841 (exit $ac_status); }; }; then
30842 eval "$as_ac_var=yes"
30844 echo "$as_me: failed program was:" >&5
30845 sed 's/^/| /' conftest.$ac_ext >&5
30847 eval "$as_ac_var=no"
30850 rm -f core conftest.err conftest.$ac_objext \
30851 conftest$ac_exeext conftest.$ac_ext
30853 ac_res=`eval echo '${'$as_ac_var'}'`
30854 { echo "$as_me:$LINENO: result: $ac_res" >&5
30855 echo "${ECHO_T}$ac_res" >&6; }
30856 if test `eval echo '${'$as_ac_var'}'` = yes; then
30857 cat >>confdefs.h <<_ACEOF
30858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30868 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30874 echo $ECHO_N "(cached) $ECHO_C" >&6
30876 cat >conftest.$ac_ext <<_ACEOF
30879 cat confdefs.h >>conftest.$ac_ext
30880 cat >>conftest.$ac_ext <<_ACEOF
30881 /* end confdefs.h. */
30882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30884 #define $ac_func innocuous_$ac_func
30886 /* System header to define __stub macros and hopefully few prototypes,
30887 which can conflict with char $ac_func (); below.
30888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30889 <limits.h> exists even on freestanding compilers. */
30892 # include <limits.h>
30894 # include <assert.h>
30899 /* Override any GCC internal prototype to avoid an error.
30900 Use char because int might match the return type of a GCC
30901 builtin and then its argument prototype would still apply. */
30906 /* The GNU C library defines this for functions which it implements
30907 to always fail with ENOSYS. Some functions are actually named
30908 something starting with __ and the normal name is an alias. */
30909 #if defined __stub_$ac_func || defined __stub___$ac_func
30916 return $ac_func ();
30921 rm -f conftest.$ac_objext conftest$ac_exeext
30922 if { (ac_try="$ac_link"
30923 case "(($ac_try" in
30924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30925 *) ac_try_echo=$ac_try;;
30927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30928 (eval "$ac_link") 2>conftest.er1
30930 grep -v '^ *+' conftest.er1 >conftest.err
30932 cat conftest.err >&5
30933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30934 (exit $ac_status); } &&
30935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30936 { (case "(($ac_try" in
30937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938 *) ac_try_echo=$ac_try;;
30940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30941 (eval "$ac_try") 2>&5
30943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944 (exit $ac_status); }; } &&
30945 { ac_try='test -s conftest$ac_exeext'
30946 { (case "(($ac_try" in
30947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30948 *) ac_try_echo=$ac_try;;
30950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30951 (eval "$ac_try") 2>&5
30953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30954 (exit $ac_status); }; }; then
30955 eval "$as_ac_var=yes"
30957 echo "$as_me: failed program was:" >&5
30958 sed 's/^/| /' conftest.$ac_ext >&5
30960 eval "$as_ac_var=no"
30963 rm -f core conftest.err conftest.$ac_objext \
30964 conftest$ac_exeext conftest.$ac_ext
30966 ac_res=`eval echo '${'$as_ac_var'}'`
30967 { echo "$as_me:$LINENO: result: $ac_res" >&5
30968 echo "${ECHO_T}$ac_res" >&6; }
30969 if test `eval echo '${'$as_ac_var'}'` = yes; then
30970 cat >>confdefs.h <<_ACEOF
30971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30981 for ac_func in setjmp longjmp sigsetjmp siglongjmp
30983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30984 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30986 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30987 echo $ECHO_N "(cached) $ECHO_C" >&6
30989 cat >conftest.$ac_ext <<_ACEOF
30992 cat confdefs.h >>conftest.$ac_ext
30993 cat >>conftest.$ac_ext <<_ACEOF
30994 /* end confdefs.h. */
30995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30997 #define $ac_func innocuous_$ac_func
30999 /* System header to define __stub macros and hopefully few prototypes,
31000 which can conflict with char $ac_func (); below.
31001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31002 <limits.h> exists even on freestanding compilers. */
31005 # include <limits.h>
31007 # include <assert.h>
31012 /* Override any GCC internal prototype to avoid an error.
31013 Use char because int might match the return type of a GCC
31014 builtin and then its argument prototype would still apply. */
31019 /* The GNU C library defines this for functions which it implements
31020 to always fail with ENOSYS. Some functions are actually named
31021 something starting with __ and the normal name is an alias. */
31022 #if defined __stub_$ac_func || defined __stub___$ac_func
31029 return $ac_func ();
31034 rm -f conftest.$ac_objext conftest$ac_exeext
31035 if { (ac_try="$ac_link"
31036 case "(($ac_try" in
31037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31038 *) ac_try_echo=$ac_try;;
31040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31041 (eval "$ac_link") 2>conftest.er1
31043 grep -v '^ *+' conftest.er1 >conftest.err
31045 cat conftest.err >&5
31046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31047 (exit $ac_status); } &&
31048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31049 { (case "(($ac_try" in
31050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31051 *) ac_try_echo=$ac_try;;
31053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31054 (eval "$ac_try") 2>&5
31056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057 (exit $ac_status); }; } &&
31058 { ac_try='test -s conftest$ac_exeext'
31059 { (case "(($ac_try" in
31060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31061 *) ac_try_echo=$ac_try;;
31063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31064 (eval "$ac_try") 2>&5
31066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067 (exit $ac_status); }; }; then
31068 eval "$as_ac_var=yes"
31070 echo "$as_me: failed program was:" >&5
31071 sed 's/^/| /' conftest.$ac_ext >&5
31073 eval "$as_ac_var=no"
31076 rm -f core conftest.err conftest.$ac_objext \
31077 conftest$ac_exeext conftest.$ac_ext
31079 ac_res=`eval echo '${'$as_ac_var'}'`
31080 { echo "$as_me:$LINENO: result: $ac_res" >&5
31081 echo "${ECHO_T}$ac_res" >&6; }
31082 if test `eval echo '${'$as_ac_var'}'` = yes; then
31083 cat >>confdefs.h <<_ACEOF
31084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31090 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31091 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31092 if test "${llvm_cv_c_printf_a+set}" = set; then
31093 echo $ECHO_N "(cached) $ECHO_C" >&6
31096 ac_cpp='$CPP $CPPFLAGS'
31097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31101 if test "$cross_compiling" = yes; then
31102 llvmac_cv_c_printf_a=no
31104 cat >conftest.$ac_ext <<_ACEOF
31108 cat confdefs.h >>conftest.$ac_ext
31109 cat >>conftest.$ac_ext <<_ACEOF
31110 /* end confdefs.h. */
31113 #include <stdlib.h>
31119 volatile double A, B;
31123 sprintf(Buffer, "%a", A);
31127 if (A != 0x1.999999999999ap-4)
31134 rm -f conftest$ac_exeext
31135 if { (ac_try="$ac_link"
31136 case "(($ac_try" in
31137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31138 *) ac_try_echo=$ac_try;;
31140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31141 (eval "$ac_link") 2>&5
31143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31145 { (case "(($ac_try" in
31146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31147 *) ac_try_echo=$ac_try;;
31149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31150 (eval "$ac_try") 2>&5
31152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153 (exit $ac_status); }; }; then
31154 llvm_cv_c_printf_a=yes
31156 echo "$as_me: program exited with status $ac_status" >&5
31157 echo "$as_me: failed program was:" >&5
31158 sed 's/^/| /' conftest.$ac_ext >&5
31160 ( exit $ac_status )
31161 llvmac_cv_c_printf_a=no
31163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31168 ac_cpp='$CPP $CPPFLAGS'
31169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31174 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31175 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31176 if test "$llvm_cv_c_printf_a" = "yes"; then
31178 cat >>confdefs.h <<\_ACEOF
31179 #define HAVE_PRINTF_A 1
31184 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31185 # for constant arguments. Useless!
31186 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31187 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31188 if test "${ac_cv_working_alloca_h+set}" = set; then
31189 echo $ECHO_N "(cached) $ECHO_C" >&6
31191 cat >conftest.$ac_ext <<_ACEOF
31194 cat confdefs.h >>conftest.$ac_ext
31195 cat >>conftest.$ac_ext <<_ACEOF
31196 /* end confdefs.h. */
31197 #include <alloca.h>
31201 char *p = (char *) alloca (2 * sizeof (int));
31207 rm -f conftest.$ac_objext conftest$ac_exeext
31208 if { (ac_try="$ac_link"
31209 case "(($ac_try" in
31210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31211 *) ac_try_echo=$ac_try;;
31213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31214 (eval "$ac_link") 2>conftest.er1
31216 grep -v '^ *+' conftest.er1 >conftest.err
31218 cat conftest.err >&5
31219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31220 (exit $ac_status); } &&
31221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31222 { (case "(($ac_try" in
31223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31224 *) ac_try_echo=$ac_try;;
31226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31227 (eval "$ac_try") 2>&5
31229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230 (exit $ac_status); }; } &&
31231 { ac_try='test -s conftest$ac_exeext'
31232 { (case "(($ac_try" in
31233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31234 *) ac_try_echo=$ac_try;;
31236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31237 (eval "$ac_try") 2>&5
31239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31240 (exit $ac_status); }; }; then
31241 ac_cv_working_alloca_h=yes
31243 echo "$as_me: failed program was:" >&5
31244 sed 's/^/| /' conftest.$ac_ext >&5
31246 ac_cv_working_alloca_h=no
31249 rm -f core conftest.err conftest.$ac_objext \
31250 conftest$ac_exeext conftest.$ac_ext
31252 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31253 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31254 if test $ac_cv_working_alloca_h = yes; then
31256 cat >>confdefs.h <<\_ACEOF
31257 #define HAVE_ALLOCA_H 1
31262 { echo "$as_me:$LINENO: checking for alloca" >&5
31263 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31264 if test "${ac_cv_func_alloca_works+set}" = set; then
31265 echo $ECHO_N "(cached) $ECHO_C" >&6
31267 cat >conftest.$ac_ext <<_ACEOF
31270 cat confdefs.h >>conftest.$ac_ext
31271 cat >>conftest.$ac_ext <<_ACEOF
31272 /* end confdefs.h. */
31274 # define alloca __builtin_alloca
31277 # include <malloc.h>
31278 # define alloca _alloca
31281 # include <alloca.h>
31286 # ifndef alloca /* predefined by HP cc +Olibcalls */
31297 char *p = (char *) alloca (1);
31303 rm -f conftest.$ac_objext conftest$ac_exeext
31304 if { (ac_try="$ac_link"
31305 case "(($ac_try" in
31306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31307 *) ac_try_echo=$ac_try;;
31309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31310 (eval "$ac_link") 2>conftest.er1
31312 grep -v '^ *+' conftest.er1 >conftest.err
31314 cat conftest.err >&5
31315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31316 (exit $ac_status); } &&
31317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31318 { (case "(($ac_try" in
31319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31320 *) ac_try_echo=$ac_try;;
31322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31323 (eval "$ac_try") 2>&5
31325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31326 (exit $ac_status); }; } &&
31327 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
31335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31336 (exit $ac_status); }; }; then
31337 ac_cv_func_alloca_works=yes
31339 echo "$as_me: failed program was:" >&5
31340 sed 's/^/| /' conftest.$ac_ext >&5
31342 ac_cv_func_alloca_works=no
31345 rm -f core conftest.err conftest.$ac_objext \
31346 conftest$ac_exeext conftest.$ac_ext
31348 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31349 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31351 if test $ac_cv_func_alloca_works = yes; then
31353 cat >>confdefs.h <<\_ACEOF
31354 #define HAVE_ALLOCA 1
31358 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31359 # that cause trouble. Some versions do not even contain alloca or
31360 # contain a buggy version. If you still want to use their alloca,
31361 # use ar to extract alloca.o from them instead of compiling alloca.c.
31363 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31365 cat >>confdefs.h <<\_ACEOF
31370 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31371 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31372 if test "${ac_cv_os_cray+set}" = set; then
31373 echo $ECHO_N "(cached) $ECHO_C" >&6
31375 cat >conftest.$ac_ext <<_ACEOF
31378 cat confdefs.h >>conftest.$ac_ext
31379 cat >>conftest.$ac_ext <<_ACEOF
31380 /* end confdefs.h. */
31381 #if defined CRAY && ! defined CRAY2
31388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31389 $EGREP "webecray" >/dev/null 2>&1; then
31397 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31398 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31399 if test $ac_cv_os_cray = yes; then
31400 for ac_func in _getb67 GETB67 getb67; do
31401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31402 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31404 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31405 echo $ECHO_N "(cached) $ECHO_C" >&6
31407 cat >conftest.$ac_ext <<_ACEOF
31410 cat confdefs.h >>conftest.$ac_ext
31411 cat >>conftest.$ac_ext <<_ACEOF
31412 /* end confdefs.h. */
31413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31415 #define $ac_func innocuous_$ac_func
31417 /* System header to define __stub macros and hopefully few prototypes,
31418 which can conflict with char $ac_func (); below.
31419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31420 <limits.h> exists even on freestanding compilers. */
31423 # include <limits.h>
31425 # include <assert.h>
31430 /* Override any GCC internal prototype to avoid an error.
31431 Use char because int might match the return type of a GCC
31432 builtin and then its argument prototype would still apply. */
31437 /* The GNU C library defines this for functions which it implements
31438 to always fail with ENOSYS. Some functions are actually named
31439 something starting with __ and the normal name is an alias. */
31440 #if defined __stub_$ac_func || defined __stub___$ac_func
31447 return $ac_func ();
31452 rm -f conftest.$ac_objext conftest$ac_exeext
31453 if { (ac_try="$ac_link"
31454 case "(($ac_try" in
31455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31456 *) ac_try_echo=$ac_try;;
31458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31459 (eval "$ac_link") 2>conftest.er1
31461 grep -v '^ *+' conftest.er1 >conftest.err
31463 cat conftest.err >&5
31464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31465 (exit $ac_status); } &&
31466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31467 { (case "(($ac_try" in
31468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31469 *) ac_try_echo=$ac_try;;
31471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31472 (eval "$ac_try") 2>&5
31474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31475 (exit $ac_status); }; } &&
31476 { ac_try='test -s conftest$ac_exeext'
31477 { (case "(($ac_try" in
31478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31479 *) ac_try_echo=$ac_try;;
31481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31482 (eval "$ac_try") 2>&5
31484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31485 (exit $ac_status); }; }; then
31486 eval "$as_ac_var=yes"
31488 echo "$as_me: failed program was:" >&5
31489 sed 's/^/| /' conftest.$ac_ext >&5
31491 eval "$as_ac_var=no"
31494 rm -f core conftest.err conftest.$ac_objext \
31495 conftest$ac_exeext conftest.$ac_ext
31497 ac_res=`eval echo '${'$as_ac_var'}'`
31498 { echo "$as_me:$LINENO: result: $ac_res" >&5
31499 echo "${ECHO_T}$ac_res" >&6; }
31500 if test `eval echo '${'$as_ac_var'}'` = yes; then
31502 cat >>confdefs.h <<_ACEOF
31503 #define CRAY_STACKSEG_END $ac_func
31512 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31513 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31514 if test "${ac_cv_c_stack_direction+set}" = set; then
31515 echo $ECHO_N "(cached) $ECHO_C" >&6
31517 if test "$cross_compiling" = yes; then
31518 ac_cv_c_stack_direction=0
31520 cat >conftest.$ac_ext <<_ACEOF
31523 cat confdefs.h >>conftest.$ac_ext
31524 cat >>conftest.$ac_ext <<_ACEOF
31525 /* end confdefs.h. */
31526 $ac_includes_default
31528 find_stack_direction ()
31530 static char *addr = 0;
31535 return find_stack_direction ();
31538 return (&dummy > addr) ? 1 : -1;
31544 return find_stack_direction () < 0;
31547 rm -f conftest$ac_exeext
31548 if { (ac_try="$ac_link"
31549 case "(($ac_try" in
31550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31551 *) ac_try_echo=$ac_try;;
31553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31554 (eval "$ac_link") 2>&5
31556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31558 { (case "(($ac_try" in
31559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31560 *) ac_try_echo=$ac_try;;
31562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31563 (eval "$ac_try") 2>&5
31565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31566 (exit $ac_status); }; }; then
31567 ac_cv_c_stack_direction=1
31569 echo "$as_me: program exited with status $ac_status" >&5
31570 echo "$as_me: failed program was:" >&5
31571 sed 's/^/| /' conftest.$ac_ext >&5
31573 ( exit $ac_status )
31574 ac_cv_c_stack_direction=-1
31576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31581 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31582 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31584 cat >>confdefs.h <<_ACEOF
31585 #define STACK_DIRECTION $ac_cv_c_stack_direction
31592 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31593 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31594 if test "${ac_cv_func_rand48+set}" = set; then
31595 echo $ECHO_N "(cached) $ECHO_C" >&6
31598 ac_cpp='$CXXCPP $CPPFLAGS'
31599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31603 cat >conftest.$ac_ext <<_ACEOF
31606 cat confdefs.h >>conftest.$ac_ext
31607 cat >>conftest.$ac_ext <<_ACEOF
31608 /* end confdefs.h. */
31609 #include <stdlib.h>
31613 srand48(0);lrand48();drand48();
31618 rm -f conftest.$ac_objext
31619 if { (ac_try="$ac_compile"
31620 case "(($ac_try" in
31621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31622 *) ac_try_echo=$ac_try;;
31624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31625 (eval "$ac_compile") 2>conftest.er1
31627 grep -v '^ *+' conftest.er1 >conftest.err
31629 cat conftest.err >&5
31630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31631 (exit $ac_status); } &&
31632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31633 { (case "(($ac_try" in
31634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31635 *) ac_try_echo=$ac_try;;
31637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31638 (eval "$ac_try") 2>&5
31640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31641 (exit $ac_status); }; } &&
31642 { ac_try='test -s conftest.$ac_objext'
31643 { (case "(($ac_try" in
31644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31645 *) ac_try_echo=$ac_try;;
31647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31648 (eval "$ac_try") 2>&5
31650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31651 (exit $ac_status); }; }; then
31652 ac_cv_func_rand48=yes
31654 echo "$as_me: failed program was:" >&5
31655 sed 's/^/| /' conftest.$ac_ext >&5
31657 ac_cv_func_rand48=no
31660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31662 ac_cpp='$CPP $CPPFLAGS'
31663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31668 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31669 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31671 if test "$ac_cv_func_rand48" = "yes" ; then
31673 cat >>confdefs.h <<\_ACEOF
31674 #define HAVE_RAND48 1
31680 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31681 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31682 if test "${ac_cv_cxx_namespaces+set}" = set; then
31683 echo $ECHO_N "(cached) $ECHO_C" >&6
31686 ac_cpp='$CXXCPP $CPPFLAGS'
31687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31691 cat >conftest.$ac_ext <<_ACEOF
31694 cat confdefs.h >>conftest.$ac_ext
31695 cat >>conftest.$ac_ext <<_ACEOF
31696 /* end confdefs.h. */
31697 namespace Outer { namespace Inner { int i = 0; }}
31701 using namespace Outer::Inner; return i;
31706 rm -f conftest.$ac_objext
31707 if { (ac_try="$ac_compile"
31708 case "(($ac_try" in
31709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31710 *) ac_try_echo=$ac_try;;
31712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31713 (eval "$ac_compile") 2>conftest.er1
31715 grep -v '^ *+' conftest.er1 >conftest.err
31717 cat conftest.err >&5
31718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31719 (exit $ac_status); } &&
31720 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31721 { (case "(($ac_try" in
31722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31723 *) ac_try_echo=$ac_try;;
31725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31726 (eval "$ac_try") 2>&5
31728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729 (exit $ac_status); }; } &&
31730 { ac_try='test -s conftest.$ac_objext'
31731 { (case "(($ac_try" in
31732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31733 *) ac_try_echo=$ac_try;;
31735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31736 (eval "$ac_try") 2>&5
31738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739 (exit $ac_status); }; }; then
31740 ac_cv_cxx_namespaces=yes
31742 echo "$as_me: failed program was:" >&5
31743 sed 's/^/| /' conftest.$ac_ext >&5
31745 ac_cv_cxx_namespaces=no
31748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31750 ac_cpp='$CPP $CPPFLAGS'
31751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31757 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31758 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31759 if test "$ac_cv_cxx_namespaces" = yes; then
31761 cat >>confdefs.h <<\_ACEOF
31762 #define HAVE_NAMESPACES
31767 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31768 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31769 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31770 echo $ECHO_N "(cached) $ECHO_C" >&6
31774 ac_cpp='$CXXCPP $CPPFLAGS'
31775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31779 cat >conftest.$ac_ext <<_ACEOF
31782 cat confdefs.h >>conftest.$ac_ext
31783 cat >>conftest.$ac_ext <<_ACEOF
31784 /* end confdefs.h. */
31785 #include <ext/hash_map>
31786 #ifdef HAVE_NAMESPACES
31787 using namespace std;
31792 hash_map<int, int> t;
31797 rm -f conftest.$ac_objext
31798 if { (ac_try="$ac_compile"
31799 case "(($ac_try" in
31800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31801 *) ac_try_echo=$ac_try;;
31803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31804 (eval "$ac_compile") 2>conftest.er1
31806 grep -v '^ *+' conftest.er1 >conftest.err
31808 cat conftest.err >&5
31809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31810 (exit $ac_status); } &&
31811 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31812 { (case "(($ac_try" in
31813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31814 *) ac_try_echo=$ac_try;;
31816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31817 (eval "$ac_try") 2>&5
31819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820 (exit $ac_status); }; } &&
31821 { ac_try='test -s conftest.$ac_objext'
31822 { (case "(($ac_try" in
31823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31824 *) ac_try_echo=$ac_try;;
31826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31827 (eval "$ac_try") 2>&5
31829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31830 (exit $ac_status); }; }; then
31831 ac_cv_cxx_have_std_ext_hash_map=yes
31833 echo "$as_me: failed program was:" >&5
31834 sed 's/^/| /' conftest.$ac_ext >&5
31836 ac_cv_cxx_have_std_ext_hash_map=no
31839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31841 ac_cpp='$CPP $CPPFLAGS'
31842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31847 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31848 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31849 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31852 cat >>confdefs.h <<\_ACEOF
31853 #define HAVE_STD_EXT_HASH_MAP 1
31858 cat >>confdefs.h <<\_ACEOF
31859 #define HAVE_STD_EXT_HASH_MAP 0
31864 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31865 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31866 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31867 echo $ECHO_N "(cached) $ECHO_C" >&6
31871 ac_cpp='$CXXCPP $CPPFLAGS'
31872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31876 cat >conftest.$ac_ext <<_ACEOF
31879 cat confdefs.h >>conftest.$ac_ext
31880 cat >>conftest.$ac_ext <<_ACEOF
31881 /* end confdefs.h. */
31882 #include <ext/hash_map>
31883 #ifdef HAVE_NAMESPACES
31884 using namespace __gnu_cxx;
31889 hash_map<int,int> t;
31894 rm -f conftest.$ac_objext
31895 if { (ac_try="$ac_compile"
31896 case "(($ac_try" in
31897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31898 *) ac_try_echo=$ac_try;;
31900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31901 (eval "$ac_compile") 2>conftest.er1
31903 grep -v '^ *+' conftest.er1 >conftest.err
31905 cat conftest.err >&5
31906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907 (exit $ac_status); } &&
31908 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31909 { (case "(($ac_try" in
31910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31911 *) ac_try_echo=$ac_try;;
31913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31914 (eval "$ac_try") 2>&5
31916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31917 (exit $ac_status); }; } &&
31918 { ac_try='test -s conftest.$ac_objext'
31919 { (case "(($ac_try" in
31920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31921 *) ac_try_echo=$ac_try;;
31923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31924 (eval "$ac_try") 2>&5
31926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31927 (exit $ac_status); }; }; then
31928 ac_cv_cxx_have_gnu_ext_hash_map=yes
31930 echo "$as_me: failed program was:" >&5
31931 sed 's/^/| /' conftest.$ac_ext >&5
31933 ac_cv_cxx_have_gnu_ext_hash_map=no
31936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31938 ac_cpp='$CPP $CPPFLAGS'
31939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31944 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31945 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31946 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31949 cat >>confdefs.h <<\_ACEOF
31950 #define HAVE_GNU_EXT_HASH_MAP 1
31955 cat >>confdefs.h <<\_ACEOF
31956 #define HAVE_GNU_EXT_HASH_MAP 0
31961 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31962 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31963 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31964 echo $ECHO_N "(cached) $ECHO_C" >&6
31968 ac_cpp='$CXXCPP $CPPFLAGS'
31969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31973 cat >conftest.$ac_ext <<_ACEOF
31976 cat confdefs.h >>conftest.$ac_ext
31977 cat >>conftest.$ac_ext <<_ACEOF
31978 /* end confdefs.h. */
31979 #include <hash_map>
31983 hash_map<int,int> t;
31988 rm -f conftest.$ac_objext
31989 if { (ac_try="$ac_compile"
31990 case "(($ac_try" in
31991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31992 *) ac_try_echo=$ac_try;;
31994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31995 (eval "$ac_compile") 2>conftest.er1
31997 grep -v '^ *+' conftest.er1 >conftest.err
31999 cat conftest.err >&5
32000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32001 (exit $ac_status); } &&
32002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32003 { (case "(($ac_try" in
32004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32005 *) ac_try_echo=$ac_try;;
32007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32008 (eval "$ac_try") 2>&5
32010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32011 (exit $ac_status); }; } &&
32012 { ac_try='test -s conftest.$ac_objext'
32013 { (case "(($ac_try" in
32014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32015 *) ac_try_echo=$ac_try;;
32017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32018 (eval "$ac_try") 2>&5
32020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32021 (exit $ac_status); }; }; then
32022 ac_cv_cxx_have_global_hash_map=yes
32024 echo "$as_me: failed program was:" >&5
32025 sed 's/^/| /' conftest.$ac_ext >&5
32027 ac_cv_cxx_have_global_hash_map=no
32030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32032 ac_cpp='$CPP $CPPFLAGS'
32033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32038 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32039 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32040 if test "$ac_cv_cxx_have_global_hash_map" = yes
32043 cat >>confdefs.h <<\_ACEOF
32044 #define HAVE_GLOBAL_HASH_MAP 1
32049 cat >>confdefs.h <<\_ACEOF
32050 #define HAVE_GLOBAL_HASH_MAP 0
32055 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32056 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32057 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32058 echo $ECHO_N "(cached) $ECHO_C" >&6
32062 ac_cpp='$CXXCPP $CPPFLAGS'
32063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32067 cat >conftest.$ac_ext <<_ACEOF
32070 cat confdefs.h >>conftest.$ac_ext
32071 cat >>conftest.$ac_ext <<_ACEOF
32072 /* end confdefs.h. */
32073 #include <ext/hash_set>
32074 #ifdef HAVE_NAMESPACES
32075 using namespace std;
32085 rm -f conftest.$ac_objext
32086 if { (ac_try="$ac_compile"
32087 case "(($ac_try" in
32088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32089 *) ac_try_echo=$ac_try;;
32091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32092 (eval "$ac_compile") 2>conftest.er1
32094 grep -v '^ *+' conftest.er1 >conftest.err
32096 cat conftest.err >&5
32097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32098 (exit $ac_status); } &&
32099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32100 { (case "(($ac_try" in
32101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32102 *) ac_try_echo=$ac_try;;
32104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32105 (eval "$ac_try") 2>&5
32107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32108 (exit $ac_status); }; } &&
32109 { ac_try='test -s conftest.$ac_objext'
32110 { (case "(($ac_try" in
32111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32112 *) ac_try_echo=$ac_try;;
32114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32115 (eval "$ac_try") 2>&5
32117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32118 (exit $ac_status); }; }; then
32119 ac_cv_cxx_have_std_ext_hash_set=yes
32121 echo "$as_me: failed program was:" >&5
32122 sed 's/^/| /' conftest.$ac_ext >&5
32124 ac_cv_cxx_have_std_ext_hash_set=no
32127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32129 ac_cpp='$CPP $CPPFLAGS'
32130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32135 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32136 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32137 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32140 cat >>confdefs.h <<\_ACEOF
32141 #define HAVE_STD_EXT_HASH_SET 1
32146 cat >>confdefs.h <<\_ACEOF
32147 #define HAVE_STD_EXT_HASH_SET 0
32152 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32153 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32154 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32155 echo $ECHO_N "(cached) $ECHO_C" >&6
32159 ac_cpp='$CXXCPP $CPPFLAGS'
32160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32164 cat >conftest.$ac_ext <<_ACEOF
32167 cat confdefs.h >>conftest.$ac_ext
32168 cat >>conftest.$ac_ext <<_ACEOF
32169 /* end confdefs.h. */
32170 #include <ext/hash_set>
32171 #ifdef HAVE_NAMESPACES
32172 using namespace __gnu_cxx;
32182 rm -f conftest.$ac_objext
32183 if { (ac_try="$ac_compile"
32184 case "(($ac_try" in
32185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32186 *) ac_try_echo=$ac_try;;
32188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32189 (eval "$ac_compile") 2>conftest.er1
32191 grep -v '^ *+' conftest.er1 >conftest.err
32193 cat conftest.err >&5
32194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32195 (exit $ac_status); } &&
32196 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32197 { (case "(($ac_try" in
32198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32199 *) ac_try_echo=$ac_try;;
32201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32202 (eval "$ac_try") 2>&5
32204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32205 (exit $ac_status); }; } &&
32206 { ac_try='test -s conftest.$ac_objext'
32207 { (case "(($ac_try" in
32208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32209 *) ac_try_echo=$ac_try;;
32211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32212 (eval "$ac_try") 2>&5
32214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32215 (exit $ac_status); }; }; then
32216 ac_cv_cxx_have_gnu_ext_hash_set=yes
32218 echo "$as_me: failed program was:" >&5
32219 sed 's/^/| /' conftest.$ac_ext >&5
32221 ac_cv_cxx_have_gnu_ext_hash_set=no
32224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32226 ac_cpp='$CPP $CPPFLAGS'
32227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32232 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32233 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32234 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32237 cat >>confdefs.h <<\_ACEOF
32238 #define HAVE_GNU_EXT_HASH_SET 1
32243 cat >>confdefs.h <<\_ACEOF
32244 #define HAVE_GNU_EXT_HASH_SET 0
32249 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32250 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32251 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32252 echo $ECHO_N "(cached) $ECHO_C" >&6
32256 ac_cpp='$CXXCPP $CPPFLAGS'
32257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32261 cat >conftest.$ac_ext <<_ACEOF
32264 cat confdefs.h >>conftest.$ac_ext
32265 cat >>conftest.$ac_ext <<_ACEOF
32266 /* end confdefs.h. */
32267 #include <hash_set>
32271 hash_set<int> t; return 0;
32276 rm -f conftest.$ac_objext
32277 if { (ac_try="$ac_compile"
32278 case "(($ac_try" in
32279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32280 *) ac_try_echo=$ac_try;;
32282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32283 (eval "$ac_compile") 2>conftest.er1
32285 grep -v '^ *+' conftest.er1 >conftest.err
32287 cat conftest.err >&5
32288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289 (exit $ac_status); } &&
32290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32291 { (case "(($ac_try" in
32292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32293 *) ac_try_echo=$ac_try;;
32295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32296 (eval "$ac_try") 2>&5
32298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299 (exit $ac_status); }; } &&
32300 { ac_try='test -s conftest.$ac_objext'
32301 { (case "(($ac_try" in
32302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32303 *) ac_try_echo=$ac_try;;
32305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32306 (eval "$ac_try") 2>&5
32308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309 (exit $ac_status); }; }; then
32310 ac_cv_cxx_have_global_hash_set=yes
32312 echo "$as_me: failed program was:" >&5
32313 sed 's/^/| /' conftest.$ac_ext >&5
32315 ac_cv_cxx_have_global_hash_set=no
32318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32320 ac_cpp='$CPP $CPPFLAGS'
32321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32326 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32327 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32328 if test "$ac_cv_cxx_have_global_hash_set" = yes
32331 cat >>confdefs.h <<\_ACEOF
32332 #define HAVE_GLOBAL_HASH_SET 1
32337 cat >>confdefs.h <<\_ACEOF
32338 #define HAVE_GLOBAL_HASH_SET 0
32343 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32344 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32345 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32346 echo $ECHO_N "(cached) $ECHO_C" >&6
32350 ac_cpp='$CXXCPP $CPPFLAGS'
32351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32355 cat >conftest.$ac_ext <<_ACEOF
32358 cat confdefs.h >>conftest.$ac_ext
32359 cat >>conftest.$ac_ext <<_ACEOF
32360 /* end confdefs.h. */
32361 #include <iterator>
32362 #ifdef HAVE_NAMESPACES
32363 using namespace std;
32368 iterator<int,int,int> t; return 0;
32373 rm -f conftest.$ac_objext
32374 if { (ac_try="$ac_compile"
32375 case "(($ac_try" in
32376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32377 *) ac_try_echo=$ac_try;;
32379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32380 (eval "$ac_compile") 2>conftest.er1
32382 grep -v '^ *+' conftest.er1 >conftest.err
32384 cat conftest.err >&5
32385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386 (exit $ac_status); } &&
32387 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32388 { (case "(($ac_try" in
32389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32390 *) ac_try_echo=$ac_try;;
32392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32393 (eval "$ac_try") 2>&5
32395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396 (exit $ac_status); }; } &&
32397 { ac_try='test -s conftest.$ac_objext'
32398 { (case "(($ac_try" in
32399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32400 *) ac_try_echo=$ac_try;;
32402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32403 (eval "$ac_try") 2>&5
32405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32406 (exit $ac_status); }; }; then
32407 ac_cv_cxx_have_std_iterator=yes
32409 echo "$as_me: failed program was:" >&5
32410 sed 's/^/| /' conftest.$ac_ext >&5
32412 ac_cv_cxx_have_std_iterator=no
32415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32417 ac_cpp='$CPP $CPPFLAGS'
32418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32424 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32425 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32426 if test "$ac_cv_cxx_have_std_iterator" = yes
32429 cat >>confdefs.h <<\_ACEOF
32430 #define HAVE_STD_ITERATOR 1
32435 cat >>confdefs.h <<\_ACEOF
32436 #define HAVE_STD_ITERATOR 0
32441 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32442 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32443 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32444 echo $ECHO_N "(cached) $ECHO_C" >&6
32448 ac_cpp='$CXXCPP $CPPFLAGS'
32449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32453 cat >conftest.$ac_ext <<_ACEOF
32456 cat confdefs.h >>conftest.$ac_ext
32457 cat >>conftest.$ac_ext <<_ACEOF
32458 /* end confdefs.h. */
32459 #include <iterator>
32460 #ifdef HAVE_NAMESPACES
32461 using namespace std;
32466 bidirectional_iterator<int,int> t; return 0;
32471 rm -f conftest.$ac_objext
32472 if { (ac_try="$ac_compile"
32473 case "(($ac_try" in
32474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32475 *) ac_try_echo=$ac_try;;
32477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32478 (eval "$ac_compile") 2>conftest.er1
32480 grep -v '^ *+' conftest.er1 >conftest.err
32482 cat conftest.err >&5
32483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484 (exit $ac_status); } &&
32485 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32486 { (case "(($ac_try" in
32487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32488 *) ac_try_echo=$ac_try;;
32490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32491 (eval "$ac_try") 2>&5
32493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32494 (exit $ac_status); }; } &&
32495 { ac_try='test -s conftest.$ac_objext'
32496 { (case "(($ac_try" in
32497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32498 *) ac_try_echo=$ac_try;;
32500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32501 (eval "$ac_try") 2>&5
32503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32504 (exit $ac_status); }; }; then
32505 ac_cv_cxx_have_bi_iterator=yes
32507 echo "$as_me: failed program was:" >&5
32508 sed 's/^/| /' conftest.$ac_ext >&5
32510 ac_cv_cxx_have_bi_iterator=no
32513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32515 ac_cpp='$CPP $CPPFLAGS'
32516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32522 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32523 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32524 if test "$ac_cv_cxx_have_bi_iterator" = yes
32527 cat >>confdefs.h <<\_ACEOF
32528 #define HAVE_BI_ITERATOR 1
32533 cat >>confdefs.h <<\_ACEOF
32534 #define HAVE_BI_ITERATOR 0
32539 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32540 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32541 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32542 echo $ECHO_N "(cached) $ECHO_C" >&6
32546 ac_cpp='$CXXCPP $CPPFLAGS'
32547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32551 cat >conftest.$ac_ext <<_ACEOF
32554 cat confdefs.h >>conftest.$ac_ext
32555 cat >>conftest.$ac_ext <<_ACEOF
32556 /* end confdefs.h. */
32557 #include <iterator>
32558 #ifdef HAVE_NAMESPACES
32559 using namespace std;
32564 forward_iterator<int,int> t; return 0;
32569 rm -f conftest.$ac_objext
32570 if { (ac_try="$ac_compile"
32571 case "(($ac_try" in
32572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32573 *) ac_try_echo=$ac_try;;
32575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32576 (eval "$ac_compile") 2>conftest.er1
32578 grep -v '^ *+' conftest.er1 >conftest.err
32580 cat conftest.err >&5
32581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32582 (exit $ac_status); } &&
32583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32584 { (case "(($ac_try" in
32585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32586 *) ac_try_echo=$ac_try;;
32588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32589 (eval "$ac_try") 2>&5
32591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32592 (exit $ac_status); }; } &&
32593 { ac_try='test -s conftest.$ac_objext'
32594 { (case "(($ac_try" in
32595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32596 *) ac_try_echo=$ac_try;;
32598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32599 (eval "$ac_try") 2>&5
32601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32602 (exit $ac_status); }; }; then
32603 ac_cv_cxx_have_fwd_iterator=yes
32605 echo "$as_me: failed program was:" >&5
32606 sed 's/^/| /' conftest.$ac_ext >&5
32608 ac_cv_cxx_have_fwd_iterator=no
32611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32613 ac_cpp='$CPP $CPPFLAGS'
32614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32620 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32621 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32622 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32625 cat >>confdefs.h <<\_ACEOF
32626 #define HAVE_FWD_ITERATOR 1
32631 cat >>confdefs.h <<\_ACEOF
32632 #define HAVE_FWD_ITERATOR 0
32638 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32639 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32640 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32641 echo $ECHO_N "(cached) $ECHO_C" >&6
32644 ac_cpp='$CXXCPP $CPPFLAGS'
32645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32649 cat >conftest.$ac_ext <<_ACEOF
32652 cat confdefs.h >>conftest.$ac_ext
32653 cat >>conftest.$ac_ext <<_ACEOF
32654 /* end confdefs.h. */
32664 rm -f conftest.$ac_objext
32665 if { (ac_try="$ac_compile"
32666 case "(($ac_try" in
32667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32668 *) ac_try_echo=$ac_try;;
32670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32671 (eval "$ac_compile") 2>conftest.er1
32673 grep -v '^ *+' conftest.er1 >conftest.err
32675 cat conftest.err >&5
32676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677 (exit $ac_status); } &&
32678 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32679 { (case "(($ac_try" in
32680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32681 *) ac_try_echo=$ac_try;;
32683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32684 (eval "$ac_try") 2>&5
32686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32687 (exit $ac_status); }; } &&
32688 { ac_try='test -s conftest.$ac_objext'
32689 { (case "(($ac_try" in
32690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32691 *) ac_try_echo=$ac_try;;
32693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32694 (eval "$ac_try") 2>&5
32696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32697 (exit $ac_status); }; }; then
32698 ac_cv_func_isnan_in_math_h=yes
32700 echo "$as_me: failed program was:" >&5
32701 sed 's/^/| /' conftest.$ac_ext >&5
32703 ac_cv_func_isnan_in_math_h=no
32706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32708 ac_cpp='$CPP $CPPFLAGS'
32709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32714 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32715 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32718 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32720 cat >>confdefs.h <<\_ACEOF
32721 #define HAVE_ISNAN_IN_MATH_H 1
32726 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32727 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32728 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32729 echo $ECHO_N "(cached) $ECHO_C" >&6
32732 ac_cpp='$CXXCPP $CPPFLAGS'
32733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32737 cat >conftest.$ac_ext <<_ACEOF
32740 cat confdefs.h >>conftest.$ac_ext
32741 cat >>conftest.$ac_ext <<_ACEOF
32742 /* end confdefs.h. */
32752 rm -f conftest.$ac_objext
32753 if { (ac_try="$ac_compile"
32754 case "(($ac_try" in
32755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32756 *) ac_try_echo=$ac_try;;
32758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32759 (eval "$ac_compile") 2>conftest.er1
32761 grep -v '^ *+' conftest.er1 >conftest.err
32763 cat conftest.err >&5
32764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32765 (exit $ac_status); } &&
32766 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32767 { (case "(($ac_try" in
32768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32769 *) ac_try_echo=$ac_try;;
32771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32772 (eval "$ac_try") 2>&5
32774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775 (exit $ac_status); }; } &&
32776 { ac_try='test -s conftest.$ac_objext'
32777 { (case "(($ac_try" in
32778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779 *) ac_try_echo=$ac_try;;
32781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32782 (eval "$ac_try") 2>&5
32784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32785 (exit $ac_status); }; }; then
32786 ac_cv_func_isnan_in_cmath=yes
32788 echo "$as_me: failed program was:" >&5
32789 sed 's/^/| /' conftest.$ac_ext >&5
32791 ac_cv_func_isnan_in_cmath=no
32794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32796 ac_cpp='$CPP $CPPFLAGS'
32797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32802 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32803 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32805 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32807 cat >>confdefs.h <<\_ACEOF
32808 #define HAVE_ISNAN_IN_CMATH 1
32813 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32814 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32815 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32816 echo $ECHO_N "(cached) $ECHO_C" >&6
32819 ac_cpp='$CXXCPP $CPPFLAGS'
32820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32824 cat >conftest.$ac_ext <<_ACEOF
32827 cat confdefs.h >>conftest.$ac_ext
32828 cat >>conftest.$ac_ext <<_ACEOF
32829 /* end confdefs.h. */
32834 float f; std::isnan(f);
32839 rm -f conftest.$ac_objext
32840 if { (ac_try="$ac_compile"
32841 case "(($ac_try" in
32842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32843 *) ac_try_echo=$ac_try;;
32845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32846 (eval "$ac_compile") 2>conftest.er1
32848 grep -v '^ *+' conftest.er1 >conftest.err
32850 cat conftest.err >&5
32851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32852 (exit $ac_status); } &&
32853 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32854 { (case "(($ac_try" in
32855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32856 *) ac_try_echo=$ac_try;;
32858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32859 (eval "$ac_try") 2>&5
32861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32862 (exit $ac_status); }; } &&
32863 { ac_try='test -s conftest.$ac_objext'
32864 { (case "(($ac_try" in
32865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32866 *) ac_try_echo=$ac_try;;
32868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32869 (eval "$ac_try") 2>&5
32871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32872 (exit $ac_status); }; }; then
32873 ac_cv_func_std_isnan_in_cmath=yes
32875 echo "$as_me: failed program was:" >&5
32876 sed 's/^/| /' conftest.$ac_ext >&5
32878 ac_cv_func_std_isnan_in_cmath=no
32881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32883 ac_cpp='$CPP $CPPFLAGS'
32884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32889 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32890 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32892 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32894 cat >>confdefs.h <<\_ACEOF
32895 #define HAVE_STD_ISNAN_IN_CMATH 1
32901 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32902 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32903 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32904 echo $ECHO_N "(cached) $ECHO_C" >&6
32907 ac_cpp='$CXXCPP $CPPFLAGS'
32908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32912 cat >conftest.$ac_ext <<_ACEOF
32915 cat confdefs.h >>conftest.$ac_ext
32916 cat >>conftest.$ac_ext <<_ACEOF
32917 /* end confdefs.h. */
32927 rm -f conftest.$ac_objext
32928 if { (ac_try="$ac_compile"
32929 case "(($ac_try" in
32930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32931 *) ac_try_echo=$ac_try;;
32933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32934 (eval "$ac_compile") 2>conftest.er1
32936 grep -v '^ *+' conftest.er1 >conftest.err
32938 cat conftest.err >&5
32939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32940 (exit $ac_status); } &&
32941 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32942 { (case "(($ac_try" in
32943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32944 *) ac_try_echo=$ac_try;;
32946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32947 (eval "$ac_try") 2>&5
32949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950 (exit $ac_status); }; } &&
32951 { ac_try='test -s conftest.$ac_objext'
32952 { (case "(($ac_try" in
32953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32954 *) ac_try_echo=$ac_try;;
32956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32957 (eval "$ac_try") 2>&5
32959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32960 (exit $ac_status); }; }; then
32961 ac_cv_func_isinf_in_math_h=yes
32963 echo "$as_me: failed program was:" >&5
32964 sed 's/^/| /' conftest.$ac_ext >&5
32966 ac_cv_func_isinf_in_math_h=no
32969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32971 ac_cpp='$CPP $CPPFLAGS'
32972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32977 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32978 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32980 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32982 cat >>confdefs.h <<\_ACEOF
32983 #define HAVE_ISINF_IN_MATH_H 1
32988 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32989 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32990 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32991 echo $ECHO_N "(cached) $ECHO_C" >&6
32994 ac_cpp='$CXXCPP $CPPFLAGS'
32995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32999 cat >conftest.$ac_ext <<_ACEOF
33002 cat confdefs.h >>conftest.$ac_ext
33003 cat >>conftest.$ac_ext <<_ACEOF
33004 /* end confdefs.h. */
33014 rm -f conftest.$ac_objext
33015 if { (ac_try="$ac_compile"
33016 case "(($ac_try" in
33017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33018 *) ac_try_echo=$ac_try;;
33020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33021 (eval "$ac_compile") 2>conftest.er1
33023 grep -v '^ *+' conftest.er1 >conftest.err
33025 cat conftest.err >&5
33026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33027 (exit $ac_status); } &&
33028 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33029 { (case "(($ac_try" in
33030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33031 *) ac_try_echo=$ac_try;;
33033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33034 (eval "$ac_try") 2>&5
33036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33037 (exit $ac_status); }; } &&
33038 { ac_try='test -s conftest.$ac_objext'
33039 { (case "(($ac_try" in
33040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33041 *) ac_try_echo=$ac_try;;
33043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33044 (eval "$ac_try") 2>&5
33046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33047 (exit $ac_status); }; }; then
33048 ac_cv_func_isinf_in_cmath=yes
33050 echo "$as_me: failed program was:" >&5
33051 sed 's/^/| /' conftest.$ac_ext >&5
33053 ac_cv_func_isinf_in_cmath=no
33056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33058 ac_cpp='$CPP $CPPFLAGS'
33059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33064 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33065 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33067 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33069 cat >>confdefs.h <<\_ACEOF
33070 #define HAVE_ISINF_IN_CMATH 1
33075 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33076 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33077 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33078 echo $ECHO_N "(cached) $ECHO_C" >&6
33081 ac_cpp='$CXXCPP $CPPFLAGS'
33082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33086 cat >conftest.$ac_ext <<_ACEOF
33089 cat confdefs.h >>conftest.$ac_ext
33090 cat >>conftest.$ac_ext <<_ACEOF
33091 /* end confdefs.h. */
33096 float f; std::isinf(f)}
33101 rm -f conftest.$ac_objext
33102 if { (ac_try="$ac_compile"
33103 case "(($ac_try" in
33104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33105 *) ac_try_echo=$ac_try;;
33107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33108 (eval "$ac_compile") 2>conftest.er1
33110 grep -v '^ *+' conftest.er1 >conftest.err
33112 cat conftest.err >&5
33113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33114 (exit $ac_status); } &&
33115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33116 { (case "(($ac_try" in
33117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33118 *) ac_try_echo=$ac_try;;
33120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33121 (eval "$ac_try") 2>&5
33123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33124 (exit $ac_status); }; } &&
33125 { ac_try='test -s conftest.$ac_objext'
33126 { (case "(($ac_try" in
33127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33128 *) ac_try_echo=$ac_try;;
33130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33131 (eval "$ac_try") 2>&5
33133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33134 (exit $ac_status); }; }; then
33135 ac_cv_func_std_isinf_in_cmath=yes
33137 echo "$as_me: failed program was:" >&5
33138 sed 's/^/| /' conftest.$ac_ext >&5
33140 ac_cv_func_std_isinf_in_cmath=no
33143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33145 ac_cpp='$CPP $CPPFLAGS'
33146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33151 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33152 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33154 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33156 cat >>confdefs.h <<\_ACEOF
33157 #define HAVE_STD_ISINF_IN_CMATH 1
33162 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33163 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33164 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33165 echo $ECHO_N "(cached) $ECHO_C" >&6
33168 ac_cpp='$CXXCPP $CPPFLAGS'
33169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33173 cat >conftest.$ac_ext <<_ACEOF
33176 cat confdefs.h >>conftest.$ac_ext
33177 cat >>conftest.$ac_ext <<_ACEOF
33178 /* end confdefs.h. */
33179 #include <ieeefp.h>
33183 float f; finite(f);
33188 rm -f conftest.$ac_objext
33189 if { (ac_try="$ac_compile"
33190 case "(($ac_try" in
33191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33192 *) ac_try_echo=$ac_try;;
33194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33195 (eval "$ac_compile") 2>conftest.er1
33197 grep -v '^ *+' conftest.er1 >conftest.err
33199 cat conftest.err >&5
33200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33201 (exit $ac_status); } &&
33202 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33203 { (case "(($ac_try" in
33204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33205 *) ac_try_echo=$ac_try;;
33207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33208 (eval "$ac_try") 2>&5
33210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33211 (exit $ac_status); }; } &&
33212 { ac_try='test -s conftest.$ac_objext'
33213 { (case "(($ac_try" in
33214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33215 *) ac_try_echo=$ac_try;;
33217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33218 (eval "$ac_try") 2>&5
33220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33221 (exit $ac_status); }; }; then
33222 ac_cv_func_finite_in_ieeefp_h=yes
33224 echo "$as_me: failed program was:" >&5
33225 sed 's/^/| /' conftest.$ac_ext >&5
33227 ac_cv_func_finite_in_ieeefp_h=no
33230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33232 ac_cpp='$CPP $CPPFLAGS'
33233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33238 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33239 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33241 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33243 cat >>confdefs.h <<\_ACEOF
33244 #define HAVE_FINITE_IN_IEEEFP_H 1
33251 if test "$llvm_cv_platform_type" = "Unix" ; then
33254 for ac_header in stdlib.h unistd.h
33256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33261 echo $ECHO_N "(cached) $ECHO_C" >&6
33263 ac_res=`eval echo '${'$as_ac_Header'}'`
33264 { echo "$as_me:$LINENO: result: $ac_res" >&5
33265 echo "${ECHO_T}$ac_res" >&6; }
33267 # Is the header compilable?
33268 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33270 cat >conftest.$ac_ext <<_ACEOF
33273 cat confdefs.h >>conftest.$ac_ext
33274 cat >>conftest.$ac_ext <<_ACEOF
33275 /* end confdefs.h. */
33276 $ac_includes_default
33277 #include <$ac_header>
33279 rm -f conftest.$ac_objext
33280 if { (ac_try="$ac_compile"
33281 case "(($ac_try" in
33282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33283 *) ac_try_echo=$ac_try;;
33285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33286 (eval "$ac_compile") 2>conftest.er1
33288 grep -v '^ *+' conftest.er1 >conftest.err
33290 cat conftest.err >&5
33291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33292 (exit $ac_status); } &&
33293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33294 { (case "(($ac_try" in
33295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33296 *) ac_try_echo=$ac_try;;
33298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33299 (eval "$ac_try") 2>&5
33301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33302 (exit $ac_status); }; } &&
33303 { ac_try='test -s conftest.$ac_objext'
33304 { (case "(($ac_try" in
33305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33306 *) ac_try_echo=$ac_try;;
33308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33309 (eval "$ac_try") 2>&5
33311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312 (exit $ac_status); }; }; then
33313 ac_header_compiler=yes
33315 echo "$as_me: failed program was:" >&5
33316 sed 's/^/| /' conftest.$ac_ext >&5
33318 ac_header_compiler=no
33321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33323 echo "${ECHO_T}$ac_header_compiler" >&6; }
33325 # Is the header present?
33326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33328 cat >conftest.$ac_ext <<_ACEOF
33331 cat confdefs.h >>conftest.$ac_ext
33332 cat >>conftest.$ac_ext <<_ACEOF
33333 /* end confdefs.h. */
33334 #include <$ac_header>
33336 if { (ac_try="$ac_cpp conftest.$ac_ext"
33337 case "(($ac_try" in
33338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33339 *) ac_try_echo=$ac_try;;
33341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33344 grep -v '^ *+' conftest.er1 >conftest.err
33346 cat conftest.err >&5
33347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33348 (exit $ac_status); } >/dev/null; then
33349 if test -s conftest.err; then
33350 ac_cpp_err=$ac_c_preproc_warn_flag
33351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33358 if test -z "$ac_cpp_err"; then
33359 ac_header_preproc=yes
33361 echo "$as_me: failed program was:" >&5
33362 sed 's/^/| /' conftest.$ac_ext >&5
33364 ac_header_preproc=no
33367 rm -f conftest.err conftest.$ac_ext
33368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33369 echo "${ECHO_T}$ac_header_preproc" >&6; }
33371 # So? What about this header?
33372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33378 ac_header_preproc=yes
33381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33384 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33388 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33394 ## ----------------------------------- ##
33395 ## Report this to llvmbugs@cs.uiuc.edu ##
33396 ## ----------------------------------- ##
33398 ) | sed "s/^/$as_me: WARNING: /" >&2
33401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33404 echo $ECHO_N "(cached) $ECHO_C" >&6
33406 eval "$as_ac_Header=\$ac_header_preproc"
33408 ac_res=`eval echo '${'$as_ac_Header'}'`
33409 { echo "$as_me:$LINENO: result: $ac_res" >&5
33410 echo "${ECHO_T}$ac_res" >&6; }
33413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33414 cat >>confdefs.h <<_ACEOF
33415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33423 for ac_func in getpagesize
33425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33426 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33429 echo $ECHO_N "(cached) $ECHO_C" >&6
33431 cat >conftest.$ac_ext <<_ACEOF
33434 cat confdefs.h >>conftest.$ac_ext
33435 cat >>conftest.$ac_ext <<_ACEOF
33436 /* end confdefs.h. */
33437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33439 #define $ac_func innocuous_$ac_func
33441 /* System header to define __stub macros and hopefully few prototypes,
33442 which can conflict with char $ac_func (); below.
33443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33444 <limits.h> exists even on freestanding compilers. */
33447 # include <limits.h>
33449 # include <assert.h>
33454 /* Override any GCC internal prototype to avoid an error.
33455 Use char because int might match the return type of a GCC
33456 builtin and then its argument prototype would still apply. */
33461 /* The GNU C library defines this for functions which it implements
33462 to always fail with ENOSYS. Some functions are actually named
33463 something starting with __ and the normal name is an alias. */
33464 #if defined __stub_$ac_func || defined __stub___$ac_func
33471 return $ac_func ();
33476 rm -f conftest.$ac_objext conftest$ac_exeext
33477 if { (ac_try="$ac_link"
33478 case "(($ac_try" in
33479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33480 *) ac_try_echo=$ac_try;;
33482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33483 (eval "$ac_link") 2>conftest.er1
33485 grep -v '^ *+' conftest.er1 >conftest.err
33487 cat conftest.err >&5
33488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33489 (exit $ac_status); } &&
33490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33491 { (case "(($ac_try" in
33492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33493 *) ac_try_echo=$ac_try;;
33495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33496 (eval "$ac_try") 2>&5
33498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33499 (exit $ac_status); }; } &&
33500 { ac_try='test -s conftest$ac_exeext'
33501 { (case "(($ac_try" in
33502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33503 *) ac_try_echo=$ac_try;;
33505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33506 (eval "$ac_try") 2>&5
33508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33509 (exit $ac_status); }; }; then
33510 eval "$as_ac_var=yes"
33512 echo "$as_me: failed program was:" >&5
33513 sed 's/^/| /' conftest.$ac_ext >&5
33515 eval "$as_ac_var=no"
33518 rm -f core conftest.err conftest.$ac_objext \
33519 conftest$ac_exeext conftest.$ac_ext
33521 ac_res=`eval echo '${'$as_ac_var'}'`
33522 { echo "$as_me:$LINENO: result: $ac_res" >&5
33523 echo "${ECHO_T}$ac_res" >&6; }
33524 if test `eval echo '${'$as_ac_var'}'` = yes; then
33525 cat >>confdefs.h <<_ACEOF
33526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33532 { echo "$as_me:$LINENO: checking for working mmap" >&5
33533 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33534 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33535 echo $ECHO_N "(cached) $ECHO_C" >&6
33537 if test "$cross_compiling" = yes; then
33538 ac_cv_func_mmap_fixed_mapped=no
33540 cat >conftest.$ac_ext <<_ACEOF
33543 cat confdefs.h >>conftest.$ac_ext
33544 cat >>conftest.$ac_ext <<_ACEOF
33545 /* end confdefs.h. */
33546 $ac_includes_default
33547 /* malloc might have been renamed as rpl_malloc. */
33550 /* Thanks to Mike Haertel and Jim Avera for this test.
33551 Here is a matrix of mmap possibilities:
33552 mmap private not fixed
33553 mmap private fixed at somewhere currently unmapped
33554 mmap private fixed at somewhere already mapped
33555 mmap shared not fixed
33556 mmap shared fixed at somewhere currently unmapped
33557 mmap shared fixed at somewhere already mapped
33558 For private mappings, we should verify that changes cannot be read()
33559 back from the file, nor mmap's back from the file at a different
33560 address. (There have been systems where private was not correctly
33561 implemented like the infamous i386 svr4.0, and systems where the
33562 VM page cache was not coherent with the file system buffer cache
33563 like early versions of FreeBSD and possibly contemporary NetBSD.)
33564 For shared mappings, we should conversely verify that changes get
33565 propagated back to all the places they're supposed to be.
33567 Grep wants private fixed already mapped.
33568 The main things grep needs to know about mmap are:
33569 * does it exist and is it safe to write into the mmap'd area
33570 * how to use it (BSD variants) */
33573 #include <sys/mman.h>
33575 #if !STDC_HEADERS && !HAVE_STDLIB_H
33579 /* This mess was copied from the GNU getpagesize.h. */
33580 #if !HAVE_GETPAGESIZE
33581 /* Assume that all systems that can run configure have sys/param.h. */
33582 # if !HAVE_SYS_PARAM_H
33583 # define HAVE_SYS_PARAM_H 1
33586 # ifdef _SC_PAGESIZE
33587 # define getpagesize() sysconf(_SC_PAGESIZE)
33588 # else /* no _SC_PAGESIZE */
33589 # if HAVE_SYS_PARAM_H
33590 # include <sys/param.h>
33591 # ifdef EXEC_PAGESIZE
33592 # define getpagesize() EXEC_PAGESIZE
33593 # else /* no EXEC_PAGESIZE */
33595 # define getpagesize() NBPG * CLSIZE
33598 # endif /* no CLSIZE */
33599 # else /* no NBPG */
33601 # define getpagesize() NBPC
33602 # else /* no NBPC */
33604 # define getpagesize() PAGESIZE
33605 # endif /* PAGESIZE */
33606 # endif /* no NBPC */
33607 # endif /* no NBPG */
33608 # endif /* no EXEC_PAGESIZE */
33609 # else /* no HAVE_SYS_PARAM_H */
33610 # define getpagesize() 8192 /* punt totally */
33611 # endif /* no HAVE_SYS_PARAM_H */
33612 # endif /* no _SC_PAGESIZE */
33614 #endif /* no HAVE_GETPAGESIZE */
33619 char *data, *data2, *data3;
33623 pagesize = getpagesize ();
33625 /* First, make a file with some known garbage in it. */
33626 data = (char *) malloc (pagesize);
33629 for (i = 0; i < pagesize; ++i)
33630 *(data + i) = rand ();
33632 fd = creat ("conftest.mmap", 0600);
33635 if (write (fd, data, pagesize) != pagesize)
33639 /* Next, try to mmap the file at a fixed address which already has
33640 something else allocated at it. If we can, also make sure that
33641 we see the same garbage. */
33642 fd = open ("conftest.mmap", O_RDWR);
33645 data2 = (char *) malloc (2 * pagesize);
33648 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33649 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33650 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33652 for (i = 0; i < pagesize; ++i)
33653 if (*(data + i) != *(data2 + i))
33656 /* Finally, make sure that changes to the mapped area do not
33657 percolate back to the file as seen by read(). (This is a bug on
33658 some variants of i386 svr4.0.) */
33659 for (i = 0; i < pagesize; ++i)
33660 *(data2 + i) = *(data2 + i) + 1;
33661 data3 = (char *) malloc (pagesize);
33664 if (read (fd, data3, pagesize) != pagesize)
33666 for (i = 0; i < pagesize; ++i)
33667 if (*(data + i) != *(data3 + i))
33673 rm -f conftest$ac_exeext
33674 if { (ac_try="$ac_link"
33675 case "(($ac_try" in
33676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33677 *) ac_try_echo=$ac_try;;
33679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33680 (eval "$ac_link") 2>&5
33682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33684 { (case "(($ac_try" in
33685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33686 *) ac_try_echo=$ac_try;;
33688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33689 (eval "$ac_try") 2>&5
33691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33692 (exit $ac_status); }; }; then
33693 ac_cv_func_mmap_fixed_mapped=yes
33695 echo "$as_me: program exited with status $ac_status" >&5
33696 echo "$as_me: failed program was:" >&5
33697 sed 's/^/| /' conftest.$ac_ext >&5
33699 ( exit $ac_status )
33700 ac_cv_func_mmap_fixed_mapped=no
33702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33707 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33708 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33709 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33711 cat >>confdefs.h <<\_ACEOF
33712 #define HAVE_MMAP 1
33716 rm -f conftest.mmap
33718 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33719 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33720 if test "${ac_cv_func_mmap_file+set}" = set; then
33721 echo $ECHO_N "(cached) $ECHO_C" >&6
33724 ac_cpp='$CPP $CPPFLAGS'
33725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33729 if test "$cross_compiling" = yes; then
33730 ac_cv_func_mmap_file=no
33732 cat >conftest.$ac_ext <<_ACEOF
33736 cat confdefs.h >>conftest.$ac_ext
33737 cat >>conftest.$ac_ext <<_ACEOF
33738 /* end confdefs.h. */
33740 #include <sys/types.h>
33741 #include <sys/mman.h>
33749 fd = creat ("foo",0777);
33750 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33752 return (fd != (int) MAP_FAILED);
33757 rm -f conftest$ac_exeext
33758 if { (ac_try="$ac_link"
33759 case "(($ac_try" in
33760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33761 *) ac_try_echo=$ac_try;;
33763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33764 (eval "$ac_link") 2>&5
33766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33768 { (case "(($ac_try" in
33769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33770 *) ac_try_echo=$ac_try;;
33772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33773 (eval "$ac_try") 2>&5
33775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33776 (exit $ac_status); }; }; then
33777 ac_cv_func_mmap_file=yes
33779 echo "$as_me: program exited with status $ac_status" >&5
33780 echo "$as_me: failed program was:" >&5
33781 sed 's/^/| /' conftest.$ac_ext >&5
33783 ( exit $ac_status )
33784 ac_cv_func_mmap_file=no
33786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33791 ac_cpp='$CPP $CPPFLAGS'
33792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33798 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33799 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33800 if test "$ac_cv_func_mmap_file" = yes; then
33802 cat >>confdefs.h <<\_ACEOF
33803 #define HAVE_MMAP_FILE
33810 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33811 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33812 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33813 echo $ECHO_N "(cached) $ECHO_C" >&6
33815 if test "$llvm_cv_os_type" = "Interix" ; then
33816 ac_cv_need_dev_zero_for_mmap=yes
33818 ac_cv_need_dev_zero_for_mmap=no
33822 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33823 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33824 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33826 cat >>confdefs.h <<\_ACEOF
33827 #define NEED_DEV_ZERO_FOR_MMAP 1
33832 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33834 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33835 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33837 if test "$ac_cv_func_mmap_file" = "no"
33839 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33840 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33846 for ac_func in __dso_handle
33848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33852 echo $ECHO_N "(cached) $ECHO_C" >&6
33854 cat >conftest.$ac_ext <<_ACEOF
33857 cat confdefs.h >>conftest.$ac_ext
33858 cat >>conftest.$ac_ext <<_ACEOF
33859 /* end confdefs.h. */
33860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33862 #define $ac_func innocuous_$ac_func
33864 /* System header to define __stub macros and hopefully few prototypes,
33865 which can conflict with char $ac_func (); below.
33866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33867 <limits.h> exists even on freestanding compilers. */
33870 # include <limits.h>
33872 # include <assert.h>
33877 /* Override any GCC internal prototype to avoid an error.
33878 Use char because int might match the return type of a GCC
33879 builtin and then its argument prototype would still apply. */
33884 /* The GNU C library defines this for functions which it implements
33885 to always fail with ENOSYS. Some functions are actually named
33886 something starting with __ and the normal name is an alias. */
33887 #if defined __stub_$ac_func || defined __stub___$ac_func
33894 return $ac_func ();
33899 rm -f conftest.$ac_objext conftest$ac_exeext
33900 if { (ac_try="$ac_link"
33901 case "(($ac_try" in
33902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33903 *) ac_try_echo=$ac_try;;
33905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33906 (eval "$ac_link") 2>conftest.er1
33908 grep -v '^ *+' conftest.er1 >conftest.err
33910 cat conftest.err >&5
33911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33912 (exit $ac_status); } &&
33913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33914 { (case "(($ac_try" in
33915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33916 *) ac_try_echo=$ac_try;;
33918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33919 (eval "$ac_try") 2>&5
33921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33922 (exit $ac_status); }; } &&
33923 { ac_try='test -s conftest$ac_exeext'
33924 { (case "(($ac_try" in
33925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33926 *) ac_try_echo=$ac_try;;
33928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33929 (eval "$ac_try") 2>&5
33931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932 (exit $ac_status); }; }; then
33933 eval "$as_ac_var=yes"
33935 echo "$as_me: failed program was:" >&5
33936 sed 's/^/| /' conftest.$ac_ext >&5
33938 eval "$as_ac_var=no"
33941 rm -f core conftest.err conftest.$ac_objext \
33942 conftest$ac_exeext conftest.$ac_ext
33944 ac_res=`eval echo '${'$as_ac_var'}'`
33945 { echo "$as_me:$LINENO: result: $ac_res" >&5
33946 echo "${ECHO_T}$ac_res" >&6; }
33947 if test `eval echo '${'$as_ac_var'}'` = yes; then
33948 cat >>confdefs.h <<_ACEOF
33949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33956 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33957 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33958 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33959 echo $ECHO_N "(cached) $ECHO_C" >&6
33961 llvm_cv_llvmgcc_sanity="no"
33962 if test -x "$LLVMGCC" ; then
33963 cp /dev/null conftest.c
33964 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33965 grep 'target datalayout =' > /dev/null 2>&1
33966 if test $? -eq 0 ; then
33967 llvm_cv_llvmgcc_sanity="yes"
33972 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33973 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33975 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33976 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33977 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33978 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33979 LLVMCC1=$llvmcc1path
33981 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33982 LLVMCC1PLUS=$llvmcc1pluspath
33984 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33985 LLVMGCCDIR=$llvmgccdir
33987 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33988 LLVMGCCLIBEXEC=$llvmgcclibexec
33990 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33991 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33992 LLVMGCC_VERSION=$llvmgccversion
33994 LLVMGCC_MAJVERS=$llvmgccmajvers
33996 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
33997 LLVMGCC_LANGS=$llvmgcclangs
33999 { echo "$as_me:$LINENO: result: ok" >&5
34000 echo "${ECHO_T}ok" >&6; }
34003 SHLIBEXT=$libltdl_cv_shlibext
34006 # Translate the various configuration directories and other basic
34007 # information into substitutions that will end up in Makefile.config.in
34008 # that these configured values can be used by the makefiles
34009 if test "${prefix}" = "NONE" ; then
34010 prefix="/usr/local"
34012 eval LLVM_PREFIX="${prefix}";
34013 eval LLVM_BINDIR="${prefix}/bin";
34014 eval LLVM_LIBDIR="${prefix}/lib";
34015 eval LLVM_DATADIR="${prefix}/share/llvm";
34016 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34017 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34018 eval LLVM_INCLUDEDIR="${prefix}/include";
34019 eval LLVM_INFODIR="${prefix}/info";
34020 eval LLVM_MANDIR="${prefix}/man";
34021 LLVM_CONFIGTIME=`date`
34033 # Place the various directores into the config.h file as #defines so that we
34034 # can know about the installation paths within LLVM.
34036 cat >>confdefs.h <<_ACEOF
34037 #define LLVM_PREFIX "$LLVM_PREFIX"
34041 cat >>confdefs.h <<_ACEOF
34042 #define LLVM_BINDIR "$LLVM_BINDIR"
34046 cat >>confdefs.h <<_ACEOF
34047 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34051 cat >>confdefs.h <<_ACEOF
34052 #define LLVM_DATADIR "$LLVM_DATADIR"
34056 cat >>confdefs.h <<_ACEOF
34057 #define LLVM_DATADIR "$LLVM_DOCSDIR"
34061 cat >>confdefs.h <<_ACEOF
34062 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34066 cat >>confdefs.h <<_ACEOF
34067 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34071 cat >>confdefs.h <<_ACEOF
34072 #define LLVM_INFODIR "$LLVM_INFODIR"
34076 cat >>confdefs.h <<_ACEOF
34077 #define LLVM_MANDIR "$LLVM_MANDIR"
34081 cat >>confdefs.h <<_ACEOF
34082 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34087 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34089 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34091 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34093 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34095 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34098 ac_config_files="$ac_config_files Makefile.config"
34101 ac_config_files="$ac_config_files llvm.spec"
34104 ac_config_files="$ac_config_files docs/doxygen.cfg"
34107 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34110 ac_config_commands="$ac_config_commands setup"
34112 ac_config_commands="$ac_config_commands Makefile"
34115 ac_config_commands="$ac_config_commands Makefile.common"
34118 ac_config_commands="$ac_config_commands examples/Makefile"
34121 ac_config_commands="$ac_config_commands lib/Makefile"
34124 ac_config_commands="$ac_config_commands runtime/Makefile"
34127 ac_config_commands="$ac_config_commands test/Makefile"
34130 ac_config_commands="$ac_config_commands test/Makefile.tests"
34133 ac_config_commands="$ac_config_commands tools/Makefile"
34136 ac_config_commands="$ac_config_commands utils/Makefile"
34139 ac_config_commands="$ac_config_commands projects/Makefile"
34143 cat >confcache <<\_ACEOF
34144 # This file is a shell script that caches the results of configure
34145 # tests run on this system so they can be shared between configure
34146 # scripts and configure runs, see configure's option --config-cache.
34147 # It is not useful on other systems. If it contains results you don't
34148 # want to keep, you may remove or edit it.
34150 # config.status only pays attention to the cache file if you give it
34151 # the --recheck option to rerun configure.
34153 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34154 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34155 # following values.
34159 # The following way of writing the cache mishandles newlines in values,
34160 # but we know of no workaround that is simple, portable, and efficient.
34161 # So, we kill variables containing newlines.
34162 # Ultrix sh set writes to stderr and can't be redirected directly,
34163 # and sets the high bit in the cache file unless we assign to the vars.
34165 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34166 eval ac_val=\$$ac_var
34170 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34171 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34174 _ | IFS | as_nl) ;; #(
34175 *) $as_unset $ac_var ;;
34181 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34182 *${as_nl}ac_space=\ *)
34183 # `set' does not quote correctly, so add quotes (double-quote
34184 # substitution turns \\\\ into \\, and sed turns \\ into \).
34187 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34190 # `set' quotes correctly as required by POSIX, so do not add quotes.
34191 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34200 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34202 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34204 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34205 if test -w "$cache_file"; then
34206 test "x$cache_file" != "x/dev/null" &&
34207 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34208 echo "$as_me: updating cache $cache_file" >&6;}
34209 cat confcache >$cache_file
34211 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34212 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34217 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34218 # Let make expand exec_prefix.
34219 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34221 DEFS=-DHAVE_CONFIG_H
34225 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34226 # 1. Remove the extension, and $U if already installed.
34227 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34228 ac_i=`echo "$ac_i" | sed "$ac_script"`
34229 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34230 # will be set to the directory where LIBOBJS objects are built.
34231 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34232 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34234 LIBOBJS=$ac_libobjs
34236 LTLIBOBJS=$ac_ltlibobjs
34239 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34240 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34241 Usually this means the macro was only invoked conditionally." >&5
34242 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34243 Usually this means the macro was only invoked conditionally." >&2;}
34244 { (exit 1); exit 1; }; }
34246 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34247 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34248 Usually this means the macro was only invoked conditionally." >&5
34249 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34250 Usually this means the macro was only invoked conditionally." >&2;}
34251 { (exit 1); exit 1; }; }
34254 : ${CONFIG_STATUS=./config.status}
34255 ac_clean_files_save=$ac_clean_files
34256 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34257 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34258 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34259 cat >$CONFIG_STATUS <<_ACEOF
34261 # Generated by $as_me.
34262 # Run this file to recreate the current configuration.
34263 # Compiler output produced by configure, useful for debugging
34264 # configure, is in config.log if it exists.
34267 ac_cs_recheck=false
34269 SHELL=\${CONFIG_SHELL-$SHELL}
34272 cat >>$CONFIG_STATUS <<\_ACEOF
34273 ## --------------------- ##
34274 ## M4sh Initialization. ##
34275 ## --------------------- ##
34277 # Be Bourne compatible
34278 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34281 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34282 # is contrary to our usage. Disable this feature.
34283 alias -g '${1+"$@"}'='"$@"'
34284 setopt NO_GLOB_SUBST
34286 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34288 BIN_SH=xpg4; export BIN_SH # for Tru64
34289 DUALCASE=1; export DUALCASE # for MKS sh
34293 # Avoid depending upon Character Ranges.
34294 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34295 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34296 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34297 as_cr_digits='0123456789'
34298 as_cr_alnum=$as_cr_Letters$as_cr_digits
34300 # The user is always right.
34301 if test "${PATH_SEPARATOR+set}" != set; then
34302 echo "#! /bin/sh" >conf$$.sh
34303 echo "exit 0" >>conf$$.sh
34305 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34313 # Support unset when possible.
34314 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34322 # We need space, tab and new line, in precisely that order. Quoting is
34323 # there to prevent editors from complaining about space-tab.
34324 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34325 # splitting by setting IFS to empty value.)
34330 # Find who we are. Look in the path if we contain no directory separator.
34332 *[\\/]* ) as_myself=$0 ;;
34333 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34334 for as_dir in $PATH
34337 test -z "$as_dir" && as_dir=.
34338 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34344 # We did not find ourselves, most probably we were run as `sh COMMAND'
34345 # in which case we are not to be found in the path.
34346 if test "x$as_myself" = x; then
34349 if test ! -f "$as_myself"; then
34350 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34351 { (exit 1); exit 1; }
34354 # Work around bugs in pre-3.0 UWIN ksh.
34355 for as_var in ENV MAIL MAILPATH
34356 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34364 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34365 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34366 LC_TELEPHONE LC_TIME
34368 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34369 eval $as_var=C; export $as_var
34371 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34375 # Required to use basename.
34376 if expr a : '\(a\)' >/dev/null 2>&1 &&
34377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34384 as_basename=basename
34390 # Name of the executable.
34391 as_me=`$as_basename -- "$0" ||
34392 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34393 X"$0" : 'X\(//\)$' \| \
34394 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34396 sed '/^.*\/\([^/][^/]*\)\/*$/{
34415 as_lineno_1=$LINENO
34416 as_lineno_2=$LINENO
34417 test "x$as_lineno_1" != "x$as_lineno_2" &&
34418 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34420 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34421 # uniformly replaced by the line number. The first 'sed' inserts a
34422 # line-number line after each line using $LINENO; the second 'sed'
34423 # does the real work. The second script uses 'N' to pair each
34424 # line-number line with the line containing $LINENO, and appends
34425 # trailing '-' during substitution so that $LINENO is not a special
34426 # case at line end.
34427 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34428 # scripts with optimization help from Paolo Bonzini. Blame Lee
34429 # E. McMahon (1931-1989) for sed's syntax. :-)
34441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34444 ' >$as_me.lineno &&
34445 chmod +x "$as_me.lineno" ||
34446 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34447 { (exit 1); exit 1; }; }
34449 # Don't try to exec as it changes $[0], causing all sort of problems
34450 # (the dirname of $[0] is not the place where we might find the
34451 # original and so on. Autoconf is especially sensitive to this).
34452 . "./$as_me.lineno"
34453 # Exit status is that of the last command.
34458 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34464 ECHO_C= ECHO_N= ECHO_T=
34465 case `echo -n x` in
34467 case `echo 'x\c'` in
34468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34475 if expr a : '\(a\)' >/dev/null 2>&1 &&
34476 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34482 rm -f conf$$ conf$$.exe conf$$.file
34483 if test -d conf$$.dir; then
34484 rm -f conf$$.dir/conf$$.file
34490 if ln -s conf$$.file conf$$ 2>/dev/null; then
34492 # ... but there are two gotchas:
34493 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34494 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34495 # In both cases, we have to default to `cp -p'.
34496 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34498 elif ln conf$$.file conf$$ 2>/dev/null; then
34503 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34504 rmdir conf$$.dir 2>/dev/null
34506 if mkdir -p . 2>/dev/null; then
34509 test -d ./-p && rmdir ./-p
34513 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34514 # systems may use methods other than mode bits to determine executability.
34515 cat >conf$$.file <<_ASEOF
34519 chmod +x conf$$.file
34520 if test -x conf$$.file >/dev/null 2>&1; then
34521 as_executable_p="test -x"
34527 # Sed expression to map a string onto a valid CPP name.
34528 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34530 # Sed expression to map a string onto a valid variable name.
34531 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34536 # Save the log message, to keep $[0] and so on meaningful, and to
34537 # report actual input values of CONFIG_FILES etc. instead of their
34538 # values after options handling.
34540 This file was extended by llvm $as_me 2.2svn, which was
34541 generated by GNU Autoconf 2.60. Invocation command line was
34543 CONFIG_FILES = $CONFIG_FILES
34544 CONFIG_HEADERS = $CONFIG_HEADERS
34545 CONFIG_LINKS = $CONFIG_LINKS
34546 CONFIG_COMMANDS = $CONFIG_COMMANDS
34549 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34554 cat >>$CONFIG_STATUS <<_ACEOF
34555 # Files that config.status was made for.
34556 config_files="$ac_config_files"
34557 config_headers="$ac_config_headers"
34558 config_commands="$ac_config_commands"
34562 cat >>$CONFIG_STATUS <<\_ACEOF
34564 \`$as_me' instantiates files from templates according to the
34565 current configuration.
34567 Usage: $0 [OPTIONS] [FILE]...
34569 -h, --help print this help, then exit
34570 -V, --version print version number, then exit
34571 -q, --quiet do not print progress messages
34572 -d, --debug don't remove temporary files
34573 --recheck update $as_me by reconfiguring in the same conditions
34574 --file=FILE[:TEMPLATE]
34575 instantiate the configuration file FILE
34576 --header=FILE[:TEMPLATE]
34577 instantiate the configuration header FILE
34579 Configuration files:
34582 Configuration headers:
34585 Configuration commands:
34588 Report bugs to <bug-autoconf@gnu.org>."
34591 cat >>$CONFIG_STATUS <<_ACEOF
34593 llvm config.status 2.2svn
34594 configured by $0, generated by GNU Autoconf 2.60,
34595 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34597 Copyright (C) 2006 Free Software Foundation, Inc.
34598 This config.status script is free software; the Free Software Foundation
34599 gives unlimited permission to copy, distribute and modify it."
34606 cat >>$CONFIG_STATUS <<\_ACEOF
34607 # If no file are specified by the user, then we need to provide default
34608 # value. By we need to know if files were specified by the user.
34614 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34615 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34626 # Handling of the options.
34627 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34629 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34630 echo "$ac_cs_version"; exit ;;
34631 --debug | --debu | --deb | --de | --d | -d )
34633 --file | --fil | --fi | --f )
34635 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34636 ac_need_defaults=false;;
34637 --header | --heade | --head | --hea )
34639 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34640 ac_need_defaults=false;;
34642 # Conflict between --help and --header
34643 { echo "$as_me: error: ambiguous option: $1
34644 Try \`$0 --help' for more information." >&2
34645 { (exit 1); exit 1; }; };;
34646 --help | --hel | -h )
34647 echo "$ac_cs_usage"; exit ;;
34648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34649 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34652 # This is an error.
34653 -*) { echo "$as_me: error: unrecognized option: $1
34654 Try \`$0 --help' for more information." >&2
34655 { (exit 1); exit 1; }; } ;;
34657 *) ac_config_targets="$ac_config_targets $1"
34658 ac_need_defaults=false ;;
34664 ac_configure_extra_args=
34666 if $ac_cs_silent; then
34668 ac_configure_extra_args="$ac_configure_extra_args --silent"
34672 cat >>$CONFIG_STATUS <<_ACEOF
34673 if \$ac_cs_recheck; then
34674 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34675 CONFIG_SHELL=$SHELL
34676 export CONFIG_SHELL
34677 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34681 cat >>$CONFIG_STATUS <<\_ACEOF
34685 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34686 ## Running $as_me. ##
34692 cat >>$CONFIG_STATUS <<_ACEOF
34696 llvm_src="${srcdir}"
34700 cat >>$CONFIG_STATUS <<\_ACEOF
34702 # Handling of arguments.
34703 for ac_config_target in $ac_config_targets
34705 case $ac_config_target in
34706 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34707 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34708 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34709 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34710 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34711 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34712 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34713 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34714 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34715 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34716 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34717 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34718 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34719 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34720 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34721 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34722 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34723 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34724 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34725 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34727 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34728 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34729 { (exit 1); exit 1; }; };;
34734 # If the user did not use the arguments to specify the items to instantiate,
34735 # then the envvar interface is used. Set only those that are not.
34736 # We use the long form for the default assignment because of an extremely
34737 # bizarre bug on SunOS 4.1.3.
34738 if $ac_need_defaults; then
34739 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34740 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34741 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34744 # Have a temporary directory for convenience. Make it in the build tree
34745 # simply because there is no reason against having it here, and in addition,
34746 # creating and moving files from /tmp can sometimes cause problems.
34747 # Hook for its removal unless debugging.
34748 # Note that there is a small window in which the directory will not be cleaned:
34749 # after its creation but before its name has been assigned to `$tmp'.
34753 trap 'exit_status=$?
34754 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34756 trap '{ (exit 1); exit 1; }' 1 2 13 15
34758 # Create a (secure) tmp directory for tmp files.
34761 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34762 test -n "$tmp" && test -d "$tmp"
34765 tmp=./conf$$-$RANDOM
34766 (umask 077 && mkdir "$tmp")
34769 echo "$me: cannot create a temporary directory in ." >&2
34770 { (exit 1); exit 1; }
34774 # Set up the sed scripts for CONFIG_FILES section.
34777 # No need to generate the scripts if there are no CONFIG_FILES.
34778 # This happens for instance when ./config.status config.h
34779 if test -n "$CONFIG_FILES"; then
34786 for ac_last_try in false false false false false :; do
34787 cat >conf$$subs.sed <<_ACEOF
34788 SHELL!$SHELL$ac_delim
34789 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34790 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34791 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34792 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34793 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34794 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34795 exec_prefix!$exec_prefix$ac_delim
34796 prefix!$prefix$ac_delim
34797 program_transform_name!$program_transform_name$ac_delim
34798 bindir!$bindir$ac_delim
34799 sbindir!$sbindir$ac_delim
34800 libexecdir!$libexecdir$ac_delim
34801 datarootdir!$datarootdir$ac_delim
34802 datadir!$datadir$ac_delim
34803 sysconfdir!$sysconfdir$ac_delim
34804 sharedstatedir!$sharedstatedir$ac_delim
34805 localstatedir!$localstatedir$ac_delim
34806 includedir!$includedir$ac_delim
34807 oldincludedir!$oldincludedir$ac_delim
34808 docdir!$docdir$ac_delim
34809 infodir!$infodir$ac_delim
34810 htmldir!$htmldir$ac_delim
34811 dvidir!$dvidir$ac_delim
34812 pdfdir!$pdfdir$ac_delim
34813 psdir!$psdir$ac_delim
34814 libdir!$libdir$ac_delim
34815 localedir!$localedir$ac_delim
34816 mandir!$mandir$ac_delim
34817 DEFS!$DEFS$ac_delim
34818 ECHO_C!$ECHO_C$ac_delim
34819 ECHO_N!$ECHO_N$ac_delim
34820 ECHO_T!$ECHO_T$ac_delim
34821 LIBS!$LIBS$ac_delim
34822 build_alias!$build_alias$ac_delim
34823 host_alias!$host_alias$ac_delim
34824 target_alias!$target_alias$ac_delim
34825 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34826 subdirs!$subdirs$ac_delim
34827 build!$build$ac_delim
34828 build_cpu!$build_cpu$ac_delim
34829 build_vendor!$build_vendor$ac_delim
34830 build_os!$build_os$ac_delim
34831 host!$host$ac_delim
34832 host_cpu!$host_cpu$ac_delim
34833 host_vendor!$host_vendor$ac_delim
34834 host_os!$host_os$ac_delim
34835 target!$target$ac_delim
34836 target_cpu!$target_cpu$ac_delim
34837 target_vendor!$target_vendor$ac_delim
34838 target_os!$target_os$ac_delim
34840 LINKALL!$LINKALL$ac_delim
34841 NOLINKALL!$NOLINKALL$ac_delim
34842 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34843 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34844 ARCH!$ARCH$ac_delim
34845 ENDIAN!$ENDIAN$ac_delim
34847 CFLAGS!$CFLAGS$ac_delim
34848 LDFLAGS!$LDFLAGS$ac_delim
34849 CPPFLAGS!$CPPFLAGS$ac_delim
34850 ac_ct_CC!$ac_ct_CC$ac_delim
34851 EXEEXT!$EXEEXT$ac_delim
34852 OBJEXT!$OBJEXT$ac_delim
34854 GREP!$GREP$ac_delim
34855 EGREP!$EGREP$ac_delim
34856 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34857 BUILD_CC!$BUILD_CC$ac_delim
34858 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34859 CVSBUILD!$CVSBUILD$ac_delim
34860 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34861 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34862 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34863 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34864 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34866 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34867 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34868 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34869 ENABLE_PIC!$ENABLE_PIC$ac_delim
34870 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34871 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34872 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34874 CXXFLAGS!$CXXFLAGS$ac_delim
34875 ac_ct_CXX!$ac_ct_CXX$ac_delim
34877 LEXLIB!$LEXLIB$ac_delim
34878 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34879 FLEX!$FLEX$ac_delim
34880 YACC!$YACC$ac_delim
34881 YFLAGS!$YFLAGS$ac_delim
34882 BISON!$BISON$ac_delim
34884 ifGNUmake!$ifGNUmake$ac_delim
34887 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34889 elif $ac_last_try; then
34890 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34891 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34892 { (exit 1); exit 1; }; }
34894 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34898 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34899 if test -n "$ac_eof"; then
34900 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34901 ac_eof=`expr $ac_eof + 1`
34904 cat >>$CONFIG_STATUS <<_ACEOF
34905 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34906 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34909 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34910 s/^/s,@/; s/!/@,|#_!!_#|/
34913 s/'"$ac_delim"'$/,g/; t
34915 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34916 ' >>$CONFIG_STATUS <conf$$subs.sed
34917 rm -f conf$$subs.sed
34918 cat >>$CONFIG_STATUS <<_ACEOF
34924 for ac_last_try in false false false false false :; do
34925 cat >conf$$subs.sed <<_ACEOF
34926 LN_S!$LN_S$ac_delim
34929 DATE!$DATE$ac_delim
34930 FIND!$FIND$ac_delim
34931 MKDIR!$MKDIR$ac_delim
34933 RANLIB!$RANLIB$ac_delim
34937 BINPWD!$BINPWD$ac_delim
34938 GRAPHVIZ!$GRAPHVIZ$ac_delim
34941 DOTTY!$DOTTY$ac_delim
34942 PERL!$PERL$ac_delim
34943 HAVE_PERL!$HAVE_PERL$ac_delim
34944 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34945 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34946 INSTALL_DATA!$INSTALL_DATA$ac_delim
34947 BZIP2!$BZIP2$ac_delim
34948 DOXYGEN!$DOXYGEN$ac_delim
34949 GROFF!$GROFF$ac_delim
34950 GZIP!$GZIP$ac_delim
34951 POD2HTML!$POD2HTML$ac_delim
34952 POD2MAN!$POD2MAN$ac_delim
34953 RUNTEST!$RUNTEST$ac_delim
34954 TCLSH!$TCLSH$ac_delim
34956 OCAMLC!$OCAMLC$ac_delim
34957 OCAMLOPT!$OCAMLOPT$ac_delim
34958 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34959 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34960 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34961 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34962 LIBADD_DL!$LIBADD_DL$ac_delim
34963 ECHO!$ECHO$ac_delim
34965 STRIP!$STRIP$ac_delim
34966 CXXCPP!$CXXCPP$ac_delim
34968 FFLAGS!$FFLAGS$ac_delim
34969 ac_ct_F77!$ac_ct_F77$ac_delim
34970 LIBTOOL!$LIBTOOL$ac_delim
34971 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34972 LLVMGCC!$LLVMGCC$ac_delim
34973 LLVMGXX!$LLVMGXX$ac_delim
34974 USE_UDIS86!$USE_UDIS86$ac_delim
34975 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34976 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34977 ALLOCA!$ALLOCA$ac_delim
34978 MMAP_FILE!$MMAP_FILE$ac_delim
34979 LLVMCC1!$LLVMCC1$ac_delim
34980 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34981 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34982 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34983 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34984 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34985 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
34986 SHLIBEXT!$SHLIBEXT$ac_delim
34987 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34988 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34989 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34990 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34991 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34992 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34993 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34994 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34995 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34996 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34997 LIBOBJS!$LIBOBJS$ac_delim
34998 LTLIBOBJS!$LTLIBOBJS$ac_delim
35001 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
35003 elif $ac_last_try; then
35004 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35005 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35006 { (exit 1); exit 1; }; }
35008 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35012 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35013 if test -n "$ac_eof"; then
35014 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35015 ac_eof=`expr $ac_eof + 1`
35018 cat >>$CONFIG_STATUS <<_ACEOF
35019 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35020 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35023 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35024 s/^/s,@/; s/!/@,|#_!!_#|/
35027 s/'"$ac_delim"'$/,g/; t
35029 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35030 ' >>$CONFIG_STATUS <conf$$subs.sed
35031 rm -f conf$$subs.sed
35032 cat >>$CONFIG_STATUS <<_ACEOF
35039 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35040 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35041 # trailing colons and then remove the whole line if VPATH becomes empty
35042 # (actually we leave an empty line to preserve line numbers).
35043 if test "x$srcdir" = x.; then
35044 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35045 s/:*\$(srcdir):*/:/
35046 s/:*\${srcdir}:*/:/
35048 s/^\([^=]*=[ ]*\):*/\1/
35054 cat >>$CONFIG_STATUS <<\_ACEOF
35055 fi # test -n "$CONFIG_FILES"
35058 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35061 :[FHLC]) ac_mode=$ac_tag; continue;;
35063 case $ac_mode$ac_tag in
35065 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35066 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35067 { (exit 1); exit 1; }; };;
35068 :[FH]-) ac_tag=-:-;;
35069 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35086 -) ac_f="$tmp/stdin";;
35087 *) # Look for the file first in the build tree, then in the source tree
35088 # (if the path is not absolute). The absolute path cannot be DOS-style,
35089 # because $ac_f cannot contain `:'.
35093 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35095 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35096 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35097 { (exit 1); exit 1; }; };;
35099 ac_file_inputs="$ac_file_inputs $ac_f"
35102 # Let's still pretend it is `configure' which instantiates (i.e., don't
35103 # use $as_me), people would be surprised to read:
35104 # /* config.h. Generated by config.status. */
35105 configure_input="Generated from "`IFS=:
35106 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35107 if test x"$ac_file" != x-; then
35108 configure_input="$ac_file. $configure_input"
35109 { echo "$as_me:$LINENO: creating $ac_file" >&5
35110 echo "$as_me: creating $ac_file" >&6;}
35114 *:-:* | *:-) cat >"$tmp/stdin";;
35119 ac_dir=`$as_dirname -- "$ac_file" ||
35120 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35121 X"$ac_file" : 'X\(//\)[^/]' \| \
35122 X"$ac_file" : 'X\(//\)$' \| \
35123 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35129 /^X\(\/\/\)[^/].*/{
35144 -*) as_dir=./$as_dir;;
35146 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35150 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35151 *) as_qdir=$as_dir;;
35153 as_dirs="'$as_qdir' $as_dirs"
35154 as_dir=`$as_dirname -- "$as_dir" ||
35155 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35156 X"$as_dir" : 'X\(//\)[^/]' \| \
35157 X"$as_dir" : 'X\(//\)$' \| \
35158 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35164 /^X\(\/\/\)[^/].*/{
35177 test -d "$as_dir" && break
35179 test -z "$as_dirs" || eval "mkdir $as_dirs"
35180 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35181 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35182 { (exit 1); exit 1; }; }; }
35186 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35188 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35189 # A ".." for each directory in $ac_dir_suffix.
35190 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35191 case $ac_top_builddir_sub in
35192 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35193 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35196 ac_abs_top_builddir=$ac_pwd
35197 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35198 # for backward compatibility:
35199 ac_top_builddir=$ac_top_build_prefix
35202 .) # We are building in place.
35204 ac_top_srcdir=$ac_top_builddir_sub
35205 ac_abs_top_srcdir=$ac_pwd ;;
35206 [\\/]* | ?:[\\/]* ) # Absolute name.
35207 ac_srcdir=$srcdir$ac_dir_suffix;
35208 ac_top_srcdir=$srcdir
35209 ac_abs_top_srcdir=$srcdir ;;
35210 *) # Relative name.
35211 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35212 ac_top_srcdir=$ac_top_build_prefix$srcdir
35213 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35215 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35225 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35226 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35230 cat >>$CONFIG_STATUS <<\_ACEOF
35231 # If the template does not know about datarootdir, expand it.
35232 # FIXME: This hack should be removed a few years after 2.60.
35233 ac_datarootdir_hack=; ac_datarootdir_seen=
35235 case `sed -n '/datarootdir/ {
35244 ' $ac_file_inputs` in
35245 *datarootdir*) ac_datarootdir_seen=yes;;
35246 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35247 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35248 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35250 cat >>$CONFIG_STATUS <<_ACEOF
35251 ac_datarootdir_hack='
35252 s&@datadir@&$datadir&g
35253 s&@docdir@&$docdir&g
35254 s&@infodir@&$infodir&g
35255 s&@localedir@&$localedir&g
35256 s&@mandir@&$mandir&g
35257 s&\\\${datarootdir}&$datarootdir&g' ;;
35261 # Neutralize VPATH when `$srcdir' = `.'.
35262 # Shell code in configure.ac might set extrasub.
35263 # FIXME: do we really want to maintain this feature?
35264 cat >>$CONFIG_STATUS <<_ACEOF
35268 cat >>$CONFIG_STATUS <<\_ACEOF
35270 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35271 s&@configure_input@&$configure_input&;t t
35272 s&@top_builddir@&$ac_top_builddir_sub&;t t
35273 s&@srcdir@&$ac_srcdir&;t t
35274 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35275 s&@top_srcdir@&$ac_top_srcdir&;t t
35276 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35277 s&@builddir@&$ac_builddir&;t t
35278 s&@abs_builddir@&$ac_abs_builddir&;t t
35279 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35280 s&@INSTALL@&$ac_INSTALL&;t t
35281 $ac_datarootdir_hack
35282 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35284 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35285 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35286 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35287 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35288 which seems to be undefined. Please make sure it is defined." >&5
35289 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35290 which seems to be undefined. Please make sure it is defined." >&2;}
35294 -) cat "$tmp/out"; rm -f "$tmp/out";;
35295 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35304 # Transform confdefs.h into a sed script `conftest.defines', that
35305 # substitutes the proper values into config.h.in to produce config.h.
35306 rm -f conftest.defines conftest.tail
35307 # First, append a space to every undef/define line, to ease matching.
35308 echo 's/$/ /' >conftest.defines
35309 # Then, protect against being on the right side of a sed subst, or in
35310 # an unquoted here document, in config.status. If some macros were
35311 # called several times there might be several #defines for the same
35312 # symbol, which is useless. But do not sort them, since the last
35313 # AC_DEFINE must be honored.
35314 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35315 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35316 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35317 # PARAMS is the parameter list in the macro definition--in most cases, it's
35318 # just an empty string.
35319 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35320 ac_dB='\\)[ (].*,\\1define\\2'
35328 s/^[ ]*#[ ]*define[ ][ ]*//
35333 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35334 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35335 ' >>conftest.defines
35337 # Remove the space that was appended to ease matching.
35338 # Then replace #undef with comments. This is necessary, for
35339 # example, in the case of _POSIX_SOURCE, which is predefined and required
35340 # on some systems where configure will not decide to define it.
35341 # (The regexp can be short, since the line contains either #define or #undef.)
35343 s,^[ #]*u.*,/* & */,' >>conftest.defines
35345 # Break up conftest.defines:
35346 ac_max_sed_lines=50
35348 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35349 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35350 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35352 ac_in='$ac_file_inputs'
35353 ac_out='"$tmp/out1"'
35354 ac_nxt='"$tmp/out2"'
35358 # Write a here document:
35359 cat >>$CONFIG_STATUS <<_ACEOF
35360 # First, check the format of the line:
35361 cat >"\$tmp/defines.sed" <<\\CEOF
35362 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35363 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35367 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35369 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35370 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35371 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35372 grep . conftest.tail >/dev/null || break
35373 rm -f conftest.defines
35374 mv conftest.tail conftest.defines
35376 rm -f conftest.defines conftest.tail
35378 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35379 cat >>$CONFIG_STATUS <<\_ACEOF
35380 if test x"$ac_file" != x-; then
35381 echo "/* $configure_input */" >"$tmp/config.h"
35382 cat "$ac_result" >>"$tmp/config.h"
35383 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35384 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35385 echo "$as_me: $ac_file is unchanged" >&6;}
35388 mv "$tmp/config.h" $ac_file
35391 echo "/* $configure_input */"
35397 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35398 echo "$as_me: executing $ac_file commands" >&6;}
35403 case $ac_file$ac_mode in
35404 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35405 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35406 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35407 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35408 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35409 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35410 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35411 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35412 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35413 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35414 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35415 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35416 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35417 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35418 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35419 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35420 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35421 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35422 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35423 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35429 { (exit 0); exit 0; }
35431 chmod +x $CONFIG_STATUS
35432 ac_clean_files=$ac_clean_files_save
35435 # configure is writing to config.log, and then calls config.status.
35436 # config.status does its own redirection, appending to config.log.
35437 # Unfortunately, on DOS this fails, as config.log is still kept open
35438 # by configure, so config.status won't be able to write to it; its
35439 # output is simply discarded. So we exec the FD to /dev/null,
35440 # effectively closing config.log, so it can be properly (re)opened and
35441 # appended to by config.status. When coming back to configure, we
35442 # need to make the FD available again.
35443 if test "$no_create" != yes; then
35445 ac_config_status_args=
35446 test "$silent" = yes &&
35447 ac_config_status_args="$ac_config_status_args --quiet"
35449 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35451 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35452 # would make configure fail if this is the last instruction.
35453 $ac_cs_success || { (exit 1); exit 1; }
35457 # CONFIG_SUBDIRS section.
35459 if test "$no_recursion" != yes; then
35461 # Remove --cache-file and --srcdir arguments so they do not pile up.
35462 ac_sub_configure_args=
35464 eval "set x $ac_configure_args"
35468 if test -n "$ac_prev"; then
35473 -cache-file | --cache-file | --cache-fil | --cache-fi \
35474 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35475 ac_prev=cache_file ;;
35476 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35477 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35480 --config-cache | -C)
35482 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35484 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35492 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35494 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35498 # Always prepend --prefix to ensure using the same prefix
35499 # in subdir configurations.
35500 ac_arg="--prefix=$prefix"
35502 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35504 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35507 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35509 # Do not complain, so a configure script can configure whichever
35510 # parts of a large source tree are present.
35511 test -d "$srcdir/$ac_dir" || continue
35513 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35514 echo "$as_me:$LINENO: $ac_msg" >&5
35518 -*) as_dir=./$as_dir;;
35520 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35524 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35525 *) as_qdir=$as_dir;;
35527 as_dirs="'$as_qdir' $as_dirs"
35528 as_dir=`$as_dirname -- "$as_dir" ||
35529 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35530 X"$as_dir" : 'X\(//\)[^/]' \| \
35531 X"$as_dir" : 'X\(//\)$' \| \
35532 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35538 /^X\(\/\/\)[^/].*/{
35551 test -d "$as_dir" && break
35553 test -z "$as_dirs" || eval "mkdir $as_dirs"
35554 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35555 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35556 { (exit 1); exit 1; }; }; }
35560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35562 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35563 # A ".." for each directory in $ac_dir_suffix.
35564 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35565 case $ac_top_builddir_sub in
35566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35570 ac_abs_top_builddir=$ac_pwd
35571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35572 # for backward compatibility:
35573 ac_top_builddir=$ac_top_build_prefix
35576 .) # We are building in place.
35578 ac_top_srcdir=$ac_top_builddir_sub
35579 ac_abs_top_srcdir=$ac_pwd ;;
35580 [\\/]* | ?:[\\/]* ) # Absolute name.
35581 ac_srcdir=$srcdir$ac_dir_suffix;
35582 ac_top_srcdir=$srcdir
35583 ac_abs_top_srcdir=$srcdir ;;
35584 *) # Relative name.
35585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35586 ac_top_srcdir=$ac_top_build_prefix$srcdir
35587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35594 # Check for guested configure; otherwise get Cygnus style configure.
35595 if test -f "$ac_srcdir/configure.gnu"; then
35596 ac_sub_configure=$ac_srcdir/configure.gnu
35597 elif test -f "$ac_srcdir/configure"; then
35598 ac_sub_configure=$ac_srcdir/configure
35599 elif test -f "$ac_srcdir/configure.in"; then
35600 # This should be Cygnus configure.
35601 ac_sub_configure=$ac_aux_dir/configure
35603 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35604 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35608 # The recursion is here.
35609 if test -n "$ac_sub_configure"; then
35610 # Make the cache file name correct relative to the subdirectory.
35611 case $cache_file in
35612 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35613 *) # Relative name.
35614 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35617 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35618 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35619 # The eval makes quoting arguments work.
35620 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35621 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35622 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35623 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35624 { (exit 1); exit 1; }; }