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
891 CONVENIENCE_LTDL_TRUE
892 CONVENIENCE_LTDL_FALSE
931 ac_precious_vars='build_alias
947 ac_subdirs_all='projects/sample
949 projects/llvm-stacker
955 projects/llvm-poolalloc
957 projects/llvm-kernel'
959 # Initialize some variables set by options.
961 ac_init_version=false
962 # The variables have the same names as the options, with
963 # dashes changed to underlines.
971 program_transform_name=s,x,x,
979 # Installation directory options.
980 # These are left unexpanded so users can "make install exec_prefix=/foo"
981 # and all the variables that are supposed to be based on exec_prefix
982 # by default will actually change.
983 # Use braces instead of parens because sh, perl, etc. also accept them.
984 # (The list follows the same order as the GNU Coding Standards.)
985 bindir='${exec_prefix}/bin'
986 sbindir='${exec_prefix}/sbin'
987 libexecdir='${exec_prefix}/libexec'
988 datarootdir='${prefix}/share'
989 datadir='${datarootdir}'
990 sysconfdir='${prefix}/etc'
991 sharedstatedir='${prefix}/com'
992 localstatedir='${prefix}/var'
993 includedir='${prefix}/include'
994 oldincludedir='/usr/include'
995 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
996 infodir='${datarootdir}/info'
1001 libdir='${exec_prefix}/lib'
1002 localedir='${datarootdir}/locale'
1003 mandir='${datarootdir}/man'
1009 # If the previous option needs an argument, assign it.
1010 if test -n "$ac_prev"; then
1011 eval $ac_prev=\$ac_option
1017 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1021 # Accept the important Cygnus configure options, so we can diagnose typos.
1023 case $ac_dashdash$ac_option in
1027 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1030 bindir=$ac_optarg ;;
1032 -build | --build | --buil | --bui | --bu)
1033 ac_prev=build_alias ;;
1034 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1035 build_alias=$ac_optarg ;;
1037 -cache-file | --cache-file | --cache-fil | --cache-fi \
1038 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1039 ac_prev=cache_file ;;
1040 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1041 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1042 cache_file=$ac_optarg ;;
1044 --config-cache | -C)
1045 cache_file=config.cache ;;
1047 -datadir | --datadir | --datadi | --datad)
1049 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1050 datadir=$ac_optarg ;;
1052 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1053 | --dataroo | --dataro | --datar)
1054 ac_prev=datarootdir ;;
1055 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1056 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1057 datarootdir=$ac_optarg ;;
1059 -disable-* | --disable-*)
1060 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1063 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1064 { (exit 1); exit 1; }; }
1065 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1066 eval enable_$ac_feature=no ;;
1068 -docdir | --docdir | --docdi | --doc | --do)
1070 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071 docdir=$ac_optarg ;;
1073 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1075 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076 dvidir=$ac_optarg ;;
1078 -enable-* | --enable-*)
1079 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1082 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1083 { (exit 1); exit 1; }; }
1084 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1085 eval enable_$ac_feature=\$ac_optarg ;;
1087 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089 | --exec | --exe | --ex)
1090 ac_prev=exec_prefix ;;
1091 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093 | --exec=* | --exe=* | --ex=*)
1094 exec_prefix=$ac_optarg ;;
1096 -gas | --gas | --ga | --g)
1097 # Obsolete; use --with-gas.
1100 -help | --help | --hel | --he | -h)
1101 ac_init_help=long ;;
1102 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103 ac_init_help=recursive ;;
1104 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105 ac_init_help=short ;;
1107 -host | --host | --hos | --ho)
1108 ac_prev=host_alias ;;
1109 -host=* | --host=* | --hos=* | --ho=*)
1110 host_alias=$ac_optarg ;;
1112 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116 htmldir=$ac_optarg ;;
1118 -includedir | --includedir | --includedi | --included | --include \
1119 | --includ | --inclu | --incl | --inc)
1120 ac_prev=includedir ;;
1121 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122 | --includ=* | --inclu=* | --incl=* | --inc=*)
1123 includedir=$ac_optarg ;;
1125 -infodir | --infodir | --infodi | --infod | --info | --inf)
1127 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128 infodir=$ac_optarg ;;
1130 -libdir | --libdir | --libdi | --libd)
1132 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133 libdir=$ac_optarg ;;
1135 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136 | --libexe | --libex | --libe)
1137 ac_prev=libexecdir ;;
1138 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139 | --libexe=* | --libex=* | --libe=*)
1140 libexecdir=$ac_optarg ;;
1142 -localedir | --localedir | --localedi | --localed | --locale)
1143 ac_prev=localedir ;;
1144 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145 localedir=$ac_optarg ;;
1147 -localstatedir | --localstatedir | --localstatedi | --localstated \
1148 | --localstate | --localstat | --localsta | --localst | --locals)
1149 ac_prev=localstatedir ;;
1150 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152 localstatedir=$ac_optarg ;;
1154 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157 mandir=$ac_optarg ;;
1159 -nfp | --nfp | --nf)
1160 # Obsolete; use --without-fp.
1163 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164 | --no-cr | --no-c | -n)
1167 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173 | --oldin | --oldi | --old | --ol | --o)
1174 ac_prev=oldincludedir ;;
1175 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178 oldincludedir=$ac_optarg ;;
1180 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183 prefix=$ac_optarg ;;
1185 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186 | --program-pre | --program-pr | --program-p)
1187 ac_prev=program_prefix ;;
1188 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190 program_prefix=$ac_optarg ;;
1192 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193 | --program-suf | --program-su | --program-s)
1194 ac_prev=program_suffix ;;
1195 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197 program_suffix=$ac_optarg ;;
1199 -program-transform-name | --program-transform-name \
1200 | --program-transform-nam | --program-transform-na \
1201 | --program-transform-n | --program-transform- \
1202 | --program-transform | --program-transfor \
1203 | --program-transfo | --program-transf \
1204 | --program-trans | --program-tran \
1205 | --progr-tra | --program-tr | --program-t)
1206 ac_prev=program_transform_name ;;
1207 -program-transform-name=* | --program-transform-name=* \
1208 | --program-transform-nam=* | --program-transform-na=* \
1209 | --program-transform-n=* | --program-transform-=* \
1210 | --program-transform=* | --program-transfor=* \
1211 | --program-transfo=* | --program-transf=* \
1212 | --program-trans=* | --program-tran=* \
1213 | --progr-tra=* | --program-tr=* | --program-t=*)
1214 program_transform_name=$ac_optarg ;;
1216 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219 pdfdir=$ac_optarg ;;
1221 -psdir | --psdir | --psdi | --psd | --ps)
1223 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1230 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234 sbindir=$ac_optarg ;;
1236 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238 | --sharedst | --shareds | --shared | --share | --shar \
1240 ac_prev=sharedstatedir ;;
1241 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245 sharedstatedir=$ac_optarg ;;
1247 -site | --site | --sit)
1249 -site=* | --site=* | --sit=*)
1252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255 srcdir=$ac_optarg ;;
1257 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258 | --syscon | --sysco | --sysc | --sys | --sy)
1259 ac_prev=sysconfdir ;;
1260 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262 sysconfdir=$ac_optarg ;;
1264 -target | --target | --targe | --targ | --tar | --ta | --t)
1265 ac_prev=target_alias ;;
1266 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267 target_alias=$ac_optarg ;;
1269 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272 -version | --version | --versio | --versi | --vers | -V)
1273 ac_init_version=: ;;
1276 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1279 { echo "$as_me: error: invalid package name: $ac_package" >&2
1280 { (exit 1); exit 1; }; }
1281 ac_package=`echo $ac_package| sed 's/-/_/g'`
1282 eval with_$ac_package=\$ac_optarg ;;
1284 -without-* | --without-*)
1285 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1286 # Reject names that are not valid shell variable names.
1287 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1288 { echo "$as_me: error: invalid package name: $ac_package" >&2
1289 { (exit 1); exit 1; }; }
1290 ac_package=`echo $ac_package | sed 's/-/_/g'`
1291 eval with_$ac_package=no ;;
1294 # Obsolete; use --with-x.
1297 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1298 | --x-incl | --x-inc | --x-in | --x-i)
1299 ac_prev=x_includes ;;
1300 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1301 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1302 x_includes=$ac_optarg ;;
1304 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1305 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1306 ac_prev=x_libraries ;;
1307 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1308 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1309 x_libraries=$ac_optarg ;;
1311 -*) { echo "$as_me: error: unrecognized option: $ac_option
1312 Try \`$0 --help' for more information." >&2
1313 { (exit 1); exit 1; }; }
1317 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1318 # Reject names that are not valid shell variable names.
1319 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1320 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1321 { (exit 1); exit 1; }; }
1322 eval $ac_envvar=\$ac_optarg
1323 export $ac_envvar ;;
1326 # FIXME: should be removed in autoconf 3.0.
1327 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1328 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1329 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1330 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1336 if test -n "$ac_prev"; then
1337 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1338 { echo "$as_me: error: missing argument to $ac_option" >&2
1339 { (exit 1); exit 1; }; }
1342 # Be sure to have absolute directory names.
1343 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344 datadir sysconfdir sharedstatedir localstatedir includedir \
1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346 libdir localedir mandir
1348 eval ac_val=\$$ac_var
1350 [\\/$]* | ?:[\\/]* ) continue;;
1351 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1353 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1354 { (exit 1); exit 1; }; }
1357 # There might be people who depend on the old broken behavior: `$host'
1358 # used to hold the argument of --host etc.
1359 # FIXME: To remove some day.
1362 target=$target_alias
1364 # FIXME: To remove some day.
1365 if test "x$host_alias" != x; then
1366 if test "x$build_alias" = x; then
1367 cross_compiling=maybe
1368 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1369 If a cross compiler is detected then cross compile mode will be used." >&2
1370 elif test "x$build_alias" != "x$host_alias"; then
1376 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1378 test "$silent" = yes && exec 6>/dev/null
1381 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382 ac_ls_di=`ls -di .` &&
1383 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384 { echo "$as_me: error: Working directory cannot be determined" >&2
1385 { (exit 1); exit 1; }; }
1386 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1387 { echo "$as_me: error: pwd does not report name of working directory" >&2
1388 { (exit 1); exit 1; }; }
1391 # Find the source files, if location was not specified.
1392 if test -z "$srcdir"; then
1393 ac_srcdir_defaulted=yes
1394 # Try the directory containing this script, then the parent directory.
1395 ac_confdir=`$as_dirname -- "$0" ||
1396 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1397 X"$0" : 'X\(//\)[^/]' \| \
1398 X"$0" : 'X\(//\)$' \| \
1399 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1419 if test ! -r "$srcdir/$ac_unique_file"; then
1423 ac_srcdir_defaulted=no
1425 if test ! -r "$srcdir/$ac_unique_file"; then
1426 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1427 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1428 { (exit 1); exit 1; }; }
1430 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1433 { (exit 1); exit 1; }; }
1435 # When building in place, set srcdir=.
1436 if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 # Remove unnecessary trailing slashes from srcdir.
1440 # Double slashes in file names in object file debugging info
1441 # mess up M-x gdb in Emacs.
1443 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445 for ac_var in $ac_precious_vars; do
1446 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_${ac_var}_value=\$${ac_var}
1448 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1453 # Report the --help message.
1455 if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1459 \`configure' configures llvm 2.2svn to adapt to many kinds of systems.
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE. See below for descriptions of some of the useful variables.
1466 Defaults for the options are specified in brackets.
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
1473 -q, --quiet, --silent do not print \`checking...' messages
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1479 Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
1481 [$ac_default_prefix]
1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1490 For better control, use the options below.
1492 Fine tuning of the installation directories:
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
1517 --build=BUILD configure for building on BUILD [guessed]
1518 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1519 --target=TARGET configure for building compilers for TARGET [HOST]
1523 if test -n "$ac_init_help"; then
1524 case $ac_init_help in
1525 short | recursive ) echo "Configuration of llvm 2.2svn:";;
1530 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1531 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1534 --enable-expensive-checks
1536 --enable-debug-runtime
1537 --enable-jit Enable Just In Time Compiling (default is YES)
1538 --enable-doxygen Build doxygen documentation (default is NO)
1539 --enable-threads Use threads if available (default is YES)
1540 --enable-pic Build LLVM with Position Independent Code (default
1542 --enable-targets Build specific host targets:
1543 all,host-only,{target-name} (default=all)
1544 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1546 --enable-ltdl-install install libltdl
1547 --enable-shared[=PKGS] build shared libraries
1549 --enable-static[=PKGS] build static libraries
1551 --enable-fast-install[=PKGS]
1552 optimize for fast installation
1554 --disable-libtool-lock avoid locking (might break parallel builds)
1557 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1558 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1559 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1561 --with-extra-options Specify addtional options to compile LLVM with
1562 --with-tclinclude directory where tcl headers are
1563 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1564 --with-pic try to use only PIC/non-PIC objects [default=use
1566 --with-tags[=TAGS] include additional configurations [automatic]
1567 --with-udis86=<path> Use udis86 external x86 disassembler library
1569 Some influential environment variables:
1570 CC C compiler command
1571 CFLAGS C compiler flags
1572 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1573 nonstandard directory <lib dir>
1574 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1575 you have headers in a nonstandard directory <include dir>
1577 CXX C++ compiler command
1578 CXXFLAGS C++ compiler flags
1579 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1580 the first program found out of: `bison -y', `byacc', `yacc'.
1581 YFLAGS The list of arguments that will be passed by default to $YACC.
1582 This script will default YFLAGS to the empty string to avoid a
1583 default value of `-d' given by some make applications.
1584 CXXCPP C++ preprocessor
1585 F77 Fortran 77 compiler command
1586 FFLAGS Fortran 77 compiler flags
1588 Use these variables to override the choices made by `configure' or to help
1589 it to find libraries and programs with nonstandard names/locations.
1591 Report bugs to <llvmbugs@cs.uiuc.edu>.
1596 if test "$ac_init_help" = "recursive"; then
1597 # If there are subdirs, report their specific --help.
1598 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1599 test -d "$ac_dir" || continue
1603 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1606 # A ".." for each directory in $ac_dir_suffix.
1607 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1608 case $ac_top_builddir_sub in
1609 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1613 ac_abs_top_builddir=$ac_pwd
1614 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1615 # for backward compatibility:
1616 ac_top_builddir=$ac_top_build_prefix
1619 .) # We are building in place.
1621 ac_top_srcdir=$ac_top_builddir_sub
1622 ac_abs_top_srcdir=$ac_pwd ;;
1623 [\\/]* | ?:[\\/]* ) # Absolute name.
1624 ac_srcdir=$srcdir$ac_dir_suffix;
1625 ac_top_srcdir=$srcdir
1626 ac_abs_top_srcdir=$srcdir ;;
1628 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1629 ac_top_srcdir=$ac_top_build_prefix$srcdir
1630 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1632 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1634 cd "$ac_dir" || { ac_status=$?; continue; }
1635 # Check for guested configure.
1636 if test -f "$ac_srcdir/configure.gnu"; then
1638 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1639 elif test -f "$ac_srcdir/configure"; then
1641 $SHELL "$ac_srcdir/configure" --help=recursive
1643 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1645 cd "$ac_pwd" || { ac_status=$?; break; }
1649 test -n "$ac_init_help" && exit $ac_status
1650 if $ac_init_version; then
1652 llvm configure 2.2svn
1653 generated by GNU Autoconf 2.60
1655 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1656 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1657 This configure script is free software; the Free Software Foundation
1658 gives unlimited permission to copy, distribute and modify it.
1660 Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1664 cat >config.log <<_ACEOF
1665 This file contains any messages produced by compilers while
1666 running configure, to aid debugging if configure makes a mistake.
1668 It was created by llvm $as_me 2.2svn, which was
1669 generated by GNU Autoconf 2.60. Invocation command line was
1681 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1682 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1683 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1684 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1685 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1687 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1688 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1690 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1691 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1692 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1693 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1694 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1695 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1696 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 test -z "$as_dir" && as_dir=.
1705 echo "PATH: $as_dir"
1721 # Keep a trace of the command line.
1722 # Strip out --no-create and --no-recursion so they do not pile up.
1723 # Strip out --silent because we don't want to record it for future runs.
1724 # Also quote any args containing shell meta-characters.
1725 # Make two passes to allow for proper duplicate-argument suppression.
1729 ac_must_keep_next=false
1735 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1736 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1737 | -silent | --silent | --silen | --sile | --sil)
1740 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1743 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1745 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1746 if test $ac_must_keep_next = true; then
1747 ac_must_keep_next=false # Got value, back to normal.
1750 *=* | --config-cache | -C | -disable-* | --disable-* \
1751 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1752 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1753 | -with-* | --with-* | -without-* | --without-* | --x)
1754 case "$ac_configure_args0 " in
1755 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1758 -* ) ac_must_keep_next=true ;;
1761 ac_configure_args="$ac_configure_args '$ac_arg'"
1766 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1767 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1769 # When interrupted or exit'd, cleanup temporary files, and complete
1770 # config.log. We remove comments because anyway the quotes in there
1771 # would cause problems or look ugly.
1772 # WARNING: Use '\'' to represent an apostrophe within the trap.
1773 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1774 trap 'exit_status=$?
1775 # Save into config.log some information that might help in debugging.
1780 ## ---------------- ##
1781 ## Cache variables. ##
1782 ## ---------------- ##
1785 # The following way of writing the cache mishandles newlines in values,
1787 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1788 eval ac_val=\$$ac_var
1792 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1793 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1796 _ | IFS | as_nl) ;; #(
1797 *) $as_unset $ac_var ;;
1802 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1803 *${as_nl}ac_space=\ *)
1805 "s/'\''/'\''\\\\'\'''\''/g;
1806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1817 ## ----------------- ##
1818 ## Output variables. ##
1819 ## ----------------- ##
1822 for ac_var in $ac_subst_vars
1824 eval ac_val=\$$ac_var
1826 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1828 echo "$ac_var='\''$ac_val'\''"
1832 if test -n "$ac_subst_files"; then
1834 ## ------------------- ##
1835 ## File substitutions. ##
1836 ## ------------------- ##
1839 for ac_var in $ac_subst_files
1841 eval ac_val=\$$ac_var
1843 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1845 echo "$ac_var='\''$ac_val'\''"
1850 if test -s confdefs.h; then
1860 test "$ac_signal" != 0 &&
1861 echo "$as_me: caught signal $ac_signal"
1862 echo "$as_me: exit $exit_status"
1864 rm -f core *.core core.conftest.* &&
1865 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1868 for ac_signal in 1 2 13 15; do
1869 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1873 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1874 rm -f -r conftest* confdefs.h
1876 # Predefined preprocessor variables.
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_NAME "$PACKAGE_NAME"
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_STRING "$PACKAGE_STRING"
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1903 # Let the site file select an alternate cache file if it wants to.
1904 # Prefer explicitly selected file to automatically selected ones.
1905 if test -n "$CONFIG_SITE"; then
1906 set x "$CONFIG_SITE"
1907 elif test "x$prefix" != xNONE; then
1908 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1910 set x "$ac_default_prefix/share/config.site" \
1911 "$ac_default_prefix/etc/config.site"
1916 if test -r "$ac_site_file"; then
1917 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1918 echo "$as_me: loading site script $ac_site_file" >&6;}
1919 sed 's/^/| /' "$ac_site_file" >&5
1924 if test -r "$cache_file"; then
1925 # Some versions of bash will fail to source /dev/null (special
1926 # files actually), so we avoid doing that.
1927 if test -f "$cache_file"; then
1928 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1929 echo "$as_me: loading cache $cache_file" >&6;}
1931 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1932 *) . "./$cache_file";;
1936 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1937 echo "$as_me: creating cache $cache_file" >&6;}
1941 # Check that the precious variables saved in the cache have kept the same
1943 ac_cache_corrupted=false
1944 for ac_var in $ac_precious_vars; do
1945 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1946 eval ac_new_set=\$ac_env_${ac_var}_set
1947 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1948 eval ac_new_val=\$ac_env_${ac_var}_value
1949 case $ac_old_set,$ac_new_set in
1951 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1952 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1953 ac_cache_corrupted=: ;;
1955 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1956 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1957 ac_cache_corrupted=: ;;
1960 if test "x$ac_old_val" != "x$ac_new_val"; then
1961 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1962 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1963 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1964 echo "$as_me: former value: $ac_old_val" >&2;}
1965 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1966 echo "$as_me: current value: $ac_new_val" >&2;}
1967 ac_cache_corrupted=:
1970 # Pass precious variables to config.status.
1971 if test "$ac_new_set" = set; then
1973 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1974 *) ac_arg=$ac_var=$ac_new_val ;;
1976 case " $ac_configure_args " in
1977 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1978 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1982 if $ac_cache_corrupted; then
1983 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1984 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1985 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1986 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1987 { (exit 1); exit 1; }; }
2015 ac_cpp='$CPP $CPPFLAGS'
2016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2022 LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2031 for ac_dir in autoconf "$srcdir"/autoconf; do
2032 if test -f "$ac_dir/install-sh"; then
2034 ac_install_sh="$ac_aux_dir/install-sh -c"
2036 elif test -f "$ac_dir/install.sh"; then
2038 ac_install_sh="$ac_aux_dir/install.sh -c"
2040 elif test -f "$ac_dir/shtool"; then
2042 ac_install_sh="$ac_aux_dir/shtool install -c"
2046 if test -z "$ac_aux_dir"; then
2047 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2048 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2049 { (exit 1); exit 1; }; }
2052 # These three variables are undocumented and unsupported,
2053 # and are intended to be withdrawn in a future Autoconf release.
2054 # They can cause serious problems if a builder's source tree is in a directory
2055 # whose full name contains unusual characters.
2056 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2057 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2058 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2062 if test ${srcdir} != "." ; then
2063 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2064 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2065 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2066 { (exit 1); exit 1; }; }
2070 for i in `ls ${srcdir}/projects`
2072 if test -d ${srcdir}/projects/${i} ; then
2075 sample) subdirs="$subdirs projects/sample"
2077 privbracket) subdirs="$subdirs projects/privbracket"
2079 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2081 llvm-test) subdirs="$subdirs projects/llvm-test"
2083 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2085 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2087 llvm-java) subdirs="$subdirs projects/llvm-java"
2089 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2091 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2093 poolalloc) subdirs="$subdirs projects/poolalloc"
2095 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2098 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2099 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2106 # Make sure we can run config.sub.
2107 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2108 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2109 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2110 { (exit 1); exit 1; }; }
2112 { echo "$as_me:$LINENO: checking build system type" >&5
2113 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2114 if test "${ac_cv_build+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2117 ac_build_alias=$build_alias
2118 test "x$ac_build_alias" = x &&
2119 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2120 test "x$ac_build_alias" = x &&
2121 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2122 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2123 { (exit 1); exit 1; }; }
2124 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2125 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2126 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2127 { (exit 1); exit 1; }; }
2130 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2131 echo "${ECHO_T}$ac_cv_build" >&6; }
2132 case $ac_cv_build in
2134 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2135 echo "$as_me: error: invalid value of canonical build" >&2;}
2136 { (exit 1); exit 1; }; };;
2139 ac_save_IFS=$IFS; IFS='-'
2145 # Remember, the first character of IFS is used to create $*,
2146 # except with old shells:
2149 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2152 { echo "$as_me:$LINENO: checking host system type" >&5
2153 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2154 if test "${ac_cv_host+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 if test "x$host_alias" = x; then
2158 ac_cv_host=$ac_cv_build
2160 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2161 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2162 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2163 { (exit 1); exit 1; }; }
2167 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2168 echo "${ECHO_T}$ac_cv_host" >&6; }
2171 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2172 echo "$as_me: error: invalid value of canonical host" >&2;}
2173 { (exit 1); exit 1; }; };;
2176 ac_save_IFS=$IFS; IFS='-'
2182 # Remember, the first character of IFS is used to create $*,
2183 # except with old shells:
2186 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2189 { echo "$as_me:$LINENO: checking target system type" >&5
2190 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2191 if test "${ac_cv_target+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2194 if test "x$target_alias" = x; then
2195 ac_cv_target=$ac_cv_host
2197 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2198 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2199 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2200 { (exit 1); exit 1; }; }
2204 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2205 echo "${ECHO_T}$ac_cv_target" >&6; }
2206 case $ac_cv_target in
2208 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2209 echo "$as_me: error: invalid value of canonical target" >&2;}
2210 { (exit 1); exit 1; }; };;
2212 target=$ac_cv_target
2213 ac_save_IFS=$IFS; IFS='-'
2219 # Remember, the first character of IFS is used to create $*,
2220 # except with old shells:
2223 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2226 # The aliases save the names the user supplied, while $host etc.
2227 # will get canonicalized.
2228 test -n "$target_alias" &&
2229 test "$program_prefix$program_suffix$program_transform_name" = \
2231 program_prefix=${target_alias}-
2233 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2234 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2235 if test "${llvm_cv_os_type+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2240 llvm_cv_link_all_option="-Wl,--whole-archive"
2241 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2242 llvm_cv_os_type="AIX"
2243 llvm_cv_platform_type="Unix" ;;
2245 llvm_cv_link_all_option="-Wl,--whole-archive"
2246 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2247 llvm_cv_os_type="IRIX"
2248 llvm_cv_platform_type="Unix" ;;
2250 llvm_cv_link_all_option="-Wl,--whole-archive"
2251 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2252 llvm_cv_os_type="Cygwin"
2253 llvm_cv_platform_type="Unix" ;;
2255 llvm_cv_link_all_option="-Wl,-all_load"
2256 llvm_cv_link_all_option="-Wl,-noall_load"
2257 llvm_cv_os_type="Darwin"
2258 llvm_cv_platform_type="Unix" ;;
2260 llvm_cv_link_all_option="-Wl,--whole-archive"
2261 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2262 llvm_cv_os_type="FreeBSD"
2263 llvm_cv_platform_type="Unix" ;;
2265 llvm_cv_link_all_option="-Wl,--whole-archive"
2266 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2267 llvm_cv_os_type="OpenBSD"
2268 llvm_cv_platform_type="Unix" ;;
2270 llvm_cv_link_all_option="-Wl,--whole-archive"
2271 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2272 llvm_cv_os_type="NetBSD"
2273 llvm_cv_platform_type="Unix" ;;
2275 llvm_cv_link_all_option="-Wl,--whole-archive"
2276 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2277 llvm_cv_os_type="HP-UX"
2278 llvm_cv_platform_type="Unix" ;;
2280 llvm_cv_link_all_option="-Wl,--whole-archive"
2281 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2282 llvm_cv_os_type="Interix"
2283 llvm_cv_platform_type="Unix" ;;
2285 llvm_cv_link_all_option="-Wl,--whole-archive"
2286 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2287 llvm_cv_os_type="Linux"
2288 llvm_cv_platform_type="Unix" ;;
2290 llvm_cv_link_all_option="-Wl,-z,allextract"
2291 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2292 llvm_cv_os_type="SunOS"
2293 llvm_cv_platform_type="Unix" ;;
2295 llvm_cv_link_all_option="-Wl,--whole-archive"
2296 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2297 llvm_cv_os_type="Win32"
2298 llvm_cv_platform_type="Win32" ;;
2300 llvm_cv_link_all_option="-Wl,--whole-archive"
2301 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2302 llvm_cv_os_type="MingW"
2303 llvm_cv_platform_type="Win32" ;;
2305 llvm_cv_link_all_option=""
2306 llvm_cv_no_link_all_option=""
2307 llvm_cv_os_type="Unknown"
2308 llvm_cv_platform_type="Unknown" ;;
2311 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2312 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2314 if test "$llvm_cv_os_type" = "Unknown" ; then
2315 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2316 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2317 { (exit 1); exit 1; }; }
2323 LINKALL=$llvm_cv_link_all_option
2325 NOLINKALL=$llvm_cv_no_link_all_option
2328 case $llvm_cv_platform_type in
2331 cat >>confdefs.h <<\_ACEOF
2332 #define LLVM_ON_UNIX 1
2342 cat >>confdefs.h <<\_ACEOF
2343 #define LLVM_ON_WIN32 1
2353 { echo "$as_me:$LINENO: checking target architecture" >&5
2354 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2355 if test "${llvm_cv_target_arch+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 i?86-*) llvm_cv_target_arch="x86" ;;
2360 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2361 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2362 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2363 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2364 ia64-*) llvm_cv_target_arch="IA64" ;;
2365 arm-*) llvm_cv_target_arch="ARM" ;;
2366 mips-*) llvm_cv_target_arch="Mips" ;;
2367 *) llvm_cv_target_arch="Unknown" ;;
2370 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2371 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2373 if test "$llvm_cv_target_arch" = "Unknown" ; then
2374 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2375 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2378 ARCH=$llvm_cv_target_arch
2382 ac_cpp='$CPP $CPPFLAGS'
2383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2386 if test -n "$ac_tool_prefix"; then
2387 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2388 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2391 if test "${ac_cv_prog_CC+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 if test -n "$CC"; then
2395 ac_cv_prog_CC="$CC" # Let the user override the test.
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 test -z "$as_dir" && as_dir=.
2402 for ac_exec_ext in '' $ac_executable_extensions; do
2403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2404 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415 if test -n "$CC"; then
2416 { echo "$as_me:$LINENO: result: $CC" >&5
2417 echo "${ECHO_T}$CC" >&6; }
2419 { echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6; }
2425 if test -z "$ac_cv_prog_CC"; then
2427 # Extract the first word of "gcc", so it can be a program name with args.
2428 set dummy gcc; ac_word=$2
2429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2431 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 if test -n "$ac_ct_CC"; then
2435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 test -z "$as_dir" && as_dir=.
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2444 ac_cv_prog_ac_ct_CC="gcc"
2445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2455 if test -n "$ac_ct_CC"; then
2456 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2457 echo "${ECHO_T}$ac_ct_CC" >&6; }
2459 { echo "$as_me:$LINENO: result: no" >&5
2460 echo "${ECHO_T}no" >&6; }
2463 if test "x$ac_ct_CC" = x; then
2466 case $cross_compiling:$ac_tool_warned in
2468 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2469 whose name does not start with the host triplet. If you think this
2470 configuration is useful to you, please write to autoconf@gnu.org." >&5
2471 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2472 whose name does not start with the host triplet. If you think this
2473 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2474 ac_tool_warned=yes ;;
2482 if test -z "$CC"; then
2483 if test -n "$ac_tool_prefix"; then
2484 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2485 set dummy ${ac_tool_prefix}cc; ac_word=$2
2486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2488 if test "${ac_cv_prog_CC+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 if test -n "$CC"; then
2492 ac_cv_prog_CC="$CC" # Let the user override the test.
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2501 ac_cv_prog_CC="${ac_tool_prefix}cc"
2502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2512 if test -n "$CC"; then
2513 { echo "$as_me:$LINENO: result: $CC" >&5
2514 echo "${ECHO_T}$CC" >&6; }
2516 { echo "$as_me:$LINENO: result: no" >&5
2517 echo "${ECHO_T}no" >&6; }
2523 if test -z "$CC"; then
2524 # Extract the first word of "cc", so it can be a program name with args.
2525 set dummy cc; ac_word=$2
2526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2528 if test "${ac_cv_prog_CC+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
2531 if test -n "$CC"; then
2532 ac_cv_prog_CC="$CC" # Let the user override the test.
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2542 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2543 ac_prog_rejected=yes
2547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 if test $ac_prog_rejected = yes; then
2555 # We found a bogon in the path, so make sure we never use it.
2556 set dummy $ac_cv_prog_CC
2558 if test $# != 0; then
2559 # We chose a different compiler from the bogus one.
2560 # However, it has the same basename, so the bogon will be chosen
2561 # first if we set CC to just the basename; use the full file name.
2563 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2569 if test -n "$CC"; then
2570 { echo "$as_me:$LINENO: result: $CC" >&5
2571 echo "${ECHO_T}$CC" >&6; }
2573 { echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6; }
2579 if test -z "$CC"; then
2580 if test -n "$ac_tool_prefix"; then
2581 for ac_prog in cl.exe
2583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2584 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2587 if test "${ac_cv_prog_CC+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2590 if test -n "$CC"; then
2591 ac_cv_prog_CC="$CC" # Let the user override the test.
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2600 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 if test -n "$CC"; then
2612 { echo "$as_me:$LINENO: result: $CC" >&5
2613 echo "${ECHO_T}$CC" >&6; }
2615 { echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6; }
2620 test -n "$CC" && break
2623 if test -z "$CC"; then
2625 for ac_prog in cl.exe
2627 # Extract the first word of "$ac_prog", so it can be a program name with args.
2628 set dummy $ac_prog; ac_word=$2
2629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2631 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 if test -n "$ac_ct_CC"; then
2635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2644 ac_cv_prog_ac_ct_CC="$ac_prog"
2645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2655 if test -n "$ac_ct_CC"; then
2656 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2657 echo "${ECHO_T}$ac_ct_CC" >&6; }
2659 { echo "$as_me:$LINENO: result: no" >&5
2660 echo "${ECHO_T}no" >&6; }
2664 test -n "$ac_ct_CC" && break
2667 if test "x$ac_ct_CC" = x; then
2670 case $cross_compiling:$ac_tool_warned in
2672 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2673 whose name does not start with the host triplet. If you think this
2674 configuration is useful to you, please write to autoconf@gnu.org." >&5
2675 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2676 whose name does not start with the host triplet. If you think this
2677 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2678 ac_tool_warned=yes ;;
2687 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2688 See \`config.log' for more details." >&5
2689 echo "$as_me: error: no acceptable C compiler found in \$PATH
2690 See \`config.log' for more details." >&2;}
2691 { (exit 1); exit 1; }; }
2693 # Provide some information about the compiler.
2694 echo "$as_me:$LINENO: checking for C compiler version" >&5
2695 ac_compiler=`set X $ac_compile; echo $2`
2696 { (ac_try="$ac_compiler --version >&5"
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702 (eval "$ac_compiler --version >&5") 2>&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }
2706 { (ac_try="$ac_compiler -v >&5"
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_compiler -v >&5") 2>&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }
2716 { (ac_try="$ac_compiler -V >&5"
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722 (eval "$ac_compiler -V >&5") 2>&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }
2727 cat >conftest.$ac_ext <<_ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h. */
2742 ac_clean_files_save=$ac_clean_files
2743 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2744 # Try to create an executable without -o first, disregard a.out.
2745 # It will help us diagnose broken compilers, and finding out an intuition
2747 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2748 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2749 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2751 # List of possible output files, starting from the most likely.
2752 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2753 # only as a last resort. b.out is created by i960 compilers.
2754 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2756 # The IRIX 6 linker writes into existing files which may not be
2757 # executable, retaining their permissions. Remove them first so a
2758 # subsequent execution test works.
2760 for ac_file in $ac_files
2763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2764 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2769 if { (ac_try="$ac_link_default"
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775 (eval "$ac_link_default") 2>&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; then
2779 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2780 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2781 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2782 # so that the user can short-circuit this test for compilers unknown to
2784 for ac_file in $ac_files
2786 test -f "$ac_file" || continue
2788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2791 # We found the default executable, but exeext='' is most
2795 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2797 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2799 # We set ac_cv_exeext here because the later test for it is not
2800 # safe: cross compilers may not add the suffix if given an `-o'
2801 # argument, so we may need to know it at that point already.
2802 # Even if this section looks crufty: it has the advantage of
2809 test "$ac_cv_exeext" = no && ac_cv_exeext=
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2815 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2816 See \`config.log' for more details." >&5
2817 echo "$as_me: error: C compiler cannot create executables
2818 See \`config.log' for more details." >&2;}
2819 { (exit 77); exit 77; }; }
2822 ac_exeext=$ac_cv_exeext
2823 { echo "$as_me:$LINENO: result: $ac_file" >&5
2824 echo "${ECHO_T}$ac_file" >&6; }
2826 # Check that the compiler produces executables we can run. If not, either
2827 # the compiler is broken, or we cross compile.
2828 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2829 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2830 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2831 # If not cross compiling, check that we can run a simple program.
2832 if test "$cross_compiling" != yes; then
2833 if { ac_try='./$ac_file'
2834 { (case "(($ac_try" in
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2839 (eval "$ac_try") 2>&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2845 if test "$cross_compiling" = maybe; then
2848 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2849 If you meant to cross compile, use \`--host'.
2850 See \`config.log' for more details." >&5
2851 echo "$as_me: error: cannot run C compiled programs.
2852 If you meant to cross compile, use \`--host'.
2853 See \`config.log' for more details." >&2;}
2854 { (exit 1); exit 1; }; }
2858 { echo "$as_me:$LINENO: result: yes" >&5
2859 echo "${ECHO_T}yes" >&6; }
2861 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2862 ac_clean_files=$ac_clean_files_save
2863 # Check that the compiler produces executables we can run. If not, either
2864 # the compiler is broken, or we cross compile.
2865 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2866 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2867 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2868 echo "${ECHO_T}$cross_compiling" >&6; }
2870 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2871 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2872 if { (ac_try="$ac_link"
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_link") 2>&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; then
2882 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2883 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2884 # work properly (i.e., refer to `conftest.exe'), while it won't with
2886 for ac_file in conftest.exe conftest conftest.*; do
2887 test -f "$ac_file" || continue
2889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2890 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2896 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2897 See \`config.log' for more details." >&5
2898 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2899 See \`config.log' for more details." >&2;}
2900 { (exit 1); exit 1; }; }
2903 rm -f conftest$ac_cv_exeext
2904 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2905 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2907 rm -f conftest.$ac_ext
2908 EXEEXT=$ac_cv_exeext
2910 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2911 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2912 if test "${ac_cv_objext+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 cat >conftest.$ac_ext <<_ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2930 rm -f conftest.o conftest.obj
2931 if { (ac_try="$ac_compile"
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compile") 2>&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }; then
2941 for ac_file in conftest.o conftest.obj conftest.*; do
2942 test -f "$ac_file" || continue;
2944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2945 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2953 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2954 See \`config.log' for more details." >&5
2955 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2956 See \`config.log' for more details." >&2;}
2957 { (exit 1); exit 1; }; }
2960 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2962 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2963 echo "${ECHO_T}$ac_cv_objext" >&6; }
2964 OBJEXT=$ac_cv_objext
2966 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2967 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2968 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 cat >conftest.$ac_ext <<_ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2989 rm -f conftest.$ac_objext
2990 if { (ac_try="$ac_compile"
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996 (eval "$ac_compile") 2>conftest.er1
2998 grep -v '^ *+' conftest.er1 >conftest.err
3000 cat conftest.err >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); } &&
3003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3004 { (case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_try") 2>&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; } &&
3013 { ac_try='test -s conftest.$ac_objext'
3014 { (case "(($ac_try" in
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_try") 2>&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }; }; then
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3032 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3035 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3036 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3037 GCC=`test $ac_compiler_gnu = yes && echo yes`
3038 ac_test_CFLAGS=${CFLAGS+set}
3039 ac_save_CFLAGS=$CFLAGS
3040 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3041 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3042 if test "${ac_cv_prog_cc_g+set}" = set; then
3043 echo $ECHO_N "(cached) $ECHO_C" >&6
3045 ac_save_c_werror_flag=$ac_c_werror_flag
3046 ac_c_werror_flag=yes
3049 cat >conftest.$ac_ext <<_ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3064 rm -f conftest.$ac_objext
3065 if { (ac_try="$ac_compile"
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_compile") 2>conftest.er1
3073 grep -v '^ *+' conftest.er1 >conftest.err
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } &&
3078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3079 { (case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_try") 2>&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; } &&
3088 { ac_try='test -s conftest.$ac_objext'
3089 { (case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_try") 2>&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; }; then
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3104 cat >conftest.$ac_ext <<_ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3119 rm -f conftest.$ac_objext
3120 if { (ac_try="$ac_compile"
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126 (eval "$ac_compile") 2>conftest.er1
3128 grep -v '^ *+' conftest.er1 >conftest.err
3130 cat conftest.err >&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); } &&
3133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3134 { (case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_try") 2>&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; } &&
3143 { ac_try='test -s conftest.$ac_objext'
3144 { (case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_try") 2>&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; }; then
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3158 ac_c_werror_flag=$ac_save_c_werror_flag
3160 cat >conftest.$ac_ext <<_ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h. */
3175 rm -f conftest.$ac_objext
3176 if { (ac_try="$ac_compile"
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_compile") 2>conftest.er1
3184 grep -v '^ *+' conftest.er1 >conftest.err
3186 cat conftest.err >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } &&
3189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3190 { (case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_try") 2>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; } &&
3199 { ac_try='test -s conftest.$ac_objext'
3200 { (case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_try") 2>&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; }; then
3211 echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224 ac_c_werror_flag=$ac_save_c_werror_flag
3226 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3227 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3228 if test "$ac_test_CFLAGS" = set; then
3229 CFLAGS=$ac_save_CFLAGS
3230 elif test $ac_cv_prog_cc_g = yes; then
3231 if test "$GCC" = yes; then
3237 if test "$GCC" = yes; then
3243 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3244 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3245 if test "${ac_cv_prog_cc_c89+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 ac_cv_prog_cc_c89=no
3250 cat >conftest.$ac_ext <<_ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3258 #include <sys/types.h>
3259 #include <sys/stat.h>
3260 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3261 struct buf { int x; };
3262 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3263 static char *e (p, i)
3269 static char *f (char * (*g) (char **, int), char **p, ...)
3274 s = g (p, va_arg (v,int));
3279 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3280 function prototypes and stuff, but not '\xHH' hex character constants.
3281 These don't provoke an error unfortunately, instead are silently treated
3282 as 'x'. The following induces an error, until -std is added to get
3283 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3284 array size at least. It's necessary to write '\x00'==0 to get something
3285 that's true only with -std. */
3286 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3288 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3289 inside strings and character constants. */
3291 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3293 int test (int i, double x);
3294 struct s1 {int (*f) (int a);};
3295 struct s2 {int (*f) (double a);};
3296 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3302 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3307 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3308 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3310 CC="$ac_save_CC $ac_arg"
3311 rm -f conftest.$ac_objext
3312 if { (ac_try="$ac_compile"
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318 (eval "$ac_compile") 2>conftest.er1
3320 grep -v '^ *+' conftest.er1 >conftest.err
3322 cat conftest.err >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } &&
3325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3326 { (case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331 (eval "$ac_try") 2>&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); }; } &&
3335 { ac_try='test -s conftest.$ac_objext'
3336 { (case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_try") 2>&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; }; then
3345 ac_cv_prog_cc_c89=$ac_arg
3347 echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3353 rm -f core conftest.err conftest.$ac_objext
3354 test "x$ac_cv_prog_cc_c89" != "xno" && break
3356 rm -f conftest.$ac_ext
3361 case "x$ac_cv_prog_cc_c89" in
3363 { echo "$as_me:$LINENO: result: none needed" >&5
3364 echo "${ECHO_T}none needed" >&6; } ;;
3366 { echo "$as_me:$LINENO: result: unsupported" >&5
3367 echo "${ECHO_T}unsupported" >&6; } ;;
3369 CC="$CC $ac_cv_prog_cc_c89"
3370 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3371 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3376 ac_cpp='$CPP $CPPFLAGS'
3377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3383 ac_cpp='$CPP $CPPFLAGS'
3384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3388 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3389 # On Suns, sometimes $CPP names a directory.
3390 if test -n "$CPP" && test -d "$CPP"; then
3393 if test -z "$CPP"; then
3394 if test "${ac_cv_prog_CPP+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 # Double quotes because CPP needs to be expanded
3398 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3401 for ac_c_preproc_warn_flag in '' yes
3403 # Use a header file that comes with gcc, so configuring glibc
3404 # with a fresh cross-compiler works.
3405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3406 # <limits.h> exists even on freestanding compilers.
3407 # On the NeXT, cc -E runs the code through the compiler's parser,
3408 # not just through cpp. "Syntax error" is here to catch this case.
3409 cat >conftest.$ac_ext <<_ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3416 # include <limits.h>
3418 # include <assert.h>
3422 if { (ac_try="$ac_cpp conftest.$ac_ext"
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3430 grep -v '^ *+' conftest.er1 >conftest.err
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } >/dev/null; then
3435 if test -s conftest.err; then
3436 ac_cpp_err=$ac_c_preproc_warn_flag
3437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3444 if test -z "$ac_cpp_err"; then
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3450 # Broken: fails on valid input.
3454 rm -f conftest.err conftest.$ac_ext
3456 # OK, works on sane cases. Now check whether nonexistent headers
3457 # can be detected and how.
3458 cat >conftest.$ac_ext <<_ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3464 #include <ac_nonexistent.h>
3466 if { (ac_try="$ac_cpp conftest.$ac_ext"
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3474 grep -v '^ *+' conftest.er1 >conftest.err
3476 cat conftest.err >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } >/dev/null; then
3479 if test -s conftest.err; then
3480 ac_cpp_err=$ac_c_preproc_warn_flag
3481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3488 if test -z "$ac_cpp_err"; then
3489 # Broken: success on invalid input.
3492 echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3495 # Passes both tests.
3500 rm -f conftest.err conftest.$ac_ext
3503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3504 rm -f conftest.err conftest.$ac_ext
3505 if $ac_preproc_ok; then
3517 { echo "$as_me:$LINENO: result: $CPP" >&5
3518 echo "${ECHO_T}$CPP" >&6; }
3520 for ac_c_preproc_warn_flag in '' yes
3522 # Use a header file that comes with gcc, so configuring glibc
3523 # with a fresh cross-compiler works.
3524 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3525 # <limits.h> exists even on freestanding compilers.
3526 # On the NeXT, cc -E runs the code through the compiler's parser,
3527 # not just through cpp. "Syntax error" is here to catch this case.
3528 cat >conftest.$ac_ext <<_ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3535 # include <limits.h>
3537 # include <assert.h>
3541 if { (ac_try="$ac_cpp conftest.$ac_ext"
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3549 grep -v '^ *+' conftest.er1 >conftest.err
3551 cat conftest.err >&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); } >/dev/null; then
3554 if test -s conftest.err; then
3555 ac_cpp_err=$ac_c_preproc_warn_flag
3556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3563 if test -z "$ac_cpp_err"; then
3566 echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3569 # Broken: fails on valid input.
3573 rm -f conftest.err conftest.$ac_ext
3575 # OK, works on sane cases. Now check whether nonexistent headers
3576 # can be detected and how.
3577 cat >conftest.$ac_ext <<_ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3583 #include <ac_nonexistent.h>
3585 if { (ac_try="$ac_cpp conftest.$ac_ext"
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3593 grep -v '^ *+' conftest.er1 >conftest.err
3595 cat conftest.err >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } >/dev/null; then
3598 if test -s conftest.err; then
3599 ac_cpp_err=$ac_c_preproc_warn_flag
3600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3607 if test -z "$ac_cpp_err"; then
3608 # Broken: success on invalid input.
3611 echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3614 # Passes both tests.
3619 rm -f conftest.err conftest.$ac_ext
3622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3623 rm -f conftest.err conftest.$ac_ext
3624 if $ac_preproc_ok; then
3627 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3628 See \`config.log' for more details." >&5
3629 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3630 See \`config.log' for more details." >&2;}
3631 { (exit 1); exit 1; }; }
3635 ac_cpp='$CPP $CPPFLAGS'
3636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3641 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3642 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3643 if test "${ac_cv_path_GREP+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 # Extract the first word of "grep ggrep" to use in msg output
3647 if test -z "$GREP"; then
3648 set dummy grep ggrep; ac_prog_name=$2
3649 if test "${ac_cv_path_GREP+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 ac_path_GREP_found=false
3653 # Loop through the user's path and test for each of PROGNAME-LIST
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3658 test -z "$as_dir" && as_dir=.
3659 for ac_prog in grep ggrep; do
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3662 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3663 # Check for GNU ac_path_GREP and select it if it is found.
3664 # Check for GNU $ac_path_GREP
3665 case `"$ac_path_GREP" --version 2>&1` in
3667 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3670 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3673 cat "conftest.in" "conftest.in" >"conftest.tmp"
3674 mv "conftest.tmp" "conftest.in"
3675 cp "conftest.in" "conftest.nl"
3676 echo 'GREP' >> "conftest.nl"
3677 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3678 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3679 ac_count=`expr $ac_count + 1`
3680 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3681 # Best one so far, save it but keep looking for a better one
3682 ac_cv_path_GREP="$ac_path_GREP"
3683 ac_path_GREP_max=$ac_count
3685 # 10*(2^10) chars as input seems more than enough
3686 test $ac_count -gt 10 && break
3688 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3692 $ac_path_GREP_found && break 3
3702 GREP="$ac_cv_path_GREP"
3703 if test -z "$GREP"; then
3704 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3705 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3706 { (exit 1); exit 1; }; }
3710 ac_cv_path_GREP=$GREP
3715 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3716 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3717 GREP="$ac_cv_path_GREP"
3720 { echo "$as_me:$LINENO: checking for egrep" >&5
3721 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3722 if test "${ac_cv_path_EGREP+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3726 then ac_cv_path_EGREP="$GREP -E"
3728 # Extract the first word of "egrep" to use in msg output
3729 if test -z "$EGREP"; then
3730 set dummy egrep; ac_prog_name=$2
3731 if test "${ac_cv_path_EGREP+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3734 ac_path_EGREP_found=false
3735 # Loop through the user's path and test for each of PROGNAME-LIST
3736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3740 test -z "$as_dir" && as_dir=.
3741 for ac_prog in egrep; do
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3744 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3745 # Check for GNU ac_path_EGREP and select it if it is found.
3746 # Check for GNU $ac_path_EGREP
3747 case `"$ac_path_EGREP" --version 2>&1` in
3749 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3752 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3755 cat "conftest.in" "conftest.in" >"conftest.tmp"
3756 mv "conftest.tmp" "conftest.in"
3757 cp "conftest.in" "conftest.nl"
3758 echo 'EGREP' >> "conftest.nl"
3759 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3760 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3761 ac_count=`expr $ac_count + 1`
3762 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3763 # Best one so far, save it but keep looking for a better one
3764 ac_cv_path_EGREP="$ac_path_EGREP"
3765 ac_path_EGREP_max=$ac_count
3767 # 10*(2^10) chars as input seems more than enough
3768 test $ac_count -gt 10 && break
3770 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3774 $ac_path_EGREP_found && break 3
3784 EGREP="$ac_cv_path_EGREP"
3785 if test -z "$EGREP"; then
3786 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3787 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3788 { (exit 1); exit 1; }; }
3792 ac_cv_path_EGREP=$EGREP
3798 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3799 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3800 EGREP="$ac_cv_path_EGREP"
3803 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3804 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3805 if test "${ac_cv_header_stdc+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 cat >conftest.$ac_ext <<_ACEOF
3811 cat confdefs.h >>conftest.$ac_ext
3812 cat >>conftest.$ac_ext <<_ACEOF
3813 /* end confdefs.h. */
3827 rm -f conftest.$ac_objext
3828 if { (ac_try="$ac_compile"
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3834 (eval "$ac_compile") 2>conftest.er1
3836 grep -v '^ *+' conftest.er1 >conftest.err
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } &&
3841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3842 { (case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3847 (eval "$ac_try") 2>&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; } &&
3851 { ac_try='test -s conftest.$ac_objext'
3852 { (case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_try") 2>&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; }; then
3861 ac_cv_header_stdc=yes
3863 echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3866 ac_cv_header_stdc=no
3869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871 if test $ac_cv_header_stdc = yes; then
3872 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3873 cat >conftest.$ac_ext <<_ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3883 $EGREP "memchr" >/dev/null 2>&1; then
3886 ac_cv_header_stdc=no
3892 if test $ac_cv_header_stdc = yes; then
3893 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3894 cat >conftest.$ac_ext <<_ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3904 $EGREP "free" >/dev/null 2>&1; then
3907 ac_cv_header_stdc=no
3913 if test $ac_cv_header_stdc = yes; then
3914 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3915 if test "$cross_compiling" = yes; then
3918 cat >conftest.$ac_ext <<_ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h. */
3926 #if ((' ' & 0x0FF) == 0x020)
3927 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3928 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3930 # define ISLOWER(c) \
3931 (('a' <= (c) && (c) <= 'i') \
3932 || ('j' <= (c) && (c) <= 'r') \
3933 || ('s' <= (c) && (c) <= 'z'))
3934 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3937 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3942 for (i = 0; i < 256; i++)
3943 if (XOR (islower (i), ISLOWER (i))
3944 || toupper (i) != TOUPPER (i))
3949 rm -f conftest$ac_exeext
3950 if { (ac_try="$ac_link"
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3956 (eval "$ac_link") 2>&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3960 { (case "(($ac_try" in
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965 (eval "$ac_try") 2>&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); }; }; then
3971 echo "$as_me: program exited with status $ac_status" >&5
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3976 ac_cv_header_stdc=no
3978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3984 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3985 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3986 if test $ac_cv_header_stdc = yes; then
3988 cat >>confdefs.h <<\_ACEOF
3989 #define STDC_HEADERS 1
3994 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4004 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4005 inttypes.h stdint.h unistd.h
4007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 cat >conftest.$ac_ext <<_ACEOF
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h. */
4019 $ac_includes_default
4021 #include <$ac_header>
4023 rm -f conftest.$ac_objext
4024 if { (ac_try="$ac_compile"
4026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027 *) ac_try_echo=$ac_try;;
4029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4030 (eval "$ac_compile") 2>conftest.er1
4032 grep -v '^ *+' conftest.er1 >conftest.err
4034 cat conftest.err >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } &&
4037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4038 { (case "(($ac_try" in
4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040 *) ac_try_echo=$ac_try;;
4042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4043 (eval "$ac_try") 2>&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; } &&
4047 { ac_try='test -s conftest.$ac_objext'
4048 { (case "(($ac_try" in
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053 (eval "$ac_try") 2>&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; }; then
4057 eval "$as_ac_Header=yes"
4059 echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4062 eval "$as_ac_Header=no"
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 ac_res=`eval echo '${'$as_ac_Header'}'`
4068 { echo "$as_me:$LINENO: result: $ac_res" >&5
4069 echo "${ECHO_T}$ac_res" >&6; }
4070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4071 cat >>confdefs.h <<_ACEOF
4072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4080 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4081 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4082 if test "${ac_cv_c_bigendian+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 # See if sys/param.h defines the BYTE_ORDER macro.
4086 cat >conftest.$ac_ext <<_ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h. */
4092 #include <sys/types.h>
4093 #include <sys/param.h>
4098 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4106 rm -f conftest.$ac_objext
4107 if { (ac_try="$ac_compile"
4109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4110 *) ac_try_echo=$ac_try;;
4112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4113 (eval "$ac_compile") 2>conftest.er1
4115 grep -v '^ *+' conftest.er1 >conftest.err
4117 cat conftest.err >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); } &&
4120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4121 { (case "(($ac_try" in
4122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123 *) ac_try_echo=$ac_try;;
4125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4126 (eval "$ac_try") 2>&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; } &&
4130 { ac_try='test -s conftest.$ac_objext'
4131 { (case "(($ac_try" in
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136 (eval "$ac_try") 2>&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; }; then
4140 # It does; now see whether it defined to BIG_ENDIAN or not.
4141 cat >conftest.$ac_ext <<_ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4147 #include <sys/types.h>
4148 #include <sys/param.h>
4153 #if BYTE_ORDER != BIG_ENDIAN
4161 rm -f conftest.$ac_objext
4162 if { (ac_try="$ac_compile"
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_compile") 2>conftest.er1
4170 grep -v '^ *+' conftest.er1 >conftest.err
4172 cat conftest.err >&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } &&
4175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4176 { (case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4181 (eval "$ac_try") 2>&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; } &&
4185 { ac_try='test -s conftest.$ac_objext'
4186 { (case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_try") 2>&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
4195 ac_cv_c_bigendian=yes
4197 echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4200 ac_cv_c_bigendian=no
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4208 # It does not; compile a test program.
4209 if test "$cross_compiling" = yes; then
4210 # try to guess the endianness by grepping values into an object file
4211 ac_cv_c_bigendian=unknown
4212 cat >conftest.$ac_ext <<_ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4218 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4219 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4220 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4221 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4222 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4223 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4227 _ascii (); _ebcdic ();
4232 rm -f conftest.$ac_objext
4233 if { (ac_try="$ac_compile"
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4239 (eval "$ac_compile") 2>conftest.er1
4241 grep -v '^ *+' conftest.er1 >conftest.err
4243 cat conftest.err >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } &&
4246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4247 { (case "(($ac_try" in
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252 (eval "$ac_try") 2>&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; } &&
4256 { ac_try='test -s conftest.$ac_objext'
4257 { (case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_try") 2>&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; }; then
4266 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4267 ac_cv_c_bigendian=yes
4269 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4270 if test "$ac_cv_c_bigendian" = unknown; then
4271 ac_cv_c_bigendian=no
4273 # finding both strings is unlikely to happen, but who knows?
4274 ac_cv_c_bigendian=unknown
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286 cat >conftest.$ac_ext <<_ACEOF
4289 cat confdefs.h >>conftest.$ac_ext
4290 cat >>conftest.$ac_ext <<_ACEOF
4291 /* end confdefs.h. */
4292 $ac_includes_default
4297 /* Are we little or big endian? From Harbison&Steele. */
4301 char c[sizeof (long int)];
4304 return u.c[sizeof (long int) - 1] == 1;
4310 rm -f conftest$ac_exeext
4311 if { (ac_try="$ac_link"
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317 (eval "$ac_link") 2>&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4321 { (case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4326 (eval "$ac_try") 2>&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); }; }; then
4330 ac_cv_c_bigendian=no
4332 echo "$as_me: program exited with status $ac_status" >&5
4333 echo "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.$ac_ext >&5
4337 ac_cv_c_bigendian=yes
4339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4348 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4349 case $ac_cv_c_bigendian in
4357 { { echo "$as_me:$LINENO: error: unknown endianness
4358 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4359 echo "$as_me: error: unknown endianness
4360 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4361 { (exit 1); exit 1; }; } ;;
4365 if test "$cross_compiling" = yes; then
4366 LLVM_CROSS_COMPILING=1
4369 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4370 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4371 if test "${ac_cv_build_exeext+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4375 ac_cv_build_exeext=.exe
4377 ac_build_prefix=${build_alias}-
4379 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4380 set dummy ${ac_build_prefix}gcc; ac_word=$2
4381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4383 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 if test -n "$BUILD_CC"; then
4387 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 test -z "$as_dir" && as_dir=.
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4396 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 BUILD_CC=$ac_cv_prog_BUILD_CC
4407 if test -n "$BUILD_CC"; then
4408 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4409 echo "${ECHO_T}$BUILD_CC" >&6; }
4411 { echo "$as_me:$LINENO: result: no" >&5
4412 echo "${ECHO_T}no" >&6; }
4416 if test -z "$BUILD_CC"; then
4417 # Extract the first word of "gcc", so it can be a program name with args.
4418 set dummy gcc; ac_word=$2
4419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4421 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 if test -n "$BUILD_CC"; then
4425 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4434 ac_cv_prog_BUILD_CC="gcc"
4435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 BUILD_CC=$ac_cv_prog_BUILD_CC
4445 if test -n "$BUILD_CC"; then
4446 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4447 echo "${ECHO_T}$BUILD_CC" >&6; }
4449 { echo "$as_me:$LINENO: result: no" >&5
4450 echo "${ECHO_T}no" >&6; }
4454 if test -z "$BUILD_CC"; then
4455 # Extract the first word of "cc", so it can be a program name with args.
4456 set dummy cc; ac_word=$2
4457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4459 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 if test -n "$BUILD_CC"; then
4463 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 test -z "$as_dir" && as_dir=.
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4473 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4474 ac_prog_rejected=yes
4477 ac_cv_prog_BUILD_CC="cc"
4478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 if test $ac_prog_rejected = yes; then
4486 # We found a bogon in the path, so make sure we never use it.
4487 set dummy $ac_cv_prog_BUILD_CC
4489 if test $# != 0; then
4490 # We chose a different compiler from the bogus one.
4491 # However, it has the same basename, so the bogon will be chosen
4492 # first if we set BUILD_CC to just the basename; use the full file name.
4494 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4499 BUILD_CC=$ac_cv_prog_BUILD_CC
4500 if test -n "$BUILD_CC"; then
4501 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4502 echo "${ECHO_T}$BUILD_CC" >&6; }
4504 { echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6; }
4511 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4512 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4513 { (exit 1); exit 1; }; }
4514 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4516 echo 'int main () { return 0; }' > conftest.$ac_ext
4518 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4519 (eval $ac_build_link) 2>&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; then
4523 for file in conftest.*; do
4525 *.c | *.o | *.obj) ;;
4526 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4530 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4531 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4532 { (exit 1); exit 1; }; }
4535 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4540 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4541 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4542 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4543 ac_build_exeext=$BUILD_EXEEXT
4546 LLVM_CROSS_COMPILING=0
4550 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4561 # Check whether --enable-optimized was given.
4562 if test "${enable_optimized+set}" = set; then
4563 enableval=$enable_optimized;
4568 if test ${enableval} = "no" ; then
4572 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4576 # Check whether --enable-assertions was given.
4577 if test "${enable_assertions+set}" = set; then
4578 enableval=$enable_assertions;
4583 if test ${enableval} = "yes" ; then
4587 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4591 # Check whether --enable-expensive-checks was given.
4592 if test "${enable_expensive_checks+set}" = set; then
4593 enableval=$enable_expensive_checks;
4598 if test ${enableval} = "yes" ; then
4599 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4601 EXPENSIVE_CHECKS=yes
4604 ENABLE_EXPENSIVE_CHECKS=
4610 # Check whether --enable-debug-runtime was given.
4611 if test "${enable_debug_runtime+set}" = set; then
4612 enableval=$enable_debug_runtime;
4617 if test ${enableval} = "no" ; then
4621 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4625 # Check whether --enable-jit was given.
4626 if test "${enable_jit+set}" = set; then
4627 enableval=$enable_jit;
4632 if test ${enableval} = "no"
4637 case "$llvm_cv_target_arch" in
4638 x86) TARGET_HAS_JIT=1
4640 Sparc) TARGET_HAS_JIT=0
4642 PowerPC) TARGET_HAS_JIT=1
4644 x86_64) TARGET_HAS_JIT=1
4646 Alpha) TARGET_HAS_JIT=1
4648 IA64) TARGET_HAS_JIT=0
4650 ARM) TARGET_HAS_JIT=0
4652 Mips) TARGET_HAS_JIT=0
4659 # Check whether --enable-doxygen was given.
4660 if test "${enable_doxygen+set}" = set; then
4661 enableval=$enable_doxygen;
4666 case "$enableval" in
4667 yes) ENABLE_DOXYGEN=1
4669 no) ENABLE_DOXYGEN=0
4671 default) ENABLE_DOXYGEN=0
4673 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4674 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4675 { (exit 1); exit 1; }; } ;;
4678 # Check whether --enable-threads was given.
4679 if test "${enable_threads+set}" = set; then
4680 enableval=$enable_threads;
4685 case "$enableval" in
4686 yes) ENABLE_THREADS=1
4688 no) ENABLE_THREADS=0
4690 default) ENABLE_THREADS=1
4692 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4693 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4694 { (exit 1); exit 1; }; } ;;
4697 cat >>confdefs.h <<_ACEOF
4698 #define ENABLE_THREADS $ENABLE_THREADS
4702 # Check whether --enable-pic was given.
4703 if test "${enable_pic+set}" = set; then
4704 enableval=$enable_pic;
4709 case "$enableval" in
4714 default) ENABLE_PIC=0
4716 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4717 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4718 { (exit 1); exit 1; }; } ;;
4721 cat >>confdefs.h <<_ACEOF
4722 #define ENABLE_PIC $ENABLE_PIC
4727 # Check whether --enable-targets was given.
4728 if test "${enable_targets+set}" = set; then
4729 enableval=$enable_targets;
4734 case "$enableval" in
4735 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips" ;;
4737 case "$llvm_cv_target_arch" in
4738 x86) TARGETS_TO_BUILD="X86" ;;
4739 x86_64) TARGETS_TO_BUILD="X86" ;;
4740 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4741 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4742 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4743 IA64) TARGETS_TO_BUILD="IA64" ;;
4744 ARM) TARGETS_TO_BUILD="ARM" ;;
4745 Mips) TARGETS_TO_BUILD="Mips" ;;
4746 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4747 echo "$as_me: error: Can not set target to build" >&2;}
4748 { (exit 1); exit 1; }; } ;;
4751 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4753 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4754 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4755 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4756 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4757 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4758 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4759 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4760 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4761 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4762 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4763 { (exit 1); exit 1; }; } ;;
4768 TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4769 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4772 # Check whether --enable-cbe-printf-a was given.
4773 if test "${enable_cbe_printf_a+set}" = set; then
4774 enableval=$enable_cbe_printf_a;
4779 case "$enableval" in
4780 yes) ENABLE_CBE_PRINTF_A=1
4782 no) ENABLE_CBE_PRINTF_A=0
4784 default) ENABLE_CBE_PRINTF_A=1
4786 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4787 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4788 { (exit 1); exit 1; }; } ;;
4791 cat >>confdefs.h <<_ACEOF
4792 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4797 # Check whether --with-llvmgccdir was given.
4798 if test "${with_llvmgccdir+set}" = set; then
4799 withval=$with_llvmgccdir;
4805 default) WITH_LLVMGCCDIR=default ;;
4806 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4807 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4808 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4809 { (exit 1); exit 1; }; } ;;
4813 # Check whether --with-extra-options was given.
4814 if test "${with_extra_options+set}" = set; then
4815 withval=$with_extra_options;
4821 default) EXTRA_OPTIONS= ;;
4822 *) EXTRA_OPTIONS=$withval ;;
4824 EXTRA_OPTIONS=$EXTRA_OPTIONS
4829 ac_cpp='$CPP $CPPFLAGS'
4830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4833 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4834 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4835 # On Suns, sometimes $CPP names a directory.
4836 if test -n "$CPP" && test -d "$CPP"; then
4839 if test -z "$CPP"; then
4840 if test "${ac_cv_prog_CPP+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4843 # Double quotes because CPP needs to be expanded
4844 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4847 for ac_c_preproc_warn_flag in '' yes
4849 # Use a header file that comes with gcc, so configuring glibc
4850 # with a fresh cross-compiler works.
4851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4852 # <limits.h> exists even on freestanding compilers.
4853 # On the NeXT, cc -E runs the code through the compiler's parser,
4854 # not just through cpp. "Syntax error" is here to catch this case.
4855 cat >conftest.$ac_ext <<_ACEOF
4858 cat confdefs.h >>conftest.$ac_ext
4859 cat >>conftest.$ac_ext <<_ACEOF
4860 /* end confdefs.h. */
4862 # include <limits.h>
4864 # include <assert.h>
4868 if { (ac_try="$ac_cpp conftest.$ac_ext"
4870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871 *) ac_try_echo=$ac_try;;
4873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4876 grep -v '^ *+' conftest.er1 >conftest.err
4878 cat conftest.err >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } >/dev/null; then
4881 if test -s conftest.err; then
4882 ac_cpp_err=$ac_c_preproc_warn_flag
4883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4890 if test -z "$ac_cpp_err"; then
4893 echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.$ac_ext >&5
4896 # Broken: fails on valid input.
4900 rm -f conftest.err conftest.$ac_ext
4902 # OK, works on sane cases. Now check whether nonexistent headers
4903 # can be detected and how.
4904 cat >conftest.$ac_ext <<_ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4910 #include <ac_nonexistent.h>
4912 if { (ac_try="$ac_cpp conftest.$ac_ext"
4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915 *) ac_try_echo=$ac_try;;
4917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4920 grep -v '^ *+' conftest.er1 >conftest.err
4922 cat conftest.err >&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); } >/dev/null; then
4925 if test -s conftest.err; then
4926 ac_cpp_err=$ac_c_preproc_warn_flag
4927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4934 if test -z "$ac_cpp_err"; then
4935 # Broken: success on invalid input.
4938 echo "$as_me: failed program was:" >&5
4939 sed 's/^/| /' conftest.$ac_ext >&5
4941 # Passes both tests.
4946 rm -f conftest.err conftest.$ac_ext
4949 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4950 rm -f conftest.err conftest.$ac_ext
4951 if $ac_preproc_ok; then
4963 { echo "$as_me:$LINENO: result: $CPP" >&5
4964 echo "${ECHO_T}$CPP" >&6; }
4966 for ac_c_preproc_warn_flag in '' yes
4968 # Use a header file that comes with gcc, so configuring glibc
4969 # with a fresh cross-compiler works.
4970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4971 # <limits.h> exists even on freestanding compilers.
4972 # On the NeXT, cc -E runs the code through the compiler's parser,
4973 # not just through cpp. "Syntax error" is here to catch this case.
4974 cat >conftest.$ac_ext <<_ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4981 # include <limits.h>
4983 # include <assert.h>
4987 if { (ac_try="$ac_cpp conftest.$ac_ext"
4989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4990 *) ac_try_echo=$ac_try;;
4992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4995 grep -v '^ *+' conftest.er1 >conftest.err
4997 cat conftest.err >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } >/dev/null; then
5000 if test -s conftest.err; then
5001 ac_cpp_err=$ac_c_preproc_warn_flag
5002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5009 if test -z "$ac_cpp_err"; then
5012 echo "$as_me: failed program was:" >&5
5013 sed 's/^/| /' conftest.$ac_ext >&5
5015 # Broken: fails on valid input.
5019 rm -f conftest.err conftest.$ac_ext
5021 # OK, works on sane cases. Now check whether nonexistent headers
5022 # can be detected and how.
5023 cat >conftest.$ac_ext <<_ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5029 #include <ac_nonexistent.h>
5031 if { (ac_try="$ac_cpp conftest.$ac_ext"
5033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5034 *) ac_try_echo=$ac_try;;
5036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5039 grep -v '^ *+' conftest.er1 >conftest.err
5041 cat conftest.err >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } >/dev/null; then
5044 if test -s conftest.err; then
5045 ac_cpp_err=$ac_c_preproc_warn_flag
5046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5053 if test -z "$ac_cpp_err"; then
5054 # Broken: success on invalid input.
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5060 # Passes both tests.
5065 rm -f conftest.err conftest.$ac_ext
5068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5069 rm -f conftest.err conftest.$ac_ext
5070 if $ac_preproc_ok; then
5073 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5074 See \`config.log' for more details." >&5
5075 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5076 See \`config.log' for more details." >&2;}
5077 { (exit 1); exit 1; }; }
5081 ac_cpp='$CPP $CPPFLAGS'
5082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5087 ac_cpp='$CPP $CPPFLAGS'
5088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5091 if test -n "$ac_tool_prefix"; then
5094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5098 if test "${ac_cv_prog_CC+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 if test -n "$CC"; then
5102 ac_cv_prog_CC="$CC" # Let the user override the test.
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5111 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 if test -n "$CC"; then
5123 { echo "$as_me:$LINENO: result: $CC" >&5
5124 echo "${ECHO_T}$CC" >&6; }
5126 { echo "$as_me:$LINENO: result: no" >&5
5127 echo "${ECHO_T}no" >&6; }
5131 test -n "$CC" && break
5134 if test -z "$CC"; then
5138 # Extract the first word of "$ac_prog", so it can be a program name with args.
5139 set dummy $ac_prog; ac_word=$2
5140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5142 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 if test -n "$ac_ct_CC"; then
5146 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5155 ac_cv_prog_ac_ct_CC="$ac_prog"
5156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5166 if test -n "$ac_ct_CC"; then
5167 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5168 echo "${ECHO_T}$ac_ct_CC" >&6; }
5170 { echo "$as_me:$LINENO: result: no" >&5
5171 echo "${ECHO_T}no" >&6; }
5175 test -n "$ac_ct_CC" && break
5178 if test "x$ac_ct_CC" = x; then
5181 case $cross_compiling:$ac_tool_warned in
5183 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5184 whose name does not start with the host triplet. If you think this
5185 configuration is useful to you, please write to autoconf@gnu.org." >&5
5186 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5187 whose name does not start with the host triplet. If you think this
5188 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5189 ac_tool_warned=yes ;;
5196 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5197 See \`config.log' for more details." >&5
5198 echo "$as_me: error: no acceptable C compiler found in \$PATH
5199 See \`config.log' for more details." >&2;}
5200 { (exit 1); exit 1; }; }
5202 # Provide some information about the compiler.
5203 echo "$as_me:$LINENO: checking for C compiler version" >&5
5204 ac_compiler=`set X $ac_compile; echo $2`
5205 { (ac_try="$ac_compiler --version >&5"
5207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208 *) ac_try_echo=$ac_try;;
5210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5211 (eval "$ac_compiler --version >&5") 2>&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }
5215 { (ac_try="$ac_compiler -v >&5"
5217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218 *) ac_try_echo=$ac_try;;
5220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5221 (eval "$ac_compiler -v >&5") 2>&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }
5225 { (ac_try="$ac_compiler -V >&5"
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_compiler -V >&5") 2>&5
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }
5236 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5237 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5238 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 cat >conftest.$ac_ext <<_ACEOF
5244 cat confdefs.h >>conftest.$ac_ext
5245 cat >>conftest.$ac_ext <<_ACEOF
5246 /* end confdefs.h. */
5259 rm -f conftest.$ac_objext
5260 if { (ac_try="$ac_compile"
5262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5263 *) ac_try_echo=$ac_try;;
5265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5266 (eval "$ac_compile") 2>conftest.er1
5268 grep -v '^ *+' conftest.er1 >conftest.err
5270 cat conftest.err >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); } &&
5273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5274 { (case "(($ac_try" in
5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279 (eval "$ac_try") 2>&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; } &&
5283 { ac_try='test -s conftest.$ac_objext'
5284 { (case "(($ac_try" in
5285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286 *) ac_try_echo=$ac_try;;
5288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289 (eval "$ac_try") 2>&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; }; then
5295 echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5302 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5305 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5306 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5307 GCC=`test $ac_compiler_gnu = yes && echo yes`
5308 ac_test_CFLAGS=${CFLAGS+set}
5309 ac_save_CFLAGS=$CFLAGS
5310 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5311 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5312 if test "${ac_cv_prog_cc_g+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 ac_save_c_werror_flag=$ac_c_werror_flag
5316 ac_c_werror_flag=yes
5319 cat >conftest.$ac_ext <<_ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5334 rm -f conftest.$ac_objext
5335 if { (ac_try="$ac_compile"
5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338 *) ac_try_echo=$ac_try;;
5340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5341 (eval "$ac_compile") 2>conftest.er1
5343 grep -v '^ *+' conftest.er1 >conftest.err
5345 cat conftest.err >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } &&
5348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5349 { (case "(($ac_try" in
5350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351 *) ac_try_echo=$ac_try;;
5353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5354 (eval "$ac_try") 2>&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }; } &&
5358 { ac_try='test -s conftest.$ac_objext'
5359 { (case "(($ac_try" in
5360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5361 *) ac_try_echo=$ac_try;;
5363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5364 (eval "$ac_try") 2>&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); }; }; then
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5374 cat >conftest.$ac_ext <<_ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5389 rm -f conftest.$ac_objext
5390 if { (ac_try="$ac_compile"
5392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393 *) ac_try_echo=$ac_try;;
5395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5396 (eval "$ac_compile") 2>conftest.er1
5398 grep -v '^ *+' conftest.er1 >conftest.err
5400 cat conftest.err >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); } &&
5403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5404 { (case "(($ac_try" in
5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406 *) ac_try_echo=$ac_try;;
5408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5409 (eval "$ac_try") 2>&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; } &&
5413 { ac_try='test -s conftest.$ac_objext'
5414 { (case "(($ac_try" in
5415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416 *) ac_try_echo=$ac_try;;
5418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5419 (eval "$ac_try") 2>&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5428 ac_c_werror_flag=$ac_save_c_werror_flag
5430 cat >conftest.$ac_ext <<_ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h. */
5445 rm -f conftest.$ac_objext
5446 if { (ac_try="$ac_compile"
5448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449 *) ac_try_echo=$ac_try;;
5451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5452 (eval "$ac_compile") 2>conftest.er1
5454 grep -v '^ *+' conftest.er1 >conftest.err
5456 cat conftest.err >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } &&
5459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5460 { (case "(($ac_try" in
5461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462 *) ac_try_echo=$ac_try;;
5464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465 (eval "$ac_try") 2>&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; } &&
5469 { ac_try='test -s conftest.$ac_objext'
5470 { (case "(($ac_try" in
5471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472 *) ac_try_echo=$ac_try;;
5474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5475 (eval "$ac_try") 2>&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }; }; then
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494 ac_c_werror_flag=$ac_save_c_werror_flag
5496 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5497 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5498 if test "$ac_test_CFLAGS" = set; then
5499 CFLAGS=$ac_save_CFLAGS
5500 elif test $ac_cv_prog_cc_g = yes; then
5501 if test "$GCC" = yes; then
5507 if test "$GCC" = yes; then
5513 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5514 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5515 if test "${ac_cv_prog_cc_c89+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 ac_cv_prog_cc_c89=no
5520 cat >conftest.$ac_ext <<_ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h. */
5528 #include <sys/types.h>
5529 #include <sys/stat.h>
5530 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5531 struct buf { int x; };
5532 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5533 static char *e (p, i)
5539 static char *f (char * (*g) (char **, int), char **p, ...)
5544 s = g (p, va_arg (v,int));
5549 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5550 function prototypes and stuff, but not '\xHH' hex character constants.
5551 These don't provoke an error unfortunately, instead are silently treated
5552 as 'x'. The following induces an error, until -std is added to get
5553 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5554 array size at least. It's necessary to write '\x00'==0 to get something
5555 that's true only with -std. */
5556 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5558 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5559 inside strings and character constants. */
5561 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5563 int test (int i, double x);
5564 struct s1 {int (*f) (int a);};
5565 struct s2 {int (*f) (double a);};
5566 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5572 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5577 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5578 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5580 CC="$ac_save_CC $ac_arg"
5581 rm -f conftest.$ac_objext
5582 if { (ac_try="$ac_compile"
5584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5585 *) ac_try_echo=$ac_try;;
5587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5588 (eval "$ac_compile") 2>conftest.er1
5590 grep -v '^ *+' conftest.er1 >conftest.err
5592 cat conftest.err >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } &&
5595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5596 { (case "(($ac_try" in
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601 (eval "$ac_try") 2>&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; } &&
5605 { ac_try='test -s conftest.$ac_objext'
5606 { (case "(($ac_try" in
5607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608 *) ac_try_echo=$ac_try;;
5610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5611 (eval "$ac_try") 2>&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
5615 ac_cv_prog_cc_c89=$ac_arg
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5623 rm -f core conftest.err conftest.$ac_objext
5624 test "x$ac_cv_prog_cc_c89" != "xno" && break
5626 rm -f conftest.$ac_ext
5631 case "x$ac_cv_prog_cc_c89" in
5633 { echo "$as_me:$LINENO: result: none needed" >&5
5634 echo "${ECHO_T}none needed" >&6; } ;;
5636 { echo "$as_me:$LINENO: result: unsupported" >&5
5637 echo "${ECHO_T}unsupported" >&6; } ;;
5639 CC="$CC $ac_cv_prog_cc_c89"
5640 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5641 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5646 ac_cpp='$CPP $CPPFLAGS'
5647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5652 ac_cpp='$CXXCPP $CPPFLAGS'
5653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5656 if test -z "$CXX"; then
5657 if test -n "$CCC"; then
5660 if test -n "$ac_tool_prefix"; then
5663 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5664 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5667 if test "${ac_cv_prog_CXX+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 if test -n "$CXX"; then
5671 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5680 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5691 if test -n "$CXX"; then
5692 { echo "$as_me:$LINENO: result: $CXX" >&5
5693 echo "${ECHO_T}$CXX" >&6; }
5695 { echo "$as_me:$LINENO: result: no" >&5
5696 echo "${ECHO_T}no" >&6; }
5700 test -n "$CXX" && break
5703 if test -z "$CXX"; then
5707 # Extract the first word of "$ac_prog", so it can be a program name with args.
5708 set dummy $ac_prog; ac_word=$2
5709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5711 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5712 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 if test -n "$ac_ct_CXX"; then
5715 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 test -z "$as_dir" && as_dir=.
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5724 ac_cv_prog_ac_ct_CXX="$ac_prog"
5725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5735 if test -n "$ac_ct_CXX"; then
5736 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5737 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5739 { echo "$as_me:$LINENO: result: no" >&5
5740 echo "${ECHO_T}no" >&6; }
5744 test -n "$ac_ct_CXX" && break
5747 if test "x$ac_ct_CXX" = x; then
5750 case $cross_compiling:$ac_tool_warned in
5752 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5753 whose name does not start with the host triplet. If you think this
5754 configuration is useful to you, please write to autoconf@gnu.org." >&5
5755 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5756 whose name does not start with the host triplet. If you think this
5757 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5758 ac_tool_warned=yes ;;
5766 # Provide some information about the compiler.
5767 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5768 ac_compiler=`set X $ac_compile; echo $2`
5769 { (ac_try="$ac_compiler --version >&5"
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_compiler --version >&5") 2>&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }
5779 { (ac_try="$ac_compiler -v >&5"
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_compiler -v >&5") 2>&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }
5789 { (ac_try="$ac_compiler -V >&5"
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_compiler -V >&5") 2>&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }
5800 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5801 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5802 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 cat >conftest.$ac_ext <<_ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5823 rm -f conftest.$ac_objext
5824 if { (ac_try="$ac_compile"
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_compile") 2>conftest.er1
5832 grep -v '^ *+' conftest.er1 >conftest.err
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } &&
5837 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5838 { (case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_try") 2>&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } &&
5847 { ac_try='test -s conftest.$ac_objext'
5848 { (case "(($ac_try" in
5849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850 *) ac_try_echo=$ac_try;;
5852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853 (eval "$ac_try") 2>&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5869 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5870 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5871 GXX=`test $ac_compiler_gnu = yes && echo yes`
5872 ac_test_CXXFLAGS=${CXXFLAGS+set}
5873 ac_save_CXXFLAGS=$CXXFLAGS
5874 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5875 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5876 if test "${ac_cv_prog_cxx_g+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5880 ac_cxx_werror_flag=yes
5883 cat >conftest.$ac_ext <<_ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5898 rm -f conftest.$ac_objext
5899 if { (ac_try="$ac_compile"
5901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5902 *) ac_try_echo=$ac_try;;
5904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5905 (eval "$ac_compile") 2>conftest.er1
5907 grep -v '^ *+' conftest.er1 >conftest.err
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5913 { (case "(($ac_try" in
5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915 *) ac_try_echo=$ac_try;;
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918 (eval "$ac_try") 2>&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; } &&
5922 { ac_try='test -s conftest.$ac_objext'
5923 { (case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_try") 2>&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5932 ac_cv_prog_cxx_g=yes
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5938 cat >conftest.$ac_ext <<_ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5953 rm -f conftest.$ac_objext
5954 if { (ac_try="$ac_compile"
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960 (eval "$ac_compile") 2>conftest.er1
5962 grep -v '^ *+' conftest.er1 >conftest.err
5964 cat conftest.err >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } &&
5967 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5968 { (case "(($ac_try" in
5969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970 *) ac_try_echo=$ac_try;;
5972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5973 (eval "$ac_try") 2>&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; } &&
5977 { ac_try='test -s conftest.$ac_objext'
5978 { (case "(($ac_try" in
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5983 (eval "$ac_try") 2>&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; }; then
5989 echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5992 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5994 cat >conftest.$ac_ext <<_ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6009 rm -f conftest.$ac_objext
6010 if { (ac_try="$ac_compile"
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_compile") 2>conftest.er1
6018 grep -v '^ *+' conftest.er1 >conftest.err
6020 cat conftest.err >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } &&
6023 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6024 { (case "(($ac_try" in
6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026 *) ac_try_echo=$ac_try;;
6028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029 (eval "$ac_try") 2>&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try='test -s conftest.$ac_objext'
6034 { (case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_try") 2>&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; }; then
6043 ac_cv_prog_cxx_g=yes
6045 echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6060 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6061 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6062 if test "$ac_test_CXXFLAGS" = set; then
6063 CXXFLAGS=$ac_save_CXXFLAGS
6064 elif test $ac_cv_prog_cxx_g = yes; then
6065 if test "$GXX" = yes; then
6071 if test "$GXX" = yes; then
6078 ac_cpp='$CPP $CPPFLAGS'
6079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6083 { echo "$as_me:$LINENO: checking " >&5
6084 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6085 if test "${ac_cv_has_flex+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 for ac_prog in flex lex
6090 # Extract the first word of "$ac_prog", so it can be a program name with args.
6091 set dummy $ac_prog; ac_word=$2
6092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6094 if test "${ac_cv_prog_LEX+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 if test -n "$LEX"; then
6098 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6107 ac_cv_prog_LEX="$ac_prog"
6108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 if test -n "$LEX"; then
6119 { echo "$as_me:$LINENO: result: $LEX" >&5
6120 echo "${ECHO_T}$LEX" >&6; }
6122 { echo "$as_me:$LINENO: result: no" >&5
6123 echo "${ECHO_T}no" >&6; }
6127 test -n "$LEX" && break
6129 test -n "$LEX" || LEX=":"
6131 if test -z "$LEXLIB"
6133 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6134 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6135 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 ac_check_lib_save_LIBS=$LIBS
6140 cat >conftest.$ac_ext <<_ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h. */
6147 /* Override any GCC internal prototype to avoid an error.
6148 Use char because int might match the return type of a GCC
6149 builtin and then its argument prototype would still apply. */
6162 rm -f conftest.$ac_objext conftest$ac_exeext
6163 if { (ac_try="$ac_link"
6165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166 *) ac_try_echo=$ac_try;;
6168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6169 (eval "$ac_link") 2>conftest.er1
6171 grep -v '^ *+' conftest.er1 >conftest.err
6173 cat conftest.err >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } &&
6176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6177 { (case "(($ac_try" in
6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182 (eval "$ac_try") 2>&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; } &&
6186 { ac_try='test -s conftest$ac_exeext'
6187 { (case "(($ac_try" in
6188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189 *) ac_try_echo=$ac_try;;
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192 (eval "$ac_try") 2>&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6196 ac_cv_lib_fl_yywrap=yes
6198 echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6201 ac_cv_lib_fl_yywrap=no
6204 rm -f core conftest.err conftest.$ac_objext \
6205 conftest$ac_exeext conftest.$ac_ext
6206 LIBS=$ac_check_lib_save_LIBS
6208 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6209 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6210 if test $ac_cv_lib_fl_yywrap = yes; then
6213 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6214 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6215 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 ac_check_lib_save_LIBS=$LIBS
6220 cat >conftest.$ac_ext <<_ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h. */
6227 /* Override any GCC internal prototype to avoid an error.
6228 Use char because int might match the return type of a GCC
6229 builtin and then its argument prototype would still apply. */
6242 rm -f conftest.$ac_objext conftest$ac_exeext
6243 if { (ac_try="$ac_link"
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_link") 2>conftest.er1
6251 grep -v '^ *+' conftest.er1 >conftest.err
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } &&
6256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6257 { (case "(($ac_try" in
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262 (eval "$ac_try") 2>&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; } &&
6266 { ac_try='test -s conftest$ac_exeext'
6267 { (case "(($ac_try" in
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_try") 2>&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }; then
6276 ac_cv_lib_l_yywrap=yes
6278 echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6281 ac_cv_lib_l_yywrap=no
6284 rm -f core conftest.err conftest.$ac_objext \
6285 conftest$ac_exeext conftest.$ac_ext
6286 LIBS=$ac_check_lib_save_LIBS
6288 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6289 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6290 if test $ac_cv_lib_l_yywrap = yes; then
6298 if test "x$LEX" != "x:"; then
6299 { echo "$as_me:$LINENO: checking lex output file root" >&5
6300 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6301 if test "${ac_cv_prog_lex_root+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 # The minimal lex program is just a single line: %%. But some broken lexes
6305 # (Solaris, I think it was) want two %% lines, so accommodate them.
6306 cat >conftest.l <<_ACEOF
6310 { (ac_try="$LEX conftest.l"
6312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313 *) ac_try_echo=$ac_try;;
6315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6316 (eval "$LEX conftest.l") 2>&5
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }
6320 if test -f lex.yy.c; then
6321 ac_cv_prog_lex_root=lex.yy
6322 elif test -f lexyy.c; then
6323 ac_cv_prog_lex_root=lexyy
6325 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6326 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6327 { (exit 1); exit 1; }; }
6330 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6331 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6333 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6335 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6336 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6337 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 # POSIX says lex can declare yytext either as a pointer or an array; the
6341 # default is implementation-dependent. Figure out which it is, since
6342 # not all implementations provide the %pointer and %array declarations.
6343 ac_cv_prog_lex_yytext_pointer=no
6344 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6346 LIBS="$LIBS $LEXLIB"
6347 cat >conftest.$ac_ext <<_ACEOF
6348 `cat $LEX_OUTPUT_ROOT.c`
6350 rm -f conftest.$ac_objext conftest$ac_exeext
6351 if { (ac_try="$ac_link"
6353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6354 *) ac_try_echo=$ac_try;;
6356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6357 (eval "$ac_link") 2>conftest.er1
6359 grep -v '^ *+' conftest.er1 >conftest.err
6361 cat conftest.err >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6365 { (case "(($ac_try" in
6366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6367 *) ac_try_echo=$ac_try;;
6369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6370 (eval "$ac_try") 2>&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; } &&
6374 { ac_try='test -s conftest$ac_exeext'
6375 { (case "(($ac_try" in
6376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6377 *) ac_try_echo=$ac_try;;
6379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6380 (eval "$ac_try") 2>&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); }; }; then
6384 ac_cv_prog_lex_yytext_pointer=yes
6386 echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6392 rm -f core conftest.err conftest.$ac_objext \
6393 conftest$ac_exeext conftest.$ac_ext
6395 rm -f "${LEX_OUTPUT_ROOT}.c"
6398 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6399 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6400 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6402 cat >>confdefs.h <<\_ACEOF
6403 #define YYTEXT_POINTER 1
6411 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6412 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6413 if test "$LEX" != "flex"; then
6414 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6415 echo "$as_me: error: flex not found but required" >&2;}
6416 { (exit 1); exit 1; }; }
6422 { echo "$as_me:$LINENO: checking " >&5
6423 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6424 if test "${llvm_cv_has_bison+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 for ac_prog in 'bison -y' byacc
6429 # Extract the first word of "$ac_prog", so it can be a program name with args.
6430 set dummy $ac_prog; ac_word=$2
6431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6433 if test "${ac_cv_prog_YACC+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 if test -n "$YACC"; then
6437 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6446 ac_cv_prog_YACC="$ac_prog"
6447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 YACC=$ac_cv_prog_YACC
6457 if test -n "$YACC"; then
6458 { echo "$as_me:$LINENO: result: $YACC" >&5
6459 echo "${ECHO_T}$YACC" >&6; }
6461 { echo "$as_me:$LINENO: result: no" >&5
6462 echo "${ECHO_T}no" >&6; }
6466 test -n "$YACC" && break
6468 test -n "$YACC" || YACC="yacc"
6471 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6472 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6473 if test "$YACC" != "bison -y"; then
6475 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6476 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6482 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6483 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6484 if test "${lt_cv_path_NM+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6487 if test -n "$NM"; then
6488 # Let the user override the test.
6491 lt_nm_to_check="${ac_tool_prefix}nm"
6492 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6493 lt_nm_to_check="$lt_nm_to_check nm"
6495 for lt_tmp_nm in $lt_nm_to_check; do
6496 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6497 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6499 test -z "$ac_dir" && ac_dir=.
6500 tmp_nm="$ac_dir/$lt_tmp_nm"
6501 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6502 # Check to see if the nm accepts a BSD-compat flag.
6503 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6504 # nm: unknown option "B" ignored
6505 # Tru64's nm complains that /dev/null is an invalid object file
6506 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6507 */dev/null* | *'Invalid file or object type'*)
6508 lt_cv_path_NM="$tmp_nm -B"
6512 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6514 lt_cv_path_NM="$tmp_nm -p"
6518 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6519 continue # so that we can try to find one that supports BSD flags
6528 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6531 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6532 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6537 { echo "$as_me:$LINENO: checking for GNU make" >&5
6538 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6539 if test "${llvm_cv_gnu_make_command+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 llvm_cv_gnu_make_command=''
6543 for a in "$MAKE" make gmake gnumake ; do
6544 if test -z "$a" ; then continue ; fi ;
6545 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6547 llvm_cv_gnu_make_command=$a ;
6552 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6553 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6554 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6558 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6559 echo "${ECHO_T}\"Not found\"" >&6; };
6563 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6564 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6566 if test "$LN_S" = "ln -s"; then
6567 { echo "$as_me:$LINENO: result: yes" >&5
6568 echo "${ECHO_T}yes" >&6; }
6570 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6571 echo "${ECHO_T}no, using $LN_S" >&6; }
6574 # Extract the first word of "cmp", so it can be a program name with args.
6575 set dummy cmp; ac_word=$2
6576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6578 if test "${ac_cv_path_CMP+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6583 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590 test -z "$as_dir" && as_dir=.
6591 for ac_exec_ext in '' $ac_executable_extensions; do
6592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6593 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6606 if test -n "$CMP"; then
6607 { echo "$as_me:$LINENO: result: $CMP" >&5
6608 echo "${ECHO_T}$CMP" >&6; }
6610 { echo "$as_me:$LINENO: result: no" >&5
6611 echo "${ECHO_T}no" >&6; }
6615 # Extract the first word of "cp", so it can be a program name with args.
6616 set dummy cp; ac_word=$2
6617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6619 if test "${ac_cv_path_CP+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 test -z "$as_dir" && as_dir=.
6632 for ac_exec_ext in '' $ac_executable_extensions; do
6633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6634 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6642 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6647 if test -n "$CP"; then
6648 { echo "$as_me:$LINENO: result: $CP" >&5
6649 echo "${ECHO_T}$CP" >&6; }
6651 { echo "$as_me:$LINENO: result: no" >&5
6652 echo "${ECHO_T}no" >&6; }
6656 # Extract the first word of "date", so it can be a program name with args.
6657 set dummy date; ac_word=$2
6658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6660 if test "${ac_cv_path_DATE+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 test -z "$as_dir" && as_dir=.
6673 for ac_exec_ext in '' $ac_executable_extensions; do
6674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6675 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6687 DATE=$ac_cv_path_DATE
6688 if test -n "$DATE"; then
6689 { echo "$as_me:$LINENO: result: $DATE" >&5
6690 echo "${ECHO_T}$DATE" >&6; }
6692 { echo "$as_me:$LINENO: result: no" >&5
6693 echo "${ECHO_T}no" >&6; }
6697 # Extract the first word of "find", so it can be a program name with args.
6698 set dummy find; ac_word=$2
6699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6701 if test "${ac_cv_path_FIND+set}" = set; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6716 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6728 FIND=$ac_cv_path_FIND
6729 if test -n "$FIND"; then
6730 { echo "$as_me:$LINENO: result: $FIND" >&5
6731 echo "${ECHO_T}$FIND" >&6; }
6733 { echo "$as_me:$LINENO: result: no" >&5
6734 echo "${ECHO_T}no" >&6; }
6738 # Extract the first word of "grep", so it can be a program name with args.
6739 set dummy grep; ac_word=$2
6740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6742 if test "${ac_cv_path_GREP+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6757 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6765 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6769 GREP=$ac_cv_path_GREP
6770 if test -n "$GREP"; then
6771 { echo "$as_me:$LINENO: result: $GREP" >&5
6772 echo "${ECHO_T}$GREP" >&6; }
6774 { echo "$as_me:$LINENO: result: no" >&5
6775 echo "${ECHO_T}no" >&6; }
6779 # Extract the first word of "mkdir", so it can be a program name with args.
6780 set dummy mkdir; ac_word=$2
6781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6783 if test "${ac_cv_path_MKDIR+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6788 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6798 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6810 MKDIR=$ac_cv_path_MKDIR
6811 if test -n "$MKDIR"; then
6812 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6813 echo "${ECHO_T}$MKDIR" >&6; }
6815 { echo "$as_me:$LINENO: result: no" >&5
6816 echo "${ECHO_T}no" >&6; }
6820 # Extract the first word of "mv", so it can be a program name with args.
6821 set dummy mv; ac_word=$2
6822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824 if test "${ac_cv_path_MV+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6852 if test -n "$MV"; then
6853 { echo "$as_me:$LINENO: result: $MV" >&5
6854 echo "${ECHO_T}$MV" >&6; }
6856 { echo "$as_me:$LINENO: result: no" >&5
6857 echo "${ECHO_T}no" >&6; }
6861 if test -n "$ac_tool_prefix"; then
6862 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6863 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6866 if test "${ac_cv_prog_RANLIB+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 if test -n "$RANLIB"; then
6870 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6879 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 RANLIB=$ac_cv_prog_RANLIB
6890 if test -n "$RANLIB"; then
6891 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6892 echo "${ECHO_T}$RANLIB" >&6; }
6894 { echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6; }
6900 if test -z "$ac_cv_prog_RANLIB"; then
6901 ac_ct_RANLIB=$RANLIB
6902 # Extract the first word of "ranlib", so it can be a program name with args.
6903 set dummy ranlib; ac_word=$2
6904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6906 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 if test -n "$ac_ct_RANLIB"; then
6910 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6919 ac_cv_prog_ac_ct_RANLIB="ranlib"
6920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6930 if test -n "$ac_ct_RANLIB"; then
6931 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6932 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6934 { echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6; }
6938 if test "x$ac_ct_RANLIB" = x; then
6941 case $cross_compiling:$ac_tool_warned in
6943 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6944 whose name does not start with the host triplet. If you think this
6945 configuration is useful to you, please write to autoconf@gnu.org." >&5
6946 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6947 whose name does not start with the host triplet. If you think this
6948 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6949 ac_tool_warned=yes ;;
6951 RANLIB=$ac_ct_RANLIB
6954 RANLIB="$ac_cv_prog_RANLIB"
6957 # Extract the first word of "rm", so it can be a program name with args.
6958 set dummy rm; ac_word=$2
6959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6961 if test "${ac_cv_path_RM+set}" = set; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 test -z "$as_dir" && as_dir=.
6974 for ac_exec_ext in '' $ac_executable_extensions; do
6975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6976 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6984 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6989 if test -n "$RM"; then
6990 { echo "$as_me:$LINENO: result: $RM" >&5
6991 echo "${ECHO_T}$RM" >&6; }
6993 { echo "$as_me:$LINENO: result: no" >&5
6994 echo "${ECHO_T}no" >&6; }
6998 # Extract the first word of "sed", so it can be a program name with args.
6999 set dummy sed; ac_word=$2
7000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7002 if test "${ac_cv_path_SED+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7017 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7030 if test -n "$SED"; then
7031 { echo "$as_me:$LINENO: result: $SED" >&5
7032 echo "${ECHO_T}$SED" >&6; }
7034 { echo "$as_me:$LINENO: result: no" >&5
7035 echo "${ECHO_T}no" >&6; }
7039 # Extract the first word of "tar", so it can be a program name with args.
7040 set dummy tar; ac_word=$2
7041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7043 if test "${ac_cv_path_TAR+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7048 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 test -z "$as_dir" && as_dir=.
7056 for ac_exec_ext in '' $ac_executable_extensions; do
7057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7058 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7071 if test -n "$TAR"; then
7072 { echo "$as_me:$LINENO: result: $TAR" >&5
7073 echo "${ECHO_T}$TAR" >&6; }
7075 { echo "$as_me:$LINENO: result: no" >&5
7076 echo "${ECHO_T}no" >&6; }
7080 # Extract the first word of "pwd", so it can be a program name with args.
7081 set dummy pwd; ac_word=$2
7082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7084 if test "${ac_cv_path_BINPWD+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 test -z "$as_dir" && as_dir=.
7097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7099 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7111 BINPWD=$ac_cv_path_BINPWD
7112 if test -n "$BINPWD"; then
7113 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7114 echo "${ECHO_T}$BINPWD" >&6; }
7116 { echo "$as_me:$LINENO: result: no" >&5
7117 echo "${ECHO_T}no" >&6; }
7122 # Extract the first word of "Graphviz", so it can be a program name with args.
7123 set dummy Graphviz; ac_word=$2
7124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7126 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 test -z "$as_dir" && as_dir=.
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7141 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7153 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7154 if test -n "$GRAPHVIZ"; then
7155 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7156 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7158 { echo "$as_me:$LINENO: result: no" >&5
7159 echo "${ECHO_T}no" >&6; }
7163 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7165 cat >>confdefs.h <<\_ACEOF
7166 #define HAVE_GRAPHVIZ 1
7169 if test "$llvm_cv_os_type" = "MingW" ; then
7170 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7173 cat >>confdefs.h <<_ACEOF
7174 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7178 # Extract the first word of "dot", so it can be a program name with args.
7179 set dummy dot; ac_word=$2
7180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7182 if test "${ac_cv_path_DOT+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7197 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7210 if test -n "$DOT"; then
7211 { echo "$as_me:$LINENO: result: $DOT" >&5
7212 echo "${ECHO_T}$DOT" >&6; }
7214 { echo "$as_me:$LINENO: result: no" >&5
7215 echo "${ECHO_T}no" >&6; }
7219 if test "$DOT" != "echo dot" ; then
7221 cat >>confdefs.h <<\_ACEOF
7225 if test "$llvm_cv_os_type" = "MingW" ; then
7226 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7229 cat >>confdefs.h <<_ACEOF
7230 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7234 for ac_prog in gv gsview32
7236 # Extract the first word of "$ac_prog", so it can be a program name with args.
7237 set dummy $ac_prog; ac_word=$2
7238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7240 if test "${ac_cv_path_GV+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7255 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 if test -n "$GV"; then
7268 { echo "$as_me:$LINENO: result: $GV" >&5
7269 echo "${ECHO_T}$GV" >&6; }
7271 { echo "$as_me:$LINENO: result: no" >&5
7272 echo "${ECHO_T}no" >&6; }
7276 test -n "$GV" && break
7278 test -n "$GV" || GV="echo gv"
7280 if test "$GV" != "echo gv" ; then
7282 cat >>confdefs.h <<\_ACEOF
7286 if test "$llvm_cv_os_type" = "MingW" ; then
7287 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7290 cat >>confdefs.h <<_ACEOF
7291 #define LLVM_PATH_GV "$GV${EXEEXT}"
7295 # Extract the first word of "dotty", so it can be a program name with args.
7296 set dummy dotty; ac_word=$2
7297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7299 if test "${ac_cv_path_DOTTY+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7304 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 test -z "$as_dir" && as_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7314 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7326 DOTTY=$ac_cv_path_DOTTY
7327 if test -n "$DOTTY"; then
7328 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7329 echo "${ECHO_T}$DOTTY" >&6; }
7331 { echo "$as_me:$LINENO: result: no" >&5
7332 echo "${ECHO_T}no" >&6; }
7336 if test "$DOTTY" != "echo dotty" ; then
7338 cat >>confdefs.h <<\_ACEOF
7339 #define HAVE_DOTTY 1
7342 if test "$llvm_cv_os_type" = "MingW" ; then
7343 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7346 cat >>confdefs.h <<_ACEOF
7347 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7353 # Extract the first word of "perl", so it can be a program name with args.
7354 set dummy perl; ac_word=$2
7355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7357 if test "${ac_cv_path_PERL+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7372 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7380 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7384 PERL=$ac_cv_path_PERL
7385 if test -n "$PERL"; then
7386 { echo "$as_me:$LINENO: result: $PERL" >&5
7387 echo "${ECHO_T}$PERL" >&6; }
7389 { echo "$as_me:$LINENO: result: no" >&5
7390 echo "${ECHO_T}no" >&6; }
7394 if test "$PERL" != "none"; then
7395 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7396 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7397 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7398 { echo "$as_me:$LINENO: result: yes" >&5
7399 echo "${ECHO_T}yes" >&6; }
7402 { echo "$as_me:$LINENO: result: not found" >&5
7403 echo "${ECHO_T}not found" >&6; }
7408 if test x"$PERL" = xnone; then
7411 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7412 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7413 { (exit 1); exit 1; }; }
7419 # Find a good install program. We prefer a C program (faster),
7420 # so one script is as good as another. But avoid the broken or
7421 # incompatible versions:
7422 # SysV /etc/install, /usr/sbin/install
7423 # SunOS /usr/etc/install
7424 # IRIX /sbin/install
7426 # AmigaOS /C/install, which installs bootblocks on floppy discs
7427 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7428 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7429 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7430 # OS/2's system install, which has a completely different semantic
7431 # ./install, which can be erroneously created by make from ./install.sh.
7432 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7433 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7434 if test -z "$INSTALL"; then
7435 if test "${ac_cv_path_install+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 test -z "$as_dir" && as_dir=.
7443 # Account for people who put trailing slashes in PATH elements.
7445 ./ | .// | /cC/* | \
7446 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7447 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7450 # OSF1 and SCO ODT 3.0 have their own names for install.
7451 # Don't use installbsd from OSF since it installs stuff as root
7453 for ac_prog in ginstall scoinst install; do
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7456 if test $ac_prog = install &&
7457 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7458 # AIX install. It has an incompatible calling convention.
7460 elif test $ac_prog = install &&
7461 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7462 # program-specific install script used by HP pwplus--don't use.
7465 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7478 if test "${ac_cv_path_install+set}" = set; then
7479 INSTALL=$ac_cv_path_install
7481 # As a last resort, use the slow shell script. Don't cache a
7482 # value for INSTALL within a source directory, because that will
7483 # break other packages using the cache if that directory is
7484 # removed, or if the value is a relative name.
7485 INSTALL=$ac_install_sh
7488 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7489 echo "${ECHO_T}$INSTALL" >&6; }
7491 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7492 # It thinks the first close brace ends the variable substitution.
7493 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7495 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7497 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7500 # Extract the first word of "bzip2", so it can be a program name with args.
7501 set dummy bzip2; ac_word=$2
7502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7504 if test "${ac_cv_path_BZIP2+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 test -z "$as_dir" && as_dir=.
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7519 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7527 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7531 BZIP2=$ac_cv_path_BZIP2
7532 if test -n "$BZIP2"; then
7533 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7534 echo "${ECHO_T}$BZIP2" >&6; }
7536 { echo "$as_me:$LINENO: result: no" >&5
7537 echo "${ECHO_T}no" >&6; }
7541 # Extract the first word of "doxygen", so it can be a program name with args.
7542 set dummy doxygen; ac_word=$2
7543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7545 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7560 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7572 DOXYGEN=$ac_cv_path_DOXYGEN
7573 if test -n "$DOXYGEN"; then
7574 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7575 echo "${ECHO_T}$DOXYGEN" >&6; }
7577 { echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6; }
7582 # Extract the first word of "groff", so it can be a program name with args.
7583 set dummy groff; ac_word=$2
7584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7586 if test "${ac_cv_path_GROFF+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7601 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7613 GROFF=$ac_cv_path_GROFF
7614 if test -n "$GROFF"; then
7615 { echo "$as_me:$LINENO: result: $GROFF" >&5
7616 echo "${ECHO_T}$GROFF" >&6; }
7618 { echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6; }
7623 # Extract the first word of "gzip", so it can be a program name with args.
7624 set dummy gzip; ac_word=$2
7625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7627 if test "${ac_cv_path_GZIP+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7642 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7650 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7654 GZIP=$ac_cv_path_GZIP
7655 if test -n "$GZIP"; then
7656 { echo "$as_me:$LINENO: result: $GZIP" >&5
7657 echo "${ECHO_T}$GZIP" >&6; }
7659 { echo "$as_me:$LINENO: result: no" >&5
7660 echo "${ECHO_T}no" >&6; }
7664 # Extract the first word of "pod2html", so it can be a program name with args.
7665 set dummy pod2html; ac_word=$2
7666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7668 if test "${ac_cv_path_POD2HTML+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 test -z "$as_dir" && as_dir=.
7681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7683 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7695 POD2HTML=$ac_cv_path_POD2HTML
7696 if test -n "$POD2HTML"; then
7697 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7698 echo "${ECHO_T}$POD2HTML" >&6; }
7700 { echo "$as_me:$LINENO: result: no" >&5
7701 echo "${ECHO_T}no" >&6; }
7705 # Extract the first word of "pod2man", so it can be a program name with args.
7706 set dummy pod2man; ac_word=$2
7707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7709 if test "${ac_cv_path_POD2MAN+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721 test -z "$as_dir" && as_dir=.
7722 for ac_exec_ext in '' $ac_executable_extensions; do
7723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7724 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7736 POD2MAN=$ac_cv_path_POD2MAN
7737 if test -n "$POD2MAN"; then
7738 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7739 echo "${ECHO_T}$POD2MAN" >&6; }
7741 { echo "$as_me:$LINENO: result: no" >&5
7742 echo "${ECHO_T}no" >&6; }
7746 # Extract the first word of "runtest", so it can be a program name with args.
7747 set dummy runtest; ac_word=$2
7748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7750 if test "${ac_cv_path_RUNTEST+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7755 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 test -z "$as_dir" && as_dir=.
7763 for ac_exec_ext in '' $ac_executable_extensions; do
7764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7765 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7773 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7777 RUNTEST=$ac_cv_path_RUNTEST
7778 if test -n "$RUNTEST"; then
7779 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7780 echo "${ECHO_T}$RUNTEST" >&6; }
7782 { echo "$as_me:$LINENO: result: no" >&5
7783 echo "${ECHO_T}no" >&6; }
7789 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7790 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7792 # Check whether --with-tclinclude was given.
7793 if test "${with_tclinclude+set}" = set; then
7794 withval=$with_tclinclude; with_tclinclude=${withval}
7799 if test "${ac_cv_path_tclsh+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 if test x"${with_tclinclude}" != x ; then
7804 if test -f ${with_tclinclude}/tclsh ; then
7805 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7806 elif test -f ${with_tclinclude}/src/tclsh ; then
7807 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7809 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7810 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7811 { (exit 1); exit 1; }; }
7815 if test x"${ac_cv_path_tclsh}" = x ; then
7816 { echo "$as_me:$LINENO: result: none" >&5
7817 echo "${ECHO_T}none" >&6; }
7818 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
7820 # Extract the first word of "$ac_prog", so it can be a program name with args.
7821 set dummy $ac_prog; ac_word=$2
7822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7824 if test "${ac_cv_path_TCLSH+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7829 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 test -z "$as_dir" && as_dir=.
7837 for ac_exec_ext in '' $ac_executable_extensions; do
7838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7839 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 TCLSH=$ac_cv_path_TCLSH
7851 if test -n "$TCLSH"; then
7852 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7853 echo "${ECHO_T}$TCLSH" >&6; }
7855 { echo "$as_me:$LINENO: result: no" >&5
7856 echo "${ECHO_T}no" >&6; }
7860 test -n "$TCLSH" && break
7863 if test x"${TCLSH}" = x ; then
7864 ac_cv_path_tclsh='';
7866 ac_cv_path_tclsh="${TCLSH}";
7869 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7870 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7871 TCLSH="${ac_cv_path_tclsh}"
7877 # Extract the first word of "zip", so it can be a program name with args.
7878 set dummy zip; ac_word=$2
7879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7881 if test "${ac_cv_path_ZIP+set}" = set; then
7882 echo $ECHO_N "(cached) $ECHO_C" >&6
7886 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 test -z "$as_dir" && as_dir=.
7894 for ac_exec_ext in '' $ac_executable_extensions; do
7895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7896 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7904 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7909 if test -n "$ZIP"; then
7910 { echo "$as_me:$LINENO: result: $ZIP" >&5
7911 echo "${ECHO_T}$ZIP" >&6; }
7913 { echo "$as_me:$LINENO: result: no" >&5
7914 echo "${ECHO_T}no" >&6; }
7918 # Extract the first word of "ocamlc", so it can be a program name with args.
7919 set dummy ocamlc; ac_word=$2
7920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7922 if test "${ac_cv_path_OCAMLC+set}" = set; then
7923 echo $ECHO_N "(cached) $ECHO_C" >&6
7927 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934 test -z "$as_dir" && as_dir=.
7935 for ac_exec_ext in '' $ac_executable_extensions; do
7936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7937 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7945 test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
7949 OCAMLC=$ac_cv_path_OCAMLC
7950 if test -n "$OCAMLC"; then
7951 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7952 echo "${ECHO_T}$OCAMLC" >&6; }
7954 { echo "$as_me:$LINENO: result: no" >&5
7955 echo "${ECHO_T}no" >&6; }
7959 # Extract the first word of "ocamlopt", so it can be a program name with args.
7960 set dummy ocamlopt; ac_word=$2
7961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7963 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7968 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 test -z "$as_dir" && as_dir=.
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7978 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7986 test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
7990 OCAMLOPT=$ac_cv_path_OCAMLOPT
7991 if test -n "$OCAMLOPT"; then
7992 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7993 echo "${ECHO_T}$OCAMLOPT" >&6; }
7995 { echo "$as_me:$LINENO: result: no" >&5
7996 echo "${ECHO_T}no" >&6; }
8000 # Extract the first word of "ocamldep", so it can be a program name with args.
8001 set dummy ocamldep; ac_word=$2
8002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8004 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8016 test -z "$as_dir" && as_dir=.
8017 for ac_exec_ext in '' $ac_executable_extensions; do
8018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8019 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8027 test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
8031 OCAMLDEP=$ac_cv_path_OCAMLDEP
8032 if test -n "$OCAMLDEP"; then
8033 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8034 echo "${ECHO_T}$OCAMLDEP" >&6; }
8036 { echo "$as_me:$LINENO: result: no" >&5
8037 echo "${ECHO_T}no" >&6; }
8042 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8043 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8044 if test "${llvm_cv_link_use_r+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8048 ac_cpp='$CPP $CPPFLAGS'
8049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8054 CFLAGS="$CFLAGS -Wl,-R."
8055 cat >conftest.$ac_ext <<_ACEOF
8058 cat confdefs.h >>conftest.$ac_ext
8059 cat >>conftest.$ac_ext <<_ACEOF
8060 /* end confdefs.h. */
8065 int main() { return 0; }
8070 rm -f conftest.$ac_objext conftest$ac_exeext
8071 if { (ac_try="$ac_link"
8073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074 *) ac_try_echo=$ac_try;;
8076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8077 (eval "$ac_link") 2>conftest.er1
8079 grep -v '^ *+' conftest.er1 >conftest.err
8081 cat conftest.err >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); } &&
8084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8085 { (case "(($ac_try" in
8086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087 *) ac_try_echo=$ac_try;;
8089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8090 (eval "$ac_try") 2>&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; } &&
8094 { ac_try='test -s conftest$ac_exeext'
8095 { (case "(($ac_try" in
8096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097 *) ac_try_echo=$ac_try;;
8099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100 (eval "$ac_try") 2>&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); }; }; then
8104 llvm_cv_link_use_r=yes
8106 echo "$as_me: failed program was:" >&5
8107 sed 's/^/| /' conftest.$ac_ext >&5
8109 llvm_cv_link_use_r=no
8112 rm -f core conftest.err conftest.$ac_objext \
8113 conftest$ac_exeext conftest.$ac_ext
8116 ac_cpp='$CPP $CPPFLAGS'
8117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8123 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8124 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8125 if test "$llvm_cv_link_use_r" = yes ; then
8127 cat >>confdefs.h <<\_ACEOF
8128 #define HAVE_LINK_R 1
8136 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8137 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8138 if test "${ac_cv_c_const+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8141 cat >conftest.$ac_ext <<_ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8151 /* FIXME: Include the comments suggested by Paul. */
8153 /* Ultrix mips cc rejects this. */
8154 typedef int charset[2];
8156 /* SunOS 4.1.1 cc rejects this. */
8157 char const *const *ccp;
8159 /* NEC SVR4.0.2 mips cc rejects this. */
8160 struct point {int x, y;};
8161 static struct point const zero = {0,0};
8162 /* AIX XL C 1.02.0.0 rejects this.
8163 It does not let you subtract one const X* pointer from another in
8164 an arm of an if-expression whose if-part is not a constant
8166 const char *g = "string";
8167 ccp = &g + (g ? g-g : 0);
8168 /* HPUX 7.0 cc rejects these. */
8171 ccp = (char const *const *) p;
8172 { /* SCO 3.2v4 cc rejects this. */
8174 char const *s = 0 ? (char *) 0 : (char const *) 0;
8179 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8181 const int *foo = &x[0];
8184 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8185 typedef const int *iptr;
8189 { /* AIX XL C 1.02.0.0 rejects this saying
8190 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8191 struct s { int j; const int *ap[3]; };
8192 struct s *b; b->j = 5;
8194 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8198 return !x[0] && !zero.x;
8205 rm -f conftest.$ac_objext
8206 if { (ac_try="$ac_compile"
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_compile") 2>conftest.er1
8214 grep -v '^ *+' conftest.er1 >conftest.err
8216 cat conftest.err >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } &&
8219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8220 { (case "(($ac_try" in
8221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222 *) ac_try_echo=$ac_try;;
8224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225 (eval "$ac_try") 2>&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; } &&
8229 { ac_try='test -s conftest.$ac_objext'
8230 { (case "(($ac_try" in
8231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235 (eval "$ac_try") 2>&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; }; then
8241 echo "$as_me: failed program was:" >&5
8242 sed 's/^/| /' conftest.$ac_ext >&5
8247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8249 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8250 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8251 if test $ac_cv_c_const = no; then
8253 cat >>confdefs.h <<\_ACEOF
8265 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8266 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8267 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8268 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8272 cat >conftest.$ac_ext <<_ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8278 #include <sys/types.h>
8290 rm -f conftest.$ac_objext
8291 if { (ac_try="$ac_compile"
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297 (eval "$ac_compile") 2>conftest.er1
8299 grep -v '^ *+' conftest.er1 >conftest.err
8301 cat conftest.err >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } &&
8304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8305 { (case "(($ac_try" in
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310 (eval "$ac_try") 2>&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; } &&
8314 { ac_try='test -s conftest.$ac_objext'
8315 { (case "(($ac_try" in
8316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317 *) ac_try_echo=$ac_try;;
8319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8320 (eval "$ac_try") 2>&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; }; then
8324 eval "$as_ac_Header=yes"
8326 echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8329 eval "$as_ac_Header=no"
8332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334 ac_res=`eval echo '${'$as_ac_Header'}'`
8335 { echo "$as_me:$LINENO: result: $ac_res" >&5
8336 echo "${ECHO_T}$ac_res" >&6; }
8337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8338 cat >>confdefs.h <<_ACEOF
8339 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8342 ac_header_dirent=$ac_hdr; break
8346 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8347 if test $ac_header_dirent = dirent.h; then
8348 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8349 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8350 if test "${ac_cv_search_opendir+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 ac_func_search_save_LIBS=$LIBS
8354 cat >conftest.$ac_ext <<_ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8361 /* Override any GCC internal prototype to avoid an error.
8362 Use char because int might match the return type of a GCC
8363 builtin and then its argument prototype would still apply. */
8376 for ac_lib in '' dir; do
8377 if test -z "$ac_lib"; then
8378 ac_res="none required"
8381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8383 rm -f conftest.$ac_objext conftest$ac_exeext
8384 if { (ac_try="$ac_link"
8386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387 *) ac_try_echo=$ac_try;;
8389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390 (eval "$ac_link") 2>conftest.er1
8392 grep -v '^ *+' conftest.er1 >conftest.err
8394 cat conftest.err >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } &&
8397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8398 { (case "(($ac_try" in
8399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400 *) ac_try_echo=$ac_try;;
8402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8403 (eval "$ac_try") 2>&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; } &&
8407 { ac_try='test -s conftest$ac_exeext'
8408 { (case "(($ac_try" in
8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410 *) ac_try_echo=$ac_try;;
8412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413 (eval "$ac_try") 2>&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; }; then
8417 ac_cv_search_opendir=$ac_res
8419 echo "$as_me: failed program was:" >&5
8420 sed 's/^/| /' conftest.$ac_ext >&5
8425 rm -f core conftest.err conftest.$ac_objext \
8427 if test "${ac_cv_search_opendir+set}" = set; then
8431 if test "${ac_cv_search_opendir+set}" = set; then
8434 ac_cv_search_opendir=no
8437 LIBS=$ac_func_search_save_LIBS
8439 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8440 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8441 ac_res=$ac_cv_search_opendir
8442 if test "$ac_res" != no; then
8443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8448 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8449 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8450 if test "${ac_cv_search_opendir+set}" = set; then
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
8453 ac_func_search_save_LIBS=$LIBS
8454 cat >conftest.$ac_ext <<_ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h. */
8461 /* Override any GCC internal prototype to avoid an error.
8462 Use char because int might match the return type of a GCC
8463 builtin and then its argument prototype would still apply. */
8476 for ac_lib in '' x; do
8477 if test -z "$ac_lib"; then
8478 ac_res="none required"
8481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8483 rm -f conftest.$ac_objext conftest$ac_exeext
8484 if { (ac_try="$ac_link"
8486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487 *) ac_try_echo=$ac_try;;
8489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490 (eval "$ac_link") 2>conftest.er1
8492 grep -v '^ *+' conftest.er1 >conftest.err
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
8497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8498 { (case "(($ac_try" in
8499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500 *) ac_try_echo=$ac_try;;
8502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8503 (eval "$ac_try") 2>&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }; } &&
8507 { ac_try='test -s conftest$ac_exeext'
8508 { (case "(($ac_try" in
8509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513 (eval "$ac_try") 2>&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); }; }; then
8517 ac_cv_search_opendir=$ac_res
8519 echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8525 rm -f core conftest.err conftest.$ac_objext \
8527 if test "${ac_cv_search_opendir+set}" = set; then
8531 if test "${ac_cv_search_opendir+set}" = set; then
8534 ac_cv_search_opendir=no
8537 LIBS=$ac_func_search_save_LIBS
8539 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8540 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8541 ac_res=$ac_cv_search_opendir
8542 if test "$ac_res" != no; then
8543 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8550 for ac_header in dlfcn.h
8552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 ac_res=`eval echo '${'$as_ac_Header'}'`
8560 { echo "$as_me:$LINENO: result: $ac_res" >&5
8561 echo "${ECHO_T}$ac_res" >&6; }
8563 # Is the header compilable?
8564 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8566 cat >conftest.$ac_ext <<_ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8572 $ac_includes_default
8573 #include <$ac_header>
8575 rm -f conftest.$ac_objext
8576 if { (ac_try="$ac_compile"
8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582 (eval "$ac_compile") 2>conftest.er1
8584 grep -v '^ *+' conftest.er1 >conftest.err
8586 cat conftest.err >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } &&
8589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8590 { (case "(($ac_try" in
8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595 (eval "$ac_try") 2>&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; } &&
8599 { ac_try='test -s conftest.$ac_objext'
8600 { (case "(($ac_try" in
8601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602 *) ac_try_echo=$ac_try;;
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605 (eval "$ac_try") 2>&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; }; then
8609 ac_header_compiler=yes
8611 echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8614 ac_header_compiler=no
8617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8619 echo "${ECHO_T}$ac_header_compiler" >&6; }
8621 # Is the header present?
8622 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8624 cat >conftest.$ac_ext <<_ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8630 #include <$ac_header>
8632 if { (ac_try="$ac_cpp conftest.$ac_ext"
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8640 grep -v '^ *+' conftest.er1 >conftest.err
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } >/dev/null; then
8645 if test -s conftest.err; then
8646 ac_cpp_err=$ac_c_preproc_warn_flag
8647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8654 if test -z "$ac_cpp_err"; then
8655 ac_header_preproc=yes
8657 echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8660 ac_header_preproc=no
8663 rm -f conftest.err conftest.$ac_ext
8664 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8665 echo "${ECHO_T}$ac_header_preproc" >&6; }
8667 # So? What about this header?
8668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8671 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8673 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8674 ac_header_preproc=yes
8677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8680 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8681 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8682 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8683 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8684 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8687 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8688 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8690 ## ----------------------------------- ##
8691 ## Report this to llvmbugs@cs.uiuc.edu ##
8692 ## ----------------------------------- ##
8694 ) | sed "s/^/$as_me: WARNING: /" >&2
8697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
8702 eval "$as_ac_Header=\$ac_header_preproc"
8704 ac_res=`eval echo '${'$as_ac_Header'}'`
8705 { echo "$as_me:$LINENO: result: $ac_res" >&5
8706 echo "${ECHO_T}$ac_res" >&6; }
8709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8710 cat >>confdefs.h <<_ACEOF
8711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8718 # Check whether --enable-ltdl-install was given.
8719 if test "${enable_ltdl_install+set}" = set; then
8720 enableval=$enable_ltdl_install;
8726 if test x"${enable_ltdl_install-no}" != xno; then
8728 INSTALL_LTDL_FALSE='#'
8730 INSTALL_LTDL_TRUE='#'
8736 if test x"${enable_ltdl_convenience-no}" != xno; then
8737 CONVENIENCE_LTDL_TRUE=
8738 CONVENIENCE_LTDL_FALSE='#'
8740 CONVENIENCE_LTDL_TRUE='#'
8741 CONVENIENCE_LTDL_FALSE=
8745 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8746 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8748 libname_spec='lib$name'
8756 shlibpath_overrides_runpath=unknown
8758 dynamic_linker="$host_os ld.so"
8759 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8760 if test "$GCC" = yes; then
8761 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8762 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8763 # if the path contains ";" then we assume it to be the separator
8764 # otherwise default to the standard path separator (i.e. ":") - it is
8765 # assumed that no part of a normal pathname contains ";" but that should
8766 # okay in the real world where ";" in dirpaths is itself problematic.
8767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8769 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8772 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8774 need_lib_prefix=unknown
8775 hardcode_into_libs=no
8777 # when you set need_version to no, make sure it does not cause -set_version
8778 # flags to be left without arguments
8779 need_version=unknown
8784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8785 shlibpath_var=LIBPATH
8787 # AIX 3 has no versioning support, so we append a major version to the name.
8788 soname_spec='${libname}${release}${shared_ext}$major'
8795 hardcode_into_libs=yes
8796 if test "$host_cpu" = ia64; then
8797 # AIX 5 supports IA64
8798 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8799 shlibpath_var=LD_LIBRARY_PATH
8801 # With GCC up to 2.95.x, collect2 would create an import file
8802 # for dependence libraries. The import file would start with
8803 # the line `#! .'. This would cause the generated library to
8804 # depend on `.', always an invalid library. This was fixed in
8805 # development snapshots of GCC prior to 3.0.
8807 aix4 | aix4.[01] | aix4.[01].*)
8808 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8810 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8817 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8818 # soname into executable. Probably we can add versioning support to
8819 # collect2, so additional links can be useful in future.
8820 if test "$aix_use_runtimelinking" = yes; then
8821 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8822 # instead of lib<name>.a to let people know that these are not
8823 # typical AIX shared libraries.
8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8826 # We preserve .a as extension for shared libraries through AIX4.2
8827 # and later when we are not doing run time linking.
8828 library_names_spec='${libname}${release}.a $libname.a'
8829 soname_spec='${libname}${release}${shared_ext}$major'
8831 shlibpath_var=LIBPATH
8836 library_names_spec='$libname.ixlibrary $libname.a'
8837 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8838 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'
8842 library_names_spec='${libname}${shared_ext}'
8843 dynamic_linker="$host_os ld.so"
8844 shlibpath_var=LIBRARY_PATH
8850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8851 soname_spec='${libname}${release}${shared_ext}$major'
8852 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8853 shlibpath_var=LD_LIBRARY_PATH
8854 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8855 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8856 # the default ld.so.conf also contains /usr/contrib/lib and
8857 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8858 # libtool to hard-code these into programs
8861 cygwin* | mingw* | pw32*)
8862 version_type=windows
8867 case $GCC,$host_os in
8868 yes,cygwin* | yes,mingw* | yes,pw32*)
8869 library_names_spec='$libname.dll.a'
8870 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8871 postinstall_cmds='base_file=`basename \${file}`~
8872 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8873 dldir=$destdir/`dirname \$dlpath`~
8874 test -d \$dldir || mkdir -p \$dldir~
8875 $install_prog $dir/$dlname \$dldir/$dlname~
8876 chmod a+x \$dldir/$dlname'
8877 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8878 dlpath=$dir/\$dldll~
8880 shlibpath_overrides_runpath=yes
8884 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8885 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8886 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8889 # MinGW DLLs use traditional 'lib' prefix
8890 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8891 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8892 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8893 # It is most probably a Windows format PATH printed by
8894 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8895 # path with ; separators, and with drive letters. We can handle the
8896 # drive letters (cygwin fileutils understands them), so leave them,
8897 # especially as we might pass files found there to a mingw objdump,
8898 # which wouldn't understand a cygwinified path. Ahh.
8899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8901 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8905 # pw32 DLLs use 'pw' prefix rather than 'lib'
8906 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8912 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8915 dynamic_linker='Win32 ld.exe'
8916 # FIXME: first we should search . and the directory the executable is in
8920 darwin* | rhapsody*)
8921 dynamic_linker="$host_os dyld"
8925 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8926 soname_spec='${libname}${release}${major}$shared_ext'
8927 shlibpath_overrides_runpath=yes
8928 shlibpath_var=DYLD_LIBRARY_PATH
8929 shrext_cmds='.dylib'
8930 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8931 if test "$GCC" = yes; then
8932 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"`
8934 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8936 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8944 soname_spec='${libname}${release}${shared_ext}$major'
8945 shlibpath_var=LD_LIBRARY_PATH
8956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8957 soname_spec='${libname}${release}${shared_ext}$major'
8958 shlibpath_var=LD_LIBRARY_PATH
8959 shlibpath_overrides_runpath=no
8960 hardcode_into_libs=yes
8961 dynamic_linker='GNU ld.so'
8964 freebsd* | dragonfly*)
8965 # DragonFly does not have aout. When/if they implement a new
8966 # versioning mechanism, adjust this.
8967 if test -x /usr/bin/objformat; then
8968 objformat=`/usr/bin/objformat`
8971 freebsd[123]*) objformat=aout ;;
8975 version_type=freebsd-$objformat
8976 case $version_type in
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8987 shlibpath_var=LD_LIBRARY_PATH
8990 shlibpath_overrides_runpath=yes
8992 freebsd3.[01]* | freebsdelf3.[01]*)
8993 shlibpath_overrides_runpath=yes
8994 hardcode_into_libs=yes
8996 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8997 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8998 shlibpath_overrides_runpath=no
8999 hardcode_into_libs=yes
9001 freebsd*) # from 4.6 on
9002 shlibpath_overrides_runpath=yes
9003 hardcode_into_libs=yes
9012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9013 soname_spec='${libname}${release}${shared_ext}$major'
9014 shlibpath_var=LD_LIBRARY_PATH
9015 hardcode_into_libs=yes
9018 hpux9* | hpux10* | hpux11*)
9019 # Give a soname corresponding to the major version so that dld.sl refuses to
9020 # link against other versions.
9027 hardcode_into_libs=yes
9028 dynamic_linker="$host_os dld.so"
9029 shlibpath_var=LD_LIBRARY_PATH
9030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9032 soname_spec='${libname}${release}${shared_ext}$major'
9033 if test "X$HPUX_IA64_MODE" = X32; then
9034 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9036 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9042 hardcode_into_libs=yes
9043 dynamic_linker="$host_os dld.sl"
9044 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9045 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047 soname_spec='${libname}${release}${shared_ext}$major'
9048 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9053 dynamic_linker="$host_os dld.sl"
9054 shlibpath_var=SHLIB_PATH
9055 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057 soname_spec='${libname}${release}${shared_ext}$major'
9060 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9061 postinstall_cmds='chmod 555 $lib'
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9069 soname_spec='${libname}${release}${shared_ext}$major'
9070 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9071 shlibpath_var=LD_LIBRARY_PATH
9072 shlibpath_overrides_runpath=no
9073 hardcode_into_libs=yes
9076 irix5* | irix6* | nonstopux*)
9078 nonstopux*) version_type=nonstopux ;;
9080 if test "$lt_cv_prog_gnu_ld" = yes; then
9088 soname_spec='${libname}${release}${shared_ext}$major'
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9091 irix5* | nonstopux*)
9095 case $LD in # libtool.m4 will add one of these switches to LD
9096 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9097 libsuff= shlibsuff= libmagic=32-bit;;
9098 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9099 libsuff=32 shlibsuff=N32 libmagic=N32;;
9100 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9101 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9102 *) libsuff= shlibsuff= libmagic=never-match;;
9106 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9107 shlibpath_overrides_runpath=no
9108 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9109 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9110 hardcode_into_libs=yes
9113 # No shared lib support for Linux oldld, aout, or coff.
9114 linux*oldld* | linux*aout* | linux*coff*)
9118 # This must be Linux ELF.
9123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9124 soname_spec='${libname}${release}${shared_ext}$major'
9125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9126 shlibpath_var=LD_LIBRARY_PATH
9127 shlibpath_overrides_runpath=no
9128 # This implies no fast_install, which is unacceptable.
9129 # Some rework will be needed to allow for fast_install
9130 # before this can be enabled.
9131 hardcode_into_libs=yes
9133 # Append ld.so.conf contents to the search path
9134 if test -f /etc/ld.so.conf; then
9135 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' ' '`
9136 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9139 # We used to test for /lib/ld.so.1 and disable shared libraries on
9140 # powerpc, because MkLinux only supported shared libraries with the
9141 # GNU dynamic linker. Since this was broken with cross compilers,
9142 # most powerpc-linux boxes support dynamic linking these days and
9143 # people can always --disable-shared, the test was removed, and we
9144 # assume the GNU/Linux dynamic linker is in use.
9145 dynamic_linker='GNU/Linux ld.so'
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9153 soname_spec='${libname}${release}${shared_ext}$major'
9154 shlibpath_var=LD_LIBRARY_PATH
9155 shlibpath_overrides_runpath=no
9156 hardcode_into_libs=yes
9157 dynamic_linker='GNU ld.so'
9164 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9167 dynamic_linker='NetBSD (a.out) ld.so'
9169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9170 soname_spec='${libname}${release}${shared_ext}$major'
9171 dynamic_linker='NetBSD ld.elf_so'
9173 shlibpath_var=LD_LIBRARY_PATH
9174 shlibpath_overrides_runpath=yes
9175 hardcode_into_libs=yes
9180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181 shlibpath_var=LD_LIBRARY_PATH
9182 shlibpath_overrides_runpath=yes
9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9190 soname_spec='${libname}${release}${shared_ext}$major'
9191 shlibpath_var=LD_LIBRARY_PATH
9192 shlibpath_overrides_runpath=yes
9197 sys_lib_dlsearch_path_spec="/usr/lib"
9199 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9201 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9202 *) need_version=no ;;
9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9206 shlibpath_var=LD_LIBRARY_PATH
9207 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9209 openbsd2.[89] | openbsd2.[89].*)
9210 shlibpath_overrides_runpath=no
9213 shlibpath_overrides_runpath=yes
9217 shlibpath_overrides_runpath=yes
9222 libname_spec='$name'
9225 library_names_spec='$libname${shared_ext} $libname.a'
9226 dynamic_linker='OS/2 ld.exe'
9227 shlibpath_var=LIBPATH
9230 osf3* | osf4* | osf5*)
9234 soname_spec='${libname}${release}${shared_ext}$major'
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9236 shlibpath_var=LD_LIBRARY_PATH
9237 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9238 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9246 soname_spec='${libname}${release}${shared_ext}$major'
9247 shlibpath_var=LD_LIBRARY_PATH
9248 shlibpath_overrides_runpath=yes
9249 hardcode_into_libs=yes
9250 # ldd complains unless libraries are executable
9251 postinstall_cmds='chmod +x $lib'
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9257 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9258 shlibpath_var=LD_LIBRARY_PATH
9259 shlibpath_overrides_runpath=yes
9260 if test "$with_gnu_ld" = yes; then
9268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269 soname_spec='${libname}${release}${shared_ext}$major'
9270 shlibpath_var=LD_LIBRARY_PATH
9271 case $host_vendor in
9273 shlibpath_overrides_runpath=no
9275 export_dynamic_flag_spec='${wl}-Blargedynsym'
9276 runpath_var=LD_RUN_PATH
9284 shlibpath_overrides_runpath=no
9285 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9291 if test -d /usr/nec ;then
9293 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9294 soname_spec='$libname${shared_ext}.$major'
9295 shlibpath_var=LD_LIBRARY_PATH
9299 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9300 version_type=freebsd-elf
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9304 soname_spec='${libname}${release}${shared_ext}$major'
9305 shlibpath_var=LD_LIBRARY_PATH
9306 hardcode_into_libs=yes
9307 if test "$with_gnu_ld" = yes; then
9308 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9309 shlibpath_overrides_runpath=no
9311 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9312 shlibpath_overrides_runpath=yes
9315 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9319 sys_lib_dlsearch_path_spec='/usr/lib'
9324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9325 soname_spec='${libname}${release}${shared_ext}$major'
9326 shlibpath_var=LD_LIBRARY_PATH
9333 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9334 echo "${ECHO_T}$dynamic_linker" >&6; }
9335 test "$dynamic_linker" = no && can_build_shared=no
9337 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9338 if test "$GCC" = yes; then
9339 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9343 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9344 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9345 if test "${libltdl_cv_shlibext+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 eval libltdl_cv_shlibext=$shrext_cmds
9353 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9354 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9355 if test -n "$libltdl_cv_shlibext"; then
9357 cat >>confdefs.h <<_ACEOF
9358 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9364 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9365 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9366 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9369 libltdl_cv_shlibpath_var="$shlibpath_var"
9371 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9372 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9373 if test -n "$libltdl_cv_shlibpath_var"; then
9375 cat >>confdefs.h <<_ACEOF
9376 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9382 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9383 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9384 if test "${libltdl_cv_sys_search_path+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9389 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9390 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9391 if test -n "$libltdl_cv_sys_search_path"; then
9393 for dir in $libltdl_cv_sys_search_path; do
9394 if test -z "$sys_search_path"; then
9395 sys_search_path="$dir"
9397 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9401 cat >>confdefs.h <<_ACEOF
9402 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9407 { echo "$as_me:$LINENO: checking for objdir" >&5
9408 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9409 if test "${libltdl_cv_objdir+set}" = set; then
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
9412 libltdl_cv_objdir="$objdir"
9413 if test -n "$objdir"; then
9416 rm -f .libs 2>/dev/null
9417 mkdir .libs 2>/dev/null
9418 if test -d .libs; then
9419 libltdl_cv_objdir=.libs
9421 # MS-DOS does not allow filenames that begin with a dot.
9422 libltdl_cv_objdir=_libs
9424 rmdir .libs 2>/dev/null
9428 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9429 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9431 cat >>confdefs.h <<_ACEOF
9432 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9440 # Check for command to grab the raw symbol name followed by C symbol from nm.
9441 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9442 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9443 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9447 # These are sane defaults that work on at least a few old systems.
9448 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9450 # Character class describing NM global symbol codes.
9451 symcode='[BCDEGRST]'
9453 # Regexp to match symbols that can be accessed directly from C.
9454 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9456 # Transform an extracted symbol line into a proper C declaration
9457 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9459 # Transform an extracted symbol line into symbol name and symbol address
9460 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'"
9462 # Define system-specific variables.
9467 cygwin* | mingw* | pw32*)
9468 symcode='[ABCDGISTW]'
9470 hpux*) # Its linker distinguishes data from code symbols
9471 if test "$host_cpu" = ia64; then
9472 symcode='[ABCDEGRST]'
9474 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9475 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'"
9478 if test "$host_cpu" = ia64; then
9479 symcode='[ABCDGIRSTW]'
9480 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9481 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'"
9485 symcode='[BCDEGRST]'
9488 symcode='[BCDEGQRST]'
9499 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9507 # Handle CRLF in mingw tool chain
9511 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9515 # If we're using GNU nm, then use its standard symbol codes.
9516 case `$NM -V 2>&1` in
9517 *GNU* | *'with BFD'*)
9518 symcode='[ABCDGIRSTW]' ;;
9521 # Try without a prefix undercore, then with it.
9522 for ac_symprfx in "" "_"; do
9524 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9525 symxfrm="\\1 $ac_symprfx\\2 \\2"
9527 # Write the raw and C identifiers.
9528 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9530 # Check to see that the pipe works correctly.
9534 cat > conftest.$ac_ext <<EOF
9539 void nm_test_func(){}
9543 int main(){nm_test_var='a';nm_test_func();return(0);}
9546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9547 (eval $ac_compile) 2>&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; then
9551 # Now try to grab the symbols.
9553 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9554 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } && test -s "$nlist"; then
9558 # Try sorting and uniquifying the output.
9559 if sort "$nlist" | uniq > "$nlist"T; then
9560 mv -f "$nlist"T "$nlist"
9565 # Make sure that we snagged all the symbols we need.
9566 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9567 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9568 cat <<EOF > conftest.$ac_ext
9574 # Now generate the symbol file.
9575 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9577 cat <<EOF >> conftest.$ac_ext
9578 #if defined (__STDC__) && __STDC__
9579 # define lt_ptr_t void *
9581 # define lt_ptr_t char *
9585 /* The mapping between symbol names and symbols. */
9590 lt_preloaded_symbols[] =
9593 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9594 cat <<\EOF >> conftest.$ac_ext
9602 # Now try linking the two files.
9603 mv conftest.$ac_objext conftstm.$ac_objext
9604 lt_save_LIBS="$LIBS"
9605 lt_save_CFLAGS="$CFLAGS"
9606 LIBS="conftstm.$ac_objext"
9607 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9609 (eval $ac_link) 2>&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9615 LIBS="$lt_save_LIBS"
9616 CFLAGS="$lt_save_CFLAGS"
9618 echo "cannot find nm_test_func in $nlist" >&5
9621 echo "cannot find nm_test_var in $nlist" >&5
9624 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9627 echo "$progname: failed program was:" >&5
9628 cat conftest.$ac_ext >&5
9630 rm -f conftest* conftst*
9632 # Do not use the global_symbol_pipe unless it works.
9633 if test "$pipe_works" = yes; then
9636 lt_cv_sys_global_symbol_pipe=
9642 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9643 lt_cv_sys_global_symbol_to_cdecl=
9645 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9646 { echo "$as_me:$LINENO: result: failed" >&5
9647 echo "${ECHO_T}failed" >&6; }
9649 { echo "$as_me:$LINENO: result: ok" >&5
9650 echo "${ECHO_T}ok" >&6; }
9654 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9655 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9656 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9659 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9660 libltdl_cv_preloaded_symbols=yes
9662 libltdl_cv_preloaded_symbols=no
9666 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9667 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9668 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9670 cat >>confdefs.h <<\_ACEOF
9671 #define HAVE_PRELOADED_SYMBOLS 1
9679 ac_cpp='$CPP $CPPFLAGS'
9680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9685 { echo "$as_me:$LINENO: checking for shl_load" >&5
9686 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9687 if test "${ac_cv_func_shl_load+set}" = set; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9690 cat >conftest.$ac_ext <<_ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9696 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9698 #define shl_load innocuous_shl_load
9700 /* System header to define __stub macros and hopefully few prototypes,
9701 which can conflict with char shl_load (); below.
9702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9703 <limits.h> exists even on freestanding compilers. */
9706 # include <limits.h>
9708 # include <assert.h>
9713 /* Override any GCC internal prototype to avoid an error.
9714 Use char because int might match the return type of a GCC
9715 builtin and then its argument prototype would still apply. */
9720 /* The GNU C library defines this for functions which it implements
9721 to always fail with ENOSYS. Some functions are actually named
9722 something starting with __ and the normal name is an alias. */
9723 #if defined __stub_shl_load || defined __stub___shl_load
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (ac_try="$ac_link"
9738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9739 *) ac_try_echo=$ac_try;;
9741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9742 (eval "$ac_link") 2>conftest.er1
9744 grep -v '^ *+' conftest.er1 >conftest.err
9746 cat conftest.err >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } &&
9749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9750 { (case "(($ac_try" in
9751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752 *) ac_try_echo=$ac_try;;
9754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755 (eval "$ac_try") 2>&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; } &&
9759 { ac_try='test -s conftest$ac_exeext'
9760 { (case "(($ac_try" in
9761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762 *) ac_try_echo=$ac_try;;
9764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765 (eval "$ac_try") 2>&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; }; then
9769 ac_cv_func_shl_load=yes
9771 echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9774 ac_cv_func_shl_load=no
9777 rm -f core conftest.err conftest.$ac_objext \
9778 conftest$ac_exeext conftest.$ac_ext
9780 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9781 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9782 if test $ac_cv_func_shl_load = yes; then
9784 cat >>confdefs.h <<\_ACEOF
9785 #define HAVE_SHL_LOAD 1
9789 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9790 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9791 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9794 ac_check_lib_save_LIBS=$LIBS
9796 cat >conftest.$ac_ext <<_ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9803 /* Override any GCC internal prototype to avoid an error.
9804 Use char because int might match the return type of a GCC
9805 builtin and then its argument prototype would still apply. */
9818 rm -f conftest.$ac_objext conftest$ac_exeext
9819 if { (ac_try="$ac_link"
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_link") 2>conftest.er1
9827 grep -v '^ *+' conftest.er1 >conftest.err
9829 cat conftest.err >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } &&
9832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9833 { (case "(($ac_try" in
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838 (eval "$ac_try") 2>&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; } &&
9842 { ac_try='test -s conftest$ac_exeext'
9843 { (case "(($ac_try" in
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848 (eval "$ac_try") 2>&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 ac_cv_lib_dld_shl_load=yes
9854 echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9857 ac_cv_lib_dld_shl_load=no
9860 rm -f core conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
9862 LIBS=$ac_check_lib_save_LIBS
9864 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9865 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9866 if test $ac_cv_lib_dld_shl_load = yes; then
9868 cat >>confdefs.h <<\_ACEOF
9869 #define HAVE_SHL_LOAD 1
9872 LIBADD_DL="$LIBADD_DL -ldld"
9874 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9875 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9876 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 ac_check_lib_save_LIBS=$LIBS
9881 cat >conftest.$ac_ext <<_ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h. */
9888 /* Override any GCC internal prototype to avoid an error.
9889 Use char because int might match the return type of a GCC
9890 builtin and then its argument prototype would still apply. */
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (ac_try="$ac_link"
9906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907 *) ac_try_echo=$ac_try;;
9909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910 (eval "$ac_link") 2>conftest.er1
9912 grep -v '^ *+' conftest.er1 >conftest.err
9914 cat conftest.err >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } &&
9917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9918 { (case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_try") 2>&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; } &&
9927 { ac_try='test -s conftest$ac_exeext'
9928 { (case "(($ac_try" in
9929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930 *) ac_try_echo=$ac_try;;
9932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933 (eval "$ac_try") 2>&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; }; then
9937 ac_cv_lib_dl_dlopen=yes
9939 echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9942 ac_cv_lib_dl_dlopen=no
9945 rm -f core conftest.err conftest.$ac_objext \
9946 conftest$ac_exeext conftest.$ac_ext
9947 LIBS=$ac_check_lib_save_LIBS
9949 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9950 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9951 if test $ac_cv_lib_dl_dlopen = yes; then
9953 cat >>confdefs.h <<\_ACEOF
9954 #define HAVE_LIBDL 1
9957 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9959 cat >conftest.$ac_ext <<_ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h. */
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (ac_try="$ac_link"
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_link") 2>conftest.er1
9986 grep -v '^ *+' conftest.er1 >conftest.err
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } &&
9991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9992 { (case "(($ac_try" in
9993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994 *) ac_try_echo=$ac_try;;
9996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997 (eval "$ac_try") 2>&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; } &&
10001 { ac_try='test -s conftest$ac_exeext'
10002 { (case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007 (eval "$ac_try") 2>&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; }; then
10012 cat >>confdefs.h <<\_ACEOF
10013 #define HAVE_LIBDL 1
10015 libltdl_cv_func_dlopen="yes"
10017 echo "$as_me: failed program was:" >&5
10018 sed 's/^/| /' conftest.$ac_ext >&5
10020 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10021 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10022 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 ac_check_lib_save_LIBS=$LIBS
10026 LIBS="-lsvld $LIBS"
10027 cat >conftest.$ac_ext <<_ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h. */
10034 /* Override any GCC internal prototype to avoid an error.
10035 Use char because int might match the return type of a GCC
10036 builtin and then its argument prototype would still apply. */
10049 rm -f conftest.$ac_objext conftest$ac_exeext
10050 if { (ac_try="$ac_link"
10051 case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_link") 2>conftest.er1
10058 grep -v '^ *+' conftest.er1 >conftest.err
10060 cat conftest.err >&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); } &&
10063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10064 { (case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_try") 2>&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; } &&
10073 { ac_try='test -s conftest$ac_exeext'
10074 { (case "(($ac_try" in
10075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076 *) ac_try_echo=$ac_try;;
10078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079 (eval "$ac_try") 2>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 ac_cv_lib_svld_dlopen=yes
10085 echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10088 ac_cv_lib_svld_dlopen=no
10091 rm -f core conftest.err conftest.$ac_objext \
10092 conftest$ac_exeext conftest.$ac_ext
10093 LIBS=$ac_check_lib_save_LIBS
10095 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10096 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10097 if test $ac_cv_lib_svld_dlopen = yes; then
10099 cat >>confdefs.h <<\_ACEOF
10100 #define HAVE_LIBDL 1
10103 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10105 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10106 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10107 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
10110 ac_check_lib_save_LIBS=$LIBS
10112 cat >conftest.$ac_ext <<_ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10119 /* Override any GCC internal prototype to avoid an error.
10120 Use char because int might match the return type of a GCC
10121 builtin and then its argument prototype would still apply. */
10129 return dld_link ();
10134 rm -f conftest.$ac_objext conftest$ac_exeext
10135 if { (ac_try="$ac_link"
10136 case "(($ac_try" in
10137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10141 (eval "$ac_link") 2>conftest.er1
10143 grep -v '^ *+' conftest.er1 >conftest.err
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } &&
10148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10149 { (case "(($ac_try" in
10150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151 *) ac_try_echo=$ac_try;;
10153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10154 (eval "$ac_try") 2>&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; } &&
10158 { ac_try='test -s conftest$ac_exeext'
10159 { (case "(($ac_try" in
10160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161 *) ac_try_echo=$ac_try;;
10163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10164 (eval "$ac_try") 2>&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); }; }; then
10168 ac_cv_lib_dld_dld_link=yes
10170 echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10173 ac_cv_lib_dld_dld_link=no
10176 rm -f core conftest.err conftest.$ac_objext \
10177 conftest$ac_exeext conftest.$ac_ext
10178 LIBS=$ac_check_lib_save_LIBS
10180 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10181 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10182 if test $ac_cv_lib_dld_dld_link = yes; then
10184 cat >>confdefs.h <<\_ACEOF
10188 LIBADD_DL="$LIBADD_DL -ldld"
10190 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10191 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10192 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10195 cat >conftest.$ac_ext <<_ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h. */
10201 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10203 #define _dyld_func_lookup innocuous__dyld_func_lookup
10205 /* System header to define __stub macros and hopefully few prototypes,
10206 which can conflict with char _dyld_func_lookup (); below.
10207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10208 <limits.h> exists even on freestanding compilers. */
10211 # include <limits.h>
10213 # include <assert.h>
10216 #undef _dyld_func_lookup
10218 /* Override any GCC internal prototype to avoid an error.
10219 Use char because int might match the return type of a GCC
10220 builtin and then its argument prototype would still apply. */
10224 char _dyld_func_lookup ();
10225 /* The GNU C library defines this for functions which it implements
10226 to always fail with ENOSYS. Some functions are actually named
10227 something starting with __ and the normal name is an alias. */
10228 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10235 return _dyld_func_lookup ();
10240 rm -f conftest.$ac_objext conftest$ac_exeext
10241 if { (ac_try="$ac_link"
10242 case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247 (eval "$ac_link") 2>conftest.er1
10249 grep -v '^ *+' conftest.er1 >conftest.err
10251 cat conftest.err >&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } &&
10254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10255 { (case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_try") 2>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; } &&
10264 { ac_try='test -s conftest$ac_exeext'
10265 { (case "(($ac_try" in
10266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267 *) ac_try_echo=$ac_try;;
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270 (eval "$ac_try") 2>&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); }; }; then
10274 ac_cv_func__dyld_func_lookup=yes
10276 echo "$as_me: failed program was:" >&5
10277 sed 's/^/| /' conftest.$ac_ext >&5
10279 ac_cv_func__dyld_func_lookup=no
10282 rm -f core conftest.err conftest.$ac_objext \
10283 conftest$ac_exeext conftest.$ac_ext
10285 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10286 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10287 if test $ac_cv_func__dyld_func_lookup = yes; then
10289 cat >>confdefs.h <<\_ACEOF
10290 #define HAVE_DYLD 1
10304 rm -f core conftest.err conftest.$ac_objext \
10305 conftest$ac_exeext conftest.$ac_ext
10316 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10318 lt_save_LIBS="$LIBS"
10319 LIBS="$LIBS $LIBADD_DL"
10321 for ac_func in dlerror
10323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10324 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10326 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
10329 cat >conftest.$ac_ext <<_ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h. */
10335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10337 #define $ac_func innocuous_$ac_func
10339 /* System header to define __stub macros and hopefully few prototypes,
10340 which can conflict with char $ac_func (); below.
10341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10342 <limits.h> exists even on freestanding compilers. */
10345 # include <limits.h>
10347 # include <assert.h>
10352 /* Override any GCC internal prototype to avoid an error.
10353 Use char because int might match the return type of a GCC
10354 builtin and then its argument prototype would still apply. */
10359 /* The GNU C library defines this for functions which it implements
10360 to always fail with ENOSYS. Some functions are actually named
10361 something starting with __ and the normal name is an alias. */
10362 #if defined __stub_$ac_func || defined __stub___$ac_func
10369 return $ac_func ();
10374 rm -f conftest.$ac_objext conftest$ac_exeext
10375 if { (ac_try="$ac_link"
10376 case "(($ac_try" in
10377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378 *) ac_try_echo=$ac_try;;
10380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381 (eval "$ac_link") 2>conftest.er1
10383 grep -v '^ *+' conftest.er1 >conftest.err
10385 cat conftest.err >&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } &&
10388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10389 { (case "(($ac_try" in
10390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391 *) ac_try_echo=$ac_try;;
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_try") 2>&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); }; } &&
10398 { ac_try='test -s conftest$ac_exeext'
10399 { (case "(($ac_try" in
10400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401 *) ac_try_echo=$ac_try;;
10403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10404 (eval "$ac_try") 2>&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; }; then
10408 eval "$as_ac_var=yes"
10410 echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10413 eval "$as_ac_var=no"
10416 rm -f core conftest.err conftest.$ac_objext \
10417 conftest$ac_exeext conftest.$ac_ext
10419 ac_res=`eval echo '${'$as_ac_var'}'`
10420 { echo "$as_me:$LINENO: result: $ac_res" >&5
10421 echo "${ECHO_T}$ac_res" >&6; }
10422 if test `eval echo '${'$as_ac_var'}'` = yes; then
10423 cat >>confdefs.h <<_ACEOF
10424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10430 LIBS="$lt_save_LIBS"
10433 ac_cpp='$CPP $CPPFLAGS'
10434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10440 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10441 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10442 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10445 ac_cv_sys_symbol_underscore=no
10446 cat > conftest.$ac_ext <<EOF
10447 void nm_test_func(){}
10448 int main(){nm_test_func;return 0;}
10450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10451 (eval $ac_compile) 2>&5
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); }; then
10455 # Now try to grab the symbols.
10456 ac_nlist=conftest.nm
10457 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10458 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); } && test -s "$ac_nlist"; then
10462 # See whether the symbols have a leading underscore.
10463 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10464 ac_cv_sys_symbol_underscore=yes
10466 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10469 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10473 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10476 echo "configure: failed program was:" >&5
10482 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10483 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10486 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10487 if test x"$libltdl_cv_func_dlopen" = xyes ||
10488 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10489 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10490 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10491 if test "${libltdl_cv_need_uscore+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
10494 libltdl_cv_need_uscore=unknown
10496 LIBS="$LIBS $LIBADD_DL"
10497 if test "$cross_compiling" = yes; then :
10498 libltdl_cv_need_uscore=cross
10500 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10501 lt_status=$lt_dlunknown
10502 cat > conftest.$ac_ext <<EOF
10503 #line 10503 "configure"
10504 #include "confdefs.h"
10513 # define LT_DLGLOBAL RTLD_GLOBAL
10516 # define LT_DLGLOBAL DL_GLOBAL
10518 # define LT_DLGLOBAL 0
10522 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10523 find out it does not work in some platform. */
10524 #ifndef LT_DLLAZY_OR_NOW
10526 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10529 # define LT_DLLAZY_OR_NOW DL_LAZY
10532 # define LT_DLLAZY_OR_NOW RTLD_NOW
10535 # define LT_DLLAZY_OR_NOW DL_NOW
10537 # define LT_DLLAZY_OR_NOW 0
10545 extern "C" void exit (int);
10548 void fnord() { int i=42;}
10551 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10552 int status = $lt_dlunknown;
10556 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10557 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10558 /* dlclose (self); */
10566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10567 (eval $ac_link) 2>&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10571 (./conftest; exit; ) >&5 2>/dev/null
10573 case x$lt_status in
10574 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10575 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10576 x$lt_dlunknown|x*) ;;
10579 # compilation failed
10588 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10589 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10593 if test x"$libltdl_cv_need_uscore" = xyes; then
10595 cat >>confdefs.h <<\_ACEOF
10596 #define NEED_USCORE 1
10602 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10603 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10604 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10607 # PORTME does your system automatically load deplibs for dlopen?
10608 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10609 # For now, we just catch OSes we know something about -- in the
10610 # future, we'll try test this programmatically.
10611 libltdl_cv_sys_dlopen_deplibs=unknown
10613 aix3*|aix4.1.*|aix4.2.*)
10614 # Unknown whether this is true for these versions of AIX, but
10615 # we want this `case' here to explicitly catch those versions.
10616 libltdl_cv_sys_dlopen_deplibs=unknown
10619 libltdl_cv_sys_dlopen_deplibs=yes
10622 # Assuming the user has installed a libdl from somewhere, this is true
10623 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10624 libltdl_cv_sys_dlopen_deplibs=yes
10626 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10627 # GNU and its variants, using gnu ld.so (Glibc)
10628 libltdl_cv_sys_dlopen_deplibs=yes
10631 libltdl_cv_sys_dlopen_deplibs=yes
10634 libltdl_cv_sys_dlopen_deplibs=yes
10636 irix[12345]*|irix6.[01]*)
10637 # Catch all versions of IRIX before 6.2, and indicate that we don't
10638 # know how it worked for any of those versions.
10639 libltdl_cv_sys_dlopen_deplibs=unknown
10642 # The case above catches anything before 6.2, and it's known that
10643 # at 6.2 and later dlopen does load deplibs.
10644 libltdl_cv_sys_dlopen_deplibs=yes
10647 libltdl_cv_sys_dlopen_deplibs=yes
10650 libltdl_cv_sys_dlopen_deplibs=yes
10653 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10654 # it did *not* use an RPATH in a shared library to find objects the
10655 # library depends on, so we explictly say `no'.
10656 libltdl_cv_sys_dlopen_deplibs=no
10658 osf5.0|osf5.0a|osf5.1)
10659 # dlopen *does* load deplibs and with the right loader patch applied
10660 # it even uses RPATH in a shared library to search for shared objects
10661 # that the library depends on, but there's no easy way to know if that
10662 # patch is installed. Since this is the case, all we can really
10663 # say is unknown -- it depends on the patch being installed. If
10664 # it is, this changes to `yes'. Without it, it would be `no'.
10665 libltdl_cv_sys_dlopen_deplibs=unknown
10668 # the two cases above should catch all versions of osf <= 5.1. Read
10669 # the comments above for what we know about them.
10670 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10671 # is used to find them so we can finally say `yes'.
10672 libltdl_cv_sys_dlopen_deplibs=yes
10675 libltdl_cv_sys_dlopen_deplibs=yes
10677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10678 libltdl_cv_sys_dlopen_deplibs=yes
10683 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10684 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10685 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10687 cat >>confdefs.h <<\_ACEOF
10688 #define LTDL_DLOPEN_DEPLIBS 1
10694 for ac_header in argz.h
10696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 ac_res=`eval echo '${'$as_ac_Header'}'`
10704 { echo "$as_me:$LINENO: result: $ac_res" >&5
10705 echo "${ECHO_T}$ac_res" >&6; }
10707 # Is the header compilable?
10708 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10710 cat >conftest.$ac_ext <<_ACEOF
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h. */
10716 $ac_includes_default
10717 #include <$ac_header>
10719 rm -f conftest.$ac_objext
10720 if { (ac_try="$ac_compile"
10721 case "(($ac_try" in
10722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723 *) ac_try_echo=$ac_try;;
10725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726 (eval "$ac_compile") 2>conftest.er1
10728 grep -v '^ *+' conftest.er1 >conftest.err
10730 cat conftest.err >&5
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); } &&
10733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10734 { (case "(($ac_try" in
10735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10736 *) ac_try_echo=$ac_try;;
10738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10739 (eval "$ac_try") 2>&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; } &&
10743 { ac_try='test -s conftest.$ac_objext'
10744 { (case "(($ac_try" in
10745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746 *) ac_try_echo=$ac_try;;
10748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10749 (eval "$ac_try") 2>&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; }; then
10753 ac_header_compiler=yes
10755 echo "$as_me: failed program was:" >&5
10756 sed 's/^/| /' conftest.$ac_ext >&5
10758 ac_header_compiler=no
10761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10763 echo "${ECHO_T}$ac_header_compiler" >&6; }
10765 # Is the header present?
10766 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10768 cat >conftest.$ac_ext <<_ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h. */
10774 #include <$ac_header>
10776 if { (ac_try="$ac_cpp conftest.$ac_ext"
10777 case "(($ac_try" in
10778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779 *) ac_try_echo=$ac_try;;
10781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10784 grep -v '^ *+' conftest.er1 >conftest.err
10786 cat conftest.err >&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } >/dev/null; then
10789 if test -s conftest.err; then
10790 ac_cpp_err=$ac_c_preproc_warn_flag
10791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10798 if test -z "$ac_cpp_err"; then
10799 ac_header_preproc=yes
10801 echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10804 ac_header_preproc=no
10807 rm -f conftest.err conftest.$ac_ext
10808 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10809 echo "${ECHO_T}$ac_header_preproc" >&6; }
10811 # So? What about this header?
10812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10818 ac_header_preproc=yes
10821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10824 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10826 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10828 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10834 ## ----------------------------------- ##
10835 ## Report this to llvmbugs@cs.uiuc.edu ##
10836 ## ----------------------------------- ##
10838 ) | sed "s/^/$as_me: WARNING: /" >&2
10841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10846 eval "$as_ac_Header=\$ac_header_preproc"
10848 ac_res=`eval echo '${'$as_ac_Header'}'`
10849 { echo "$as_me:$LINENO: result: $ac_res" >&5
10850 echo "${ECHO_T}$ac_res" >&6; }
10853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10854 cat >>confdefs.h <<_ACEOF
10855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10863 { echo "$as_me:$LINENO: checking for error_t" >&5
10864 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10865 if test "${ac_cv_type_error_t+set}" = set; then
10866 echo $ECHO_N "(cached) $ECHO_C" >&6
10868 cat >conftest.$ac_ext <<_ACEOF
10871 cat confdefs.h >>conftest.$ac_ext
10872 cat >>conftest.$ac_ext <<_ACEOF
10873 /* end confdefs.h. */
10878 typedef error_t ac__type_new_;
10882 if ((ac__type_new_ *) 0)
10884 if (sizeof (ac__type_new_))
10890 rm -f conftest.$ac_objext
10891 if { (ac_try="$ac_compile"
10892 case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_compile") 2>conftest.er1
10899 grep -v '^ *+' conftest.er1 >conftest.err
10901 cat conftest.err >&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } &&
10904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10905 { (case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_try") 2>&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); }; } &&
10914 { ac_try='test -s conftest.$ac_objext'
10915 { (case "(($ac_try" in
10916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10917 *) ac_try_echo=$ac_try;;
10919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10920 (eval "$ac_try") 2>&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; }; then
10924 ac_cv_type_error_t=yes
10926 echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10929 ac_cv_type_error_t=no
10932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10934 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10935 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10936 if test $ac_cv_type_error_t = yes; then
10938 cat >>confdefs.h <<_ACEOF
10939 #define HAVE_ERROR_T 1
10945 cat >>confdefs.h <<\_ACEOF
10946 #define error_t int
10957 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10965 cat >conftest.$ac_ext <<_ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10973 #define $ac_func innocuous_$ac_func
10975 /* System header to define __stub macros and hopefully few prototypes,
10976 which can conflict with char $ac_func (); below.
10977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10978 <limits.h> exists even on freestanding compilers. */
10981 # include <limits.h>
10983 # include <assert.h>
10988 /* Override any GCC internal prototype to avoid an error.
10989 Use char because int might match the return type of a GCC
10990 builtin and then its argument prototype would still apply. */
10995 /* The GNU C library defines this for functions which it implements
10996 to always fail with ENOSYS. Some functions are actually named
10997 something starting with __ and the normal name is an alias. */
10998 #if defined __stub_$ac_func || defined __stub___$ac_func
11005 return $ac_func ();
11010 rm -f conftest.$ac_objext conftest$ac_exeext
11011 if { (ac_try="$ac_link"
11012 case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017 (eval "$ac_link") 2>conftest.er1
11019 grep -v '^ *+' conftest.er1 >conftest.err
11021 cat conftest.err >&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } &&
11024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11025 { (case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_try") 2>&5
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; } &&
11034 { ac_try='test -s conftest$ac_exeext'
11035 { (case "(($ac_try" in
11036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037 *) ac_try_echo=$ac_try;;
11039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040 (eval "$ac_try") 2>&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; }; then
11044 eval "$as_ac_var=yes"
11046 echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.$ac_ext >&5
11049 eval "$as_ac_var=no"
11052 rm -f core conftest.err conftest.$ac_objext \
11053 conftest$ac_exeext conftest.$ac_ext
11055 ac_res=`eval echo '${'$as_ac_var'}'`
11056 { echo "$as_me:$LINENO: result: $ac_res" >&5
11057 echo "${ECHO_T}$ac_res" >&6; }
11058 if test `eval echo '${'$as_ac_var'}'` = yes; then
11059 cat >>confdefs.h <<_ACEOF
11060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11093 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 ac_res=`eval echo '${'$as_ac_Header'}'`
11104 { echo "$as_me:$LINENO: result: $ac_res" >&5
11105 echo "${ECHO_T}$ac_res" >&6; }
11107 # Is the header compilable?
11108 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11110 cat >conftest.$ac_ext <<_ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11116 $ac_includes_default
11117 #include <$ac_header>
11119 rm -f conftest.$ac_objext
11120 if { (ac_try="$ac_compile"
11121 case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_compile") 2>conftest.er1
11128 grep -v '^ *+' conftest.er1 >conftest.err
11130 cat conftest.err >&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } &&
11133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11134 { (case "(($ac_try" in
11135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136 *) ac_try_echo=$ac_try;;
11138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11139 (eval "$ac_try") 2>&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; } &&
11143 { ac_try='test -s conftest.$ac_objext'
11144 { (case "(($ac_try" in
11145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146 *) ac_try_echo=$ac_try;;
11148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11149 (eval "$ac_try") 2>&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; }; then
11153 ac_header_compiler=yes
11155 echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11158 ac_header_compiler=no
11161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11162 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11163 echo "${ECHO_T}$ac_header_compiler" >&6; }
11165 # Is the header present?
11166 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11167 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11168 cat >conftest.$ac_ext <<_ACEOF
11171 cat confdefs.h >>conftest.$ac_ext
11172 cat >>conftest.$ac_ext <<_ACEOF
11173 /* end confdefs.h. */
11174 #include <$ac_header>
11176 if { (ac_try="$ac_cpp conftest.$ac_ext"
11177 case "(($ac_try" in
11178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179 *) ac_try_echo=$ac_try;;
11181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11184 grep -v '^ *+' conftest.er1 >conftest.err
11186 cat conftest.err >&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } >/dev/null; then
11189 if test -s conftest.err; then
11190 ac_cpp_err=$ac_c_preproc_warn_flag
11191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11198 if test -z "$ac_cpp_err"; then
11199 ac_header_preproc=yes
11201 echo "$as_me: failed program was:" >&5
11202 sed 's/^/| /' conftest.$ac_ext >&5
11204 ac_header_preproc=no
11207 rm -f conftest.err conftest.$ac_ext
11208 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11209 echo "${ECHO_T}$ac_header_preproc" >&6; }
11211 # So? What about this header?
11212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11218 ac_header_preproc=yes
11221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11224 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11228 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11234 ## ----------------------------------- ##
11235 ## Report this to llvmbugs@cs.uiuc.edu ##
11236 ## ----------------------------------- ##
11238 ) | sed "s/^/$as_me: WARNING: /" >&2
11241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11244 echo $ECHO_N "(cached) $ECHO_C" >&6
11246 eval "$as_ac_Header=\$ac_header_preproc"
11248 ac_res=`eval echo '${'$as_ac_Header'}'`
11249 { echo "$as_me:$LINENO: result: $ac_res" >&5
11250 echo "${ECHO_T}$ac_res" >&6; }
11253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11254 cat >>confdefs.h <<_ACEOF
11255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11266 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11275 ac_res=`eval echo '${'$as_ac_Header'}'`
11276 { echo "$as_me:$LINENO: result: $ac_res" >&5
11277 echo "${ECHO_T}$ac_res" >&6; }
11279 # Is the header compilable?
11280 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11282 cat >conftest.$ac_ext <<_ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11288 $ac_includes_default
11289 #include <$ac_header>
11291 rm -f conftest.$ac_objext
11292 if { (ac_try="$ac_compile"
11293 case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298 (eval "$ac_compile") 2>conftest.er1
11300 grep -v '^ *+' conftest.er1 >conftest.err
11302 cat conftest.err >&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } &&
11305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11306 { (case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311 (eval "$ac_try") 2>&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; } &&
11315 { ac_try='test -s conftest.$ac_objext'
11316 { (case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_try") 2>&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; }; then
11325 ac_header_compiler=yes
11327 echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.$ac_ext >&5
11330 ac_header_compiler=no
11333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11335 echo "${ECHO_T}$ac_header_compiler" >&6; }
11337 # Is the header present?
11338 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11340 cat >conftest.$ac_ext <<_ACEOF
11343 cat confdefs.h >>conftest.$ac_ext
11344 cat >>conftest.$ac_ext <<_ACEOF
11345 /* end confdefs.h. */
11346 #include <$ac_header>
11348 if { (ac_try="$ac_cpp conftest.$ac_ext"
11349 case "(($ac_try" in
11350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351 *) ac_try_echo=$ac_try;;
11353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11356 grep -v '^ *+' conftest.er1 >conftest.err
11358 cat conftest.err >&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } >/dev/null; then
11361 if test -s conftest.err; then
11362 ac_cpp_err=$ac_c_preproc_warn_flag
11363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11370 if test -z "$ac_cpp_err"; then
11371 ac_header_preproc=yes
11373 echo "$as_me: failed program was:" >&5
11374 sed 's/^/| /' conftest.$ac_ext >&5
11376 ac_header_preproc=no
11379 rm -f conftest.err conftest.$ac_ext
11380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11381 echo "${ECHO_T}$ac_header_preproc" >&6; }
11383 # So? What about this header?
11384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11390 ac_header_preproc=yes
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11400 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11406 ## ----------------------------------- ##
11407 ## Report this to llvmbugs@cs.uiuc.edu ##
11408 ## ----------------------------------- ##
11410 ) | sed "s/^/$as_me: WARNING: /" >&2
11413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11416 echo $ECHO_N "(cached) $ECHO_C" >&6
11418 eval "$as_ac_Header=\$ac_header_preproc"
11420 ac_res=`eval echo '${'$as_ac_Header'}'`
11421 { echo "$as_me:$LINENO: result: $ac_res" >&5
11422 echo "${ECHO_T}$ac_res" >&6; }
11425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11426 cat >>confdefs.h <<_ACEOF
11427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11436 for ac_header in string.h strings.h
11438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
11445 ac_res=`eval echo '${'$as_ac_Header'}'`
11446 { echo "$as_me:$LINENO: result: $ac_res" >&5
11447 echo "${ECHO_T}$ac_res" >&6; }
11449 # Is the header compilable?
11450 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11452 cat >conftest.$ac_ext <<_ACEOF
11455 cat confdefs.h >>conftest.$ac_ext
11456 cat >>conftest.$ac_ext <<_ACEOF
11457 /* end confdefs.h. */
11458 $ac_includes_default
11459 #include <$ac_header>
11461 rm -f conftest.$ac_objext
11462 if { (ac_try="$ac_compile"
11463 case "(($ac_try" in
11464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465 *) ac_try_echo=$ac_try;;
11467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11468 (eval "$ac_compile") 2>conftest.er1
11470 grep -v '^ *+' conftest.er1 >conftest.err
11472 cat conftest.err >&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); } &&
11475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11476 { (case "(($ac_try" in
11477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478 *) ac_try_echo=$ac_try;;
11480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481 (eval "$ac_try") 2>&5
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); }; } &&
11485 { ac_try='test -s conftest.$ac_objext'
11486 { (case "(($ac_try" in
11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491 (eval "$ac_try") 2>&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); }; }; then
11495 ac_header_compiler=yes
11497 echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.$ac_ext >&5
11500 ac_header_compiler=no
11503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11505 echo "${ECHO_T}$ac_header_compiler" >&6; }
11507 # Is the header present?
11508 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11510 cat >conftest.$ac_ext <<_ACEOF
11513 cat confdefs.h >>conftest.$ac_ext
11514 cat >>conftest.$ac_ext <<_ACEOF
11515 /* end confdefs.h. */
11516 #include <$ac_header>
11518 if { (ac_try="$ac_cpp conftest.$ac_ext"
11519 case "(($ac_try" in
11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521 *) ac_try_echo=$ac_try;;
11523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11526 grep -v '^ *+' conftest.er1 >conftest.err
11528 cat conftest.err >&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); } >/dev/null; then
11531 if test -s conftest.err; then
11532 ac_cpp_err=$ac_c_preproc_warn_flag
11533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11540 if test -z "$ac_cpp_err"; then
11541 ac_header_preproc=yes
11543 echo "$as_me: failed program was:" >&5
11544 sed 's/^/| /' conftest.$ac_ext >&5
11546 ac_header_preproc=no
11549 rm -f conftest.err conftest.$ac_ext
11550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11551 echo "${ECHO_T}$ac_header_preproc" >&6; }
11553 # So? What about this header?
11554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11560 ac_header_preproc=yes
11563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11570 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11576 ## ----------------------------------- ##
11577 ## Report this to llvmbugs@cs.uiuc.edu ##
11578 ## ----------------------------------- ##
11580 ) | sed "s/^/$as_me: WARNING: /" >&2
11583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11588 eval "$as_ac_Header=\$ac_header_preproc"
11590 ac_res=`eval echo '${'$as_ac_Header'}'`
11591 { echo "$as_me:$LINENO: result: $ac_res" >&5
11592 echo "${ECHO_T}$ac_res" >&6; }
11595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11596 cat >>confdefs.h <<_ACEOF
11597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11607 for ac_func in strchr index
11609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11610 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 cat >conftest.$ac_ext <<_ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h. */
11621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11623 #define $ac_func innocuous_$ac_func
11625 /* System header to define __stub macros and hopefully few prototypes,
11626 which can conflict with char $ac_func (); below.
11627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11628 <limits.h> exists even on freestanding compilers. */
11631 # include <limits.h>
11633 # include <assert.h>
11638 /* Override any GCC internal prototype to avoid an error.
11639 Use char because int might match the return type of a GCC
11640 builtin and then its argument prototype would still apply. */
11645 /* The GNU C library defines this for functions which it implements
11646 to always fail with ENOSYS. Some functions are actually named
11647 something starting with __ and the normal name is an alias. */
11648 #if defined __stub_$ac_func || defined __stub___$ac_func
11655 return $ac_func ();
11660 rm -f conftest.$ac_objext conftest$ac_exeext
11661 if { (ac_try="$ac_link"
11662 case "(($ac_try" in
11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667 (eval "$ac_link") 2>conftest.er1
11669 grep -v '^ *+' conftest.er1 >conftest.err
11671 cat conftest.err >&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } &&
11674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11675 { (case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_try") 2>&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; } &&
11684 { ac_try='test -s conftest$ac_exeext'
11685 { (case "(($ac_try" in
11686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687 *) ac_try_echo=$ac_try;;
11689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690 (eval "$ac_try") 2>&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; }; then
11694 eval "$as_ac_var=yes"
11696 echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.$ac_ext >&5
11699 eval "$as_ac_var=no"
11702 rm -f core conftest.err conftest.$ac_objext \
11703 conftest$ac_exeext conftest.$ac_ext
11705 ac_res=`eval echo '${'$as_ac_var'}'`
11706 { echo "$as_me:$LINENO: result: $ac_res" >&5
11707 echo "${ECHO_T}$ac_res" >&6; }
11708 if test `eval echo '${'$as_ac_var'}'` = yes; then
11709 cat >>confdefs.h <<_ACEOF
11710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11718 for ac_func in strrchr rindex
11720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11721 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11724 echo $ECHO_N "(cached) $ECHO_C" >&6
11726 cat >conftest.$ac_ext <<_ACEOF
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h. */
11732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11734 #define $ac_func innocuous_$ac_func
11736 /* System header to define __stub macros and hopefully few prototypes,
11737 which can conflict with char $ac_func (); below.
11738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11739 <limits.h> exists even on freestanding compilers. */
11742 # include <limits.h>
11744 # include <assert.h>
11749 /* Override any GCC internal prototype to avoid an error.
11750 Use char because int might match the return type of a GCC
11751 builtin and then its argument prototype would still apply. */
11756 /* The GNU C library defines this for functions which it implements
11757 to always fail with ENOSYS. Some functions are actually named
11758 something starting with __ and the normal name is an alias. */
11759 #if defined __stub_$ac_func || defined __stub___$ac_func
11766 return $ac_func ();
11771 rm -f conftest.$ac_objext conftest$ac_exeext
11772 if { (ac_try="$ac_link"
11773 case "(($ac_try" in
11774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775 *) ac_try_echo=$ac_try;;
11777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778 (eval "$ac_link") 2>conftest.er1
11780 grep -v '^ *+' conftest.er1 >conftest.err
11782 cat conftest.err >&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } &&
11785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11786 { (case "(($ac_try" in
11787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_try") 2>&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; } &&
11795 { ac_try='test -s conftest$ac_exeext'
11796 { (case "(($ac_try" in
11797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11798 *) ac_try_echo=$ac_try;;
11800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11801 (eval "$ac_try") 2>&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; }; then
11805 eval "$as_ac_var=yes"
11807 echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11810 eval "$as_ac_var=no"
11813 rm -f core conftest.err conftest.$ac_objext \
11814 conftest$ac_exeext conftest.$ac_ext
11816 ac_res=`eval echo '${'$as_ac_var'}'`
11817 { echo "$as_me:$LINENO: result: $ac_res" >&5
11818 echo "${ECHO_T}$ac_res" >&6; }
11819 if test `eval echo '${'$as_ac_var'}'` = yes; then
11820 cat >>confdefs.h <<_ACEOF
11821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11829 for ac_func in memcpy bcopy
11831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11837 cat >conftest.$ac_ext <<_ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h. */
11843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11845 #define $ac_func innocuous_$ac_func
11847 /* System header to define __stub macros and hopefully few prototypes,
11848 which can conflict with char $ac_func (); below.
11849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11850 <limits.h> exists even on freestanding compilers. */
11853 # include <limits.h>
11855 # include <assert.h>
11860 /* Override any GCC internal prototype to avoid an error.
11861 Use char because int might match the return type of a GCC
11862 builtin and then its argument prototype would still apply. */
11867 /* The GNU C library defines this for functions which it implements
11868 to always fail with ENOSYS. Some functions are actually named
11869 something starting with __ and the normal name is an alias. */
11870 #if defined __stub_$ac_func || defined __stub___$ac_func
11877 return $ac_func ();
11882 rm -f conftest.$ac_objext conftest$ac_exeext
11883 if { (ac_try="$ac_link"
11884 case "(($ac_try" in
11885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886 *) ac_try_echo=$ac_try;;
11888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889 (eval "$ac_link") 2>conftest.er1
11891 grep -v '^ *+' conftest.er1 >conftest.err
11893 cat conftest.err >&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } &&
11896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11897 { (case "(($ac_try" in
11898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899 *) ac_try_echo=$ac_try;;
11901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11902 (eval "$ac_try") 2>&5
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; } &&
11906 { ac_try='test -s conftest$ac_exeext'
11907 { (case "(($ac_try" in
11908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11909 *) ac_try_echo=$ac_try;;
11911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11912 (eval "$ac_try") 2>&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; }; then
11916 eval "$as_ac_var=yes"
11918 echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11921 eval "$as_ac_var=no"
11924 rm -f core conftest.err conftest.$ac_objext \
11925 conftest$ac_exeext conftest.$ac_ext
11927 ac_res=`eval echo '${'$as_ac_var'}'`
11928 { echo "$as_me:$LINENO: result: $ac_res" >&5
11929 echo "${ECHO_T}$ac_res" >&6; }
11930 if test `eval echo '${'$as_ac_var'}'` = yes; then
11931 cat >>confdefs.h <<_ACEOF
11932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11940 for ac_func in memmove strcmp
11942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11946 echo $ECHO_N "(cached) $ECHO_C" >&6
11948 cat >conftest.$ac_ext <<_ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11956 #define $ac_func innocuous_$ac_func
11958 /* System header to define __stub macros and hopefully few prototypes,
11959 which can conflict with char $ac_func (); below.
11960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11961 <limits.h> exists even on freestanding compilers. */
11964 # include <limits.h>
11966 # include <assert.h>
11971 /* Override any GCC internal prototype to avoid an error.
11972 Use char because int might match the return type of a GCC
11973 builtin and then its argument prototype would still apply. */
11978 /* The GNU C library defines this for functions which it implements
11979 to always fail with ENOSYS. Some functions are actually named
11980 something starting with __ and the normal name is an alias. */
11981 #if defined __stub_$ac_func || defined __stub___$ac_func
11988 return $ac_func ();
11993 rm -f conftest.$ac_objext conftest$ac_exeext
11994 if { (ac_try="$ac_link"
11995 case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_link") 2>conftest.er1
12002 grep -v '^ *+' conftest.er1 >conftest.err
12004 cat conftest.err >&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); } &&
12007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12008 { (case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013 (eval "$ac_try") 2>&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; } &&
12017 { ac_try='test -s conftest$ac_exeext'
12018 { (case "(($ac_try" in
12019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12020 *) ac_try_echo=$ac_try;;
12022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12023 (eval "$ac_try") 2>&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); }; }; then
12027 eval "$as_ac_var=yes"
12029 echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12032 eval "$as_ac_var=no"
12035 rm -f core conftest.err conftest.$ac_objext \
12036 conftest$ac_exeext conftest.$ac_ext
12038 ac_res=`eval echo '${'$as_ac_var'}'`
12039 { echo "$as_me:$LINENO: result: $ac_res" >&5
12040 echo "${ECHO_T}$ac_res" >&6; }
12041 if test `eval echo '${'$as_ac_var'}'` = yes; then
12042 cat >>confdefs.h <<_ACEOF
12043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12052 for ac_func in closedir opendir readdir
12054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12055 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12058 echo $ECHO_N "(cached) $ECHO_C" >&6
12060 cat >conftest.$ac_ext <<_ACEOF
12063 cat confdefs.h >>conftest.$ac_ext
12064 cat >>conftest.$ac_ext <<_ACEOF
12065 /* end confdefs.h. */
12066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12068 #define $ac_func innocuous_$ac_func
12070 /* System header to define __stub macros and hopefully few prototypes,
12071 which can conflict with char $ac_func (); below.
12072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12073 <limits.h> exists even on freestanding compilers. */
12076 # include <limits.h>
12078 # include <assert.h>
12083 /* Override any GCC internal prototype to avoid an error.
12084 Use char because int might match the return type of a GCC
12085 builtin and then its argument prototype would still apply. */
12090 /* The GNU C library defines this for functions which it implements
12091 to always fail with ENOSYS. Some functions are actually named
12092 something starting with __ and the normal name is an alias. */
12093 #if defined __stub_$ac_func || defined __stub___$ac_func
12100 return $ac_func ();
12105 rm -f conftest.$ac_objext conftest$ac_exeext
12106 if { (ac_try="$ac_link"
12107 case "(($ac_try" in
12108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109 *) ac_try_echo=$ac_try;;
12111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112 (eval "$ac_link") 2>conftest.er1
12114 grep -v '^ *+' conftest.er1 >conftest.err
12116 cat conftest.err >&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } &&
12119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12120 { (case "(($ac_try" in
12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122 *) ac_try_echo=$ac_try;;
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_try") 2>&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; } &&
12129 { ac_try='test -s conftest$ac_exeext'
12130 { (case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135 (eval "$ac_try") 2>&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; }; then
12139 eval "$as_ac_var=yes"
12141 echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.$ac_ext >&5
12144 eval "$as_ac_var=no"
12147 rm -f core conftest.err conftest.$ac_objext \
12148 conftest$ac_exeext conftest.$ac_ext
12150 ac_res=`eval echo '${'$as_ac_var'}'`
12151 { echo "$as_me:$LINENO: result: $ac_res" >&5
12152 echo "${ECHO_T}$ac_res" >&6; }
12153 if test `eval echo '${'$as_ac_var'}'` = yes; then
12154 cat >>confdefs.h <<_ACEOF
12155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12162 # Check whether --enable-shared was given.
12163 if test "${enable_shared+set}" = set; then
12164 enableval=$enable_shared; p=${PACKAGE-default}
12166 yes) enable_shared=yes ;;
12167 no) enable_shared=no ;;
12170 # Look at the argument we got. We use all the common list separators.
12171 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12172 for pkg in $enableval; do
12174 if test "X$pkg" = "X$p"; then
12186 # Check whether --enable-static was given.
12187 if test "${enable_static+set}" = set; then
12188 enableval=$enable_static; p=${PACKAGE-default}
12190 yes) enable_static=yes ;;
12191 no) enable_static=no ;;
12194 # Look at the argument we got. We use all the common list separators.
12195 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12196 for pkg in $enableval; do
12198 if test "X$pkg" = "X$p"; then
12210 # Check whether --enable-fast-install was given.
12211 if test "${enable_fast_install+set}" = set; then
12212 enableval=$enable_fast_install; p=${PACKAGE-default}
12214 yes) enable_fast_install=yes ;;
12215 no) enable_fast_install=no ;;
12217 enable_fast_install=no
12218 # Look at the argument we got. We use all the common list separators.
12219 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12220 for pkg in $enableval; do
12222 if test "X$pkg" = "X$p"; then
12223 enable_fast_install=yes
12230 enable_fast_install=yes
12234 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12235 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12236 if test "${lt_cv_path_SED+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12239 # Loop through the user's path and test for sed and gsed.
12240 # Then use that list of sed's as ones to test for truncation.
12241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12242 for as_dir in $PATH
12245 test -z "$as_dir" && as_dir=.
12246 for lt_ac_prog in sed gsed; do
12247 for ac_exec_ext in '' $ac_executable_extensions; do
12248 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12249 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12256 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12257 # along with /bin/sed that truncates output.
12258 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12259 test ! -f $lt_ac_sed && continue
12260 cat /dev/null > conftest.in
12262 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12263 # Check for GNU sed and select it if it is found.
12264 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12265 lt_cv_path_SED=$lt_ac_sed
12269 cat conftest.in conftest.in >conftest.tmp
12270 mv conftest.tmp conftest.in
12271 cp conftest.in conftest.nl
12273 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12274 cmp -s conftest.out conftest.nl || break
12275 # 10000 chars as input seems more than enough
12276 test $lt_ac_count -gt 10 && break
12277 lt_ac_count=`expr $lt_ac_count + 1`
12278 if test $lt_ac_count -gt $lt_ac_max; then
12279 lt_ac_max=$lt_ac_count
12280 lt_cv_path_SED=$lt_ac_sed
12287 SED=$lt_cv_path_SED
12288 { echo "$as_me:$LINENO: result: $SED" >&5
12289 echo "${ECHO_T}$SED" >&6; }
12292 # Check whether --with-gnu-ld was given.
12293 if test "${with_gnu_ld+set}" = set; then
12294 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12300 if test "$GCC" = yes; then
12301 # Check if gcc -print-prog-name=ld gives a path.
12302 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12303 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12306 # gcc leaves a trailing carriage return which upsets mingw
12307 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12309 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12312 # Accept absolute paths.
12314 re_direlt='/[^/][^/]*/\.\./'
12315 # Canonicalize the pathname of ld
12316 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12317 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12318 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12320 test -z "$LD" && LD="$ac_prog"
12323 # If it fails, then pretend we aren't using GCC.
12327 # If it is relative, then search for the first ld in PATH.
12328 with_gnu_ld=unknown
12331 elif test "$with_gnu_ld" = yes; then
12332 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12333 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12335 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12336 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12338 if test "${lt_cv_path_LD+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 if test -z "$LD"; then
12342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12343 for ac_dir in $PATH; do
12345 test -z "$ac_dir" && ac_dir=.
12346 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12347 lt_cv_path_LD="$ac_dir/$ac_prog"
12348 # Check to see if the program is GNU ld. I'd rather use --version,
12349 # but apparently some variants of GNU ld only accept -v.
12350 # Break only if it was the GNU/non-GNU ld that we prefer.
12351 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12352 *GNU* | *'with BFD'*)
12353 test "$with_gnu_ld" != no && break
12356 test "$with_gnu_ld" != yes && break
12363 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12367 LD="$lt_cv_path_LD"
12368 if test -n "$LD"; then
12369 { echo "$as_me:$LINENO: result: $LD" >&5
12370 echo "${ECHO_T}$LD" >&6; }
12372 { echo "$as_me:$LINENO: result: no" >&5
12373 echo "${ECHO_T}no" >&6; }
12375 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12376 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12377 { (exit 1); exit 1; }; }
12378 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12379 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12380 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12384 case `$LD -v 2>&1 </dev/null` in
12385 *GNU* | *'with BFD'*)
12386 lt_cv_prog_gnu_ld=yes
12389 lt_cv_prog_gnu_ld=no
12393 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12394 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12395 with_gnu_ld=$lt_cv_prog_gnu_ld
12398 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12399 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12400 if test "${lt_cv_ld_reload_flag+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12403 lt_cv_ld_reload_flag='-r'
12405 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12406 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12407 reload_flag=$lt_cv_ld_reload_flag
12408 case $reload_flag in
12410 *) reload_flag=" $reload_flag" ;;
12412 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12415 if test "$GCC" = yes; then
12416 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12418 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12423 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12424 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12425 if test "${lt_cv_deplibs_check_method+set}" = set; then
12426 echo $ECHO_N "(cached) $ECHO_C" >&6
12428 lt_cv_file_magic_cmd='$MAGIC_CMD'
12429 lt_cv_file_magic_test_file=
12430 lt_cv_deplibs_check_method='unknown'
12431 # Need to set the preceding variable on all platforms that support
12432 # interlibrary dependencies.
12433 # 'none' -- dependencies not supported.
12434 # `unknown' -- same as none, but documents that we really don't know.
12435 # 'pass_all' -- all dependencies passed with no checks.
12436 # 'test_compile' -- check by making test program.
12437 # 'file_magic [[regex]]' -- check by looking for files in library path
12438 # which responds to the $file_magic_cmd with a given extended regex.
12439 # If you have `file' or equivalent on your system and you're not sure
12440 # whether `pass_all' will *always* work, you probably want this one.
12444 lt_cv_deplibs_check_method=pass_all
12448 lt_cv_deplibs_check_method=pass_all
12452 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12453 lt_cv_file_magic_cmd='/usr/bin/file -L'
12454 lt_cv_file_magic_test_file=/shlib/libc.so
12458 # func_win32_libid is a shell function defined in ltmain.sh
12459 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12460 lt_cv_file_magic_cmd='func_win32_libid'
12464 # Base MSYS/MinGW do not provide the 'file' command needed by
12465 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12466 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12467 lt_cv_file_magic_cmd='$OBJDUMP -f'
12470 darwin* | rhapsody*)
12471 lt_cv_deplibs_check_method=pass_all
12474 freebsd* | kfreebsd*-gnu | dragonfly*)
12475 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12478 # Not sure whether the presence of OpenBSD here was a mistake.
12479 # Let's accept both of them until this is cleared up.
12480 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12481 lt_cv_file_magic_cmd=/usr/bin/file
12482 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12486 lt_cv_deplibs_check_method=pass_all
12491 lt_cv_deplibs_check_method=pass_all
12494 hpux10.20* | hpux11*)
12495 lt_cv_file_magic_cmd=/usr/bin/file
12498 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12499 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12502 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]'
12503 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12506 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12507 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12513 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12517 irix5* | irix6* | nonstopux*)
12519 *-32|*"-32 ") libmagic=32-bit;;
12520 *-n32|*"-n32 ") libmagic=N32;;
12521 *-64|*"-64 ") libmagic=64-bit;;
12522 *) libmagic=never-match;;
12524 lt_cv_deplibs_check_method=pass_all
12527 # This must be Linux ELF.
12529 lt_cv_deplibs_check_method=pass_all
12533 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12534 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12536 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12541 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12542 lt_cv_file_magic_cmd=/usr/bin/file
12543 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12547 lt_cv_deplibs_check_method=unknown
12551 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12554 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12558 osf3* | osf4* | osf5*)
12559 lt_cv_deplibs_check_method=pass_all
12563 lt_cv_deplibs_check_method=pass_all
12567 case $host_vendor in
12569 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]'
12570 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12573 lt_cv_deplibs_check_method=pass_all
12576 lt_cv_file_magic_cmd='/bin/file'
12577 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12580 lt_cv_file_magic_cmd='/bin/file'
12581 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12582 lt_cv_file_magic_test_file=/lib/libc.so
12585 lt_cv_deplibs_check_method=pass_all
12588 lt_cv_deplibs_check_method=pass_all
12593 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12594 lt_cv_deplibs_check_method=pass_all
12599 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12600 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12601 file_magic_cmd=$lt_cv_file_magic_cmd
12602 deplibs_check_method=$lt_cv_deplibs_check_method
12603 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12607 # If no C compiler was specified, use CC.
12610 # If no C compiler flags were specified, use CFLAGS.
12611 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12613 # Allow CC to be a program name with arguments.
12616 # Check whether --enable-libtool-lock was given.
12617 if test "${enable_libtool_lock+set}" = set; then
12618 enableval=$enable_libtool_lock;
12621 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12623 # Some flags need to be propagated to the compiler or linker for good
12627 # Find out which ABI we are using.
12628 echo 'int i;' > conftest.$ac_ext
12629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12630 (eval $ac_compile) 2>&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }; then
12634 case `/usr/bin/file conftest.$ac_objext` in
12636 HPUX_IA64_MODE="32"
12639 HPUX_IA64_MODE="64"
12646 # Find out which ABI we are using.
12647 echo '#line 12647 "configure"' > conftest.$ac_ext
12648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12649 (eval $ac_compile) 2>&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; then
12653 if test "$lt_cv_prog_gnu_ld" = yes; then
12654 case `/usr/bin/file conftest.$ac_objext` in
12656 LD="${LD-ld} -melf32bsmip"
12659 LD="${LD-ld} -melf32bmipn32"
12662 LD="${LD-ld} -melf64bmip"
12666 case `/usr/bin/file conftest.$ac_objext` in
12682 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12683 # Find out which ABI we are using.
12684 echo 'int i;' > conftest.$ac_ext
12685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12686 (eval $ac_compile) 2>&5
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; then
12690 case `/usr/bin/file conftest.o` in
12694 LD="${LD-ld} -m elf_i386"
12696 ppc64-*linux*|powerpc64-*linux*)
12697 LD="${LD-ld} -m elf32ppclinux"
12700 LD="${LD-ld} -m elf_s390"
12703 LD="${LD-ld} -m elf32_sparc"
12710 LD="${LD-ld} -m elf_x86_64"
12712 ppc*-*linux*|powerpc*-*linux*)
12713 LD="${LD-ld} -m elf64ppc"
12716 LD="${LD-ld} -m elf64_s390"
12719 LD="${LD-ld} -m elf64_sparc"
12729 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12730 SAVE_CFLAGS="$CFLAGS"
12731 CFLAGS="$CFLAGS -belf"
12732 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12733 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12734 if test "${lt_cv_cc_needs_belf+set}" = set; then
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
12738 ac_cpp='$CPP $CPPFLAGS'
12739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12743 cat >conftest.$ac_ext <<_ACEOF
12746 cat confdefs.h >>conftest.$ac_ext
12747 cat >>conftest.$ac_ext <<_ACEOF
12748 /* end confdefs.h. */
12758 rm -f conftest.$ac_objext conftest$ac_exeext
12759 if { (ac_try="$ac_link"
12760 case "(($ac_try" in
12761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762 *) ac_try_echo=$ac_try;;
12764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765 (eval "$ac_link") 2>conftest.er1
12767 grep -v '^ *+' conftest.er1 >conftest.err
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } &&
12772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12773 { (case "(($ac_try" in
12774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_try") 2>&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; } &&
12782 { ac_try='test -s conftest$ac_exeext'
12783 { (case "(($ac_try" in
12784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12788 (eval "$ac_try") 2>&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; }; then
12792 lt_cv_cc_needs_belf=yes
12794 echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12797 lt_cv_cc_needs_belf=no
12800 rm -f core conftest.err conftest.$ac_objext \
12801 conftest$ac_exeext conftest.$ac_ext
12803 ac_cpp='$CPP $CPPFLAGS'
12804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12809 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12810 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12811 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12812 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12813 CFLAGS="$SAVE_CFLAGS"
12817 # Find out which ABI we are using.
12818 echo 'int i;' > conftest.$ac_ext
12819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12820 (eval $ac_compile) 2>&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; then
12824 case `/usr/bin/file conftest.o` in
12826 case $lt_cv_prog_gnu_ld in
12827 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12828 *) LD="${LD-ld} -64" ;;
12839 need_locks="$enable_libtool_lock"
12844 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12845 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12846 (test "X$CXX" != "Xg++"))) ; then
12848 ac_cpp='$CXXCPP $CPPFLAGS'
12849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12852 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12853 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12854 if test -z "$CXXCPP"; then
12855 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12856 echo $ECHO_N "(cached) $ECHO_C" >&6
12858 # Double quotes because CXXCPP needs to be expanded
12859 for CXXCPP in "$CXX -E" "/lib/cpp"
12861 ac_preproc_ok=false
12862 for ac_cxx_preproc_warn_flag in '' yes
12864 # Use a header file that comes with gcc, so configuring glibc
12865 # with a fresh cross-compiler works.
12866 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12867 # <limits.h> exists even on freestanding compilers.
12868 # On the NeXT, cc -E runs the code through the compiler's parser,
12869 # not just through cpp. "Syntax error" is here to catch this case.
12870 cat >conftest.$ac_ext <<_ACEOF
12873 cat confdefs.h >>conftest.$ac_ext
12874 cat >>conftest.$ac_ext <<_ACEOF
12875 /* end confdefs.h. */
12877 # include <limits.h>
12879 # include <assert.h>
12883 if { (ac_try="$ac_cpp conftest.$ac_ext"
12884 case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12891 grep -v '^ *+' conftest.er1 >conftest.err
12893 cat conftest.err >&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } >/dev/null; then
12896 if test -s conftest.err; then
12897 ac_cpp_err=$ac_cxx_preproc_warn_flag
12898 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12905 if test -z "$ac_cpp_err"; then
12908 echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12911 # Broken: fails on valid input.
12915 rm -f conftest.err conftest.$ac_ext
12917 # OK, works on sane cases. Now check whether nonexistent headers
12918 # can be detected and how.
12919 cat >conftest.$ac_ext <<_ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12925 #include <ac_nonexistent.h>
12927 if { (ac_try="$ac_cpp conftest.$ac_ext"
12928 case "(($ac_try" in
12929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930 *) ac_try_echo=$ac_try;;
12932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12935 grep -v '^ *+' conftest.er1 >conftest.err
12937 cat conftest.err >&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); } >/dev/null; then
12940 if test -s conftest.err; then
12941 ac_cpp_err=$ac_cxx_preproc_warn_flag
12942 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12949 if test -z "$ac_cpp_err"; then
12950 # Broken: success on invalid input.
12953 echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12956 # Passes both tests.
12961 rm -f conftest.err conftest.$ac_ext
12964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12965 rm -f conftest.err conftest.$ac_ext
12966 if $ac_preproc_ok; then
12971 ac_cv_prog_CXXCPP=$CXXCPP
12974 CXXCPP=$ac_cv_prog_CXXCPP
12976 ac_cv_prog_CXXCPP=$CXXCPP
12978 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12979 echo "${ECHO_T}$CXXCPP" >&6; }
12980 ac_preproc_ok=false
12981 for ac_cxx_preproc_warn_flag in '' yes
12983 # Use a header file that comes with gcc, so configuring glibc
12984 # with a fresh cross-compiler works.
12985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12986 # <limits.h> exists even on freestanding compilers.
12987 # On the NeXT, cc -E runs the code through the compiler's parser,
12988 # not just through cpp. "Syntax error" is here to catch this case.
12989 cat >conftest.$ac_ext <<_ACEOF
12992 cat confdefs.h >>conftest.$ac_ext
12993 cat >>conftest.$ac_ext <<_ACEOF
12994 /* end confdefs.h. */
12996 # include <limits.h>
12998 # include <assert.h>
13002 if { (ac_try="$ac_cpp conftest.$ac_ext"
13003 case "(($ac_try" in
13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005 *) ac_try_echo=$ac_try;;
13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13010 grep -v '^ *+' conftest.er1 >conftest.err
13012 cat conftest.err >&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); } >/dev/null; then
13015 if test -s conftest.err; then
13016 ac_cpp_err=$ac_cxx_preproc_warn_flag
13017 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13024 if test -z "$ac_cpp_err"; then
13027 echo "$as_me: failed program was:" >&5
13028 sed 's/^/| /' conftest.$ac_ext >&5
13030 # Broken: fails on valid input.
13034 rm -f conftest.err conftest.$ac_ext
13036 # OK, works on sane cases. Now check whether nonexistent headers
13037 # can be detected and how.
13038 cat >conftest.$ac_ext <<_ACEOF
13041 cat confdefs.h >>conftest.$ac_ext
13042 cat >>conftest.$ac_ext <<_ACEOF
13043 /* end confdefs.h. */
13044 #include <ac_nonexistent.h>
13046 if { (ac_try="$ac_cpp conftest.$ac_ext"
13047 case "(($ac_try" in
13048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049 *) ac_try_echo=$ac_try;;
13051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13054 grep -v '^ *+' conftest.er1 >conftest.err
13056 cat conftest.err >&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } >/dev/null; then
13059 if test -s conftest.err; then
13060 ac_cpp_err=$ac_cxx_preproc_warn_flag
13061 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13068 if test -z "$ac_cpp_err"; then
13069 # Broken: success on invalid input.
13072 echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13075 # Passes both tests.
13080 rm -f conftest.err conftest.$ac_ext
13083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13084 rm -f conftest.err conftest.$ac_ext
13085 if $ac_preproc_ok; then
13088 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13089 See \`config.log' for more details." >&5
13090 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13091 See \`config.log' for more details." >&2;}
13092 { (exit 1); exit 1; }; }
13096 ac_cpp='$CXXCPP $CPPFLAGS'
13097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13105 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13106 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13107 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13108 if test -n "$ac_tool_prefix"; then
13109 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
13111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13112 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13115 if test "${ac_cv_prog_F77+set}" = set; then
13116 echo $ECHO_N "(cached) $ECHO_C" >&6
13118 if test -n "$F77"; then
13119 ac_cv_prog_F77="$F77" # Let the user override the test.
13121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13122 for as_dir in $PATH
13125 test -z "$as_dir" && as_dir=.
13126 for ac_exec_ext in '' $ac_executable_extensions; do
13127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13128 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13138 F77=$ac_cv_prog_F77
13139 if test -n "$F77"; then
13140 { echo "$as_me:$LINENO: result: $F77" >&5
13141 echo "${ECHO_T}$F77" >&6; }
13143 { echo "$as_me:$LINENO: result: no" >&5
13144 echo "${ECHO_T}no" >&6; }
13148 test -n "$F77" && break
13151 if test -z "$F77"; then
13153 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
13155 # Extract the first word of "$ac_prog", so it can be a program name with args.
13156 set dummy $ac_prog; ac_word=$2
13157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13159 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 if test -n "$ac_ct_F77"; then
13163 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166 for as_dir in $PATH
13169 test -z "$as_dir" && as_dir=.
13170 for ac_exec_ext in '' $ac_executable_extensions; do
13171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13172 ac_cv_prog_ac_ct_F77="$ac_prog"
13173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13182 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13183 if test -n "$ac_ct_F77"; then
13184 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13185 echo "${ECHO_T}$ac_ct_F77" >&6; }
13187 { echo "$as_me:$LINENO: result: no" >&5
13188 echo "${ECHO_T}no" >&6; }
13192 test -n "$ac_ct_F77" && break
13195 if test "x$ac_ct_F77" = x; then
13198 case $cross_compiling:$ac_tool_warned in
13200 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13201 whose name does not start with the host triplet. If you think this
13202 configuration is useful to you, please write to autoconf@gnu.org." >&5
13203 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13204 whose name does not start with the host triplet. If you think this
13205 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13206 ac_tool_warned=yes ;;
13213 # Provide some information about the compiler.
13214 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13215 ac_compiler=`set X $ac_compile; echo $2`
13216 { (ac_try="$ac_compiler --version >&5"
13217 case "(($ac_try" in
13218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13219 *) ac_try_echo=$ac_try;;
13221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222 (eval "$ac_compiler --version >&5") 2>&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }
13226 { (ac_try="$ac_compiler -v >&5"
13227 case "(($ac_try" in
13228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229 *) ac_try_echo=$ac_try;;
13231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13232 (eval "$ac_compiler -v >&5") 2>&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); }
13236 { (ac_try="$ac_compiler -V >&5"
13237 case "(($ac_try" in
13238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13239 *) ac_try_echo=$ac_try;;
13241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13242 (eval "$ac_compiler -V >&5") 2>&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); }
13248 # If we don't use `.F' as extension, the preprocessor is not run on the
13249 # input file. (Note that this only needs to work for GNU compilers.)
13250 ac_save_ext=$ac_ext
13252 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13253 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13254 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13255 echo $ECHO_N "(cached) $ECHO_C" >&6
13257 cat >conftest.$ac_ext <<_ACEOF
13265 rm -f conftest.$ac_objext
13266 if { (ac_try="$ac_compile"
13267 case "(($ac_try" in
13268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269 *) ac_try_echo=$ac_try;;
13271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13272 (eval "$ac_compile") 2>conftest.er1
13274 grep -v '^ *+' conftest.er1 >conftest.err
13276 cat conftest.err >&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); } &&
13279 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13280 { (case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_try") 2>&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; } &&
13289 { ac_try='test -s conftest.$ac_objext'
13290 { (case "(($ac_try" in
13291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292 *) ac_try_echo=$ac_try;;
13294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13295 (eval "$ac_try") 2>&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; }; then
13299 ac_compiler_gnu=yes
13301 echo "$as_me: failed program was:" >&5
13302 sed 's/^/| /' conftest.$ac_ext >&5
13307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13308 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13311 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13312 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13313 ac_ext=$ac_save_ext
13314 ac_test_FFLAGS=${FFLAGS+set}
13315 ac_save_FFLAGS=$FFLAGS
13317 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13318 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13319 if test "${ac_cv_prog_f77_g+set}" = set; then
13320 echo $ECHO_N "(cached) $ECHO_C" >&6
13323 cat >conftest.$ac_ext <<_ACEOF
13328 rm -f conftest.$ac_objext
13329 if { (ac_try="$ac_compile"
13330 case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_compile") 2>conftest.er1
13337 grep -v '^ *+' conftest.er1 >conftest.err
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } &&
13342 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13343 { (case "(($ac_try" in
13344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345 *) ac_try_echo=$ac_try;;
13347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13348 (eval "$ac_try") 2>&5
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; } &&
13352 { ac_try='test -s conftest.$ac_objext'
13353 { (case "(($ac_try" in
13354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13355 *) ac_try_echo=$ac_try;;
13357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13358 (eval "$ac_try") 2>&5
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; }; then
13362 ac_cv_prog_f77_g=yes
13364 echo "$as_me: failed program was:" >&5
13365 sed 's/^/| /' conftest.$ac_ext >&5
13367 ac_cv_prog_f77_g=no
13370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13373 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13374 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13375 if test "$ac_test_FFLAGS" = set; then
13376 FFLAGS=$ac_save_FFLAGS
13377 elif test $ac_cv_prog_f77_g = yes; then
13378 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13384 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13391 G77=`test $ac_compiler_gnu = yes && echo yes`
13393 ac_cpp='$CPP $CPPFLAGS'
13394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13400 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13402 # find the maximum length of command line arguments
13403 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13404 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13405 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13406 echo $ECHO_N "(cached) $ECHO_C" >&6
13413 # On DJGPP, this test can blow up pretty badly due to problems in libc
13414 # (any single argument exceeding 2000 bytes causes a buffer overrun
13415 # during glob expansion). Even if it were fixed, the result of this
13416 # check would be larger than it should be.
13417 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13421 # Under GNU Hurd, this test is not required because there is
13422 # no limit to the length of command line arguments.
13423 # Libtool will interpret -1 as no limit whatsoever
13424 lt_cv_sys_max_cmd_len=-1;
13428 # On Win9x/ME, this test blows up -- it succeeds, but takes
13429 # about 5 minutes as the teststring grows exponentially.
13430 # Worse, since 9x/ME are not pre-emptively multitasking,
13431 # you end up with a "frozen" computer, even though with patience
13432 # the test eventually succeeds (with a max line length of 256k).
13433 # Instead, let's just punt: use the minimum linelength reported by
13434 # all of the supported platforms: 8192 (on NT/2K/XP).
13435 lt_cv_sys_max_cmd_len=8192;
13439 # On AmigaOS with pdksh, this test takes hours, literally.
13440 # So we just punt and use a minimum line length of 8192.
13441 lt_cv_sys_max_cmd_len=8192;
13444 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13445 # This has been around since 386BSD, at least. Likely further.
13446 if test -x /sbin/sysctl; then
13447 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13448 elif test -x /usr/sbin/sysctl; then
13449 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13451 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13453 # And add a safety zone
13454 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13459 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13460 lt_cv_sys_max_cmd_len=196608
13464 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13465 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13466 # nice to cause kernel panics so lets avoid the loop below.
13467 # First set a reasonable default.
13468 lt_cv_sys_max_cmd_len=16384
13470 if test -x /sbin/sysconfig; then
13471 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13472 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13477 lt_cv_sys_max_cmd_len=102400
13479 sysv5* | sco5v6* | sysv4.2uw2*)
13480 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13481 if test -n "$kargmax"; then
13482 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13484 lt_cv_sys_max_cmd_len=32768
13488 # If test is not a shell built-in, we'll probably end up computing a
13489 # maximum length that is only half of the actual maximum length, but
13491 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13492 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13493 = "XX$teststring") >/dev/null 2>&1 &&
13494 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13495 lt_cv_sys_max_cmd_len=$new_result &&
13496 test $i != 17 # 1/2 MB should be enough
13499 teststring=$teststring$teststring
13502 # Add a significant safety factor because C++ compilers can tack on massive
13503 # amounts of additional arguments before passing them to the linker.
13504 # It appears as though 1/2 is a usable value.
13505 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13511 if test -n $lt_cv_sys_max_cmd_len ; then
13512 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13513 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13515 { echo "$as_me:$LINENO: result: none" >&5
13516 echo "${ECHO_T}none" >&6; }
13522 # Check for command to grab the raw symbol name followed by C symbol from nm.
13523 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13524 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13525 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13526 echo $ECHO_N "(cached) $ECHO_C" >&6
13529 # These are sane defaults that work on at least a few old systems.
13530 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13532 # Character class describing NM global symbol codes.
13533 symcode='[BCDEGRST]'
13535 # Regexp to match symbols that can be accessed directly from C.
13536 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13538 # Transform an extracted symbol line into a proper C declaration
13539 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13541 # Transform an extracted symbol line into symbol name and symbol address
13542 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'"
13544 # Define system-specific variables.
13549 cygwin* | mingw* | pw32*)
13550 symcode='[ABCDGISTW]'
13552 hpux*) # Its linker distinguishes data from code symbols
13553 if test "$host_cpu" = ia64; then
13554 symcode='[ABCDEGRST]'
13556 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13557 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'"
13560 if test "$host_cpu" = ia64; then
13561 symcode='[ABCDGIRSTW]'
13562 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13563 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'"
13566 irix* | nonstopux*)
13567 symcode='[BCDEGRST]'
13570 symcode='[BCDEGQRST]'
13581 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13589 # Handle CRLF in mingw tool chain
13593 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13597 # If we're using GNU nm, then use its standard symbol codes.
13598 case `$NM -V 2>&1` in
13599 *GNU* | *'with BFD'*)
13600 symcode='[ABCDGIRSTW]' ;;
13603 # Try without a prefix undercore, then with it.
13604 for ac_symprfx in "" "_"; do
13606 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13607 symxfrm="\\1 $ac_symprfx\\2 \\2"
13609 # Write the raw and C identifiers.
13610 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13612 # Check to see that the pipe works correctly.
13616 cat > conftest.$ac_ext <<EOF
13621 void nm_test_func(){}
13625 int main(){nm_test_var='a';nm_test_func();return(0);}
13628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13629 (eval $ac_compile) 2>&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; then
13633 # Now try to grab the symbols.
13635 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13636 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); } && test -s "$nlist"; then
13640 # Try sorting and uniquifying the output.
13641 if sort "$nlist" | uniq > "$nlist"T; then
13642 mv -f "$nlist"T "$nlist"
13647 # Make sure that we snagged all the symbols we need.
13648 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13649 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13650 cat <<EOF > conftest.$ac_ext
13656 # Now generate the symbol file.
13657 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13659 cat <<EOF >> conftest.$ac_ext
13660 #if defined (__STDC__) && __STDC__
13661 # define lt_ptr_t void *
13663 # define lt_ptr_t char *
13667 /* The mapping between symbol names and symbols. */
13672 lt_preloaded_symbols[] =
13675 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13676 cat <<\EOF >> conftest.$ac_ext
13684 # Now try linking the two files.
13685 mv conftest.$ac_objext conftstm.$ac_objext
13686 lt_save_LIBS="$LIBS"
13687 lt_save_CFLAGS="$CFLAGS"
13688 LIBS="conftstm.$ac_objext"
13689 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13691 (eval $ac_link) 2>&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13697 LIBS="$lt_save_LIBS"
13698 CFLAGS="$lt_save_CFLAGS"
13700 echo "cannot find nm_test_func in $nlist" >&5
13703 echo "cannot find nm_test_var in $nlist" >&5
13706 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13709 echo "$progname: failed program was:" >&5
13710 cat conftest.$ac_ext >&5
13712 rm -f conftest* conftst*
13714 # Do not use the global_symbol_pipe unless it works.
13715 if test "$pipe_works" = yes; then
13718 lt_cv_sys_global_symbol_pipe=
13724 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13725 lt_cv_sys_global_symbol_to_cdecl=
13727 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13728 { echo "$as_me:$LINENO: result: failed" >&5
13729 echo "${ECHO_T}failed" >&6; }
13731 { echo "$as_me:$LINENO: result: ok" >&5
13732 echo "${ECHO_T}ok" >&6; }
13735 { echo "$as_me:$LINENO: checking for objdir" >&5
13736 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13737 if test "${lt_cv_objdir+set}" = set; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 rm -f .libs 2>/dev/null
13741 mkdir .libs 2>/dev/null
13742 if test -d .libs; then
13745 # MS-DOS does not allow filenames that begin with a dot.
13748 rmdir .libs 2>/dev/null
13750 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13751 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13752 objdir=$lt_cv_objdir
13760 # AIX sometimes has problems with the GCC collect2 program. For some
13761 # reason, if we set the COLLECT_NAMES environment variable, the problems
13762 # vanish in a puff of smoke.
13763 if test "X${COLLECT_NAMES+set}" != Xset; then
13765 export COLLECT_NAMES
13770 # Sed substitution that helps us do robust quoting. It backslashifies
13771 # metacharacters that are still active within double-quoted strings.
13772 Xsed='sed -e 1s/^X//'
13773 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13775 # Same as above, but do not quote variable references.
13776 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13778 # Sed substitution to delay expansion of an escaped shell variable in a
13779 # double_quote_subst'ed string.
13780 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13782 # Sed substitution to avoid accidental globbing in evaled expressions
13783 no_glob_subst='s/\*/\\\*/g'
13788 # Global variables:
13789 default_ofile=mklib
13790 can_build_shared=yes
13792 # All known linkers require a `.a' archive for static linking (except MSVC,
13793 # which needs '.lib').
13795 ltmain="$ac_aux_dir/ltmain.sh"
13796 ofile="$default_ofile"
13797 with_gnu_ld="$lt_cv_prog_gnu_ld"
13799 if test -n "$ac_tool_prefix"; then
13800 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13801 set dummy ${ac_tool_prefix}ar; ac_word=$2
13802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13804 if test "${ac_cv_prog_AR+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13807 if test -n "$AR"; then
13808 ac_cv_prog_AR="$AR" # Let the user override the test.
13810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13811 for as_dir in $PATH
13814 test -z "$as_dir" && as_dir=.
13815 for ac_exec_ext in '' $ac_executable_extensions; do
13816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13817 ac_cv_prog_AR="${ac_tool_prefix}ar"
13818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13828 if test -n "$AR"; then
13829 { echo "$as_me:$LINENO: result: $AR" >&5
13830 echo "${ECHO_T}$AR" >&6; }
13832 { echo "$as_me:$LINENO: result: no" >&5
13833 echo "${ECHO_T}no" >&6; }
13838 if test -z "$ac_cv_prog_AR"; then
13840 # Extract the first word of "ar", so it can be a program name with args.
13841 set dummy ar; ac_word=$2
13842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13844 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
13847 if test -n "$ac_ct_AR"; then
13848 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13851 for as_dir in $PATH
13854 test -z "$as_dir" && as_dir=.
13855 for ac_exec_ext in '' $ac_executable_extensions; do
13856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13857 ac_cv_prog_ac_ct_AR="ar"
13858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13867 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13868 if test -n "$ac_ct_AR"; then
13869 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13870 echo "${ECHO_T}$ac_ct_AR" >&6; }
13872 { echo "$as_me:$LINENO: result: no" >&5
13873 echo "${ECHO_T}no" >&6; }
13876 if test "x$ac_ct_AR" = x; then
13879 case $cross_compiling:$ac_tool_warned in
13881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13882 whose name does not start with the host triplet. If you think this
13883 configuration is useful to you, please write to autoconf@gnu.org." >&5
13884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13885 whose name does not start with the host triplet. If you think this
13886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13887 ac_tool_warned=yes ;;
13892 AR="$ac_cv_prog_AR"
13895 if test -n "$ac_tool_prefix"; then
13896 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13897 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13900 if test "${ac_cv_prog_RANLIB+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13903 if test -n "$RANLIB"; then
13904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13907 for as_dir in $PATH
13910 test -z "$as_dir" && as_dir=.
13911 for ac_exec_ext in '' $ac_executable_extensions; do
13912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13913 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13923 RANLIB=$ac_cv_prog_RANLIB
13924 if test -n "$RANLIB"; then
13925 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13926 echo "${ECHO_T}$RANLIB" >&6; }
13928 { echo "$as_me:$LINENO: result: no" >&5
13929 echo "${ECHO_T}no" >&6; }
13934 if test -z "$ac_cv_prog_RANLIB"; then
13935 ac_ct_RANLIB=$RANLIB
13936 # Extract the first word of "ranlib", so it can be a program name with args.
13937 set dummy ranlib; ac_word=$2
13938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13940 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13941 echo $ECHO_N "(cached) $ECHO_C" >&6
13943 if test -n "$ac_ct_RANLIB"; then
13944 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13947 for as_dir in $PATH
13950 test -z "$as_dir" && as_dir=.
13951 for ac_exec_ext in '' $ac_executable_extensions; do
13952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13953 ac_cv_prog_ac_ct_RANLIB="ranlib"
13954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13963 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13964 if test -n "$ac_ct_RANLIB"; then
13965 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13966 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13968 { echo "$as_me:$LINENO: result: no" >&5
13969 echo "${ECHO_T}no" >&6; }
13972 if test "x$ac_ct_RANLIB" = x; then
13975 case $cross_compiling:$ac_tool_warned in
13977 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13978 whose name does not start with the host triplet. If you think this
13979 configuration is useful to you, please write to autoconf@gnu.org." >&5
13980 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13981 whose name does not start with the host triplet. If you think this
13982 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13983 ac_tool_warned=yes ;;
13985 RANLIB=$ac_ct_RANLIB
13988 RANLIB="$ac_cv_prog_RANLIB"
13991 if test -n "$ac_tool_prefix"; then
13992 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13993 set dummy ${ac_tool_prefix}strip; ac_word=$2
13994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13996 if test "${ac_cv_prog_STRIP+set}" = set; then
13997 echo $ECHO_N "(cached) $ECHO_C" >&6
13999 if test -n "$STRIP"; then
14000 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14003 for as_dir in $PATH
14006 test -z "$as_dir" && as_dir=.
14007 for ac_exec_ext in '' $ac_executable_extensions; do
14008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14009 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14019 STRIP=$ac_cv_prog_STRIP
14020 if test -n "$STRIP"; then
14021 { echo "$as_me:$LINENO: result: $STRIP" >&5
14022 echo "${ECHO_T}$STRIP" >&6; }
14024 { echo "$as_me:$LINENO: result: no" >&5
14025 echo "${ECHO_T}no" >&6; }
14030 if test -z "$ac_cv_prog_STRIP"; then
14032 # Extract the first word of "strip", so it can be a program name with args.
14033 set dummy strip; ac_word=$2
14034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14036 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14037 echo $ECHO_N "(cached) $ECHO_C" >&6
14039 if test -n "$ac_ct_STRIP"; then
14040 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14043 for as_dir in $PATH
14046 test -z "$as_dir" && as_dir=.
14047 for ac_exec_ext in '' $ac_executable_extensions; do
14048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14049 ac_cv_prog_ac_ct_STRIP="strip"
14050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14059 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14060 if test -n "$ac_ct_STRIP"; then
14061 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14062 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14064 { echo "$as_me:$LINENO: result: no" >&5
14065 echo "${ECHO_T}no" >&6; }
14068 if test "x$ac_ct_STRIP" = x; then
14071 case $cross_compiling:$ac_tool_warned in
14073 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14074 whose name does not start with the host triplet. If you think this
14075 configuration is useful to you, please write to autoconf@gnu.org." >&5
14076 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14077 whose name does not start with the host triplet. If you think this
14078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14079 ac_tool_warned=yes ;;
14084 STRIP="$ac_cv_prog_STRIP"
14089 old_CFLAGS="$CFLAGS"
14091 # Set sane defaults for various variables
14092 test -z "$AR" && AR=ar
14093 test -z "$AR_FLAGS" && AR_FLAGS=cru
14094 test -z "$AS" && AS=as
14095 test -z "$CC" && CC=cc
14096 test -z "$LTCC" && LTCC=$CC
14097 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14098 test -z "$DLLTOOL" && DLLTOOL=dlltool
14099 test -z "$LD" && LD=ld
14100 test -z "$LN_S" && LN_S="ln -s"
14101 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14102 test -z "$NM" && NM=nm
14103 test -z "$SED" && SED=sed
14104 test -z "$OBJDUMP" && OBJDUMP=objdump
14105 test -z "$RANLIB" && RANLIB=:
14106 test -z "$STRIP" && STRIP=:
14107 test -z "$ac_objext" && ac_objext=o
14109 # Determine commands to create old-style static archives.
14110 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14111 old_postinstall_cmds='chmod 644 $oldlib'
14112 old_postuninstall_cmds=
14114 if test -n "$RANLIB"; then
14117 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14120 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14123 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14126 for cc_temp in $compiler""; do
14128 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14129 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14134 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14137 # Only perform the check for file, if the check method requires it
14138 case $deplibs_check_method in
14140 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14141 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14142 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14143 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14144 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14151 lt_save_MAGIC_CMD="$MAGIC_CMD"
14152 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14153 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14154 for ac_dir in $ac_dummy; do
14156 test -z "$ac_dir" && ac_dir=.
14157 if test -f $ac_dir/${ac_tool_prefix}file; then
14158 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14159 if test -n "$file_magic_test_file"; then
14160 case $deplibs_check_method in
14162 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14163 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14164 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14165 $EGREP "$file_magic_regex" > /dev/null; then
14170 *** Warning: the command libtool uses to detect shared libraries,
14171 *** $file_magic_cmd, produces output that libtool cannot recognize.
14172 *** The result is that libtool may fail to recognize shared libraries
14173 *** as such. This will affect the creation of libtool libraries that
14174 *** depend on shared libraries, but programs linked with such libtool
14175 *** libraries will work regardless of this problem. Nevertheless, you
14176 *** may want to report the problem to your system manager and/or to
14177 *** bug-libtool@gnu.org
14187 MAGIC_CMD="$lt_save_MAGIC_CMD"
14192 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14193 if test -n "$MAGIC_CMD"; then
14194 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14195 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14197 { echo "$as_me:$LINENO: result: no" >&5
14198 echo "${ECHO_T}no" >&6; }
14201 if test -z "$lt_cv_path_MAGIC_CMD"; then
14202 if test -n "$ac_tool_prefix"; then
14203 { echo "$as_me:$LINENO: checking for file" >&5
14204 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14205 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14206 echo $ECHO_N "(cached) $ECHO_C" >&6
14210 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14213 lt_save_MAGIC_CMD="$MAGIC_CMD"
14214 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14215 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14216 for ac_dir in $ac_dummy; do
14218 test -z "$ac_dir" && ac_dir=.
14219 if test -f $ac_dir/file; then
14220 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14221 if test -n "$file_magic_test_file"; then
14222 case $deplibs_check_method in
14224 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14225 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14226 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14227 $EGREP "$file_magic_regex" > /dev/null; then
14232 *** Warning: the command libtool uses to detect shared libraries,
14233 *** $file_magic_cmd, produces output that libtool cannot recognize.
14234 *** The result is that libtool may fail to recognize shared libraries
14235 *** as such. This will affect the creation of libtool libraries that
14236 *** depend on shared libraries, but programs linked with such libtool
14237 *** libraries will work regardless of this problem. Nevertheless, you
14238 *** may want to report the problem to your system manager and/or to
14239 *** bug-libtool@gnu.org
14249 MAGIC_CMD="$lt_save_MAGIC_CMD"
14254 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14255 if test -n "$MAGIC_CMD"; then
14256 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14257 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14259 { echo "$as_me:$LINENO: result: no" >&5
14260 echo "${ECHO_T}no" >&6; }
14273 enable_win32_dll=no
14275 # Check whether --enable-libtool-lock was given.
14276 if test "${enable_libtool_lock+set}" = set; then
14277 enableval=$enable_libtool_lock;
14280 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14283 # Check whether --with-pic was given.
14284 if test "${with_pic+set}" = set; then
14285 withval=$with_pic; pic_mode="$withval"
14290 test -z "$pic_mode" && pic_mode=default
14292 # Use C for the default configuration in the libtool script
14296 ac_cpp='$CPP $CPPFLAGS'
14297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14302 # Source file extension for C test sources.
14305 # Object file extension for compiled C test sources.
14309 # Code to be used in simple compile tests
14310 lt_simple_compile_test_code="int some_variable = 0;\n"
14312 # Code to be used in simple link tests
14313 lt_simple_link_test_code='int main(){return(0);}\n'
14316 # If no C compiler was specified, use CC.
14319 # If no C compiler flags were specified, use CFLAGS.
14320 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14322 # Allow CC to be a program name with arguments.
14326 # save warnings/boilerplate of simple test code
14327 ac_outfile=conftest.$ac_objext
14328 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14329 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14330 _lt_compiler_boilerplate=`cat conftest.err`
14333 ac_outfile=conftest.$ac_objext
14334 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14335 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14336 _lt_linker_boilerplate=`cat conftest.err`
14341 lt_prog_compiler_no_builtin_flag=
14343 if test "$GCC" = yes; then
14344 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14347 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14348 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14349 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14352 lt_cv_prog_compiler_rtti_exceptions=no
14353 ac_outfile=conftest.$ac_objext
14354 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14355 lt_compiler_flag="-fno-rtti -fno-exceptions"
14356 # Insert the option either (1) after the last *FLAGS variable, or
14357 # (2) before a word containing "conftest.", or (3) at the end.
14358 # Note that $ac_compile itself does not contain backslashes and begins
14359 # with a dollar sign (not a hyphen), so the echo should work correctly.
14360 # The option is referenced via a variable to avoid confusing sed.
14361 lt_compile=`echo "$ac_compile" | $SED \
14362 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14364 -e 's:$: $lt_compiler_flag:'`
14365 (eval echo "\"\$as_me:14365: $lt_compile\"" >&5)
14366 (eval "$lt_compile" 2>conftest.err)
14368 cat conftest.err >&5
14369 echo "$as_me:14369: \$? = $ac_status" >&5
14370 if (exit $ac_status) && test -s "$ac_outfile"; then
14371 # The compiler can only warn and ignore the option if not recognized
14372 # So say no if there are warnings other than the usual output.
14373 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14374 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14375 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14376 lt_cv_prog_compiler_rtti_exceptions=yes
14382 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14383 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14385 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14386 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14393 lt_prog_compiler_wl=
14394 lt_prog_compiler_pic=
14395 lt_prog_compiler_static=
14397 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14398 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14400 if test "$GCC" = yes; then
14401 lt_prog_compiler_wl='-Wl,'
14402 lt_prog_compiler_static='-static'
14406 # All AIX code is PIC.
14407 if test "$host_cpu" = ia64; then
14408 # AIX 5 now supports IA64 processor
14409 lt_prog_compiler_static='-Bstatic'
14414 # FIXME: we need at least 68020 code to build shared libraries, but
14415 # adding the `-m68020' flag to GCC prevents building anything better,
14417 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14420 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14421 # PIC is the default for these OSes.
14424 mingw* | pw32* | os2*)
14425 # This hack is so that the source file can tell whether it is being
14426 # built for inclusion in a dll (and should export symbols for example).
14427 lt_prog_compiler_pic='-DDLL_EXPORT'
14430 darwin* | rhapsody*)
14431 # PIC is the default on this platform
14432 # Common symbols not allowed in MH_DYLIB files
14433 lt_prog_compiler_pic='-fno-common'
14437 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14438 # Instead, we relocate shared libraries at runtime.
14442 # Just because we use GCC doesn't mean we suddenly get shared libraries
14443 # on systems that don't support them.
14444 lt_prog_compiler_can_build_shared=no
14449 if test -d /usr/nec; then
14450 lt_prog_compiler_pic=-Kconform_pic
14455 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14456 # not for PA HP-UX.
14462 lt_prog_compiler_pic='-fPIC'
14468 lt_prog_compiler_pic='-fPIC'
14472 # PORTME Check for flag to pass linker flags through the system compiler.
14475 lt_prog_compiler_wl='-Wl,'
14476 if test "$host_cpu" = ia64; then
14477 # AIX 5 now supports IA64 processor
14478 lt_prog_compiler_static='-Bstatic'
14480 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14484 # PIC is the default on this platform
14485 # Common symbols not allowed in MH_DYLIB files
14486 case $cc_basename in
14488 lt_prog_compiler_pic='-qnocommon'
14489 lt_prog_compiler_wl='-Wl,'
14494 mingw* | pw32* | os2*)
14495 # This hack is so that the source file can tell whether it is being
14496 # built for inclusion in a dll (and should export symbols for example).
14497 lt_prog_compiler_pic='-DDLL_EXPORT'
14500 hpux9* | hpux10* | hpux11*)
14501 lt_prog_compiler_wl='-Wl,'
14502 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14503 # not for PA HP-UX.
14509 lt_prog_compiler_pic='+Z'
14512 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14513 lt_prog_compiler_static='${wl}-a ${wl}archive'
14516 irix5* | irix6* | nonstopux*)
14517 lt_prog_compiler_wl='-Wl,'
14518 # PIC (with -KPIC) is the default.
14519 lt_prog_compiler_static='-non_shared'
14523 lt_prog_compiler_pic='-KPIC'
14524 lt_prog_compiler_static='-Bstatic'
14528 case $cc_basename in
14530 lt_prog_compiler_wl='-Wl,'
14531 lt_prog_compiler_pic='-KPIC'
14532 lt_prog_compiler_static='-static'
14534 pgcc* | pgf77* | pgf90* | pgf95*)
14535 # Portland Group compilers (*not* the Pentium gcc compiler,
14536 # which looks to be a dead project)
14537 lt_prog_compiler_wl='-Wl,'
14538 lt_prog_compiler_pic='-fpic'
14539 lt_prog_compiler_static='-Bstatic'
14542 lt_prog_compiler_wl='-Wl,'
14543 # All Alpha code is PIC.
14544 lt_prog_compiler_static='-non_shared'
14549 osf3* | osf4* | osf5*)
14550 lt_prog_compiler_wl='-Wl,'
14551 # All OSF/1 code is PIC.
14552 lt_prog_compiler_static='-non_shared'
14556 lt_prog_compiler_pic='-KPIC'
14557 lt_prog_compiler_static='-Bstatic'
14558 case $cc_basename in
14559 f77* | f90* | f95*)
14560 lt_prog_compiler_wl='-Qoption ld ';;
14562 lt_prog_compiler_wl='-Wl,';;
14567 lt_prog_compiler_wl='-Qoption ld '
14568 lt_prog_compiler_pic='-PIC'
14569 lt_prog_compiler_static='-Bstatic'
14572 sysv4 | sysv4.2uw2* | sysv4.3*)
14573 lt_prog_compiler_wl='-Wl,'
14574 lt_prog_compiler_pic='-KPIC'
14575 lt_prog_compiler_static='-Bstatic'
14579 if test -d /usr/nec ;then
14580 lt_prog_compiler_pic='-Kconform_pic'
14581 lt_prog_compiler_static='-Bstatic'
14585 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14586 lt_prog_compiler_wl='-Wl,'
14587 lt_prog_compiler_pic='-KPIC'
14588 lt_prog_compiler_static='-Bstatic'
14592 lt_prog_compiler_wl='-Wl,'
14593 lt_prog_compiler_can_build_shared=no
14597 lt_prog_compiler_pic='-pic'
14598 lt_prog_compiler_static='-Bstatic'
14602 lt_prog_compiler_can_build_shared=no
14607 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14608 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14611 # Check to make sure the PIC flag actually works.
14613 if test -n "$lt_prog_compiler_pic"; then
14615 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14616 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14617 if test "${lt_prog_compiler_pic_works+set}" = set; then
14618 echo $ECHO_N "(cached) $ECHO_C" >&6
14620 lt_prog_compiler_pic_works=no
14621 ac_outfile=conftest.$ac_objext
14622 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14623 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14624 # Insert the option either (1) after the last *FLAGS variable, or
14625 # (2) before a word containing "conftest.", or (3) at the end.
14626 # Note that $ac_compile itself does not contain backslashes and begins
14627 # with a dollar sign (not a hyphen), so the echo should work correctly.
14628 # The option is referenced via a variable to avoid confusing sed.
14629 lt_compile=`echo "$ac_compile" | $SED \
14630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14632 -e 's:$: $lt_compiler_flag:'`
14633 (eval echo "\"\$as_me:14633: $lt_compile\"" >&5)
14634 (eval "$lt_compile" 2>conftest.err)
14636 cat conftest.err >&5
14637 echo "$as_me:14637: \$? = $ac_status" >&5
14638 if (exit $ac_status) && test -s "$ac_outfile"; then
14639 # The compiler can only warn and ignore the option if not recognized
14640 # So say no if there are warnings other than the usual output.
14641 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14643 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14644 lt_prog_compiler_pic_works=yes
14650 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14651 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14653 if test x"$lt_prog_compiler_pic_works" = xyes; then
14654 case $lt_prog_compiler_pic in
14656 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14659 lt_prog_compiler_pic=
14660 lt_prog_compiler_can_build_shared=no
14665 # For platforms which do not support PIC, -DPIC is meaningless:
14667 lt_prog_compiler_pic=
14670 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14675 # Check to make sure the static flag actually works.
14677 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14678 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14679 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14680 if test "${lt_prog_compiler_static_works+set}" = set; then
14681 echo $ECHO_N "(cached) $ECHO_C" >&6
14683 lt_prog_compiler_static_works=no
14684 save_LDFLAGS="$LDFLAGS"
14685 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14686 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14687 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14688 # The linker can only warn and ignore the option if not recognized
14689 # So say no if there are warnings
14690 if test -s conftest.err; then
14691 # Append any errors to the config.log.
14692 cat conftest.err 1>&5
14693 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14694 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14695 if diff conftest.exp conftest.er2 >/dev/null; then
14696 lt_prog_compiler_static_works=yes
14699 lt_prog_compiler_static_works=yes
14703 LDFLAGS="$save_LDFLAGS"
14706 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14707 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14709 if test x"$lt_prog_compiler_static_works" = xyes; then
14712 lt_prog_compiler_static=
14716 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14717 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14718 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14719 echo $ECHO_N "(cached) $ECHO_C" >&6
14721 lt_cv_prog_compiler_c_o=no
14722 $rm -r conftest 2>/dev/null
14726 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14728 lt_compiler_flag="-o out/conftest2.$ac_objext"
14729 # Insert the option either (1) after the last *FLAGS variable, or
14730 # (2) before a word containing "conftest.", or (3) at the end.
14731 # Note that $ac_compile itself does not contain backslashes and begins
14732 # with a dollar sign (not a hyphen), so the echo should work correctly.
14733 lt_compile=`echo "$ac_compile" | $SED \
14734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14736 -e 's:$: $lt_compiler_flag:'`
14737 (eval echo "\"\$as_me:14737: $lt_compile\"" >&5)
14738 (eval "$lt_compile" 2>out/conftest.err)
14740 cat out/conftest.err >&5
14741 echo "$as_me:14741: \$? = $ac_status" >&5
14742 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14744 # The compiler can only warn and ignore the option if not recognized
14745 # So say no if there are warnings
14746 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14747 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14748 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14749 lt_cv_prog_compiler_c_o=yes
14754 # SGI C++ compiler will create directory out/ii_files/ for
14755 # template instantiation
14756 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14757 $rm out/* && rmdir out
14763 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14764 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14767 hard_links="nottested"
14768 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14769 # do not overwrite the value of need_locks provided by the user
14770 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14771 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14774 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14776 ln conftest.a conftest.b 2>&5 || hard_links=no
14777 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14778 { echo "$as_me:$LINENO: result: $hard_links" >&5
14779 echo "${ECHO_T}$hard_links" >&6; }
14780 if test "$hard_links" = no; then
14781 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14782 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14789 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14790 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14793 allow_undefined_flag=
14794 enable_shared_with_static_runtimes=no
14796 archive_expsym_cmds=
14797 old_archive_From_new_cmds=
14798 old_archive_from_expsyms_cmds=
14799 export_dynamic_flag_spec=
14800 whole_archive_flag_spec=
14801 thread_safe_flag_spec=
14802 hardcode_libdir_flag_spec=
14803 hardcode_libdir_flag_spec_ld=
14804 hardcode_libdir_separator=
14806 hardcode_minus_L=no
14807 hardcode_shlibpath_var=unsupported
14808 link_all_deplibs=unknown
14809 hardcode_automatic=no
14811 module_expsym_cmds=
14812 always_export_symbols=no
14813 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14814 # include_expsyms should be a list of space-separated symbols to be *always*
14815 # included in the symbol list
14817 # exclude_expsyms can be an extended regexp of symbols to exclude
14818 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14819 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14820 # as well as any symbol that contains `d'.
14821 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14822 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14823 # platforms (ab)use it in PIC code, but their linkers get confused if
14824 # the symbol is explicitly referenced. Since portable code cannot
14825 # rely on this symbol name, it's probably fine to never include it in
14826 # preloaded symbol tables.
14827 extract_expsyms_cmds=
14828 # Just being paranoid about ensuring that cc_basename is set.
14829 for cc_temp in $compiler""; do
14831 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14832 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14837 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14840 cygwin* | mingw* | pw32*)
14841 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14842 # When not using gcc, we currently assume that we are using
14843 # Microsoft Visual C++.
14844 if test "$GCC" != yes; then
14849 # we just hope/assume this is gcc and not c89 (= MSVC++)
14858 if test "$with_gnu_ld" = yes; then
14859 # If archive_cmds runs LD, not CC, wlarc should be empty
14862 # Set some defaults for GNU ld with shared library support. These
14863 # are reset later if shared libraries are not supported. Putting them
14864 # here allows them to be overridden if necessary.
14865 runpath_var=LD_RUN_PATH
14866 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14867 export_dynamic_flag_spec='${wl}--export-dynamic'
14868 # ancient GNU ld didn't support --whole-archive et. al.
14869 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14870 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14872 whole_archive_flag_spec=
14874 supports_anon_versioning=no
14875 case `$LD -v 2>/dev/null` in
14876 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14877 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14878 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14879 *\ 2.11.*) ;; # other 2.11 versions
14880 *) supports_anon_versioning=yes ;;
14883 # See if GNU ld supports shared libraries.
14885 aix3* | aix4* | aix5*)
14886 # On AIX/PPC, the GNU linker is very broken
14887 if test "$host_cpu" != ia64; then
14891 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14892 *** to be unable to reliably create shared libraries on AIX.
14893 *** Therefore, libtool is disabling shared libraries support. If you
14894 *** really care for shared libraries, you may want to modify your PATH
14895 *** so that a non-GNU linker is found, and then restart.
14902 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)'
14903 hardcode_libdir_flag_spec='-L$libdir'
14904 hardcode_minus_L=yes
14906 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14907 # that the semantics of dynamic libraries on AmigaOS, at least up
14908 # to version 4, is to share data among multiple programs linked
14909 # with the same dynamic library. Since this doesn't match the
14910 # behavior of shared libraries on other platforms, we can't use
14916 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14917 allow_undefined_flag=unsupported
14918 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14919 # support --undefined. This deserves some investigation. FIXME
14920 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14926 cygwin* | mingw* | pw32*)
14927 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14928 # as there is no search path for DLLs.
14929 hardcode_libdir_flag_spec='-L$libdir'
14930 allow_undefined_flag=unsupported
14931 always_export_symbols=no
14932 enable_shared_with_static_runtimes=yes
14933 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14935 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14936 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14937 # If the export-symbols file already is a .def file (1st line
14938 # is EXPORTS), use it as is; otherwise, prepend...
14939 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14940 cp $export_symbols $output_objdir/$soname.def;
14942 echo EXPORTS > $output_objdir/$soname.def;
14943 cat $export_symbols >> $output_objdir/$soname.def;
14945 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14953 hardcode_shlibpath_var=no
14954 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14955 export_dynamic_flag_spec='${wl}-E'
14956 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14957 # Instead, shared libraries are loaded at an image base (0x10000000 by
14958 # default) and relocated if they conflict, which is a slow very memory
14959 # consuming and fragmenting process. To avoid this, we pick a random,
14960 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14961 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14962 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14963 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'
14967 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14969 case $cc_basename,$host_cpu in
14970 pgcc*) # Portland Group C compiler
14971 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'
14972 tmp_addflag=' $pic_flag'
14974 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14975 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'
14976 tmp_addflag=' $pic_flag -Mnomain' ;;
14977 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14978 tmp_addflag=' -i_dynamic' ;;
14979 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14980 tmp_addflag=' -i_dynamic -nofor_main' ;;
14981 ifc* | ifort*) # Intel Fortran compiler
14982 tmp_addflag=' -nofor_main' ;;
14984 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14986 if test $supports_anon_versioning = yes; then
14987 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14988 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14989 $echo "local: *; };" >> $output_objdir/$libname.ver~
14990 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14998 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14999 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15002 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15003 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15008 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15012 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15013 *** create shared libraries on Solaris systems. Therefore, libtool
15014 *** is disabling shared libraries support. We urge you to upgrade GNU
15015 *** binutils to release 2.9.1 or newer. Another option is to modify
15016 *** your PATH or compiler configuration so that the native linker is
15017 *** used, and then restart.
15020 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15022 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15029 case `$LD -v 2>&1` in
15030 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15034 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15035 *** reliably create shared libraries on SCO systems. Therefore, libtool
15036 *** is disabling shared libraries support. We urge you to upgrade GNU
15037 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15038 *** your PATH or compiler configuration so that the native linker is
15039 *** used, and then restart.
15044 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15045 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15047 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15056 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15058 hardcode_direct=yes
15059 hardcode_shlibpath_var=no
15063 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15065 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15072 if test "$ld_shlibs" = no; then
15074 hardcode_libdir_flag_spec=
15075 export_dynamic_flag_spec=
15076 whole_archive_flag_spec=
15079 # PORTME fill in a description of your system's linker (not GNU ld)
15082 allow_undefined_flag=unsupported
15083 always_export_symbols=yes
15084 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'
15085 # Note: this linker hardcodes the directories in LIBPATH if there
15086 # are no directories specified by -L.
15087 hardcode_minus_L=yes
15088 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15089 # Neither direct hardcoding nor static linking is supported with a
15091 hardcode_direct=unsupported
15096 if test "$host_cpu" = ia64; then
15097 # On IA64, the linker does run time linking by default, so we don't
15098 # have to do anything special.
15099 aix_use_runtimelinking=no
15100 exp_sym_flag='-Bexport'
15103 # If we're using GNU nm, then we don't want the "-C" option.
15104 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15105 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15106 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'
15108 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'
15110 aix_use_runtimelinking=no
15112 # Test if we are trying to use run time linking or normal
15113 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15114 # need to do runtime linking.
15115 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15116 for ld_flag in $LDFLAGS; do
15117 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15118 aix_use_runtimelinking=yes
15125 exp_sym_flag='-bexport'
15126 no_entry_flag='-bnoentry'
15129 # When large executables or shared objects are built, AIX ld can
15130 # have problems creating the table of contents. If linking a library
15131 # or program results in "error TOC overflow" add -mminimal-toc to
15132 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15133 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15136 hardcode_direct=yes
15137 hardcode_libdir_separator=':'
15138 link_all_deplibs=yes
15140 if test "$GCC" = yes; then
15141 case $host_os in aix4.[012]|aix4.[012].*)
15142 # We only want to do this on AIX 4.2 and lower, the check
15143 # below for broken collect2 doesn't work under 4.3+
15144 collect2name=`${CC} -print-prog-name=collect2`
15145 if test -f "$collect2name" && \
15146 strings "$collect2name" | grep resolve_lib_name >/dev/null
15148 # We have reworked collect2
15149 hardcode_direct=yes
15151 # We have old collect2
15152 hardcode_direct=unsupported
15153 # It fails to find uninstalled libraries when the uninstalled
15154 # path is not listed in the libpath. Setting hardcode_minus_L
15155 # to unsupported forces relinking
15156 hardcode_minus_L=yes
15157 hardcode_libdir_flag_spec='-L$libdir'
15158 hardcode_libdir_separator=
15162 shared_flag='-shared'
15163 if test "$aix_use_runtimelinking" = yes; then
15164 shared_flag="$shared_flag "'${wl}-G'
15168 if test "$host_cpu" = ia64; then
15169 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15170 # chokes on -Wl,-G. The following line is correct:
15173 if test "$aix_use_runtimelinking" = yes; then
15174 shared_flag='${wl}-G'
15176 shared_flag='${wl}-bM:SRE'
15181 # It seems that -bexpall does not export symbols beginning with
15182 # underscore (_), so it is better to generate a list of symbols to export.
15183 always_export_symbols=yes
15184 if test "$aix_use_runtimelinking" = yes; then
15185 # Warning - without using the other runtime loading flags (-brtl),
15186 # -berok will link without error, but may produce a broken library.
15187 allow_undefined_flag='-berok'
15188 # Determine the default libpath from the value encoded in an empty executable.
15189 cat >conftest.$ac_ext <<_ACEOF
15192 cat confdefs.h >>conftest.$ac_ext
15193 cat >>conftest.$ac_ext <<_ACEOF
15194 /* end confdefs.h. */
15204 rm -f conftest.$ac_objext conftest$ac_exeext
15205 if { (ac_try="$ac_link"
15206 case "(($ac_try" in
15207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15208 *) ac_try_echo=$ac_try;;
15210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15211 (eval "$ac_link") 2>conftest.er1
15213 grep -v '^ *+' conftest.er1 >conftest.err
15215 cat conftest.err >&5
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); } &&
15218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15219 { (case "(($ac_try" in
15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221 *) ac_try_echo=$ac_try;;
15223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224 (eval "$ac_try") 2>&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); }; } &&
15228 { ac_try='test -s conftest$ac_exeext'
15229 { (case "(($ac_try" in
15230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15231 *) ac_try_echo=$ac_try;;
15233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15234 (eval "$ac_try") 2>&5
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); }; }; then
15239 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15241 # Check for a 64-bit object if we didn't find anything.
15242 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; }
15245 echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15251 rm -f core conftest.err conftest.$ac_objext \
15252 conftest$ac_exeext conftest.$ac_ext
15253 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15255 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15256 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"
15258 if test "$host_cpu" = ia64; then
15259 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15260 allow_undefined_flag="-z nodefs"
15261 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"
15263 # Determine the default libpath from the value encoded in an empty executable.
15264 cat >conftest.$ac_ext <<_ACEOF
15267 cat confdefs.h >>conftest.$ac_ext
15268 cat >>conftest.$ac_ext <<_ACEOF
15269 /* end confdefs.h. */
15279 rm -f conftest.$ac_objext conftest$ac_exeext
15280 if { (ac_try="$ac_link"
15281 case "(($ac_try" in
15282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283 *) ac_try_echo=$ac_try;;
15285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286 (eval "$ac_link") 2>conftest.er1
15288 grep -v '^ *+' conftest.er1 >conftest.err
15290 cat conftest.err >&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } &&
15293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15294 { (case "(($ac_try" in
15295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296 *) ac_try_echo=$ac_try;;
15298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15299 (eval "$ac_try") 2>&5
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; } &&
15303 { ac_try='test -s conftest$ac_exeext'
15304 { (case "(($ac_try" in
15305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306 *) ac_try_echo=$ac_try;;
15308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309 (eval "$ac_try") 2>&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; }; then
15314 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15316 # Check for a 64-bit object if we didn't find anything.
15317 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; }
15320 echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15326 rm -f core conftest.err conftest.$ac_objext \
15327 conftest$ac_exeext conftest.$ac_ext
15328 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15330 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15331 # Warning - without using the other run time loading flags,
15332 # -berok will link without error, but may produce a broken library.
15333 no_undefined_flag=' ${wl}-bernotok'
15334 allow_undefined_flag=' ${wl}-berok'
15335 # Exported symbols can be pulled into shared objects from archives
15336 whole_archive_flag_spec='$convenience'
15337 archive_cmds_need_lc=yes
15338 # This is similar to how AIX traditionally builds its shared libraries.
15339 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'
15345 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)'
15346 hardcode_libdir_flag_spec='-L$libdir'
15347 hardcode_minus_L=yes
15348 # see comment about different semantics on the GNU ld section
15353 export_dynamic_flag_spec=-rdynamic
15356 cygwin* | mingw* | pw32*)
15357 # When not using gcc, we currently assume that we are using
15358 # Microsoft Visual C++.
15359 # hardcode_libdir_flag_spec is actually meaningless, as there is
15360 # no search path for DLLs.
15361 hardcode_libdir_flag_spec=' '
15362 allow_undefined_flag=unsupported
15363 # Tell ltmain to make .lib files, not .a files.
15365 # Tell ltmain to make .dll files, not .so files.
15367 # FIXME: Setting linknames here is a bad hack.
15368 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15369 # The linker will automatically build a .lib file if we build a DLL.
15370 old_archive_From_new_cmds='true'
15371 # FIXME: Should let the user specify the lib program.
15372 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15373 fix_srcfile_path='`cygpath -w "$srcfile"`'
15374 enable_shared_with_static_runtimes=yes
15377 darwin* | rhapsody*)
15379 rhapsody* | darwin1.[012])
15380 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15383 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15384 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15386 case ${MACOSX_DEPLOYMENT_TARGET} in
15388 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15391 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15397 archive_cmds_need_lc=no
15399 hardcode_automatic=yes
15400 hardcode_shlibpath_var=unsupported
15401 whole_archive_flag_spec=''
15402 link_all_deplibs=yes
15403 if test "$GCC" = yes ; then
15404 output_verbose_link_cmd='echo'
15405 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15406 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15407 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15408 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}'
15409 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}'
15411 case $cc_basename in
15413 output_verbose_link_cmd='echo'
15414 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15415 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15416 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15417 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}'
15418 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}'
15428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15429 hardcode_libdir_flag_spec='-L$libdir'
15430 hardcode_shlibpath_var=no
15437 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15438 # support. Future versions do this automatically, but an explicit c++rt0.o
15439 # does not break anything, and helps significantly (at the cost of a little
15442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15443 hardcode_libdir_flag_spec='-R$libdir'
15444 hardcode_direct=yes
15445 hardcode_shlibpath_var=no
15448 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15450 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15451 hardcode_direct=yes
15452 hardcode_minus_L=yes
15453 hardcode_shlibpath_var=no
15456 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15457 freebsd* | kfreebsd*-gnu | dragonfly*)
15458 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15459 hardcode_libdir_flag_spec='-R$libdir'
15460 hardcode_direct=yes
15461 hardcode_shlibpath_var=no
15465 if test "$GCC" = yes; then
15466 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'
15468 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'
15470 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15471 hardcode_libdir_separator=:
15472 hardcode_direct=yes
15474 # hardcode_minus_L: Not really in the search PATH,
15475 # but as the default location of the library.
15476 hardcode_minus_L=yes
15477 export_dynamic_flag_spec='${wl}-E'
15481 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15482 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15484 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15486 if test "$with_gnu_ld" = no; then
15487 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15488 hardcode_libdir_separator=:
15490 hardcode_direct=yes
15491 export_dynamic_flag_spec='${wl}-E'
15493 # hardcode_minus_L: Not really in the search PATH,
15494 # but as the default location of the library.
15495 hardcode_minus_L=yes
15500 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15503 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15506 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15509 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15515 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15518 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15521 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15525 if test "$with_gnu_ld" = no; then
15526 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15527 hardcode_libdir_separator=:
15531 hardcode_libdir_flag_spec_ld='+b $libdir'
15533 hardcode_shlibpath_var=no
15536 hardcode_direct=yes
15537 export_dynamic_flag_spec='${wl}-E'
15539 # hardcode_minus_L: Not really in the search PATH,
15540 # but as the default location of the library.
15541 hardcode_minus_L=yes
15547 irix5* | irix6* | nonstopux*)
15548 if test "$GCC" = yes; then
15549 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'
15551 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'
15552 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15555 hardcode_libdir_separator=:
15556 link_all_deplibs=yes
15560 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15561 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15563 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15565 hardcode_libdir_flag_spec='-R$libdir'
15566 hardcode_direct=yes
15567 hardcode_shlibpath_var=no
15571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15572 hardcode_direct=yes
15573 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15574 hardcode_libdir_separator=:
15575 hardcode_shlibpath_var=no
15579 hardcode_direct=yes
15580 hardcode_shlibpath_var=no
15581 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15582 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15583 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15584 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15585 export_dynamic_flag_spec='${wl}-E'
15588 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15589 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15590 hardcode_libdir_flag_spec='-R$libdir'
15593 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15594 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15601 hardcode_libdir_flag_spec='-L$libdir'
15602 hardcode_minus_L=yes
15603 allow_undefined_flag=unsupported
15604 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'
15605 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15609 if test "$GCC" = yes; then
15610 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15611 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'
15613 allow_undefined_flag=' -expect_unresolved \*'
15614 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'
15616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15617 hardcode_libdir_separator=:
15620 osf4* | osf5*) # as osf3* with the addition of -msym flag
15621 if test "$GCC" = yes; then
15622 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15623 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'
15624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15626 allow_undefined_flag=' -expect_unresolved \*'
15627 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'
15628 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15629 $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'
15631 # Both c and cxx compiler support -rpath directly
15632 hardcode_libdir_flag_spec='-rpath $libdir'
15634 hardcode_libdir_separator=:
15638 no_undefined_flag=' -z text'
15639 if test "$GCC" = yes; then
15641 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15642 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15643 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15646 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15647 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15648 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15650 hardcode_libdir_flag_spec='-R$libdir'
15651 hardcode_shlibpath_var=no
15653 solaris2.[0-5] | solaris2.[0-5].*) ;;
15655 # The compiler driver will combine linker options so we
15656 # cannot just pass the convience library names through
15657 # without $wl, iff we do not link with $LD.
15658 # Luckily, gcc supports the same syntax we need for Sun Studio.
15659 # Supported since Solaris 2.6 (maybe 2.5.1?)
15662 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15664 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' ;;
15667 link_all_deplibs=yes
15671 if test "x$host_vendor" = xsequent; then
15672 # Use $CC to link under sequent, because it throws in some extra .o
15673 # files that make .init and .fini sections work.
15674 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15676 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15678 hardcode_libdir_flag_spec='-L$libdir'
15679 hardcode_direct=yes
15680 hardcode_minus_L=yes
15681 hardcode_shlibpath_var=no
15685 case $host_vendor in
15687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15688 hardcode_direct=yes # is this really true???
15691 ## LD is ld it makes a PLAMLIB
15692 ## CC just makes a GrossModule.
15693 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15694 reload_cmds='$CC -r -o $output$reload_objs'
15698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15699 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15702 runpath_var='LD_RUN_PATH'
15703 hardcode_shlibpath_var=no
15707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15708 hardcode_shlibpath_var=no
15709 export_dynamic_flag_spec='-Bexport'
15713 if test -d /usr/nec; then
15714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15715 hardcode_shlibpath_var=no
15716 runpath_var=LD_RUN_PATH
15717 hardcode_runpath_var=yes
15722 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15723 no_undefined_flag='${wl}-z,text'
15724 archive_cmds_need_lc=no
15725 hardcode_shlibpath_var=no
15726 runpath_var='LD_RUN_PATH'
15728 if test "$GCC" = yes; then
15729 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15730 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15732 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15733 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15737 sysv5* | sco3.2v5* | sco5v6*)
15738 # Note: We can NOT use -z defs as we might desire, because we do not
15739 # link with -lc, and that would cause any symbols used from libc to
15740 # always be unresolved, which means just about no library would
15741 # ever link correctly. If we're not using GNU ld we use -z text
15742 # though, which does catch some bad symbols but isn't as heavy-handed
15744 no_undefined_flag='${wl}-z,text'
15745 allow_undefined_flag='${wl}-z,nodefs'
15746 archive_cmds_need_lc=no
15747 hardcode_shlibpath_var=no
15748 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15749 hardcode_libdir_separator=':'
15750 link_all_deplibs=yes
15751 export_dynamic_flag_spec='${wl}-Bexport'
15752 runpath_var='LD_RUN_PATH'
15754 if test "$GCC" = yes; then
15755 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15756 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15758 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15759 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15765 hardcode_libdir_flag_spec='-L$libdir'
15766 hardcode_shlibpath_var=no
15775 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15776 echo "${ECHO_T}$ld_shlibs" >&6; }
15777 test "$ld_shlibs" = no && can_build_shared=no
15780 # Do we need to explicitly link libc?
15782 case "x$archive_cmds_need_lc" in
15784 # Assume -lc should be added
15785 archive_cmds_need_lc=yes
15787 if test "$enable_shared" = yes && test "$GCC" = yes; then
15788 case $archive_cmds in
15790 # FIXME: we may have to deal with multi-command sequences.
15793 # Test whether the compiler implicitly links with -lc since on some
15794 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15795 # to ld, don't add -lc before -lgcc.
15796 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15797 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15799 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15802 (eval $ac_compile) 2>&5
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); } 2>conftest.err; then
15808 libobjs=conftest.$ac_objext
15810 wl=$lt_prog_compiler_wl
15811 pic_flag=$lt_prog_compiler_pic
15817 lt_save_allow_undefined_flag=$allow_undefined_flag
15818 allow_undefined_flag=
15819 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15820 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }
15825 archive_cmds_need_lc=no
15827 archive_cmds_need_lc=yes
15829 allow_undefined_flag=$lt_save_allow_undefined_flag
15831 cat conftest.err 1>&5
15834 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15835 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15842 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15843 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15844 library_names_spec=
15845 libname_spec='lib$name'
15849 postuninstall_cmds=
15853 shlibpath_overrides_runpath=unknown
15855 dynamic_linker="$host_os ld.so"
15856 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15857 if test "$GCC" = yes; then
15858 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15859 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15860 # if the path contains ";" then we assume it to be the separator
15861 # otherwise default to the standard path separator (i.e. ":") - it is
15862 # assumed that no part of a normal pathname contains ";" but that should
15863 # okay in the real world where ";" in dirpaths is itself problematic.
15864 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15866 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15869 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15871 need_lib_prefix=unknown
15872 hardcode_into_libs=no
15874 # when you set need_version to no, make sure it does not cause -set_version
15875 # flags to be left without arguments
15876 need_version=unknown
15881 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15882 shlibpath_var=LIBPATH
15884 # AIX 3 has no versioning support, so we append a major version to the name.
15885 soname_spec='${libname}${release}${shared_ext}$major'
15892 hardcode_into_libs=yes
15893 if test "$host_cpu" = ia64; then
15894 # AIX 5 supports IA64
15895 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15896 shlibpath_var=LD_LIBRARY_PATH
15898 # With GCC up to 2.95.x, collect2 would create an import file
15899 # for dependence libraries. The import file would start with
15900 # the line `#! .'. This would cause the generated library to
15901 # depend on `.', always an invalid library. This was fixed in
15902 # development snapshots of GCC prior to 3.0.
15904 aix4 | aix4.[01] | aix4.[01].*)
15905 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15907 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15910 can_build_shared=no
15914 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15915 # soname into executable. Probably we can add versioning support to
15916 # collect2, so additional links can be useful in future.
15917 if test "$aix_use_runtimelinking" = yes; then
15918 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15919 # instead of lib<name>.a to let people know that these are not
15920 # typical AIX shared libraries.
15921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15923 # We preserve .a as extension for shared libraries through AIX4.2
15924 # and later when we are not doing run time linking.
15925 library_names_spec='${libname}${release}.a $libname.a'
15926 soname_spec='${libname}${release}${shared_ext}$major'
15928 shlibpath_var=LIBPATH
15933 library_names_spec='$libname.ixlibrary $libname.a'
15934 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15935 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'
15939 library_names_spec='${libname}${shared_ext}'
15940 dynamic_linker="$host_os ld.so"
15941 shlibpath_var=LIBRARY_PATH
15947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948 soname_spec='${libname}${release}${shared_ext}$major'
15949 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15950 shlibpath_var=LD_LIBRARY_PATH
15951 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15952 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15953 # the default ld.so.conf also contains /usr/contrib/lib and
15954 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15955 # libtool to hard-code these into programs
15958 cygwin* | mingw* | pw32*)
15959 version_type=windows
15964 case $GCC,$host_os in
15965 yes,cygwin* | yes,mingw* | yes,pw32*)
15966 library_names_spec='$libname.dll.a'
15967 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15968 postinstall_cmds='base_file=`basename \${file}`~
15969 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15970 dldir=$destdir/`dirname \$dlpath`~
15971 test -d \$dldir || mkdir -p \$dldir~
15972 $install_prog $dir/$dlname \$dldir/$dlname~
15973 chmod a+x \$dldir/$dlname'
15974 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15975 dlpath=$dir/\$dldll~
15977 shlibpath_overrides_runpath=yes
15981 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15982 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15983 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15986 # MinGW DLLs use traditional 'lib' prefix
15987 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15988 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15989 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15990 # It is most probably a Windows format PATH printed by
15991 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15992 # path with ; separators, and with drive letters. We can handle the
15993 # drive letters (cygwin fileutils understands them), so leave them,
15994 # especially as we might pass files found there to a mingw objdump,
15995 # which wouldn't understand a cygwinified path. Ahh.
15996 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15998 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16002 # pw32 DLLs use 'pw' prefix rather than 'lib'
16003 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16009 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16012 dynamic_linker='Win32 ld.exe'
16013 # FIXME: first we should search . and the directory the executable is in
16017 darwin* | rhapsody*)
16018 dynamic_linker="$host_os dyld"
16019 version_type=darwin
16022 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16023 soname_spec='${libname}${release}${major}$shared_ext'
16024 shlibpath_overrides_runpath=yes
16025 shlibpath_var=DYLD_LIBRARY_PATH
16026 shrext_cmds='.dylib'
16027 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16028 if test "$GCC" = yes; then
16029 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"`
16031 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16033 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16041 soname_spec='${libname}${release}${shared_ext}$major'
16042 shlibpath_var=LD_LIBRARY_PATH
16053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16054 soname_spec='${libname}${release}${shared_ext}$major'
16055 shlibpath_var=LD_LIBRARY_PATH
16056 shlibpath_overrides_runpath=no
16057 hardcode_into_libs=yes
16058 dynamic_linker='GNU ld.so'
16061 freebsd* | dragonfly*)
16062 # DragonFly does not have aout. When/if they implement a new
16063 # versioning mechanism, adjust this.
16064 if test -x /usr/bin/objformat; then
16065 objformat=`/usr/bin/objformat`
16068 freebsd[123]*) objformat=aout ;;
16069 *) objformat=elf ;;
16072 version_type=freebsd-$objformat
16073 case $version_type in
16075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16080 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16084 shlibpath_var=LD_LIBRARY_PATH
16087 shlibpath_overrides_runpath=yes
16089 freebsd3.[01]* | freebsdelf3.[01]*)
16090 shlibpath_overrides_runpath=yes
16091 hardcode_into_libs=yes
16093 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16094 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16095 shlibpath_overrides_runpath=no
16096 hardcode_into_libs=yes
16098 freebsd*) # from 4.6 on
16099 shlibpath_overrides_runpath=yes
16100 hardcode_into_libs=yes
16109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16110 soname_spec='${libname}${release}${shared_ext}$major'
16111 shlibpath_var=LD_LIBRARY_PATH
16112 hardcode_into_libs=yes
16115 hpux9* | hpux10* | hpux11*)
16116 # Give a soname corresponding to the major version so that dld.sl refuses to
16117 # link against other versions.
16124 hardcode_into_libs=yes
16125 dynamic_linker="$host_os dld.so"
16126 shlibpath_var=LD_LIBRARY_PATH
16127 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16129 soname_spec='${libname}${release}${shared_ext}$major'
16130 if test "X$HPUX_IA64_MODE" = X32; then
16131 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16133 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16139 hardcode_into_libs=yes
16140 dynamic_linker="$host_os dld.sl"
16141 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16142 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16144 soname_spec='${libname}${release}${shared_ext}$major'
16145 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16146 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16150 dynamic_linker="$host_os dld.sl"
16151 shlibpath_var=SHLIB_PATH
16152 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16154 soname_spec='${libname}${release}${shared_ext}$major'
16157 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16158 postinstall_cmds='chmod 555 $lib'
16165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16166 soname_spec='${libname}${release}${shared_ext}$major'
16167 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16168 shlibpath_var=LD_LIBRARY_PATH
16169 shlibpath_overrides_runpath=no
16170 hardcode_into_libs=yes
16173 irix5* | irix6* | nonstopux*)
16175 nonstopux*) version_type=nonstopux ;;
16177 if test "$lt_cv_prog_gnu_ld" = yes; then
16185 soname_spec='${libname}${release}${shared_ext}$major'
16186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16188 irix5* | nonstopux*)
16189 libsuff= shlibsuff=
16192 case $LD in # libtool.m4 will add one of these switches to LD
16193 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16194 libsuff= shlibsuff= libmagic=32-bit;;
16195 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16196 libsuff=32 shlibsuff=N32 libmagic=N32;;
16197 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16198 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16199 *) libsuff= shlibsuff= libmagic=never-match;;
16203 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16204 shlibpath_overrides_runpath=no
16205 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16206 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16207 hardcode_into_libs=yes
16210 # No shared lib support for Linux oldld, aout, or coff.
16211 linux*oldld* | linux*aout* | linux*coff*)
16215 # This must be Linux ELF.
16220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16221 soname_spec='${libname}${release}${shared_ext}$major'
16222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16223 shlibpath_var=LD_LIBRARY_PATH
16224 shlibpath_overrides_runpath=no
16225 # This implies no fast_install, which is unacceptable.
16226 # Some rework will be needed to allow for fast_install
16227 # before this can be enabled.
16228 hardcode_into_libs=yes
16230 # Append ld.so.conf contents to the search path
16231 if test -f /etc/ld.so.conf; then
16232 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' ' '`
16233 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16236 # We used to test for /lib/ld.so.1 and disable shared libraries on
16237 # powerpc, because MkLinux only supported shared libraries with the
16238 # GNU dynamic linker. Since this was broken with cross compilers,
16239 # most powerpc-linux boxes support dynamic linking these days and
16240 # people can always --disable-shared, the test was removed, and we
16241 # assume the GNU/Linux dynamic linker is in use.
16242 dynamic_linker='GNU/Linux ld.so'
16249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16250 soname_spec='${libname}${release}${shared_ext}$major'
16251 shlibpath_var=LD_LIBRARY_PATH
16252 shlibpath_overrides_runpath=no
16253 hardcode_into_libs=yes
16254 dynamic_linker='GNU ld.so'
16261 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16264 dynamic_linker='NetBSD (a.out) ld.so'
16266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16267 soname_spec='${libname}${release}${shared_ext}$major'
16268 dynamic_linker='NetBSD ld.elf_so'
16270 shlibpath_var=LD_LIBRARY_PATH
16271 shlibpath_overrides_runpath=yes
16272 hardcode_into_libs=yes
16277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16278 shlibpath_var=LD_LIBRARY_PATH
16279 shlibpath_overrides_runpath=yes
16286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16287 soname_spec='${libname}${release}${shared_ext}$major'
16288 shlibpath_var=LD_LIBRARY_PATH
16289 shlibpath_overrides_runpath=yes
16294 sys_lib_dlsearch_path_spec="/usr/lib"
16296 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16298 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16299 *) need_version=no ;;
16301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16303 shlibpath_var=LD_LIBRARY_PATH
16304 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16306 openbsd2.[89] | openbsd2.[89].*)
16307 shlibpath_overrides_runpath=no
16310 shlibpath_overrides_runpath=yes
16314 shlibpath_overrides_runpath=yes
16319 libname_spec='$name'
16322 library_names_spec='$libname${shared_ext} $libname.a'
16323 dynamic_linker='OS/2 ld.exe'
16324 shlibpath_var=LIBPATH
16327 osf3* | osf4* | osf5*)
16331 soname_spec='${libname}${release}${shared_ext}$major'
16332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16333 shlibpath_var=LD_LIBRARY_PATH
16334 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16335 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16343 soname_spec='${libname}${release}${shared_ext}$major'
16344 shlibpath_var=LD_LIBRARY_PATH
16345 shlibpath_overrides_runpath=yes
16346 hardcode_into_libs=yes
16347 # ldd complains unless libraries are executable
16348 postinstall_cmds='chmod +x $lib'
16353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16354 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16355 shlibpath_var=LD_LIBRARY_PATH
16356 shlibpath_overrides_runpath=yes
16357 if test "$with_gnu_ld" = yes; then
16365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16366 soname_spec='${libname}${release}${shared_ext}$major'
16367 shlibpath_var=LD_LIBRARY_PATH
16368 case $host_vendor in
16370 shlibpath_overrides_runpath=no
16372 export_dynamic_flag_spec='${wl}-Blargedynsym'
16373 runpath_var=LD_RUN_PATH
16381 shlibpath_overrides_runpath=no
16382 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16388 if test -d /usr/nec ;then
16390 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16391 soname_spec='$libname${shared_ext}.$major'
16392 shlibpath_var=LD_LIBRARY_PATH
16396 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16397 version_type=freebsd-elf
16400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16401 soname_spec='${libname}${release}${shared_ext}$major'
16402 shlibpath_var=LD_LIBRARY_PATH
16403 hardcode_into_libs=yes
16404 if test "$with_gnu_ld" = yes; then
16405 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16406 shlibpath_overrides_runpath=no
16408 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16409 shlibpath_overrides_runpath=yes
16412 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16416 sys_lib_dlsearch_path_spec='/usr/lib'
16421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16422 soname_spec='${libname}${release}${shared_ext}$major'
16423 shlibpath_var=LD_LIBRARY_PATH
16430 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16431 echo "${ECHO_T}$dynamic_linker" >&6; }
16432 test "$dynamic_linker" = no && can_build_shared=no
16434 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16435 if test "$GCC" = yes; then
16436 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16439 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16440 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16442 if test -n "$hardcode_libdir_flag_spec" || \
16443 test -n "$runpath_var" || \
16444 test "X$hardcode_automatic" = "Xyes" ; then
16446 # We can hardcode non-existant directories.
16447 if test "$hardcode_direct" != no &&
16448 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16449 # have to relink, otherwise we might link with an installed library
16450 # when we should be linking with a yet-to-be-installed one
16451 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16452 test "$hardcode_minus_L" != no; then
16453 # Linking always hardcodes the temporary library directory.
16454 hardcode_action=relink
16456 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16457 hardcode_action=immediate
16460 # We cannot hardcode anything, or else we can only hardcode existing
16462 hardcode_action=unsupported
16464 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16465 echo "${ECHO_T}$hardcode_action" >&6; }
16467 if test "$hardcode_action" = relink; then
16468 # Fast installation is not supported
16469 enable_fast_install=no
16470 elif test "$shlibpath_overrides_runpath" = yes ||
16471 test "$enable_shared" = no; then
16472 # Fast installation is not necessary
16473 enable_fast_install=needless
16478 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16479 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16480 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16481 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16482 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16483 { echo "$as_me:$LINENO: result: yes" >&5
16484 echo "${ECHO_T}yes" >&6; }
16486 # FIXME - insert some real tests, host_os isn't really good enough
16489 if test -n "$STRIP" ; then
16490 striplib="$STRIP -x"
16491 { echo "$as_me:$LINENO: result: yes" >&5
16492 echo "${ECHO_T}yes" >&6; }
16494 { echo "$as_me:$LINENO: result: no" >&5
16495 echo "${ECHO_T}no" >&6; }
16499 { echo "$as_me:$LINENO: result: no" >&5
16500 echo "${ECHO_T}no" >&6; }
16505 if test "x$enable_dlopen" != xyes; then
16506 enable_dlopen=unknown
16507 enable_dlopen_self=unknown
16508 enable_dlopen_self_static=unknown
16515 lt_cv_dlopen="load_add_on"
16517 lt_cv_dlopen_self=yes
16521 lt_cv_dlopen="LoadLibrary"
16526 lt_cv_dlopen="dlopen"
16531 # if libdl is installed we need to link against it
16532 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16533 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16534 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16535 echo $ECHO_N "(cached) $ECHO_C" >&6
16537 ac_check_lib_save_LIBS=$LIBS
16539 cat >conftest.$ac_ext <<_ACEOF
16542 cat confdefs.h >>conftest.$ac_ext
16543 cat >>conftest.$ac_ext <<_ACEOF
16544 /* end confdefs.h. */
16546 /* Override any GCC internal prototype to avoid an error.
16547 Use char because int might match the return type of a GCC
16548 builtin and then its argument prototype would still apply. */
16561 rm -f conftest.$ac_objext conftest$ac_exeext
16562 if { (ac_try="$ac_link"
16563 case "(($ac_try" in
16564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565 *) ac_try_echo=$ac_try;;
16567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568 (eval "$ac_link") 2>conftest.er1
16570 grep -v '^ *+' conftest.er1 >conftest.err
16572 cat conftest.err >&5
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); } &&
16575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16576 { (case "(($ac_try" in
16577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578 *) ac_try_echo=$ac_try;;
16580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581 (eval "$ac_try") 2>&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; } &&
16585 { ac_try='test -s conftest$ac_exeext'
16586 { (case "(($ac_try" in
16587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588 *) ac_try_echo=$ac_try;;
16590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16591 (eval "$ac_try") 2>&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; }; then
16595 ac_cv_lib_dl_dlopen=yes
16597 echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16600 ac_cv_lib_dl_dlopen=no
16603 rm -f core conftest.err conftest.$ac_objext \
16604 conftest$ac_exeext conftest.$ac_ext
16605 LIBS=$ac_check_lib_save_LIBS
16607 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16608 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16609 if test $ac_cv_lib_dl_dlopen = yes; then
16610 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16613 lt_cv_dlopen="dyld"
16615 lt_cv_dlopen_self=yes
16622 { echo "$as_me:$LINENO: checking for shl_load" >&5
16623 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16624 if test "${ac_cv_func_shl_load+set}" = set; then
16625 echo $ECHO_N "(cached) $ECHO_C" >&6
16627 cat >conftest.$ac_ext <<_ACEOF
16630 cat confdefs.h >>conftest.$ac_ext
16631 cat >>conftest.$ac_ext <<_ACEOF
16632 /* end confdefs.h. */
16633 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16635 #define shl_load innocuous_shl_load
16637 /* System header to define __stub macros and hopefully few prototypes,
16638 which can conflict with char shl_load (); below.
16639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16640 <limits.h> exists even on freestanding compilers. */
16643 # include <limits.h>
16645 # include <assert.h>
16650 /* Override any GCC internal prototype to avoid an error.
16651 Use char because int might match the return type of a GCC
16652 builtin and then its argument prototype would still apply. */
16657 /* The GNU C library defines this for functions which it implements
16658 to always fail with ENOSYS. Some functions are actually named
16659 something starting with __ and the normal name is an alias. */
16660 #if defined __stub_shl_load || defined __stub___shl_load
16667 return shl_load ();
16672 rm -f conftest.$ac_objext conftest$ac_exeext
16673 if { (ac_try="$ac_link"
16674 case "(($ac_try" in
16675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676 *) ac_try_echo=$ac_try;;
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679 (eval "$ac_link") 2>conftest.er1
16681 grep -v '^ *+' conftest.er1 >conftest.err
16683 cat conftest.err >&5
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); } &&
16686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16687 { (case "(($ac_try" in
16688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689 *) ac_try_echo=$ac_try;;
16691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16692 (eval "$ac_try") 2>&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); }; } &&
16696 { ac_try='test -s conftest$ac_exeext'
16697 { (case "(($ac_try" in
16698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699 *) ac_try_echo=$ac_try;;
16701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702 (eval "$ac_try") 2>&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); }; }; then
16706 ac_cv_func_shl_load=yes
16708 echo "$as_me: failed program was:" >&5
16709 sed 's/^/| /' conftest.$ac_ext >&5
16711 ac_cv_func_shl_load=no
16714 rm -f core conftest.err conftest.$ac_objext \
16715 conftest$ac_exeext conftest.$ac_ext
16717 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16718 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16719 if test $ac_cv_func_shl_load = yes; then
16720 lt_cv_dlopen="shl_load"
16722 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16723 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16724 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16725 echo $ECHO_N "(cached) $ECHO_C" >&6
16727 ac_check_lib_save_LIBS=$LIBS
16729 cat >conftest.$ac_ext <<_ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h. */
16736 /* Override any GCC internal prototype to avoid an error.
16737 Use char because int might match the return type of a GCC
16738 builtin and then its argument prototype would still apply. */
16746 return shl_load ();
16751 rm -f conftest.$ac_objext conftest$ac_exeext
16752 if { (ac_try="$ac_link"
16753 case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758 (eval "$ac_link") 2>conftest.er1
16760 grep -v '^ *+' conftest.er1 >conftest.err
16762 cat conftest.err >&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); } &&
16765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16766 { (case "(($ac_try" in
16767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768 *) ac_try_echo=$ac_try;;
16770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771 (eval "$ac_try") 2>&5
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); }; } &&
16775 { ac_try='test -s conftest$ac_exeext'
16776 { (case "(($ac_try" in
16777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16778 *) ac_try_echo=$ac_try;;
16780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16781 (eval "$ac_try") 2>&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; }; then
16785 ac_cv_lib_dld_shl_load=yes
16787 echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.$ac_ext >&5
16790 ac_cv_lib_dld_shl_load=no
16793 rm -f core conftest.err conftest.$ac_objext \
16794 conftest$ac_exeext conftest.$ac_ext
16795 LIBS=$ac_check_lib_save_LIBS
16797 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16798 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16799 if test $ac_cv_lib_dld_shl_load = yes; then
16800 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16802 { echo "$as_me:$LINENO: checking for dlopen" >&5
16803 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16804 if test "${ac_cv_func_dlopen+set}" = set; then
16805 echo $ECHO_N "(cached) $ECHO_C" >&6
16807 cat >conftest.$ac_ext <<_ACEOF
16810 cat confdefs.h >>conftest.$ac_ext
16811 cat >>conftest.$ac_ext <<_ACEOF
16812 /* end confdefs.h. */
16813 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16815 #define dlopen innocuous_dlopen
16817 /* System header to define __stub macros and hopefully few prototypes,
16818 which can conflict with char dlopen (); below.
16819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16820 <limits.h> exists even on freestanding compilers. */
16823 # include <limits.h>
16825 # include <assert.h>
16830 /* Override any GCC internal prototype to avoid an error.
16831 Use char because int might match the return type of a GCC
16832 builtin and then its argument prototype would still apply. */
16837 /* The GNU C library defines this for functions which it implements
16838 to always fail with ENOSYS. Some functions are actually named
16839 something starting with __ and the normal name is an alias. */
16840 #if defined __stub_dlopen || defined __stub___dlopen
16852 rm -f conftest.$ac_objext conftest$ac_exeext
16853 if { (ac_try="$ac_link"
16854 case "(($ac_try" in
16855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856 *) ac_try_echo=$ac_try;;
16858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16859 (eval "$ac_link") 2>conftest.er1
16861 grep -v '^ *+' conftest.er1 >conftest.err
16863 cat conftest.err >&5
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); } &&
16866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16867 { (case "(($ac_try" in
16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_try") 2>&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; } &&
16876 { ac_try='test -s conftest$ac_exeext'
16877 { (case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_try") 2>&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; }; then
16886 ac_cv_func_dlopen=yes
16888 echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16891 ac_cv_func_dlopen=no
16894 rm -f core conftest.err conftest.$ac_objext \
16895 conftest$ac_exeext conftest.$ac_ext
16897 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16898 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16899 if test $ac_cv_func_dlopen = yes; then
16900 lt_cv_dlopen="dlopen"
16902 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16903 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16904 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16905 echo $ECHO_N "(cached) $ECHO_C" >&6
16907 ac_check_lib_save_LIBS=$LIBS
16909 cat >conftest.$ac_ext <<_ACEOF
16912 cat confdefs.h >>conftest.$ac_ext
16913 cat >>conftest.$ac_ext <<_ACEOF
16914 /* end confdefs.h. */
16916 /* Override any GCC internal prototype to avoid an error.
16917 Use char because int might match the return type of a GCC
16918 builtin and then its argument prototype would still apply. */
16931 rm -f conftest.$ac_objext conftest$ac_exeext
16932 if { (ac_try="$ac_link"
16933 case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_link") 2>conftest.er1
16940 grep -v '^ *+' conftest.er1 >conftest.err
16942 cat conftest.err >&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } &&
16945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16946 { (case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_try") 2>&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; } &&
16955 { ac_try='test -s conftest$ac_exeext'
16956 { (case "(($ac_try" in
16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961 (eval "$ac_try") 2>&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; }; then
16965 ac_cv_lib_dl_dlopen=yes
16967 echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16970 ac_cv_lib_dl_dlopen=no
16973 rm -f core conftest.err conftest.$ac_objext \
16974 conftest$ac_exeext conftest.$ac_ext
16975 LIBS=$ac_check_lib_save_LIBS
16977 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16978 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16979 if test $ac_cv_lib_dl_dlopen = yes; then
16980 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16982 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16983 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16984 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16985 echo $ECHO_N "(cached) $ECHO_C" >&6
16987 ac_check_lib_save_LIBS=$LIBS
16988 LIBS="-lsvld $LIBS"
16989 cat >conftest.$ac_ext <<_ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h. */
16996 /* Override any GCC internal prototype to avoid an error.
16997 Use char because int might match the return type of a GCC
16998 builtin and then its argument prototype would still apply. */
17011 rm -f conftest.$ac_objext conftest$ac_exeext
17012 if { (ac_try="$ac_link"
17013 case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_link") 2>conftest.er1
17020 grep -v '^ *+' conftest.er1 >conftest.err
17022 cat conftest.err >&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } &&
17025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17026 { (case "(($ac_try" in
17027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_try") 2>&5
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; } &&
17035 { ac_try='test -s conftest$ac_exeext'
17036 { (case "(($ac_try" in
17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038 *) ac_try_echo=$ac_try;;
17040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041 (eval "$ac_try") 2>&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; }; then
17045 ac_cv_lib_svld_dlopen=yes
17047 echo "$as_me: failed program was:" >&5
17048 sed 's/^/| /' conftest.$ac_ext >&5
17050 ac_cv_lib_svld_dlopen=no
17053 rm -f core conftest.err conftest.$ac_objext \
17054 conftest$ac_exeext conftest.$ac_ext
17055 LIBS=$ac_check_lib_save_LIBS
17057 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17058 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17059 if test $ac_cv_lib_svld_dlopen = yes; then
17060 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17062 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17063 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17064 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17065 echo $ECHO_N "(cached) $ECHO_C" >&6
17067 ac_check_lib_save_LIBS=$LIBS
17069 cat >conftest.$ac_ext <<_ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17076 /* Override any GCC internal prototype to avoid an error.
17077 Use char because int might match the return type of a GCC
17078 builtin and then its argument prototype would still apply. */
17086 return dld_link ();
17091 rm -f conftest.$ac_objext conftest$ac_exeext
17092 if { (ac_try="$ac_link"
17093 case "(($ac_try" in
17094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095 *) ac_try_echo=$ac_try;;
17097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098 (eval "$ac_link") 2>conftest.er1
17100 grep -v '^ *+' conftest.er1 >conftest.err
17102 cat conftest.err >&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } &&
17105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17106 { (case "(($ac_try" in
17107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108 *) ac_try_echo=$ac_try;;
17110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17111 (eval "$ac_try") 2>&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); }; } &&
17115 { ac_try='test -s conftest$ac_exeext'
17116 { (case "(($ac_try" in
17117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17118 *) ac_try_echo=$ac_try;;
17120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17121 (eval "$ac_try") 2>&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }; }; then
17125 ac_cv_lib_dld_dld_link=yes
17127 echo "$as_me: failed program was:" >&5
17128 sed 's/^/| /' conftest.$ac_ext >&5
17130 ac_cv_lib_dld_dld_link=no
17133 rm -f core conftest.err conftest.$ac_objext \
17134 conftest$ac_exeext conftest.$ac_ext
17135 LIBS=$ac_check_lib_save_LIBS
17137 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17138 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17139 if test $ac_cv_lib_dld_dld_link = yes; then
17140 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17161 if test "x$lt_cv_dlopen" != xno; then
17167 case $lt_cv_dlopen in
17169 save_CPPFLAGS="$CPPFLAGS"
17170 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17172 save_LDFLAGS="$LDFLAGS"
17173 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17176 LIBS="$lt_cv_dlopen_libs $LIBS"
17178 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17179 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17180 if test "${lt_cv_dlopen_self+set}" = set; then
17181 echo $ECHO_N "(cached) $ECHO_C" >&6
17183 if test "$cross_compiling" = yes; then :
17184 lt_cv_dlopen_self=cross
17186 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17187 lt_status=$lt_dlunknown
17188 cat > conftest.$ac_ext <<EOF
17189 #line 17189 "configure"
17190 #include "confdefs.h"
17199 # define LT_DLGLOBAL RTLD_GLOBAL
17202 # define LT_DLGLOBAL DL_GLOBAL
17204 # define LT_DLGLOBAL 0
17208 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17209 find out it does not work in some platform. */
17210 #ifndef LT_DLLAZY_OR_NOW
17212 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17215 # define LT_DLLAZY_OR_NOW DL_LAZY
17218 # define LT_DLLAZY_OR_NOW RTLD_NOW
17221 # define LT_DLLAZY_OR_NOW DL_NOW
17223 # define LT_DLLAZY_OR_NOW 0
17231 extern "C" void exit (int);
17234 void fnord() { int i=42;}
17237 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17238 int status = $lt_dlunknown;
17242 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17243 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17244 /* dlclose (self); */
17252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17253 (eval $ac_link) 2>&5
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17257 (./conftest; exit; ) >&5 2>/dev/null
17259 case x$lt_status in
17260 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17261 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17262 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17265 # compilation failed
17266 lt_cv_dlopen_self=no
17273 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17274 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17276 if test "x$lt_cv_dlopen_self" = xyes; then
17277 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17278 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17279 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17280 if test "${lt_cv_dlopen_self_static+set}" = set; then
17281 echo $ECHO_N "(cached) $ECHO_C" >&6
17283 if test "$cross_compiling" = yes; then :
17284 lt_cv_dlopen_self_static=cross
17286 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17287 lt_status=$lt_dlunknown
17288 cat > conftest.$ac_ext <<EOF
17289 #line 17289 "configure"
17290 #include "confdefs.h"
17299 # define LT_DLGLOBAL RTLD_GLOBAL
17302 # define LT_DLGLOBAL DL_GLOBAL
17304 # define LT_DLGLOBAL 0
17308 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17309 find out it does not work in some platform. */
17310 #ifndef LT_DLLAZY_OR_NOW
17312 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17315 # define LT_DLLAZY_OR_NOW DL_LAZY
17318 # define LT_DLLAZY_OR_NOW RTLD_NOW
17321 # define LT_DLLAZY_OR_NOW DL_NOW
17323 # define LT_DLLAZY_OR_NOW 0
17331 extern "C" void exit (int);
17334 void fnord() { int i=42;}
17337 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17338 int status = $lt_dlunknown;
17342 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17343 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17344 /* dlclose (self); */
17352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17353 (eval $ac_link) 2>&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17357 (./conftest; exit; ) >&5 2>/dev/null
17359 case x$lt_status in
17360 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17361 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17362 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17365 # compilation failed
17366 lt_cv_dlopen_self_static=no
17373 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17374 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17377 CPPFLAGS="$save_CPPFLAGS"
17378 LDFLAGS="$save_LDFLAGS"
17383 case $lt_cv_dlopen_self in
17384 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17385 *) enable_dlopen_self=unknown ;;
17388 case $lt_cv_dlopen_self_static in
17389 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17390 *) enable_dlopen_self_static=unknown ;;
17395 # Report which library types will actually be built
17396 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17397 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17398 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17399 echo "${ECHO_T}$can_build_shared" >&6; }
17401 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17402 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17403 test "$can_build_shared" = "no" && enable_shared=no
17405 # On AIX, shared libraries and static libraries use the same namespace, and
17406 # are all built from PIC.
17409 test "$enable_shared" = yes && enable_static=no
17410 if test -n "$RANLIB"; then
17411 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17412 postinstall_cmds='$RANLIB $lib'
17417 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17418 test "$enable_shared" = yes && enable_static=no
17422 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17423 echo "${ECHO_T}$enable_shared" >&6; }
17425 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17426 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17427 # Make sure either enable_shared or enable_static is yes.
17428 test "$enable_shared" = yes || enable_static=yes
17429 { echo "$as_me:$LINENO: result: $enable_static" >&5
17430 echo "${ECHO_T}$enable_static" >&6; }
17432 # The else clause should only fire when bootstrapping the
17433 # libtool distribution, otherwise you forgot to ship ltmain.sh
17434 # with your package, and you will get complaints that there are
17435 # no rules to generate ltmain.sh.
17436 if test -f "$ltmain"; then
17437 # See if we are running on zsh, and set the options which allow our commands through
17438 # without removal of \ escapes.
17439 if test -n "${ZSH_VERSION+set}" ; then
17440 setopt NO_GLOB_SUBST
17442 # Now quote all the things that may contain metacharacters while being
17443 # careful not to overquote the AC_SUBSTed values. We take copies of the
17444 # variables and quote the copies for generation of the libtool script.
17445 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17447 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17448 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17449 deplibs_check_method reload_flag reload_cmds need_locks \
17450 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17451 lt_cv_sys_global_symbol_to_c_name_address \
17452 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17453 old_postinstall_cmds old_postuninstall_cmds \
17457 lt_prog_compiler_wl \
17458 lt_prog_compiler_pic \
17459 lt_prog_compiler_static \
17460 lt_prog_compiler_no_builtin_flag \
17461 export_dynamic_flag_spec \
17462 thread_safe_flag_spec \
17463 whole_archive_flag_spec \
17464 enable_shared_with_static_runtimes \
17466 old_archive_from_new_cmds \
17471 compiler_lib_search_path \
17473 archive_expsym_cmds \
17475 postuninstall_cmds \
17476 old_archive_from_expsyms_cmds \
17477 allow_undefined_flag \
17478 no_undefined_flag \
17479 export_symbols_cmds \
17480 hardcode_libdir_flag_spec \
17481 hardcode_libdir_flag_spec_ld \
17482 hardcode_libdir_separator \
17483 hardcode_automatic \
17485 module_expsym_cmds \
17486 lt_cv_prog_compiler_c_o \
17488 include_expsyms; do
17491 old_archive_cmds | \
17492 old_archive_from_new_cmds | \
17494 archive_expsym_cmds | \
17496 module_expsym_cmds | \
17497 old_archive_from_expsyms_cmds | \
17498 export_symbols_cmds | \
17499 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17500 postinstall_cmds | postuninstall_cmds | \
17501 old_postinstall_cmds | old_postuninstall_cmds | \
17502 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17503 # Double-quote double-evaled strings.
17504 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17507 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17513 *'\$0 --fallback-echo"')
17514 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17518 cfgfile="${ofile}T"
17519 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17521 { echo "$as_me:$LINENO: creating $ofile" >&5
17522 echo "$as_me: creating $ofile" >&6;}
17524 cat <<__EOF__ >> "$cfgfile"
17527 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17528 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17529 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17531 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17532 # Free Software Foundation, Inc.
17534 # This file is part of GNU Libtool:
17535 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17537 # This program is free software; you can redistribute it and/or modify
17538 # it under the terms of the GNU General Public License as published by
17539 # the Free Software Foundation; either version 2 of the License, or
17540 # (at your option) any later version.
17542 # This program is distributed in the hope that it will be useful, but
17543 # WITHOUT ANY WARRANTY; without even the implied warranty of
17544 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17545 # General Public License for more details.
17547 # You should have received a copy of the GNU General Public License
17548 # along with this program; if not, write to the Free Software
17549 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17551 # As a special exception to the GNU General Public License, if you
17552 # distribute this file as part of a program that contains a
17553 # configuration script generated by Autoconf, you may include it under
17554 # the same distribution terms that you use for the rest of that program.
17556 # A sed program that does not truncate output.
17559 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17560 Xsed="$SED -e 1s/^X//"
17562 # The HP-UX ksh and POSIX shell print the target directory to stdout
17563 # if CDPATH is set.
17564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17566 # The names of the tagged configurations supported by this script.
17569 # ### BEGIN LIBTOOL CONFIG
17571 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17573 # Shell to use when invoking shell scripts.
17576 # Whether or not to build shared libraries.
17577 build_libtool_libs=$enable_shared
17579 # Whether or not to build static libraries.
17580 build_old_libs=$enable_static
17582 # Whether or not to add -lc for building shared libraries.
17583 build_libtool_need_lc=$archive_cmds_need_lc
17585 # Whether or not to disallow shared libs when runtime libs are static
17586 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17588 # Whether or not to optimize for fast installation.
17589 fast_install=$enable_fast_install
17592 host_alias=$host_alias
17596 # The build system.
17597 build_alias=$build_alias
17601 # An echo program that does not interpret backslashes.
17606 AR_FLAGS=$lt_AR_FLAGS
17611 # LTCC compiler flags.
17612 LTCFLAGS=$lt_LTCFLAGS
17614 # A language-specific compiler.
17617 # Is the compiler the GNU C compiler?
17623 # The linker used to build libraries.
17626 # Whether we need hard or soft links.
17629 # A BSD-compatible nm program.
17632 # A symbol stripping program
17635 # Used to examine libraries when file_magic_cmd begins "file"
17636 MAGIC_CMD=$MAGIC_CMD
17638 # Used on cygwin: DLL creation program.
17641 # Used on cygwin: object dumper.
17644 # Used on cygwin: assembler.
17647 # The name of the directory that contains temporary libtool files.
17650 # How to create reloadable object files.
17651 reload_flag=$lt_reload_flag
17652 reload_cmds=$lt_reload_cmds
17654 # How to pass a linker flag through the compiler.
17655 wl=$lt_lt_prog_compiler_wl
17657 # Object file suffix (normally "o").
17658 objext="$ac_objext"
17660 # Old archive suffix (normally "a").
17663 # Shared library suffix (normally ".so").
17664 shrext_cmds='$shrext_cmds'
17666 # Executable file suffix (normally "").
17669 # Additional compiler flags for building library objects.
17670 pic_flag=$lt_lt_prog_compiler_pic
17673 # What is the maximum length of a command?
17674 max_cmd_len=$lt_cv_sys_max_cmd_len
17676 # Does compiler simultaneously support -c and -o options?
17677 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17679 # Must we lock files when doing compilation?
17680 need_locks=$lt_need_locks
17682 # Do we need the lib prefix for modules?
17683 need_lib_prefix=$need_lib_prefix
17685 # Do we need a version for libraries?
17686 need_version=$need_version
17688 # Whether dlopen is supported.
17689 dlopen_support=$enable_dlopen
17691 # Whether dlopen of programs is supported.
17692 dlopen_self=$enable_dlopen_self
17694 # Whether dlopen of statically linked programs is supported.
17695 dlopen_self_static=$enable_dlopen_self_static
17697 # Compiler flag to prevent dynamic linking.
17698 link_static_flag=$lt_lt_prog_compiler_static
17700 # Compiler flag to turn off builtin functions.
17701 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17703 # Compiler flag to allow reflexive dlopens.
17704 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17706 # Compiler flag to generate shared objects directly from archives.
17707 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17709 # Compiler flag to generate thread-safe objects.
17710 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17712 # Library versioning type.
17713 version_type=$version_type
17715 # Format of library name prefix.
17716 libname_spec=$lt_libname_spec
17718 # List of archive names. First name is the real one, the rest are links.
17719 # The last name is the one that the linker finds with -lNAME.
17720 library_names_spec=$lt_library_names_spec
17722 # The coded name of the library, if different from the real name.
17723 soname_spec=$lt_soname_spec
17725 # Commands used to build and install an old-style archive.
17727 old_archive_cmds=$lt_old_archive_cmds
17728 old_postinstall_cmds=$lt_old_postinstall_cmds
17729 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17731 # Create an old-style archive from a shared archive.
17732 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17734 # Create a temporary old-style archive to link instead of a shared archive.
17735 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17737 # Commands used to build and install a shared archive.
17738 archive_cmds=$lt_archive_cmds
17739 archive_expsym_cmds=$lt_archive_expsym_cmds
17740 postinstall_cmds=$lt_postinstall_cmds
17741 postuninstall_cmds=$lt_postuninstall_cmds
17743 # Commands used to build a loadable module (assumed same as above if empty)
17744 module_cmds=$lt_module_cmds
17745 module_expsym_cmds=$lt_module_expsym_cmds
17747 # Commands to strip libraries.
17748 old_striplib=$lt_old_striplib
17749 striplib=$lt_striplib
17751 # Dependencies to place before the objects being linked to create a
17753 predep_objects=$lt_predep_objects
17755 # Dependencies to place after the objects being linked to create a
17757 postdep_objects=$lt_postdep_objects
17759 # Dependencies to place before the objects being linked to create a
17761 predeps=$lt_predeps
17763 # Dependencies to place after the objects being linked to create a
17765 postdeps=$lt_postdeps
17767 # The library search path used internally by the compiler when linking
17768 # a shared library.
17769 compiler_lib_search_path=$lt_compiler_lib_search_path
17771 # Method to check whether dependent libraries are shared objects.
17772 deplibs_check_method=$lt_deplibs_check_method
17774 # Command to use when deplibs_check_method == file_magic.
17775 file_magic_cmd=$lt_file_magic_cmd
17777 # Flag that allows shared libraries with undefined symbols to be built.
17778 allow_undefined_flag=$lt_allow_undefined_flag
17780 # Flag that forces no undefined symbols.
17781 no_undefined_flag=$lt_no_undefined_flag
17783 # Commands used to finish a libtool library installation in a directory.
17784 finish_cmds=$lt_finish_cmds
17786 # Same as above, but a single script fragment to be evaled but not shown.
17787 finish_eval=$lt_finish_eval
17789 # Take the output of nm and produce a listing of raw symbols and C names.
17790 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17792 # Transform the output of nm in a proper C declaration
17793 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17795 # Transform the output of nm in a C name address pair
17796 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17798 # This is the shared library runtime path variable.
17799 runpath_var=$runpath_var
17801 # This is the shared library path variable.
17802 shlibpath_var=$shlibpath_var
17804 # Is shlibpath searched before the hard-coded library search path?
17805 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17807 # How to hardcode a shared library path into an executable.
17808 hardcode_action=$hardcode_action
17810 # Whether we should hardcode library paths into libraries.
17811 hardcode_into_libs=$hardcode_into_libs
17813 # Flag to hardcode \$libdir into a binary during linking.
17814 # This must work even if \$libdir does not exist.
17815 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17817 # If ld is used when linking, flag to hardcode \$libdir into
17818 # a binary during linking. This must work even if \$libdir does
17820 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17822 # Whether we need a single -rpath flag with a separated argument.
17823 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17825 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17826 # resulting binary.
17827 hardcode_direct=$hardcode_direct
17829 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17830 # resulting binary.
17831 hardcode_minus_L=$hardcode_minus_L
17833 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17834 # the resulting binary.
17835 hardcode_shlibpath_var=$hardcode_shlibpath_var
17837 # Set to yes if building a shared library automatically hardcodes DIR into the library
17838 # and all subsequent libraries and executables linked against it.
17839 hardcode_automatic=$hardcode_automatic
17841 # Variables whose values should be saved in libtool wrapper scripts and
17842 # restored at relink time.
17843 variables_saved_for_relink="$variables_saved_for_relink"
17845 # Whether libtool must link a program against all its dependency libraries.
17846 link_all_deplibs=$link_all_deplibs
17848 # Compile-time system search path for libraries
17849 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17851 # Run-time system search path for libraries
17852 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17854 # Fix the shell variable \$srcfile for the compiler.
17855 fix_srcfile_path="$fix_srcfile_path"
17857 # Set to yes if exported symbols are required.
17858 always_export_symbols=$always_export_symbols
17860 # The commands to list exported symbols.
17861 export_symbols_cmds=$lt_export_symbols_cmds
17863 # The commands to extract the exported symbol list from a shared archive.
17864 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17866 # Symbols that should not be listed in the preloaded symbols.
17867 exclude_expsyms=$lt_exclude_expsyms
17869 # Symbols that must always be exported.
17870 include_expsyms=$lt_include_expsyms
17872 # ### END LIBTOOL CONFIG
17879 cat <<\EOF >> "$cfgfile"
17881 # AIX sometimes has problems with the GCC collect2 program. For some
17882 # reason, if we set the COLLECT_NAMES environment variable, the problems
17883 # vanish in a puff of smoke.
17884 if test "X${COLLECT_NAMES+set}" != Xset; then
17886 export COLLECT_NAMES
17892 # We use sed instead of cat because bash on DJGPP gets confused if
17893 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17894 # text mode, it properly converts lines to CR/LF. This bash problem
17895 # is reportedly fixed, but why not run on old versions too?
17896 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17898 mv -f "$cfgfile" "$ofile" || \
17899 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17903 # If there is no Makefile yet, we rely on a make rule to execute
17904 # `config.status --recheck' to rerun these tests and create the
17905 # libtool script then.
17906 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17907 if test -f "$ltmain_in"; then
17908 test -f Makefile && make "$ltmain"
17914 ac_cpp='$CPP $CPPFLAGS'
17915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17922 # Check whether --with-tags was given.
17923 if test "${with_tags+set}" = set; then
17924 withval=$with_tags; tagnames="$withval"
17928 if test -f "$ltmain" && test -n "$tagnames"; then
17929 if test ! -f "${ofile}"; then
17930 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17931 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17934 if test -z "$LTCC"; then
17935 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17936 if test -z "$LTCC"; then
17937 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17938 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17940 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17941 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17944 if test -z "$LTCFLAGS"; then
17945 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17948 # Extract list of available tagged configurations in $ofile.
17949 # Note that this assumes the entire list is on one line.
17950 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17952 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17953 for tagname in $tagnames; do
17955 # Check whether tagname contains only valid characters
17956 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17958 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17959 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17960 { (exit 1); exit 1; }; }
17964 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17966 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17967 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17968 { (exit 1); exit 1; }; }
17971 # Update the list of available tags.
17972 if test -n "$tagname"; then
17973 echo appending configuration tag \"$tagname\" to $ofile
17977 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17978 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17979 (test "X$CXX" != "Xg++"))) ; then
17981 ac_cpp='$CXXCPP $CPPFLAGS'
17982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17989 archive_cmds_need_lc_CXX=no
17990 allow_undefined_flag_CXX=
17991 always_export_symbols_CXX=no
17992 archive_expsym_cmds_CXX=
17993 export_dynamic_flag_spec_CXX=
17994 hardcode_direct_CXX=no
17995 hardcode_libdir_flag_spec_CXX=
17996 hardcode_libdir_flag_spec_ld_CXX=
17997 hardcode_libdir_separator_CXX=
17998 hardcode_minus_L_CXX=no
17999 hardcode_shlibpath_var_CXX=unsupported
18000 hardcode_automatic_CXX=no
18002 module_expsym_cmds_CXX=
18003 link_all_deplibs_CXX=unknown
18004 old_archive_cmds_CXX=$old_archive_cmds
18005 no_undefined_flag_CXX=
18006 whole_archive_flag_spec_CXX=
18007 enable_shared_with_static_runtimes_CXX=no
18009 # Dependencies to place before and after the object being linked:
18010 predep_objects_CXX=
18011 postdep_objects_CXX=
18014 compiler_lib_search_path_CXX=
18016 # Source file extension for C++ test sources.
18019 # Object file extension for compiled C++ test sources.
18023 # Code to be used in simple compile tests
18024 lt_simple_compile_test_code="int some_variable = 0;\n"
18026 # Code to be used in simple link tests
18027 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18029 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18031 # If no C compiler was specified, use CC.
18034 # If no C compiler flags were specified, use CFLAGS.
18035 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18037 # Allow CC to be a program name with arguments.
18041 # save warnings/boilerplate of simple test code
18042 ac_outfile=conftest.$ac_objext
18043 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18044 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18045 _lt_compiler_boilerplate=`cat conftest.err`
18048 ac_outfile=conftest.$ac_objext
18049 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18050 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18051 _lt_linker_boilerplate=`cat conftest.err`
18055 # Allow CC to be a program name with arguments.
18060 lt_save_with_gnu_ld=$with_gnu_ld
18061 lt_save_path_LD=$lt_cv_path_LD
18062 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18063 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18065 $as_unset lt_cv_prog_gnu_ld
18067 if test -n "${lt_cv_path_LDCXX+set}"; then
18068 lt_cv_path_LD=$lt_cv_path_LDCXX
18070 $as_unset lt_cv_path_LD
18072 test -z "${LDCXX+set}" || LD=$LDCXX
18076 for cc_temp in $compiler""; do
18078 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18079 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18084 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18087 # We don't want -fno-exception wen compiling C++ code, so set the
18088 # no_builtin_flag separately
18089 if test "$GXX" = yes; then
18090 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18092 lt_prog_compiler_no_builtin_flag_CXX=
18095 if test "$GXX" = yes; then
18096 # Set up default GNU C++ configuration
18099 # Check whether --with-gnu-ld was given.
18100 if test "${with_gnu_ld+set}" = set; then
18101 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18107 if test "$GCC" = yes; then
18108 # Check if gcc -print-prog-name=ld gives a path.
18109 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18110 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18113 # gcc leaves a trailing carriage return which upsets mingw
18114 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18116 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18119 # Accept absolute paths.
18121 re_direlt='/[^/][^/]*/\.\./'
18122 # Canonicalize the pathname of ld
18123 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18124 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18125 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18127 test -z "$LD" && LD="$ac_prog"
18130 # If it fails, then pretend we aren't using GCC.
18134 # If it is relative, then search for the first ld in PATH.
18135 with_gnu_ld=unknown
18138 elif test "$with_gnu_ld" = yes; then
18139 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18140 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18142 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18143 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18145 if test "${lt_cv_path_LD+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18148 if test -z "$LD"; then
18149 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18150 for ac_dir in $PATH; do
18152 test -z "$ac_dir" && ac_dir=.
18153 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18154 lt_cv_path_LD="$ac_dir/$ac_prog"
18155 # Check to see if the program is GNU ld. I'd rather use --version,
18156 # but apparently some variants of GNU ld only accept -v.
18157 # Break only if it was the GNU/non-GNU ld that we prefer.
18158 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18159 *GNU* | *'with BFD'*)
18160 test "$with_gnu_ld" != no && break
18163 test "$with_gnu_ld" != yes && break
18170 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18174 LD="$lt_cv_path_LD"
18175 if test -n "$LD"; then
18176 { echo "$as_me:$LINENO: result: $LD" >&5
18177 echo "${ECHO_T}$LD" >&6; }
18179 { echo "$as_me:$LINENO: result: no" >&5
18180 echo "${ECHO_T}no" >&6; }
18182 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18183 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18184 { (exit 1); exit 1; }; }
18185 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18186 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18187 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18188 echo $ECHO_N "(cached) $ECHO_C" >&6
18190 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18191 case `$LD -v 2>&1 </dev/null` in
18192 *GNU* | *'with BFD'*)
18193 lt_cv_prog_gnu_ld=yes
18196 lt_cv_prog_gnu_ld=no
18200 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18201 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18202 with_gnu_ld=$lt_cv_prog_gnu_ld
18206 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18207 # archiving commands below assume that GNU ld is being used.
18208 if test "$with_gnu_ld" = yes; then
18209 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18210 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'
18212 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18213 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18215 # If archive_cmds runs LD, not CC, wlarc should be empty
18216 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18217 # investigate it a little bit more. (MM)
18220 # ancient GNU ld didn't support --whole-archive et. al.
18221 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18222 grep 'no-whole-archive' > /dev/null; then
18223 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18225 whole_archive_flag_spec_CXX=
18231 # A generic and very simple default shared library creation
18232 # command for GNU C++ for the case where it uses the native
18233 # linker, instead of GNU ld. If possible, this setting should
18234 # overridden to take advantage of the native linker features on
18235 # the platform it is being used on.
18236 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18239 # Commands to make compiler produce verbose output that lists
18240 # what "hidden" libraries, object files and flags are used when
18241 # linking a shared library.
18242 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18250 # PORTME: fill in a description of your system's C++ link characteristics
18251 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18252 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18256 # FIXME: insert proper C++ library support
18260 if test "$host_cpu" = ia64; then
18261 # On IA64, the linker does run time linking by default, so we don't
18262 # have to do anything special.
18263 aix_use_runtimelinking=no
18264 exp_sym_flag='-Bexport'
18267 aix_use_runtimelinking=no
18269 # Test if we are trying to use run time linking or normal
18270 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18271 # need to do runtime linking.
18272 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18273 for ld_flag in $LDFLAGS; do
18276 aix_use_runtimelinking=yes
18284 exp_sym_flag='-bexport'
18285 no_entry_flag='-bnoentry'
18288 # When large executables or shared objects are built, AIX ld can
18289 # have problems creating the table of contents. If linking a library
18290 # or program results in "error TOC overflow" add -mminimal-toc to
18291 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18292 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18294 archive_cmds_CXX=''
18295 hardcode_direct_CXX=yes
18296 hardcode_libdir_separator_CXX=':'
18297 link_all_deplibs_CXX=yes
18299 if test "$GXX" = yes; then
18300 case $host_os in aix4.[012]|aix4.[012].*)
18301 # We only want to do this on AIX 4.2 and lower, the check
18302 # below for broken collect2 doesn't work under 4.3+
18303 collect2name=`${CC} -print-prog-name=collect2`
18304 if test -f "$collect2name" && \
18305 strings "$collect2name" | grep resolve_lib_name >/dev/null
18307 # We have reworked collect2
18308 hardcode_direct_CXX=yes
18310 # We have old collect2
18311 hardcode_direct_CXX=unsupported
18312 # It fails to find uninstalled libraries when the uninstalled
18313 # path is not listed in the libpath. Setting hardcode_minus_L
18314 # to unsupported forces relinking
18315 hardcode_minus_L_CXX=yes
18316 hardcode_libdir_flag_spec_CXX='-L$libdir'
18317 hardcode_libdir_separator_CXX=
18321 shared_flag='-shared'
18322 if test "$aix_use_runtimelinking" = yes; then
18323 shared_flag="$shared_flag "'${wl}-G'
18327 if test "$host_cpu" = ia64; then
18328 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18329 # chokes on -Wl,-G. The following line is correct:
18332 if test "$aix_use_runtimelinking" = yes; then
18333 shared_flag='${wl}-G'
18335 shared_flag='${wl}-bM:SRE'
18340 # It seems that -bexpall does not export symbols beginning with
18341 # underscore (_), so it is better to generate a list of symbols to export.
18342 always_export_symbols_CXX=yes
18343 if test "$aix_use_runtimelinking" = yes; then
18344 # Warning - without using the other runtime loading flags (-brtl),
18345 # -berok will link without error, but may produce a broken library.
18346 allow_undefined_flag_CXX='-berok'
18347 # Determine the default libpath from the value encoded in an empty executable.
18348 cat >conftest.$ac_ext <<_ACEOF
18351 cat confdefs.h >>conftest.$ac_ext
18352 cat >>conftest.$ac_ext <<_ACEOF
18353 /* end confdefs.h. */
18363 rm -f conftest.$ac_objext conftest$ac_exeext
18364 if { (ac_try="$ac_link"
18365 case "(($ac_try" in
18366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18367 *) ac_try_echo=$ac_try;;
18369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18370 (eval "$ac_link") 2>conftest.er1
18372 grep -v '^ *+' conftest.er1 >conftest.err
18374 cat conftest.err >&5
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); } &&
18377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18378 { (case "(($ac_try" in
18379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18380 *) ac_try_echo=$ac_try;;
18382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18383 (eval "$ac_try") 2>&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); }; } &&
18387 { ac_try='test -s conftest$ac_exeext'
18388 { (case "(($ac_try" in
18389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390 *) ac_try_echo=$ac_try;;
18392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18393 (eval "$ac_try") 2>&5
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; }; then
18398 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18400 # Check for a 64-bit object if we didn't find anything.
18401 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; }
18404 echo "$as_me: failed program was:" >&5
18405 sed 's/^/| /' conftest.$ac_ext >&5
18410 rm -f core conftest.err conftest.$ac_objext \
18411 conftest$ac_exeext conftest.$ac_ext
18412 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18414 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18416 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"
18418 if test "$host_cpu" = ia64; then
18419 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18420 allow_undefined_flag_CXX="-z nodefs"
18421 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"
18423 # Determine the default libpath from the value encoded in an empty executable.
18424 cat >conftest.$ac_ext <<_ACEOF
18427 cat confdefs.h >>conftest.$ac_ext
18428 cat >>conftest.$ac_ext <<_ACEOF
18429 /* end confdefs.h. */
18439 rm -f conftest.$ac_objext conftest$ac_exeext
18440 if { (ac_try="$ac_link"
18441 case "(($ac_try" in
18442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18443 *) ac_try_echo=$ac_try;;
18445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18446 (eval "$ac_link") 2>conftest.er1
18448 grep -v '^ *+' conftest.er1 >conftest.err
18450 cat conftest.err >&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } &&
18453 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18454 { (case "(($ac_try" in
18455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18456 *) ac_try_echo=$ac_try;;
18458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18459 (eval "$ac_try") 2>&5
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); }; } &&
18463 { ac_try='test -s conftest$ac_exeext'
18464 { (case "(($ac_try" in
18465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466 *) ac_try_echo=$ac_try;;
18468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18469 (eval "$ac_try") 2>&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; }; then
18474 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18476 # Check for a 64-bit object if we didn't find anything.
18477 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; }
18480 echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18486 rm -f core conftest.err conftest.$ac_objext \
18487 conftest$ac_exeext conftest.$ac_ext
18488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18490 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18491 # Warning - without using the other run time loading flags,
18492 # -berok will link without error, but may produce a broken library.
18493 no_undefined_flag_CXX=' ${wl}-bernotok'
18494 allow_undefined_flag_CXX=' ${wl}-berok'
18495 # Exported symbols can be pulled into shared objects from archives
18496 whole_archive_flag_spec_CXX='$convenience'
18497 archive_cmds_need_lc_CXX=yes
18498 # This is similar to how AIX traditionally builds its shared libraries.
18499 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'
18505 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18506 allow_undefined_flag_CXX=unsupported
18507 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18508 # support --undefined. This deserves some investigation. FIXME
18509 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18516 case $cc_basename in
18518 # FIXME: insert proper C++ library support
18524 cygwin* | mingw* | pw32*)
18525 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18526 # as there is no search path for DLLs.
18527 hardcode_libdir_flag_spec_CXX='-L$libdir'
18528 allow_undefined_flag_CXX=unsupported
18529 always_export_symbols_CXX=no
18530 enable_shared_with_static_runtimes_CXX=yes
18532 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18533 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'
18534 # If the export-symbols file already is a .def file (1st line
18535 # is EXPORTS), use it as is; otherwise, prepend...
18536 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18537 cp $export_symbols $output_objdir/$soname.def;
18539 echo EXPORTS > $output_objdir/$soname.def;
18540 cat $export_symbols >> $output_objdir/$soname.def;
18542 $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'
18547 darwin* | rhapsody*)
18549 rhapsody* | darwin1.[012])
18550 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18553 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18554 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18556 case ${MACOSX_DEPLOYMENT_TARGET} in
18558 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18561 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18567 archive_cmds_need_lc_CXX=no
18568 hardcode_direct_CXX=no
18569 hardcode_automatic_CXX=yes
18570 hardcode_shlibpath_var_CXX=unsupported
18571 whole_archive_flag_spec_CXX=''
18572 link_all_deplibs_CXX=yes
18574 if test "$GXX" = yes ; then
18575 lt_int_apple_cc_single_mod=no
18576 output_verbose_link_cmd='echo'
18577 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18578 lt_int_apple_cc_single_mod=yes
18580 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18581 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18583 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'
18585 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18586 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18587 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18588 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}'
18590 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}'
18592 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}'
18594 case $cc_basename in
18596 output_verbose_link_cmd='echo'
18597 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'
18598 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18599 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18600 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}'
18601 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}'
18611 case $cc_basename in
18613 # FIXME: insert proper C++ library support
18617 # Green Hills C++ Compiler
18618 # FIXME: insert proper C++ library support
18622 # FIXME: insert proper C++ library support
18628 # C++ shared libraries reported to be fairly broken before switch to ELF
18632 archive_cmds_need_lc_CXX=no
18634 freebsd* | kfreebsd*-gnu | dragonfly*)
18635 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18642 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18643 hardcode_libdir_separator_CXX=:
18644 export_dynamic_flag_spec_CXX='${wl}-E'
18645 hardcode_direct_CXX=yes
18646 hardcode_minus_L_CXX=yes # Not in the search PATH,
18647 # but as the default
18648 # location of the library.
18650 case $cc_basename in
18652 # FIXME: insert proper C++ library support
18656 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'
18657 # Commands to make compiler produce verbose output that lists
18658 # what "hidden" libraries, object files and flags are used when
18659 # linking a shared library.
18661 # There doesn't appear to be a way to prevent this compiler from
18662 # explicitly linking system object files so we need to strip them
18663 # from the output so that they don't get included in the library
18665 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'
18668 if test "$GXX" = yes; then
18669 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'
18671 # FIXME: insert proper C++ library support
18678 if test $with_gnu_ld = no; then
18679 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18680 hardcode_libdir_separator_CXX=:
18684 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18687 export_dynamic_flag_spec_CXX='${wl}-E'
18693 hardcode_direct_CXX=no
18694 hardcode_shlibpath_var_CXX=no
18697 hardcode_direct_CXX=yes
18698 hardcode_minus_L_CXX=yes # Not in the search PATH,
18699 # but as the default
18700 # location of the library.
18704 case $cc_basename in
18706 # FIXME: insert proper C++ library support
18712 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18715 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18718 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18721 # Commands to make compiler produce verbose output that lists
18722 # what "hidden" libraries, object files and flags are used when
18723 # linking a shared library.
18725 # There doesn't appear to be a way to prevent this compiler from
18726 # explicitly linking system object files so we need to strip them
18727 # from the output so that they don't get included in the library
18729 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'
18732 if test "$GXX" = yes; then
18733 if test $with_gnu_ld = no; then
18736 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18739 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18742 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'
18747 # FIXME: insert proper C++ library support
18754 hardcode_direct_CXX=no
18755 hardcode_shlibpath_var_CXX=no
18756 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18757 export_dynamic_flag_spec_CXX='${wl}-E'
18758 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18759 # Instead, shared libraries are loaded at an image base (0x10000000 by
18760 # default) and relocated if they conflict, which is a slow very memory
18761 # consuming and fragmenting process. To avoid this, we pick a random,
18762 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18763 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18764 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'
18765 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'
18768 case $cc_basename in
18771 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'
18773 # Archives containing C++ object files must be created using
18774 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18775 # necessary to make sure instantiated templates are included
18777 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18780 if test "$GXX" = yes; then
18781 if test "$with_gnu_ld" = no; then
18782 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'
18784 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'
18787 link_all_deplibs_CXX=yes
18790 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18791 hardcode_libdir_separator_CXX=:
18794 case $cc_basename in
18796 # Kuck and Associates, Inc. (KAI) C++ Compiler
18798 # KCC will only create a shared library if the output file
18799 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18800 # to its proper name (with version) after linking.
18801 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'
18802 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'
18803 # Commands to make compiler produce verbose output that lists
18804 # what "hidden" libraries, object files and flags are used when
18805 # linking a shared library.
18807 # There doesn't appear to be a way to prevent this compiler from
18808 # explicitly linking system object files so we need to strip them
18809 # from the output so that they don't get included in the library
18811 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'
18813 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18814 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18816 # Archives containing C++ object files must be created using
18817 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18818 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18823 # version 8.0 and above of icpc choke on multiply defined symbols
18824 # if we add $predep_objects and $postdep_objects, however 7.1 and
18825 # earlier do not add the objects themselves.
18826 case `$CC -V 2>&1` in
18828 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18829 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'
18831 *) # Version 8.0 or newer
18834 ia64*) tmp_idyn=' -i_dynamic';;
18836 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18837 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'
18840 archive_cmds_need_lc_CXX=no
18841 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18842 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18843 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18846 # Portland Group C++ compiler
18847 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18848 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'
18850 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18851 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18852 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'
18856 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18857 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'
18859 runpath_var=LD_RUN_PATH
18860 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18861 hardcode_libdir_separator_CXX=:
18863 # Commands to make compiler produce verbose output that lists
18864 # what "hidden" libraries, object files and flags are used when
18865 # linking a shared library.
18867 # There doesn't appear to be a way to prevent this compiler from
18868 # explicitly linking system object files so we need to strip them
18869 # from the output so that they don't get included in the library
18871 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'
18876 # FIXME: insert proper C++ library support
18880 # FIXME: insert proper C++ library support
18884 case $cc_basename in
18886 # FIXME: insert proper C++ library support
18890 # FIXME: insert proper C++ library support
18896 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18897 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18899 hardcode_libdir_flag_spec_CXX='-R$libdir'
18900 hardcode_direct_CXX=yes
18901 hardcode_shlibpath_var_CXX=no
18903 # Workaround some broken pre-1.5 toolchains
18904 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18907 # C++ shared libraries are fairly broken
18911 hardcode_direct_CXX=yes
18912 hardcode_shlibpath_var_CXX=no
18913 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18914 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18915 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18916 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18917 export_dynamic_flag_spec_CXX='${wl}-E'
18918 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18920 output_verbose_link_cmd='echo'
18923 case $cc_basename in
18925 # Kuck and Associates, Inc. (KAI) C++ Compiler
18927 # KCC will only create a shared library if the output file
18928 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18929 # to its proper name (with version) after linking.
18930 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'
18932 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18933 hardcode_libdir_separator_CXX=:
18935 # Archives containing C++ object files must be created using
18936 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18937 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18941 # Rational C++ 2.4.1
18942 # FIXME: insert proper C++ library support
18946 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18947 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'
18949 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18950 hardcode_libdir_separator_CXX=:
18952 # Commands to make compiler produce verbose output that lists
18953 # what "hidden" libraries, object files and flags are used when
18954 # linking a shared library.
18956 # There doesn't appear to be a way to prevent this compiler from
18957 # explicitly linking system object files so we need to strip them
18958 # from the output so that they don't get included in the library
18960 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'
18963 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18964 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18965 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'
18967 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18968 hardcode_libdir_separator_CXX=:
18970 # Commands to make compiler produce verbose output that lists
18971 # what "hidden" libraries, object files and flags are used when
18972 # linking a shared library.
18973 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18976 # FIXME: insert proper C++ library support
18983 case $cc_basename in
18985 # Kuck and Associates, Inc. (KAI) C++ Compiler
18987 # KCC will only create a shared library if the output file
18988 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18989 # to its proper name (with version) after linking.
18990 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'
18992 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18993 hardcode_libdir_separator_CXX=:
18995 # Archives containing C++ object files must be created using
18996 # the KAI C++ compiler.
18997 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19000 # Rational C++ 2.4.1
19001 # FIXME: insert proper C++ library support
19005 allow_undefined_flag_CXX=' -expect_unresolved \*'
19006 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'
19007 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19008 echo "-hidden">> $lib.exp~
19009 $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~
19012 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19013 hardcode_libdir_separator_CXX=:
19015 # Commands to make compiler produce verbose output that lists
19016 # what "hidden" libraries, object files and flags are used when
19017 # linking a shared library.
19019 # There doesn't appear to be a way to prevent this compiler from
19020 # explicitly linking system object files so we need to strip them
19021 # from the output so that they don't get included in the library
19023 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'
19026 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19027 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19028 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'
19030 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19031 hardcode_libdir_separator_CXX=:
19033 # Commands to make compiler produce verbose output that lists
19034 # what "hidden" libraries, object files and flags are used when
19035 # linking a shared library.
19036 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19039 # FIXME: insert proper C++ library support
19046 # FIXME: insert proper C++ library support
19050 case $cc_basename in
19053 # FIXME: insert proper C++ library support
19058 # FIXME: insert proper C++ library support
19062 # FIXME: insert proper C++ library support
19068 case $cc_basename in
19070 # Sun C++ 4.2, 5.x and Centerline C++
19071 archive_cmds_need_lc_CXX=yes
19072 no_undefined_flag_CXX=' -zdefs'
19073 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19074 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19075 $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'
19077 hardcode_libdir_flag_spec_CXX='-R$libdir'
19078 hardcode_shlibpath_var_CXX=no
19080 solaris2.[0-5] | solaris2.[0-5].*) ;;
19082 # The C++ compiler is used as linker so we must use $wl
19083 # flag to pass the commands to the underlying system
19084 # linker. We must also pass each convience library through
19085 # to the system linker between allextract/defaultextract.
19086 # The C++ compiler will combine linker options so we
19087 # cannot just pass the convience library names through
19089 # Supported since Solaris 2.6 (maybe 2.5.1?)
19090 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'
19093 link_all_deplibs_CXX=yes
19095 output_verbose_link_cmd='echo'
19097 # Archives containing C++ object files must be created using
19098 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19099 # necessary to make sure instantiated templates are included
19101 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19104 # Green Hills C++ Compiler
19105 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19107 # The C++ compiler must be used to create the archive.
19108 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19111 # GNU C++ compiler with Solaris linker
19112 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19113 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19114 if $CC --version | grep -v '^2\.7' > /dev/null; then
19115 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19116 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19117 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19119 # Commands to make compiler produce verbose output that lists
19120 # what "hidden" libraries, object files and flags are used when
19121 # linking a shared library.
19122 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19124 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19126 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19127 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19128 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19130 # Commands to make compiler produce verbose output that lists
19131 # what "hidden" libraries, object files and flags are used when
19132 # linking a shared library.
19133 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19136 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19141 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19142 no_undefined_flag_CXX='${wl}-z,text'
19143 archive_cmds_need_lc_CXX=no
19144 hardcode_shlibpath_var_CXX=no
19145 runpath_var='LD_RUN_PATH'
19147 case $cc_basename in
19149 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19150 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19153 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19154 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19158 sysv5* | sco3.2v5* | sco5v6*)
19159 # Note: We can NOT use -z defs as we might desire, because we do not
19160 # link with -lc, and that would cause any symbols used from libc to
19161 # always be unresolved, which means just about no library would
19162 # ever link correctly. If we're not using GNU ld we use -z text
19163 # though, which does catch some bad symbols but isn't as heavy-handed
19165 # For security reasons, it is highly recommended that you always
19166 # use absolute paths for naming shared libraries, and exclude the
19167 # DT_RUNPATH tag from executables and libraries. But doing so
19168 # requires that you compile everything twice, which is a pain.
19169 # So that behaviour is only enabled if SCOABSPATH is set to a
19170 # non-empty value in the environment. Most likely only useful for
19171 # creating official distributions of packages.
19172 # This is a hack until libtool officially supports absolute path
19173 # names for shared libraries.
19174 no_undefined_flag_CXX='${wl}-z,text'
19175 allow_undefined_flag_CXX='${wl}-z,nodefs'
19176 archive_cmds_need_lc_CXX=no
19177 hardcode_shlibpath_var_CXX=no
19178 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19179 hardcode_libdir_separator_CXX=':'
19180 link_all_deplibs_CXX=yes
19181 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19182 runpath_var='LD_RUN_PATH'
19184 case $cc_basename in
19186 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19187 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19190 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19191 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19196 case $cc_basename in
19198 # NonStop-UX NCC 3.20
19199 # FIXME: insert proper C++ library support
19203 # FIXME: insert proper C++ library support
19209 # FIXME: insert proper C++ library support
19213 # FIXME: insert proper C++ library support
19217 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19218 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19219 test "$ld_shlibs_CXX" = no && can_build_shared=no
19225 cat > conftest.$ac_ext <<EOF
19229 Foo (void) { a = 0; }
19235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19236 (eval $ac_compile) 2>&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); }; then
19240 # Parse the compiler output and extract the necessary
19241 # objects, libraries and library flags.
19243 # Sentinel used to keep track of whether or not we are before
19244 # the conftest object file.
19245 pre_test_object_deps_done=no
19247 # The `*' in the case matches for architectures that use `case' in
19248 # $output_verbose_cmd can trigger glob expansion during the loop
19249 # eval without this substitution.
19250 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19252 for p in `eval $output_verbose_link_cmd`; do
19256 # Some compilers place space between "-{L,R}" and the path.
19257 # Remove the space.
19258 if test $p = "-L" \
19259 || test $p = "-R"; then
19266 if test "$pre_test_object_deps_done" = no; then
19269 # Internal compiler library paths should come after those
19270 # provided the user. The postdeps already come after the
19271 # user supplied libs so there is no need to process them.
19272 if test -z "$compiler_lib_search_path_CXX"; then
19273 compiler_lib_search_path_CXX="${prev}${p}"
19275 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19278 # The "-l" case would never come before the object being
19279 # linked, so don't bother handling this case.
19282 if test -z "$postdeps_CXX"; then
19283 postdeps_CXX="${prev}${p}"
19285 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19291 # This assumes that the test object file only shows up
19292 # once in the compiler output.
19293 if test "$p" = "conftest.$objext"; then
19294 pre_test_object_deps_done=yes
19298 if test "$pre_test_object_deps_done" = no; then
19299 if test -z "$predep_objects_CXX"; then
19300 predep_objects_CXX="$p"
19302 predep_objects_CXX="$predep_objects_CXX $p"
19305 if test -z "$postdep_objects_CXX"; then
19306 postdep_objects_CXX="$p"
19308 postdep_objects_CXX="$postdep_objects_CXX $p"
19313 *) ;; # Ignore the rest.
19321 echo "libtool.m4: error: problem compiling CXX test program"
19324 $rm -f confest.$objext
19326 # PORTME: override above test on systems where it is broken
19329 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19330 # hack all around it, let's just trust "g++" to DTRT.
19331 predep_objects_CXX=
19332 postdep_objects_CXX=
19337 case $cc_basename in
19339 # Adding this requires a known-good setup of shared libraries for
19340 # Sun compiler versions before 5.6, else PIC objects from an old
19341 # archive will be linked into the output, leading to subtle bugs.
19342 postdeps_CXX='-lCstd -lCrun'
19349 case " $postdeps_CXX " in
19350 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19353 lt_prog_compiler_wl_CXX=
19354 lt_prog_compiler_pic_CXX=
19355 lt_prog_compiler_static_CXX=
19357 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19358 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19360 # C++ specific cases for pic, static, wl, etc.
19361 if test "$GXX" = yes; then
19362 lt_prog_compiler_wl_CXX='-Wl,'
19363 lt_prog_compiler_static_CXX='-static'
19367 # All AIX code is PIC.
19368 if test "$host_cpu" = ia64; then
19369 # AIX 5 now supports IA64 processor
19370 lt_prog_compiler_static_CXX='-Bstatic'
19374 # FIXME: we need at least 68020 code to build shared libraries, but
19375 # adding the `-m68020' flag to GCC prevents building anything better,
19377 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19379 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19380 # PIC is the default for these OSes.
19382 mingw* | os2* | pw32*)
19383 # This hack is so that the source file can tell whether it is being
19384 # built for inclusion in a dll (and should export symbols for example).
19385 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19387 darwin* | rhapsody*)
19388 # PIC is the default on this platform
19389 # Common symbols not allowed in MH_DYLIB files
19390 lt_prog_compiler_pic_CXX='-fno-common'
19393 # DJGPP does not support shared libraries at all
19394 lt_prog_compiler_pic_CXX=
19397 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19398 # Instead, we relocate shared libraries at runtime.
19401 if test -d /usr/nec; then
19402 lt_prog_compiler_pic_CXX=-Kconform_pic
19406 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19407 # not for PA HP-UX.
19412 lt_prog_compiler_pic_CXX='-fPIC'
19417 lt_prog_compiler_pic_CXX='-fPIC'
19423 # All AIX code is PIC.
19424 if test "$host_cpu" = ia64; then
19425 # AIX 5 now supports IA64 processor
19426 lt_prog_compiler_static_CXX='-Bstatic'
19428 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19432 case $cc_basename in
19434 # Green Hills C++ Compiler
19435 # _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"
19440 # PIC is the default on this platform
19441 # Common symbols not allowed in MH_DYLIB files
19442 case $cc_basename in
19444 lt_prog_compiler_pic_CXX='-qnocommon'
19445 lt_prog_compiler_wl_CXX='-Wl,'
19450 case $cc_basename in
19452 lt_prog_compiler_pic_CXX='-KPIC'
19455 # Green Hills C++ Compiler
19456 lt_prog_compiler_pic_CXX='-pic'
19462 freebsd* | kfreebsd*-gnu | dragonfly*)
19463 # FreeBSD uses GNU C++
19465 hpux9* | hpux10* | hpux11*)
19466 case $cc_basename in
19468 lt_prog_compiler_wl_CXX='-Wl,'
19469 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19470 if test "$host_cpu" != ia64; then
19471 lt_prog_compiler_pic_CXX='+Z'
19475 lt_prog_compiler_wl_CXX='-Wl,'
19476 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19482 lt_prog_compiler_pic_CXX='+Z'
19491 # This is c89, which is MS Visual C++ (no shared libs)
19492 # Anyone wants to do a port?
19494 irix5* | irix6* | nonstopux*)
19495 case $cc_basename in
19497 lt_prog_compiler_wl_CXX='-Wl,'
19498 lt_prog_compiler_static_CXX='-non_shared'
19499 # CC pic flag -KPIC is the default.
19506 case $cc_basename in
19509 lt_prog_compiler_wl_CXX='--backend -Wl,'
19510 lt_prog_compiler_pic_CXX='-fPIC'
19514 lt_prog_compiler_wl_CXX='-Wl,'
19515 lt_prog_compiler_pic_CXX='-KPIC'
19516 lt_prog_compiler_static_CXX='-static'
19519 # Portland Group C++ compiler.
19520 lt_prog_compiler_wl_CXX='-Wl,'
19521 lt_prog_compiler_pic_CXX='-fpic'
19522 lt_prog_compiler_static_CXX='-Bstatic'
19526 # Make sure the PIC flag is empty. It appears that all Alpha
19527 # Linux and Compaq Tru64 Unix objects are PIC.
19528 lt_prog_compiler_pic_CXX=
19529 lt_prog_compiler_static_CXX='-non_shared'
19540 case $cc_basename in
19542 lt_prog_compiler_pic_CXX='-W c,exportall'
19550 osf3* | osf4* | osf5*)
19551 case $cc_basename in
19553 lt_prog_compiler_wl_CXX='--backend -Wl,'
19556 # Rational C++ 2.4.1
19557 lt_prog_compiler_pic_CXX='-pic'
19560 # Digital/Compaq C++
19561 lt_prog_compiler_wl_CXX='-Wl,'
19562 # Make sure the PIC flag is empty. It appears that all Alpha
19563 # Linux and Compaq Tru64 Unix objects are PIC.
19564 lt_prog_compiler_pic_CXX=
19565 lt_prog_compiler_static_CXX='-non_shared'
19574 case $cc_basename in
19576 # Sun C++ 4.2, 5.x and Centerline C++
19577 lt_prog_compiler_pic_CXX='-KPIC'
19578 lt_prog_compiler_static_CXX='-Bstatic'
19579 lt_prog_compiler_wl_CXX='-Qoption ld '
19582 # Green Hills C++ Compiler
19583 lt_prog_compiler_pic_CXX='-PIC'
19590 case $cc_basename in
19593 lt_prog_compiler_pic_CXX='-pic'
19594 lt_prog_compiler_static_CXX='-Bstatic'
19598 lt_prog_compiler_pic_CXX='-pic'
19605 case $cc_basename in
19607 # NonStop-UX NCC 3.20
19608 lt_prog_compiler_pic_CXX='-KPIC'
19614 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19615 case $cc_basename in
19617 lt_prog_compiler_wl_CXX='-Wl,'
19618 lt_prog_compiler_pic_CXX='-KPIC'
19619 lt_prog_compiler_static_CXX='-Bstatic'
19626 lt_prog_compiler_can_build_shared_CXX=no
19631 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19632 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19635 # Check to make sure the PIC flag actually works.
19637 if test -n "$lt_prog_compiler_pic_CXX"; then
19639 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19640 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19641 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19642 echo $ECHO_N "(cached) $ECHO_C" >&6
19644 lt_prog_compiler_pic_works_CXX=no
19645 ac_outfile=conftest.$ac_objext
19646 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19647 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19648 # Insert the option either (1) after the last *FLAGS variable, or
19649 # (2) before a word containing "conftest.", or (3) at the end.
19650 # Note that $ac_compile itself does not contain backslashes and begins
19651 # with a dollar sign (not a hyphen), so the echo should work correctly.
19652 # The option is referenced via a variable to avoid confusing sed.
19653 lt_compile=`echo "$ac_compile" | $SED \
19654 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19656 -e 's:$: $lt_compiler_flag:'`
19657 (eval echo "\"\$as_me:19657: $lt_compile\"" >&5)
19658 (eval "$lt_compile" 2>conftest.err)
19660 cat conftest.err >&5
19661 echo "$as_me:19661: \$? = $ac_status" >&5
19662 if (exit $ac_status) && test -s "$ac_outfile"; then
19663 # The compiler can only warn and ignore the option if not recognized
19664 # So say no if there are warnings other than the usual output.
19665 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19666 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19667 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19668 lt_prog_compiler_pic_works_CXX=yes
19674 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19675 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19677 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19678 case $lt_prog_compiler_pic_CXX in
19680 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19683 lt_prog_compiler_pic_CXX=
19684 lt_prog_compiler_can_build_shared_CXX=no
19689 # For platforms which do not support PIC, -DPIC is meaningless:
19691 lt_prog_compiler_pic_CXX=
19694 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19699 # Check to make sure the static flag actually works.
19701 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19702 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19703 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19704 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
19707 lt_prog_compiler_static_works_CXX=no
19708 save_LDFLAGS="$LDFLAGS"
19709 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19710 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19711 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19712 # The linker can only warn and ignore the option if not recognized
19713 # So say no if there are warnings
19714 if test -s conftest.err; then
19715 # Append any errors to the config.log.
19716 cat conftest.err 1>&5
19717 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19718 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19719 if diff conftest.exp conftest.er2 >/dev/null; then
19720 lt_prog_compiler_static_works_CXX=yes
19723 lt_prog_compiler_static_works_CXX=yes
19727 LDFLAGS="$save_LDFLAGS"
19730 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19731 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19733 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19736 lt_prog_compiler_static_CXX=
19740 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19741 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19742 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19743 echo $ECHO_N "(cached) $ECHO_C" >&6
19745 lt_cv_prog_compiler_c_o_CXX=no
19746 $rm -r conftest 2>/dev/null
19750 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19752 lt_compiler_flag="-o out/conftest2.$ac_objext"
19753 # Insert the option either (1) after the last *FLAGS variable, or
19754 # (2) before a word containing "conftest.", or (3) at the end.
19755 # Note that $ac_compile itself does not contain backslashes and begins
19756 # with a dollar sign (not a hyphen), so the echo should work correctly.
19757 lt_compile=`echo "$ac_compile" | $SED \
19758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19760 -e 's:$: $lt_compiler_flag:'`
19761 (eval echo "\"\$as_me:19761: $lt_compile\"" >&5)
19762 (eval "$lt_compile" 2>out/conftest.err)
19764 cat out/conftest.err >&5
19765 echo "$as_me:19765: \$? = $ac_status" >&5
19766 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19768 # The compiler can only warn and ignore the option if not recognized
19769 # So say no if there are warnings
19770 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19771 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19772 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19773 lt_cv_prog_compiler_c_o_CXX=yes
19778 # SGI C++ compiler will create directory out/ii_files/ for
19779 # template instantiation
19780 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19781 $rm out/* && rmdir out
19787 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19788 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19791 hard_links="nottested"
19792 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19793 # do not overwrite the value of need_locks provided by the user
19794 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19795 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19798 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19800 ln conftest.a conftest.b 2>&5 || hard_links=no
19801 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19802 { echo "$as_me:$LINENO: result: $hard_links" >&5
19803 echo "${ECHO_T}$hard_links" >&6; }
19804 if test "$hard_links" = no; then
19805 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19806 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19813 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19814 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19816 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19819 # If we're using GNU nm, then we don't want the "-C" option.
19820 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19821 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19822 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'
19824 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'
19828 export_symbols_cmds_CXX="$ltdll_cmds"
19831 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'
19834 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19838 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19839 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19840 test "$ld_shlibs_CXX" = no && can_build_shared=no
19843 # Do we need to explicitly link libc?
19845 case "x$archive_cmds_need_lc_CXX" in
19847 # Assume -lc should be added
19848 archive_cmds_need_lc_CXX=yes
19850 if test "$enable_shared" = yes && test "$GCC" = yes; then
19851 case $archive_cmds_CXX in
19853 # FIXME: we may have to deal with multi-command sequences.
19856 # Test whether the compiler implicitly links with -lc since on some
19857 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19858 # to ld, don't add -lc before -lgcc.
19859 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19860 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19862 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19865 (eval $ac_compile) 2>&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } 2>conftest.err; then
19871 libobjs=conftest.$ac_objext
19873 wl=$lt_prog_compiler_wl_CXX
19874 pic_flag=$lt_prog_compiler_pic_CXX
19880 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19881 allow_undefined_flag_CXX=
19882 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19883 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); }
19888 archive_cmds_need_lc_CXX=no
19890 archive_cmds_need_lc_CXX=yes
19892 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19894 cat conftest.err 1>&5
19897 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19898 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19905 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19906 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19907 library_names_spec=
19908 libname_spec='lib$name'
19912 postuninstall_cmds=
19916 shlibpath_overrides_runpath=unknown
19918 dynamic_linker="$host_os ld.so"
19919 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19920 if test "$GCC" = yes; then
19921 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19922 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19923 # if the path contains ";" then we assume it to be the separator
19924 # otherwise default to the standard path separator (i.e. ":") - it is
19925 # assumed that no part of a normal pathname contains ";" but that should
19926 # okay in the real world where ";" in dirpaths is itself problematic.
19927 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19929 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19932 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19934 need_lib_prefix=unknown
19935 hardcode_into_libs=no
19937 # when you set need_version to no, make sure it does not cause -set_version
19938 # flags to be left without arguments
19939 need_version=unknown
19944 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19945 shlibpath_var=LIBPATH
19947 # AIX 3 has no versioning support, so we append a major version to the name.
19948 soname_spec='${libname}${release}${shared_ext}$major'
19955 hardcode_into_libs=yes
19956 if test "$host_cpu" = ia64; then
19957 # AIX 5 supports IA64
19958 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19959 shlibpath_var=LD_LIBRARY_PATH
19961 # With GCC up to 2.95.x, collect2 would create an import file
19962 # for dependence libraries. The import file would start with
19963 # the line `#! .'. This would cause the generated library to
19964 # depend on `.', always an invalid library. This was fixed in
19965 # development snapshots of GCC prior to 3.0.
19967 aix4 | aix4.[01] | aix4.[01].*)
19968 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19970 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19973 can_build_shared=no
19977 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19978 # soname into executable. Probably we can add versioning support to
19979 # collect2, so additional links can be useful in future.
19980 if test "$aix_use_runtimelinking" = yes; then
19981 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19982 # instead of lib<name>.a to let people know that these are not
19983 # typical AIX shared libraries.
19984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19986 # We preserve .a as extension for shared libraries through AIX4.2
19987 # and later when we are not doing run time linking.
19988 library_names_spec='${libname}${release}.a $libname.a'
19989 soname_spec='${libname}${release}${shared_ext}$major'
19991 shlibpath_var=LIBPATH
19996 library_names_spec='$libname.ixlibrary $libname.a'
19997 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19998 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'
20002 library_names_spec='${libname}${shared_ext}'
20003 dynamic_linker="$host_os ld.so"
20004 shlibpath_var=LIBRARY_PATH
20010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20011 soname_spec='${libname}${release}${shared_ext}$major'
20012 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20013 shlibpath_var=LD_LIBRARY_PATH
20014 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20015 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20016 # the default ld.so.conf also contains /usr/contrib/lib and
20017 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20018 # libtool to hard-code these into programs
20021 cygwin* | mingw* | pw32*)
20022 version_type=windows
20027 case $GCC,$host_os in
20028 yes,cygwin* | yes,mingw* | yes,pw32*)
20029 library_names_spec='$libname.dll.a'
20030 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20031 postinstall_cmds='base_file=`basename \${file}`~
20032 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20033 dldir=$destdir/`dirname \$dlpath`~
20034 test -d \$dldir || mkdir -p \$dldir~
20035 $install_prog $dir/$dlname \$dldir/$dlname~
20036 chmod a+x \$dldir/$dlname'
20037 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20038 dlpath=$dir/\$dldll~
20040 shlibpath_overrides_runpath=yes
20044 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20045 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20046 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20049 # MinGW DLLs use traditional 'lib' prefix
20050 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20051 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20052 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20053 # It is most probably a Windows format PATH printed by
20054 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20055 # path with ; separators, and with drive letters. We can handle the
20056 # drive letters (cygwin fileutils understands them), so leave them,
20057 # especially as we might pass files found there to a mingw objdump,
20058 # which wouldn't understand a cygwinified path. Ahh.
20059 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20061 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20065 # pw32 DLLs use 'pw' prefix rather than 'lib'
20066 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20072 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20075 dynamic_linker='Win32 ld.exe'
20076 # FIXME: first we should search . and the directory the executable is in
20080 darwin* | rhapsody*)
20081 dynamic_linker="$host_os dyld"
20082 version_type=darwin
20085 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20086 soname_spec='${libname}${release}${major}$shared_ext'
20087 shlibpath_overrides_runpath=yes
20088 shlibpath_var=DYLD_LIBRARY_PATH
20089 shrext_cmds='.dylib'
20090 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20091 if test "$GCC" = yes; then
20092 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"`
20094 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20096 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20104 soname_spec='${libname}${release}${shared_ext}$major'
20105 shlibpath_var=LD_LIBRARY_PATH
20116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20117 soname_spec='${libname}${release}${shared_ext}$major'
20118 shlibpath_var=LD_LIBRARY_PATH
20119 shlibpath_overrides_runpath=no
20120 hardcode_into_libs=yes
20121 dynamic_linker='GNU ld.so'
20124 freebsd* | dragonfly*)
20125 # DragonFly does not have aout. When/if they implement a new
20126 # versioning mechanism, adjust this.
20127 if test -x /usr/bin/objformat; then
20128 objformat=`/usr/bin/objformat`
20131 freebsd[123]*) objformat=aout ;;
20132 *) objformat=elf ;;
20135 version_type=freebsd-$objformat
20136 case $version_type in
20138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20143 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20147 shlibpath_var=LD_LIBRARY_PATH
20150 shlibpath_overrides_runpath=yes
20152 freebsd3.[01]* | freebsdelf3.[01]*)
20153 shlibpath_overrides_runpath=yes
20154 hardcode_into_libs=yes
20156 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20157 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20158 shlibpath_overrides_runpath=no
20159 hardcode_into_libs=yes
20161 freebsd*) # from 4.6 on
20162 shlibpath_overrides_runpath=yes
20163 hardcode_into_libs=yes
20172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20173 soname_spec='${libname}${release}${shared_ext}$major'
20174 shlibpath_var=LD_LIBRARY_PATH
20175 hardcode_into_libs=yes
20178 hpux9* | hpux10* | hpux11*)
20179 # Give a soname corresponding to the major version so that dld.sl refuses to
20180 # link against other versions.
20187 hardcode_into_libs=yes
20188 dynamic_linker="$host_os dld.so"
20189 shlibpath_var=LD_LIBRARY_PATH
20190 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20192 soname_spec='${libname}${release}${shared_ext}$major'
20193 if test "X$HPUX_IA64_MODE" = X32; then
20194 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20196 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20198 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20202 hardcode_into_libs=yes
20203 dynamic_linker="$host_os dld.sl"
20204 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20205 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20207 soname_spec='${libname}${release}${shared_ext}$major'
20208 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20213 dynamic_linker="$host_os dld.sl"
20214 shlibpath_var=SHLIB_PATH
20215 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20217 soname_spec='${libname}${release}${shared_ext}$major'
20220 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20221 postinstall_cmds='chmod 555 $lib'
20228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20229 soname_spec='${libname}${release}${shared_ext}$major'
20230 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20231 shlibpath_var=LD_LIBRARY_PATH
20232 shlibpath_overrides_runpath=no
20233 hardcode_into_libs=yes
20236 irix5* | irix6* | nonstopux*)
20238 nonstopux*) version_type=nonstopux ;;
20240 if test "$lt_cv_prog_gnu_ld" = yes; then
20248 soname_spec='${libname}${release}${shared_ext}$major'
20249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20251 irix5* | nonstopux*)
20252 libsuff= shlibsuff=
20255 case $LD in # libtool.m4 will add one of these switches to LD
20256 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20257 libsuff= shlibsuff= libmagic=32-bit;;
20258 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20259 libsuff=32 shlibsuff=N32 libmagic=N32;;
20260 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20261 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20262 *) libsuff= shlibsuff= libmagic=never-match;;
20266 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20267 shlibpath_overrides_runpath=no
20268 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20269 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20270 hardcode_into_libs=yes
20273 # No shared lib support for Linux oldld, aout, or coff.
20274 linux*oldld* | linux*aout* | linux*coff*)
20278 # This must be Linux ELF.
20283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20284 soname_spec='${libname}${release}${shared_ext}$major'
20285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20286 shlibpath_var=LD_LIBRARY_PATH
20287 shlibpath_overrides_runpath=no
20288 # This implies no fast_install, which is unacceptable.
20289 # Some rework will be needed to allow for fast_install
20290 # before this can be enabled.
20291 hardcode_into_libs=yes
20293 # Append ld.so.conf contents to the search path
20294 if test -f /etc/ld.so.conf; then
20295 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' ' '`
20296 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20299 # We used to test for /lib/ld.so.1 and disable shared libraries on
20300 # powerpc, because MkLinux only supported shared libraries with the
20301 # GNU dynamic linker. Since this was broken with cross compilers,
20302 # most powerpc-linux boxes support dynamic linking these days and
20303 # people can always --disable-shared, the test was removed, and we
20304 # assume the GNU/Linux dynamic linker is in use.
20305 dynamic_linker='GNU/Linux ld.so'
20312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20313 soname_spec='${libname}${release}${shared_ext}$major'
20314 shlibpath_var=LD_LIBRARY_PATH
20315 shlibpath_overrides_runpath=no
20316 hardcode_into_libs=yes
20317 dynamic_linker='GNU ld.so'
20324 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20327 dynamic_linker='NetBSD (a.out) ld.so'
20329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20330 soname_spec='${libname}${release}${shared_ext}$major'
20331 dynamic_linker='NetBSD ld.elf_so'
20333 shlibpath_var=LD_LIBRARY_PATH
20334 shlibpath_overrides_runpath=yes
20335 hardcode_into_libs=yes
20340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20341 shlibpath_var=LD_LIBRARY_PATH
20342 shlibpath_overrides_runpath=yes
20349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20350 soname_spec='${libname}${release}${shared_ext}$major'
20351 shlibpath_var=LD_LIBRARY_PATH
20352 shlibpath_overrides_runpath=yes
20357 sys_lib_dlsearch_path_spec="/usr/lib"
20359 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20361 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20362 *) need_version=no ;;
20364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20366 shlibpath_var=LD_LIBRARY_PATH
20367 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20369 openbsd2.[89] | openbsd2.[89].*)
20370 shlibpath_overrides_runpath=no
20373 shlibpath_overrides_runpath=yes
20377 shlibpath_overrides_runpath=yes
20382 libname_spec='$name'
20385 library_names_spec='$libname${shared_ext} $libname.a'
20386 dynamic_linker='OS/2 ld.exe'
20387 shlibpath_var=LIBPATH
20390 osf3* | osf4* | osf5*)
20394 soname_spec='${libname}${release}${shared_ext}$major'
20395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20396 shlibpath_var=LD_LIBRARY_PATH
20397 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20398 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20406 soname_spec='${libname}${release}${shared_ext}$major'
20407 shlibpath_var=LD_LIBRARY_PATH
20408 shlibpath_overrides_runpath=yes
20409 hardcode_into_libs=yes
20410 # ldd complains unless libraries are executable
20411 postinstall_cmds='chmod +x $lib'
20416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20417 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20418 shlibpath_var=LD_LIBRARY_PATH
20419 shlibpath_overrides_runpath=yes
20420 if test "$with_gnu_ld" = yes; then
20428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20429 soname_spec='${libname}${release}${shared_ext}$major'
20430 shlibpath_var=LD_LIBRARY_PATH
20431 case $host_vendor in
20433 shlibpath_overrides_runpath=no
20435 export_dynamic_flag_spec='${wl}-Blargedynsym'
20436 runpath_var=LD_RUN_PATH
20444 shlibpath_overrides_runpath=no
20445 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20451 if test -d /usr/nec ;then
20453 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20454 soname_spec='$libname${shared_ext}.$major'
20455 shlibpath_var=LD_LIBRARY_PATH
20459 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20460 version_type=freebsd-elf
20463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20464 soname_spec='${libname}${release}${shared_ext}$major'
20465 shlibpath_var=LD_LIBRARY_PATH
20466 hardcode_into_libs=yes
20467 if test "$with_gnu_ld" = yes; then
20468 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20469 shlibpath_overrides_runpath=no
20471 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20472 shlibpath_overrides_runpath=yes
20475 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20479 sys_lib_dlsearch_path_spec='/usr/lib'
20484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20485 soname_spec='${libname}${release}${shared_ext}$major'
20486 shlibpath_var=LD_LIBRARY_PATH
20493 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20494 echo "${ECHO_T}$dynamic_linker" >&6; }
20495 test "$dynamic_linker" = no && can_build_shared=no
20497 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20498 if test "$GCC" = yes; then
20499 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20502 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20503 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20504 hardcode_action_CXX=
20505 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20506 test -n "$runpath_var_CXX" || \
20507 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20509 # We can hardcode non-existant directories.
20510 if test "$hardcode_direct_CXX" != no &&
20511 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20512 # have to relink, otherwise we might link with an installed library
20513 # when we should be linking with a yet-to-be-installed one
20514 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20515 test "$hardcode_minus_L_CXX" != no; then
20516 # Linking always hardcodes the temporary library directory.
20517 hardcode_action_CXX=relink
20519 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20520 hardcode_action_CXX=immediate
20523 # We cannot hardcode anything, or else we can only hardcode existing
20525 hardcode_action_CXX=unsupported
20527 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20528 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20530 if test "$hardcode_action_CXX" = relink; then
20531 # Fast installation is not supported
20532 enable_fast_install=no
20533 elif test "$shlibpath_overrides_runpath" = yes ||
20534 test "$enable_shared" = no; then
20535 # Fast installation is not necessary
20536 enable_fast_install=needless
20540 # The else clause should only fire when bootstrapping the
20541 # libtool distribution, otherwise you forgot to ship ltmain.sh
20542 # with your package, and you will get complaints that there are
20543 # no rules to generate ltmain.sh.
20544 if test -f "$ltmain"; then
20545 # See if we are running on zsh, and set the options which allow our commands through
20546 # without removal of \ escapes.
20547 if test -n "${ZSH_VERSION+set}" ; then
20548 setopt NO_GLOB_SUBST
20550 # Now quote all the things that may contain metacharacters while being
20551 # careful not to overquote the AC_SUBSTed values. We take copies of the
20552 # variables and quote the copies for generation of the libtool script.
20553 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20555 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20556 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20557 deplibs_check_method reload_flag reload_cmds need_locks \
20558 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20559 lt_cv_sys_global_symbol_to_c_name_address \
20560 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20561 old_postinstall_cmds old_postuninstall_cmds \
20565 lt_prog_compiler_wl_CXX \
20566 lt_prog_compiler_pic_CXX \
20567 lt_prog_compiler_static_CXX \
20568 lt_prog_compiler_no_builtin_flag_CXX \
20569 export_dynamic_flag_spec_CXX \
20570 thread_safe_flag_spec_CXX \
20571 whole_archive_flag_spec_CXX \
20572 enable_shared_with_static_runtimes_CXX \
20573 old_archive_cmds_CXX \
20574 old_archive_from_new_cmds_CXX \
20575 predep_objects_CXX \
20576 postdep_objects_CXX \
20579 compiler_lib_search_path_CXX \
20581 archive_expsym_cmds_CXX \
20582 postinstall_cmds_CXX \
20583 postuninstall_cmds_CXX \
20584 old_archive_from_expsyms_cmds_CXX \
20585 allow_undefined_flag_CXX \
20586 no_undefined_flag_CXX \
20587 export_symbols_cmds_CXX \
20588 hardcode_libdir_flag_spec_CXX \
20589 hardcode_libdir_flag_spec_ld_CXX \
20590 hardcode_libdir_separator_CXX \
20591 hardcode_automatic_CXX \
20593 module_expsym_cmds_CXX \
20594 lt_cv_prog_compiler_c_o_CXX \
20595 exclude_expsyms_CXX \
20596 include_expsyms_CXX; do
20599 old_archive_cmds_CXX | \
20600 old_archive_from_new_cmds_CXX | \
20601 archive_cmds_CXX | \
20602 archive_expsym_cmds_CXX | \
20603 module_cmds_CXX | \
20604 module_expsym_cmds_CXX | \
20605 old_archive_from_expsyms_cmds_CXX | \
20606 export_symbols_cmds_CXX | \
20607 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20608 postinstall_cmds | postuninstall_cmds | \
20609 old_postinstall_cmds | old_postuninstall_cmds | \
20610 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20611 # Double-quote double-evaled strings.
20612 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20615 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20621 *'\$0 --fallback-echo"')
20622 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20628 cat <<__EOF__ >> "$cfgfile"
20629 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20631 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20633 # Shell to use when invoking shell scripts.
20636 # Whether or not to build shared libraries.
20637 build_libtool_libs=$enable_shared
20639 # Whether or not to build static libraries.
20640 build_old_libs=$enable_static
20642 # Whether or not to add -lc for building shared libraries.
20643 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20645 # Whether or not to disallow shared libs when runtime libs are static
20646 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20648 # Whether or not to optimize for fast installation.
20649 fast_install=$enable_fast_install
20652 host_alias=$host_alias
20656 # The build system.
20657 build_alias=$build_alias
20661 # An echo program that does not interpret backslashes.
20666 AR_FLAGS=$lt_AR_FLAGS
20671 # LTCC compiler flags.
20672 LTCFLAGS=$lt_LTCFLAGS
20674 # A language-specific compiler.
20675 CC=$lt_compiler_CXX
20677 # Is the compiler the GNU C compiler?
20683 # The linker used to build libraries.
20686 # Whether we need hard or soft links.
20689 # A BSD-compatible nm program.
20692 # A symbol stripping program
20695 # Used to examine libraries when file_magic_cmd begins "file"
20696 MAGIC_CMD=$MAGIC_CMD
20698 # Used on cygwin: DLL creation program.
20701 # Used on cygwin: object dumper.
20704 # Used on cygwin: assembler.
20707 # The name of the directory that contains temporary libtool files.
20710 # How to create reloadable object files.
20711 reload_flag=$lt_reload_flag
20712 reload_cmds=$lt_reload_cmds
20714 # How to pass a linker flag through the compiler.
20715 wl=$lt_lt_prog_compiler_wl_CXX
20717 # Object file suffix (normally "o").
20718 objext="$ac_objext"
20720 # Old archive suffix (normally "a").
20723 # Shared library suffix (normally ".so").
20724 shrext_cmds='$shrext_cmds'
20726 # Executable file suffix (normally "").
20729 # Additional compiler flags for building library objects.
20730 pic_flag=$lt_lt_prog_compiler_pic_CXX
20733 # What is the maximum length of a command?
20734 max_cmd_len=$lt_cv_sys_max_cmd_len
20736 # Does compiler simultaneously support -c and -o options?
20737 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20739 # Must we lock files when doing compilation?
20740 need_locks=$lt_need_locks
20742 # Do we need the lib prefix for modules?
20743 need_lib_prefix=$need_lib_prefix
20745 # Do we need a version for libraries?
20746 need_version=$need_version
20748 # Whether dlopen is supported.
20749 dlopen_support=$enable_dlopen
20751 # Whether dlopen of programs is supported.
20752 dlopen_self=$enable_dlopen_self
20754 # Whether dlopen of statically linked programs is supported.
20755 dlopen_self_static=$enable_dlopen_self_static
20757 # Compiler flag to prevent dynamic linking.
20758 link_static_flag=$lt_lt_prog_compiler_static_CXX
20760 # Compiler flag to turn off builtin functions.
20761 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20763 # Compiler flag to allow reflexive dlopens.
20764 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20766 # Compiler flag to generate shared objects directly from archives.
20767 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20769 # Compiler flag to generate thread-safe objects.
20770 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20772 # Library versioning type.
20773 version_type=$version_type
20775 # Format of library name prefix.
20776 libname_spec=$lt_libname_spec
20778 # List of archive names. First name is the real one, the rest are links.
20779 # The last name is the one that the linker finds with -lNAME.
20780 library_names_spec=$lt_library_names_spec
20782 # The coded name of the library, if different from the real name.
20783 soname_spec=$lt_soname_spec
20785 # Commands used to build and install an old-style archive.
20787 old_archive_cmds=$lt_old_archive_cmds_CXX
20788 old_postinstall_cmds=$lt_old_postinstall_cmds
20789 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20791 # Create an old-style archive from a shared archive.
20792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20794 # Create a temporary old-style archive to link instead of a shared archive.
20795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20797 # Commands used to build and install a shared archive.
20798 archive_cmds=$lt_archive_cmds_CXX
20799 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20800 postinstall_cmds=$lt_postinstall_cmds
20801 postuninstall_cmds=$lt_postuninstall_cmds
20803 # Commands used to build a loadable module (assumed same as above if empty)
20804 module_cmds=$lt_module_cmds_CXX
20805 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20807 # Commands to strip libraries.
20808 old_striplib=$lt_old_striplib
20809 striplib=$lt_striplib
20811 # Dependencies to place before the objects being linked to create a
20813 predep_objects=$lt_predep_objects_CXX
20815 # Dependencies to place after the objects being linked to create a
20817 postdep_objects=$lt_postdep_objects_CXX
20819 # Dependencies to place before the objects being linked to create a
20821 predeps=$lt_predeps_CXX
20823 # Dependencies to place after the objects being linked to create a
20825 postdeps=$lt_postdeps_CXX
20827 # The library search path used internally by the compiler when linking
20828 # a shared library.
20829 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20831 # Method to check whether dependent libraries are shared objects.
20832 deplibs_check_method=$lt_deplibs_check_method
20834 # Command to use when deplibs_check_method == file_magic.
20835 file_magic_cmd=$lt_file_magic_cmd
20837 # Flag that allows shared libraries with undefined symbols to be built.
20838 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20840 # Flag that forces no undefined symbols.
20841 no_undefined_flag=$lt_no_undefined_flag_CXX
20843 # Commands used to finish a libtool library installation in a directory.
20844 finish_cmds=$lt_finish_cmds
20846 # Same as above, but a single script fragment to be evaled but not shown.
20847 finish_eval=$lt_finish_eval
20849 # Take the output of nm and produce a listing of raw symbols and C names.
20850 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20852 # Transform the output of nm in a proper C declaration
20853 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20855 # Transform the output of nm in a C name address pair
20856 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20858 # This is the shared library runtime path variable.
20859 runpath_var=$runpath_var
20861 # This is the shared library path variable.
20862 shlibpath_var=$shlibpath_var
20864 # Is shlibpath searched before the hard-coded library search path?
20865 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20867 # How to hardcode a shared library path into an executable.
20868 hardcode_action=$hardcode_action_CXX
20870 # Whether we should hardcode library paths into libraries.
20871 hardcode_into_libs=$hardcode_into_libs
20873 # Flag to hardcode \$libdir into a binary during linking.
20874 # This must work even if \$libdir does not exist.
20875 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20877 # If ld is used when linking, flag to hardcode \$libdir into
20878 # a binary during linking. This must work even if \$libdir does
20880 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20882 # Whether we need a single -rpath flag with a separated argument.
20883 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20885 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20886 # resulting binary.
20887 hardcode_direct=$hardcode_direct_CXX
20889 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20890 # resulting binary.
20891 hardcode_minus_L=$hardcode_minus_L_CXX
20893 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20894 # the resulting binary.
20895 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20897 # Set to yes if building a shared library automatically hardcodes DIR into the library
20898 # and all subsequent libraries and executables linked against it.
20899 hardcode_automatic=$hardcode_automatic_CXX
20901 # Variables whose values should be saved in libtool wrapper scripts and
20902 # restored at relink time.
20903 variables_saved_for_relink="$variables_saved_for_relink"
20905 # Whether libtool must link a program against all its dependency libraries.
20906 link_all_deplibs=$link_all_deplibs_CXX
20908 # Compile-time system search path for libraries
20909 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20911 # Run-time system search path for libraries
20912 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20914 # Fix the shell variable \$srcfile for the compiler.
20915 fix_srcfile_path="$fix_srcfile_path_CXX"
20917 # Set to yes if exported symbols are required.
20918 always_export_symbols=$always_export_symbols_CXX
20920 # The commands to list exported symbols.
20921 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20923 # The commands to extract the exported symbol list from a shared archive.
20924 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20926 # Symbols that should not be listed in the preloaded symbols.
20927 exclude_expsyms=$lt_exclude_expsyms_CXX
20929 # Symbols that must always be exported.
20930 include_expsyms=$lt_include_expsyms_CXX
20932 # ### END LIBTOOL TAG CONFIG: $tagname
20938 # If there is no Makefile yet, we rely on a make rule to execute
20939 # `config.status --recheck' to rerun these tests and create the
20940 # libtool script then.
20941 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20942 if test -f "$ltmain_in"; then
20943 test -f Makefile && make "$ltmain"
20949 ac_cpp='$CPP $CPPFLAGS'
20950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20958 with_gnu_ldcxx=$with_gnu_ld
20959 with_gnu_ld=$lt_save_with_gnu_ld
20960 lt_cv_path_LDCXX=$lt_cv_path_LD
20961 lt_cv_path_LD=$lt_save_path_LD
20962 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20963 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20971 if test -n "$F77" && test "X$F77" != "Xno"; then
20974 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20975 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20976 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20979 archive_cmds_need_lc_F77=no
20980 allow_undefined_flag_F77=
20981 always_export_symbols_F77=no
20982 archive_expsym_cmds_F77=
20983 export_dynamic_flag_spec_F77=
20984 hardcode_direct_F77=no
20985 hardcode_libdir_flag_spec_F77=
20986 hardcode_libdir_flag_spec_ld_F77=
20987 hardcode_libdir_separator_F77=
20988 hardcode_minus_L_F77=no
20989 hardcode_automatic_F77=no
20991 module_expsym_cmds_F77=
20992 link_all_deplibs_F77=unknown
20993 old_archive_cmds_F77=$old_archive_cmds
20994 no_undefined_flag_F77=
20995 whole_archive_flag_spec_F77=
20996 enable_shared_with_static_runtimes_F77=no
20998 # Source file extension for f77 test sources.
21001 # Object file extension for compiled f77 test sources.
21005 # Code to be used in simple compile tests
21006 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21008 # Code to be used in simple link tests
21009 lt_simple_link_test_code=" program t\n end\n"
21011 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21013 # If no C compiler was specified, use CC.
21016 # If no C compiler flags were specified, use CFLAGS.
21017 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21019 # Allow CC to be a program name with arguments.
21023 # save warnings/boilerplate of simple test code
21024 ac_outfile=conftest.$ac_objext
21025 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21026 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21027 _lt_compiler_boilerplate=`cat conftest.err`
21030 ac_outfile=conftest.$ac_objext
21031 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21032 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21033 _lt_linker_boilerplate=`cat conftest.err`
21037 # Allow CC to be a program name with arguments.
21042 for cc_temp in $compiler""; do
21044 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21045 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21050 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21053 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21054 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21055 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21056 echo "${ECHO_T}$can_build_shared" >&6; }
21058 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21059 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21060 test "$can_build_shared" = "no" && enable_shared=no
21062 # On AIX, shared libraries and static libraries use the same namespace, and
21063 # are all built from PIC.
21066 test "$enable_shared" = yes && enable_static=no
21067 if test -n "$RANLIB"; then
21068 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21069 postinstall_cmds='$RANLIB $lib'
21073 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21074 test "$enable_shared" = yes && enable_static=no
21078 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21079 echo "${ECHO_T}$enable_shared" >&6; }
21081 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21082 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21083 # Make sure either enable_shared or enable_static is yes.
21084 test "$enable_shared" = yes || enable_static=yes
21085 { echo "$as_me:$LINENO: result: $enable_static" >&5
21086 echo "${ECHO_T}$enable_static" >&6; }
21091 lt_prog_compiler_wl_F77=
21092 lt_prog_compiler_pic_F77=
21093 lt_prog_compiler_static_F77=
21095 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21096 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21098 if test "$GCC" = yes; then
21099 lt_prog_compiler_wl_F77='-Wl,'
21100 lt_prog_compiler_static_F77='-static'
21104 # All AIX code is PIC.
21105 if test "$host_cpu" = ia64; then
21106 # AIX 5 now supports IA64 processor
21107 lt_prog_compiler_static_F77='-Bstatic'
21112 # FIXME: we need at least 68020 code to build shared libraries, but
21113 # adding the `-m68020' flag to GCC prevents building anything better,
21115 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21118 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21119 # PIC is the default for these OSes.
21122 mingw* | pw32* | os2*)
21123 # This hack is so that the source file can tell whether it is being
21124 # built for inclusion in a dll (and should export symbols for example).
21125 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21128 darwin* | rhapsody*)
21129 # PIC is the default on this platform
21130 # Common symbols not allowed in MH_DYLIB files
21131 lt_prog_compiler_pic_F77='-fno-common'
21135 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21136 # Instead, we relocate shared libraries at runtime.
21140 # Just because we use GCC doesn't mean we suddenly get shared libraries
21141 # on systems that don't support them.
21142 lt_prog_compiler_can_build_shared_F77=no
21147 if test -d /usr/nec; then
21148 lt_prog_compiler_pic_F77=-Kconform_pic
21153 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21154 # not for PA HP-UX.
21160 lt_prog_compiler_pic_F77='-fPIC'
21166 lt_prog_compiler_pic_F77='-fPIC'
21170 # PORTME Check for flag to pass linker flags through the system compiler.
21173 lt_prog_compiler_wl_F77='-Wl,'
21174 if test "$host_cpu" = ia64; then
21175 # AIX 5 now supports IA64 processor
21176 lt_prog_compiler_static_F77='-Bstatic'
21178 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21182 # PIC is the default on this platform
21183 # Common symbols not allowed in MH_DYLIB files
21184 case $cc_basename in
21186 lt_prog_compiler_pic_F77='-qnocommon'
21187 lt_prog_compiler_wl_F77='-Wl,'
21192 mingw* | pw32* | os2*)
21193 # This hack is so that the source file can tell whether it is being
21194 # built for inclusion in a dll (and should export symbols for example).
21195 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21198 hpux9* | hpux10* | hpux11*)
21199 lt_prog_compiler_wl_F77='-Wl,'
21200 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21201 # not for PA HP-UX.
21207 lt_prog_compiler_pic_F77='+Z'
21210 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21211 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21214 irix5* | irix6* | nonstopux*)
21215 lt_prog_compiler_wl_F77='-Wl,'
21216 # PIC (with -KPIC) is the default.
21217 lt_prog_compiler_static_F77='-non_shared'
21221 lt_prog_compiler_pic_F77='-KPIC'
21222 lt_prog_compiler_static_F77='-Bstatic'
21226 case $cc_basename in
21228 lt_prog_compiler_wl_F77='-Wl,'
21229 lt_prog_compiler_pic_F77='-KPIC'
21230 lt_prog_compiler_static_F77='-static'
21232 pgcc* | pgf77* | pgf90* | pgf95*)
21233 # Portland Group compilers (*not* the Pentium gcc compiler,
21234 # which looks to be a dead project)
21235 lt_prog_compiler_wl_F77='-Wl,'
21236 lt_prog_compiler_pic_F77='-fpic'
21237 lt_prog_compiler_static_F77='-Bstatic'
21240 lt_prog_compiler_wl_F77='-Wl,'
21241 # All Alpha code is PIC.
21242 lt_prog_compiler_static_F77='-non_shared'
21247 osf3* | osf4* | osf5*)
21248 lt_prog_compiler_wl_F77='-Wl,'
21249 # All OSF/1 code is PIC.
21250 lt_prog_compiler_static_F77='-non_shared'
21254 lt_prog_compiler_pic_F77='-KPIC'
21255 lt_prog_compiler_static_F77='-Bstatic'
21256 case $cc_basename in
21257 f77* | f90* | f95*)
21258 lt_prog_compiler_wl_F77='-Qoption ld ';;
21260 lt_prog_compiler_wl_F77='-Wl,';;
21265 lt_prog_compiler_wl_F77='-Qoption ld '
21266 lt_prog_compiler_pic_F77='-PIC'
21267 lt_prog_compiler_static_F77='-Bstatic'
21270 sysv4 | sysv4.2uw2* | sysv4.3*)
21271 lt_prog_compiler_wl_F77='-Wl,'
21272 lt_prog_compiler_pic_F77='-KPIC'
21273 lt_prog_compiler_static_F77='-Bstatic'
21277 if test -d /usr/nec ;then
21278 lt_prog_compiler_pic_F77='-Kconform_pic'
21279 lt_prog_compiler_static_F77='-Bstatic'
21283 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21284 lt_prog_compiler_wl_F77='-Wl,'
21285 lt_prog_compiler_pic_F77='-KPIC'
21286 lt_prog_compiler_static_F77='-Bstatic'
21290 lt_prog_compiler_wl_F77='-Wl,'
21291 lt_prog_compiler_can_build_shared_F77=no
21295 lt_prog_compiler_pic_F77='-pic'
21296 lt_prog_compiler_static_F77='-Bstatic'
21300 lt_prog_compiler_can_build_shared_F77=no
21305 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21306 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21309 # Check to make sure the PIC flag actually works.
21311 if test -n "$lt_prog_compiler_pic_F77"; then
21313 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21314 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21315 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21316 echo $ECHO_N "(cached) $ECHO_C" >&6
21318 lt_prog_compiler_pic_works_F77=no
21319 ac_outfile=conftest.$ac_objext
21320 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21321 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21322 # Insert the option either (1) after the last *FLAGS variable, or
21323 # (2) before a word containing "conftest.", or (3) at the end.
21324 # Note that $ac_compile itself does not contain backslashes and begins
21325 # with a dollar sign (not a hyphen), so the echo should work correctly.
21326 # The option is referenced via a variable to avoid confusing sed.
21327 lt_compile=`echo "$ac_compile" | $SED \
21328 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21330 -e 's:$: $lt_compiler_flag:'`
21331 (eval echo "\"\$as_me:21331: $lt_compile\"" >&5)
21332 (eval "$lt_compile" 2>conftest.err)
21334 cat conftest.err >&5
21335 echo "$as_me:21335: \$? = $ac_status" >&5
21336 if (exit $ac_status) && test -s "$ac_outfile"; then
21337 # The compiler can only warn and ignore the option if not recognized
21338 # So say no if there are warnings other than the usual output.
21339 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21341 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21342 lt_prog_compiler_pic_works_F77=yes
21348 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21349 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21351 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21352 case $lt_prog_compiler_pic_F77 in
21354 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21357 lt_prog_compiler_pic_F77=
21358 lt_prog_compiler_can_build_shared_F77=no
21363 # For platforms which do not support PIC, -DPIC is meaningless:
21365 lt_prog_compiler_pic_F77=
21368 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21373 # Check to make sure the static flag actually works.
21375 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21376 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21377 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21378 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21379 echo $ECHO_N "(cached) $ECHO_C" >&6
21381 lt_prog_compiler_static_works_F77=no
21382 save_LDFLAGS="$LDFLAGS"
21383 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21384 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21385 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21386 # The linker can only warn and ignore the option if not recognized
21387 # So say no if there are warnings
21388 if test -s conftest.err; then
21389 # Append any errors to the config.log.
21390 cat conftest.err 1>&5
21391 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21392 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21393 if diff conftest.exp conftest.er2 >/dev/null; then
21394 lt_prog_compiler_static_works_F77=yes
21397 lt_prog_compiler_static_works_F77=yes
21401 LDFLAGS="$save_LDFLAGS"
21404 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21405 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21407 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21410 lt_prog_compiler_static_F77=
21414 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21415 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21416 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21417 echo $ECHO_N "(cached) $ECHO_C" >&6
21419 lt_cv_prog_compiler_c_o_F77=no
21420 $rm -r conftest 2>/dev/null
21424 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21426 lt_compiler_flag="-o out/conftest2.$ac_objext"
21427 # Insert the option either (1) after the last *FLAGS variable, or
21428 # (2) before a word containing "conftest.", or (3) at the end.
21429 # Note that $ac_compile itself does not contain backslashes and begins
21430 # with a dollar sign (not a hyphen), so the echo should work correctly.
21431 lt_compile=`echo "$ac_compile" | $SED \
21432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21434 -e 's:$: $lt_compiler_flag:'`
21435 (eval echo "\"\$as_me:21435: $lt_compile\"" >&5)
21436 (eval "$lt_compile" 2>out/conftest.err)
21438 cat out/conftest.err >&5
21439 echo "$as_me:21439: \$? = $ac_status" >&5
21440 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21442 # The compiler can only warn and ignore the option if not recognized
21443 # So say no if there are warnings
21444 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21445 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21446 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21447 lt_cv_prog_compiler_c_o_F77=yes
21452 # SGI C++ compiler will create directory out/ii_files/ for
21453 # template instantiation
21454 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21455 $rm out/* && rmdir out
21461 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21462 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21465 hard_links="nottested"
21466 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21467 # do not overwrite the value of need_locks provided by the user
21468 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21469 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21472 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21474 ln conftest.a conftest.b 2>&5 || hard_links=no
21475 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21476 { echo "$as_me:$LINENO: result: $hard_links" >&5
21477 echo "${ECHO_T}$hard_links" >&6; }
21478 if test "$hard_links" = no; then
21479 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21480 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21487 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21488 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21491 allow_undefined_flag_F77=
21492 enable_shared_with_static_runtimes_F77=no
21494 archive_expsym_cmds_F77=
21495 old_archive_From_new_cmds_F77=
21496 old_archive_from_expsyms_cmds_F77=
21497 export_dynamic_flag_spec_F77=
21498 whole_archive_flag_spec_F77=
21499 thread_safe_flag_spec_F77=
21500 hardcode_libdir_flag_spec_F77=
21501 hardcode_libdir_flag_spec_ld_F77=
21502 hardcode_libdir_separator_F77=
21503 hardcode_direct_F77=no
21504 hardcode_minus_L_F77=no
21505 hardcode_shlibpath_var_F77=unsupported
21506 link_all_deplibs_F77=unknown
21507 hardcode_automatic_F77=no
21509 module_expsym_cmds_F77=
21510 always_export_symbols_F77=no
21511 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21512 # include_expsyms should be a list of space-separated symbols to be *always*
21513 # included in the symbol list
21514 include_expsyms_F77=
21515 # exclude_expsyms can be an extended regexp of symbols to exclude
21516 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21517 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21518 # as well as any symbol that contains `d'.
21519 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21520 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21521 # platforms (ab)use it in PIC code, but their linkers get confused if
21522 # the symbol is explicitly referenced. Since portable code cannot
21523 # rely on this symbol name, it's probably fine to never include it in
21524 # preloaded symbol tables.
21525 extract_expsyms_cmds=
21526 # Just being paranoid about ensuring that cc_basename is set.
21527 for cc_temp in $compiler""; do
21529 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21530 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21535 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21538 cygwin* | mingw* | pw32*)
21539 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21540 # When not using gcc, we currently assume that we are using
21541 # Microsoft Visual C++.
21542 if test "$GCC" != yes; then
21547 # we just hope/assume this is gcc and not c89 (= MSVC++)
21556 if test "$with_gnu_ld" = yes; then
21557 # If archive_cmds runs LD, not CC, wlarc should be empty
21560 # Set some defaults for GNU ld with shared library support. These
21561 # are reset later if shared libraries are not supported. Putting them
21562 # here allows them to be overridden if necessary.
21563 runpath_var=LD_RUN_PATH
21564 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21565 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21566 # ancient GNU ld didn't support --whole-archive et. al.
21567 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21568 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21570 whole_archive_flag_spec_F77=
21572 supports_anon_versioning=no
21573 case `$LD -v 2>/dev/null` in
21574 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21575 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21576 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21577 *\ 2.11.*) ;; # other 2.11 versions
21578 *) supports_anon_versioning=yes ;;
21581 # See if GNU ld supports shared libraries.
21583 aix3* | aix4* | aix5*)
21584 # On AIX/PPC, the GNU linker is very broken
21585 if test "$host_cpu" != ia64; then
21589 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21590 *** to be unable to reliably create shared libraries on AIX.
21591 *** Therefore, libtool is disabling shared libraries support. If you
21592 *** really care for shared libraries, you may want to modify your PATH
21593 *** so that a non-GNU linker is found, and then restart.
21600 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)'
21601 hardcode_libdir_flag_spec_F77='-L$libdir'
21602 hardcode_minus_L_F77=yes
21604 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21605 # that the semantics of dynamic libraries on AmigaOS, at least up
21606 # to version 4, is to share data among multiple programs linked
21607 # with the same dynamic library. Since this doesn't match the
21608 # behavior of shared libraries on other platforms, we can't use
21614 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21615 allow_undefined_flag_F77=unsupported
21616 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21617 # support --undefined. This deserves some investigation. FIXME
21618 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21624 cygwin* | mingw* | pw32*)
21625 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21626 # as there is no search path for DLLs.
21627 hardcode_libdir_flag_spec_F77='-L$libdir'
21628 allow_undefined_flag_F77=unsupported
21629 always_export_symbols_F77=no
21630 enable_shared_with_static_runtimes_F77=yes
21631 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21633 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21634 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21635 # If the export-symbols file already is a .def file (1st line
21636 # is EXPORTS), use it as is; otherwise, prepend...
21637 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21638 cp $export_symbols $output_objdir/$soname.def;
21640 echo EXPORTS > $output_objdir/$soname.def;
21641 cat $export_symbols >> $output_objdir/$soname.def;
21643 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21650 hardcode_direct_F77=no
21651 hardcode_shlibpath_var_F77=no
21652 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21653 export_dynamic_flag_spec_F77='${wl}-E'
21654 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21655 # Instead, shared libraries are loaded at an image base (0x10000000 by
21656 # default) and relocated if they conflict, which is a slow very memory
21657 # consuming and fragmenting process. To avoid this, we pick a random,
21658 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21659 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21660 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'
21661 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'
21665 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21667 case $cc_basename,$host_cpu in
21668 pgcc*) # Portland Group C compiler
21669 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'
21670 tmp_addflag=' $pic_flag'
21672 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21673 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'
21674 tmp_addflag=' $pic_flag -Mnomain' ;;
21675 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21676 tmp_addflag=' -i_dynamic' ;;
21677 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21678 tmp_addflag=' -i_dynamic -nofor_main' ;;
21679 ifc* | ifort*) # Intel Fortran compiler
21680 tmp_addflag=' -nofor_main' ;;
21682 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21684 if test $supports_anon_versioning = yes; then
21685 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21686 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21687 $echo "local: *; };" >> $output_objdir/$libname.ver~
21688 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21696 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21697 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21700 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21701 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21706 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21710 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21711 *** create shared libraries on Solaris systems. Therefore, libtool
21712 *** is disabling shared libraries support. We urge you to upgrade GNU
21713 *** binutils to release 2.9.1 or newer. Another option is to modify
21714 *** your PATH or compiler configuration so that the native linker is
21715 *** used, and then restart.
21718 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21719 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21720 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21726 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21727 case `$LD -v 2>&1` in
21728 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21732 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21733 *** reliably create shared libraries on SCO systems. Therefore, libtool
21734 *** is disabling shared libraries support. We urge you to upgrade GNU
21735 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21736 *** your PATH or compiler configuration so that the native linker is
21737 *** used, and then restart.
21742 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21743 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21744 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21745 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21754 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21756 hardcode_direct_F77=yes
21757 hardcode_shlibpath_var_F77=no
21761 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21762 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21763 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21770 if test "$ld_shlibs_F77" = no; then
21772 hardcode_libdir_flag_spec_F77=
21773 export_dynamic_flag_spec_F77=
21774 whole_archive_flag_spec_F77=
21777 # PORTME fill in a description of your system's linker (not GNU ld)
21780 allow_undefined_flag_F77=unsupported
21781 always_export_symbols_F77=yes
21782 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'
21783 # Note: this linker hardcodes the directories in LIBPATH if there
21784 # are no directories specified by -L.
21785 hardcode_minus_L_F77=yes
21786 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21787 # Neither direct hardcoding nor static linking is supported with a
21789 hardcode_direct_F77=unsupported
21794 if test "$host_cpu" = ia64; then
21795 # On IA64, the linker does run time linking by default, so we don't
21796 # have to do anything special.
21797 aix_use_runtimelinking=no
21798 exp_sym_flag='-Bexport'
21801 # If we're using GNU nm, then we don't want the "-C" option.
21802 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21803 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21804 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'
21806 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'
21808 aix_use_runtimelinking=no
21810 # Test if we are trying to use run time linking or normal
21811 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21812 # need to do runtime linking.
21813 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21814 for ld_flag in $LDFLAGS; do
21815 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21816 aix_use_runtimelinking=yes
21823 exp_sym_flag='-bexport'
21824 no_entry_flag='-bnoentry'
21827 # When large executables or shared objects are built, AIX ld can
21828 # have problems creating the table of contents. If linking a library
21829 # or program results in "error TOC overflow" add -mminimal-toc to
21830 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21831 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21833 archive_cmds_F77=''
21834 hardcode_direct_F77=yes
21835 hardcode_libdir_separator_F77=':'
21836 link_all_deplibs_F77=yes
21838 if test "$GCC" = yes; then
21839 case $host_os in aix4.[012]|aix4.[012].*)
21840 # We only want to do this on AIX 4.2 and lower, the check
21841 # below for broken collect2 doesn't work under 4.3+
21842 collect2name=`${CC} -print-prog-name=collect2`
21843 if test -f "$collect2name" && \
21844 strings "$collect2name" | grep resolve_lib_name >/dev/null
21846 # We have reworked collect2
21847 hardcode_direct_F77=yes
21849 # We have old collect2
21850 hardcode_direct_F77=unsupported
21851 # It fails to find uninstalled libraries when the uninstalled
21852 # path is not listed in the libpath. Setting hardcode_minus_L
21853 # to unsupported forces relinking
21854 hardcode_minus_L_F77=yes
21855 hardcode_libdir_flag_spec_F77='-L$libdir'
21856 hardcode_libdir_separator_F77=
21860 shared_flag='-shared'
21861 if test "$aix_use_runtimelinking" = yes; then
21862 shared_flag="$shared_flag "'${wl}-G'
21866 if test "$host_cpu" = ia64; then
21867 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21868 # chokes on -Wl,-G. The following line is correct:
21871 if test "$aix_use_runtimelinking" = yes; then
21872 shared_flag='${wl}-G'
21874 shared_flag='${wl}-bM:SRE'
21879 # It seems that -bexpall does not export symbols beginning with
21880 # underscore (_), so it is better to generate a list of symbols to export.
21881 always_export_symbols_F77=yes
21882 if test "$aix_use_runtimelinking" = yes; then
21883 # Warning - without using the other runtime loading flags (-brtl),
21884 # -berok will link without error, but may produce a broken library.
21885 allow_undefined_flag_F77='-berok'
21886 # Determine the default libpath from the value encoded in an empty executable.
21887 cat >conftest.$ac_ext <<_ACEOF
21892 rm -f conftest.$ac_objext conftest$ac_exeext
21893 if { (ac_try="$ac_link"
21894 case "(($ac_try" in
21895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21896 *) ac_try_echo=$ac_try;;
21898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21899 (eval "$ac_link") 2>conftest.er1
21901 grep -v '^ *+' conftest.er1 >conftest.err
21903 cat conftest.err >&5
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); } &&
21906 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21907 { (case "(($ac_try" in
21908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909 *) ac_try_echo=$ac_try;;
21911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21912 (eval "$ac_try") 2>&5
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); }; } &&
21916 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); }; }; then
21927 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21929 # Check for a 64-bit object if we didn't find anything.
21930 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; }
21933 echo "$as_me: failed program was:" >&5
21934 sed 's/^/| /' conftest.$ac_ext >&5
21939 rm -f core conftest.err conftest.$ac_objext \
21940 conftest$ac_exeext conftest.$ac_ext
21941 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21943 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21944 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"
21946 if test "$host_cpu" = ia64; then
21947 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21948 allow_undefined_flag_F77="-z nodefs"
21949 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"
21951 # Determine the default libpath from the value encoded in an empty executable.
21952 cat >conftest.$ac_ext <<_ACEOF
21957 rm -f conftest.$ac_objext conftest$ac_exeext
21958 if { (ac_try="$ac_link"
21959 case "(($ac_try" in
21960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21961 *) ac_try_echo=$ac_try;;
21963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21964 (eval "$ac_link") 2>conftest.er1
21966 grep -v '^ *+' conftest.er1 >conftest.err
21968 cat conftest.err >&5
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); } &&
21971 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21972 { (case "(($ac_try" in
21973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974 *) ac_try_echo=$ac_try;;
21976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21977 (eval "$ac_try") 2>&5
21979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980 (exit $ac_status); }; } &&
21981 { ac_try='test -s conftest$ac_exeext'
21982 { (case "(($ac_try" in
21983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987 (eval "$ac_try") 2>&5
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); }; }; then
21992 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21994 # Check for a 64-bit object if we didn't find anything.
21995 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; }
21998 echo "$as_me: failed program was:" >&5
21999 sed 's/^/| /' conftest.$ac_ext >&5
22004 rm -f core conftest.err conftest.$ac_objext \
22005 conftest$ac_exeext conftest.$ac_ext
22006 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22008 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22009 # Warning - without using the other run time loading flags,
22010 # -berok will link without error, but may produce a broken library.
22011 no_undefined_flag_F77=' ${wl}-bernotok'
22012 allow_undefined_flag_F77=' ${wl}-berok'
22013 # Exported symbols can be pulled into shared objects from archives
22014 whole_archive_flag_spec_F77='$convenience'
22015 archive_cmds_need_lc_F77=yes
22016 # This is similar to how AIX traditionally builds its shared libraries.
22017 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'
22023 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)'
22024 hardcode_libdir_flag_spec_F77='-L$libdir'
22025 hardcode_minus_L_F77=yes
22026 # see comment about different semantics on the GNU ld section
22031 export_dynamic_flag_spec_F77=-rdynamic
22034 cygwin* | mingw* | pw32*)
22035 # When not using gcc, we currently assume that we are using
22036 # Microsoft Visual C++.
22037 # hardcode_libdir_flag_spec is actually meaningless, as there is
22038 # no search path for DLLs.
22039 hardcode_libdir_flag_spec_F77=' '
22040 allow_undefined_flag_F77=unsupported
22041 # Tell ltmain to make .lib files, not .a files.
22043 # Tell ltmain to make .dll files, not .so files.
22045 # FIXME: Setting linknames here is a bad hack.
22046 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22047 # The linker will automatically build a .lib file if we build a DLL.
22048 old_archive_From_new_cmds_F77='true'
22049 # FIXME: Should let the user specify the lib program.
22050 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22051 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22052 enable_shared_with_static_runtimes_F77=yes
22055 darwin* | rhapsody*)
22057 rhapsody* | darwin1.[012])
22058 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22061 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22062 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22064 case ${MACOSX_DEPLOYMENT_TARGET} in
22066 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22069 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22075 archive_cmds_need_lc_F77=no
22076 hardcode_direct_F77=no
22077 hardcode_automatic_F77=yes
22078 hardcode_shlibpath_var_F77=unsupported
22079 whole_archive_flag_spec_F77=''
22080 link_all_deplibs_F77=yes
22081 if test "$GCC" = yes ; then
22082 output_verbose_link_cmd='echo'
22083 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22084 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22085 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22086 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}'
22087 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}'
22089 case $cc_basename in
22091 output_verbose_link_cmd='echo'
22092 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22093 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22094 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22095 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}'
22096 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}'
22106 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22107 hardcode_libdir_flag_spec_F77='-L$libdir'
22108 hardcode_shlibpath_var_F77=no
22115 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22116 # support. Future versions do this automatically, but an explicit c++rt0.o
22117 # does not break anything, and helps significantly (at the cost of a little
22120 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22121 hardcode_libdir_flag_spec_F77='-R$libdir'
22122 hardcode_direct_F77=yes
22123 hardcode_shlibpath_var_F77=no
22126 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22128 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22129 hardcode_direct_F77=yes
22130 hardcode_minus_L_F77=yes
22131 hardcode_shlibpath_var_F77=no
22134 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22135 freebsd* | kfreebsd*-gnu | dragonfly*)
22136 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22137 hardcode_libdir_flag_spec_F77='-R$libdir'
22138 hardcode_direct_F77=yes
22139 hardcode_shlibpath_var_F77=no
22143 if test "$GCC" = yes; then
22144 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'
22146 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'
22148 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22149 hardcode_libdir_separator_F77=:
22150 hardcode_direct_F77=yes
22152 # hardcode_minus_L: Not really in the search PATH,
22153 # but as the default location of the library.
22154 hardcode_minus_L_F77=yes
22155 export_dynamic_flag_spec_F77='${wl}-E'
22159 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22160 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22162 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22164 if test "$with_gnu_ld" = no; then
22165 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22166 hardcode_libdir_separator_F77=:
22168 hardcode_direct_F77=yes
22169 export_dynamic_flag_spec_F77='${wl}-E'
22171 # hardcode_minus_L: Not really in the search PATH,
22172 # but as the default location of the library.
22173 hardcode_minus_L_F77=yes
22178 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22181 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22184 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22187 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22193 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22196 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22199 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22203 if test "$with_gnu_ld" = no; then
22204 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22205 hardcode_libdir_separator_F77=:
22209 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22210 hardcode_direct_F77=no
22211 hardcode_shlibpath_var_F77=no
22214 hardcode_direct_F77=yes
22215 export_dynamic_flag_spec_F77='${wl}-E'
22217 # hardcode_minus_L: Not really in the search PATH,
22218 # but as the default location of the library.
22219 hardcode_minus_L_F77=yes
22225 irix5* | irix6* | nonstopux*)
22226 if test "$GCC" = yes; then
22227 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'
22229 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'
22230 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22232 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22233 hardcode_libdir_separator_F77=:
22234 link_all_deplibs_F77=yes
22238 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22239 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22241 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22243 hardcode_libdir_flag_spec_F77='-R$libdir'
22244 hardcode_direct_F77=yes
22245 hardcode_shlibpath_var_F77=no
22249 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22250 hardcode_direct_F77=yes
22251 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22252 hardcode_libdir_separator_F77=:
22253 hardcode_shlibpath_var_F77=no
22257 hardcode_direct_F77=yes
22258 hardcode_shlibpath_var_F77=no
22259 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22260 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22261 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22262 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22263 export_dynamic_flag_spec_F77='${wl}-E'
22266 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22267 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22268 hardcode_libdir_flag_spec_F77='-R$libdir'
22271 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22272 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22279 hardcode_libdir_flag_spec_F77='-L$libdir'
22280 hardcode_minus_L_F77=yes
22281 allow_undefined_flag_F77=unsupported
22282 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'
22283 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22287 if test "$GCC" = yes; then
22288 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22289 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'
22291 allow_undefined_flag_F77=' -expect_unresolved \*'
22292 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'
22294 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22295 hardcode_libdir_separator_F77=:
22298 osf4* | osf5*) # as osf3* with the addition of -msym flag
22299 if test "$GCC" = yes; then
22300 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22301 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'
22302 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22304 allow_undefined_flag_F77=' -expect_unresolved \*'
22305 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'
22306 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~
22307 $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'
22309 # Both c and cxx compiler support -rpath directly
22310 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22312 hardcode_libdir_separator_F77=:
22316 no_undefined_flag_F77=' -z text'
22317 if test "$GCC" = yes; then
22319 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22320 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22321 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22324 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22325 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22326 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22328 hardcode_libdir_flag_spec_F77='-R$libdir'
22329 hardcode_shlibpath_var_F77=no
22331 solaris2.[0-5] | solaris2.[0-5].*) ;;
22333 # The compiler driver will combine linker options so we
22334 # cannot just pass the convience library names through
22335 # without $wl, iff we do not link with $LD.
22336 # Luckily, gcc supports the same syntax we need for Sun Studio.
22337 # Supported since Solaris 2.6 (maybe 2.5.1?)
22340 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22342 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' ;;
22345 link_all_deplibs_F77=yes
22349 if test "x$host_vendor" = xsequent; then
22350 # Use $CC to link under sequent, because it throws in some extra .o
22351 # files that make .init and .fini sections work.
22352 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22354 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22356 hardcode_libdir_flag_spec_F77='-L$libdir'
22357 hardcode_direct_F77=yes
22358 hardcode_minus_L_F77=yes
22359 hardcode_shlibpath_var_F77=no
22363 case $host_vendor in
22365 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22366 hardcode_direct_F77=yes # is this really true???
22369 ## LD is ld it makes a PLAMLIB
22370 ## CC just makes a GrossModule.
22371 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22372 reload_cmds_F77='$CC -r -o $output$reload_objs'
22373 hardcode_direct_F77=no
22376 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22377 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22380 runpath_var='LD_RUN_PATH'
22381 hardcode_shlibpath_var_F77=no
22385 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22386 hardcode_shlibpath_var_F77=no
22387 export_dynamic_flag_spec_F77='-Bexport'
22391 if test -d /usr/nec; then
22392 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22393 hardcode_shlibpath_var_F77=no
22394 runpath_var=LD_RUN_PATH
22395 hardcode_runpath_var=yes
22400 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22401 no_undefined_flag_F77='${wl}-z,text'
22402 archive_cmds_need_lc_F77=no
22403 hardcode_shlibpath_var_F77=no
22404 runpath_var='LD_RUN_PATH'
22406 if test "$GCC" = yes; then
22407 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22408 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22410 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22411 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22415 sysv5* | sco3.2v5* | sco5v6*)
22416 # Note: We can NOT use -z defs as we might desire, because we do not
22417 # link with -lc, and that would cause any symbols used from libc to
22418 # always be unresolved, which means just about no library would
22419 # ever link correctly. If we're not using GNU ld we use -z text
22420 # though, which does catch some bad symbols but isn't as heavy-handed
22422 no_undefined_flag_F77='${wl}-z,text'
22423 allow_undefined_flag_F77='${wl}-z,nodefs'
22424 archive_cmds_need_lc_F77=no
22425 hardcode_shlibpath_var_F77=no
22426 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22427 hardcode_libdir_separator_F77=':'
22428 link_all_deplibs_F77=yes
22429 export_dynamic_flag_spec_F77='${wl}-Bexport'
22430 runpath_var='LD_RUN_PATH'
22432 if test "$GCC" = yes; then
22433 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22434 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22436 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22437 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22442 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22443 hardcode_libdir_flag_spec_F77='-L$libdir'
22444 hardcode_shlibpath_var_F77=no
22453 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22454 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22455 test "$ld_shlibs_F77" = no && can_build_shared=no
22458 # Do we need to explicitly link libc?
22460 case "x$archive_cmds_need_lc_F77" in
22462 # Assume -lc should be added
22463 archive_cmds_need_lc_F77=yes
22465 if test "$enable_shared" = yes && test "$GCC" = yes; then
22466 case $archive_cmds_F77 in
22468 # FIXME: we may have to deal with multi-command sequences.
22471 # Test whether the compiler implicitly links with -lc since on some
22472 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22473 # to ld, don't add -lc before -lgcc.
22474 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22475 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22477 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22480 (eval $ac_compile) 2>&5
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); } 2>conftest.err; then
22486 libobjs=conftest.$ac_objext
22488 wl=$lt_prog_compiler_wl_F77
22489 pic_flag=$lt_prog_compiler_pic_F77
22495 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22496 allow_undefined_flag_F77=
22497 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22498 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); }
22503 archive_cmds_need_lc_F77=no
22505 archive_cmds_need_lc_F77=yes
22507 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22509 cat conftest.err 1>&5
22512 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22513 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22520 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22521 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22522 library_names_spec=
22523 libname_spec='lib$name'
22527 postuninstall_cmds=
22531 shlibpath_overrides_runpath=unknown
22533 dynamic_linker="$host_os ld.so"
22534 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22535 if test "$GCC" = yes; then
22536 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22537 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22538 # if the path contains ";" then we assume it to be the separator
22539 # otherwise default to the standard path separator (i.e. ":") - it is
22540 # assumed that no part of a normal pathname contains ";" but that should
22541 # okay in the real world where ";" in dirpaths is itself problematic.
22542 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22544 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22547 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22549 need_lib_prefix=unknown
22550 hardcode_into_libs=no
22552 # when you set need_version to no, make sure it does not cause -set_version
22553 # flags to be left without arguments
22554 need_version=unknown
22559 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22560 shlibpath_var=LIBPATH
22562 # AIX 3 has no versioning support, so we append a major version to the name.
22563 soname_spec='${libname}${release}${shared_ext}$major'
22570 hardcode_into_libs=yes
22571 if test "$host_cpu" = ia64; then
22572 # AIX 5 supports IA64
22573 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22574 shlibpath_var=LD_LIBRARY_PATH
22576 # With GCC up to 2.95.x, collect2 would create an import file
22577 # for dependence libraries. The import file would start with
22578 # the line `#! .'. This would cause the generated library to
22579 # depend on `.', always an invalid library. This was fixed in
22580 # development snapshots of GCC prior to 3.0.
22582 aix4 | aix4.[01] | aix4.[01].*)
22583 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22585 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22588 can_build_shared=no
22592 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22593 # soname into executable. Probably we can add versioning support to
22594 # collect2, so additional links can be useful in future.
22595 if test "$aix_use_runtimelinking" = yes; then
22596 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22597 # instead of lib<name>.a to let people know that these are not
22598 # typical AIX shared libraries.
22599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22601 # We preserve .a as extension for shared libraries through AIX4.2
22602 # and later when we are not doing run time linking.
22603 library_names_spec='${libname}${release}.a $libname.a'
22604 soname_spec='${libname}${release}${shared_ext}$major'
22606 shlibpath_var=LIBPATH
22611 library_names_spec='$libname.ixlibrary $libname.a'
22612 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22613 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'
22617 library_names_spec='${libname}${shared_ext}'
22618 dynamic_linker="$host_os ld.so"
22619 shlibpath_var=LIBRARY_PATH
22625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22626 soname_spec='${libname}${release}${shared_ext}$major'
22627 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22628 shlibpath_var=LD_LIBRARY_PATH
22629 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22630 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22631 # the default ld.so.conf also contains /usr/contrib/lib and
22632 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22633 # libtool to hard-code these into programs
22636 cygwin* | mingw* | pw32*)
22637 version_type=windows
22642 case $GCC,$host_os in
22643 yes,cygwin* | yes,mingw* | yes,pw32*)
22644 library_names_spec='$libname.dll.a'
22645 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22646 postinstall_cmds='base_file=`basename \${file}`~
22647 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22648 dldir=$destdir/`dirname \$dlpath`~
22649 test -d \$dldir || mkdir -p \$dldir~
22650 $install_prog $dir/$dlname \$dldir/$dlname~
22651 chmod a+x \$dldir/$dlname'
22652 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22653 dlpath=$dir/\$dldll~
22655 shlibpath_overrides_runpath=yes
22659 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22660 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22661 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22664 # MinGW DLLs use traditional 'lib' prefix
22665 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22666 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22667 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22668 # It is most probably a Windows format PATH printed by
22669 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22670 # path with ; separators, and with drive letters. We can handle the
22671 # drive letters (cygwin fileutils understands them), so leave them,
22672 # especially as we might pass files found there to a mingw objdump,
22673 # which wouldn't understand a cygwinified path. Ahh.
22674 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22676 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22680 # pw32 DLLs use 'pw' prefix rather than 'lib'
22681 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22687 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22690 dynamic_linker='Win32 ld.exe'
22691 # FIXME: first we should search . and the directory the executable is in
22695 darwin* | rhapsody*)
22696 dynamic_linker="$host_os dyld"
22697 version_type=darwin
22700 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22701 soname_spec='${libname}${release}${major}$shared_ext'
22702 shlibpath_overrides_runpath=yes
22703 shlibpath_var=DYLD_LIBRARY_PATH
22704 shrext_cmds='.dylib'
22705 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22706 if test "$GCC" = yes; then
22707 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"`
22709 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22711 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22719 soname_spec='${libname}${release}${shared_ext}$major'
22720 shlibpath_var=LD_LIBRARY_PATH
22731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22732 soname_spec='${libname}${release}${shared_ext}$major'
22733 shlibpath_var=LD_LIBRARY_PATH
22734 shlibpath_overrides_runpath=no
22735 hardcode_into_libs=yes
22736 dynamic_linker='GNU ld.so'
22739 freebsd* | dragonfly*)
22740 # DragonFly does not have aout. When/if they implement a new
22741 # versioning mechanism, adjust this.
22742 if test -x /usr/bin/objformat; then
22743 objformat=`/usr/bin/objformat`
22746 freebsd[123]*) objformat=aout ;;
22747 *) objformat=elf ;;
22750 version_type=freebsd-$objformat
22751 case $version_type in
22753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22758 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22762 shlibpath_var=LD_LIBRARY_PATH
22765 shlibpath_overrides_runpath=yes
22767 freebsd3.[01]* | freebsdelf3.[01]*)
22768 shlibpath_overrides_runpath=yes
22769 hardcode_into_libs=yes
22771 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22772 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22773 shlibpath_overrides_runpath=no
22774 hardcode_into_libs=yes
22776 freebsd*) # from 4.6 on
22777 shlibpath_overrides_runpath=yes
22778 hardcode_into_libs=yes
22787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22788 soname_spec='${libname}${release}${shared_ext}$major'
22789 shlibpath_var=LD_LIBRARY_PATH
22790 hardcode_into_libs=yes
22793 hpux9* | hpux10* | hpux11*)
22794 # Give a soname corresponding to the major version so that dld.sl refuses to
22795 # link against other versions.
22802 hardcode_into_libs=yes
22803 dynamic_linker="$host_os dld.so"
22804 shlibpath_var=LD_LIBRARY_PATH
22805 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22807 soname_spec='${libname}${release}${shared_ext}$major'
22808 if test "X$HPUX_IA64_MODE" = X32; then
22809 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22811 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22813 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22817 hardcode_into_libs=yes
22818 dynamic_linker="$host_os dld.sl"
22819 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22820 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22822 soname_spec='${libname}${release}${shared_ext}$major'
22823 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22828 dynamic_linker="$host_os dld.sl"
22829 shlibpath_var=SHLIB_PATH
22830 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22832 soname_spec='${libname}${release}${shared_ext}$major'
22835 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22836 postinstall_cmds='chmod 555 $lib'
22843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22844 soname_spec='${libname}${release}${shared_ext}$major'
22845 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22846 shlibpath_var=LD_LIBRARY_PATH
22847 shlibpath_overrides_runpath=no
22848 hardcode_into_libs=yes
22851 irix5* | irix6* | nonstopux*)
22853 nonstopux*) version_type=nonstopux ;;
22855 if test "$lt_cv_prog_gnu_ld" = yes; then
22863 soname_spec='${libname}${release}${shared_ext}$major'
22864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22866 irix5* | nonstopux*)
22867 libsuff= shlibsuff=
22870 case $LD in # libtool.m4 will add one of these switches to LD
22871 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22872 libsuff= shlibsuff= libmagic=32-bit;;
22873 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22874 libsuff=32 shlibsuff=N32 libmagic=N32;;
22875 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22876 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22877 *) libsuff= shlibsuff= libmagic=never-match;;
22881 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22882 shlibpath_overrides_runpath=no
22883 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22884 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22885 hardcode_into_libs=yes
22888 # No shared lib support for Linux oldld, aout, or coff.
22889 linux*oldld* | linux*aout* | linux*coff*)
22893 # This must be Linux ELF.
22898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22899 soname_spec='${libname}${release}${shared_ext}$major'
22900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22901 shlibpath_var=LD_LIBRARY_PATH
22902 shlibpath_overrides_runpath=no
22903 # This implies no fast_install, which is unacceptable.
22904 # Some rework will be needed to allow for fast_install
22905 # before this can be enabled.
22906 hardcode_into_libs=yes
22908 # Append ld.so.conf contents to the search path
22909 if test -f /etc/ld.so.conf; then
22910 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' ' '`
22911 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22914 # We used to test for /lib/ld.so.1 and disable shared libraries on
22915 # powerpc, because MkLinux only supported shared libraries with the
22916 # GNU dynamic linker. Since this was broken with cross compilers,
22917 # most powerpc-linux boxes support dynamic linking these days and
22918 # people can always --disable-shared, the test was removed, and we
22919 # assume the GNU/Linux dynamic linker is in use.
22920 dynamic_linker='GNU/Linux ld.so'
22927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22928 soname_spec='${libname}${release}${shared_ext}$major'
22929 shlibpath_var=LD_LIBRARY_PATH
22930 shlibpath_overrides_runpath=no
22931 hardcode_into_libs=yes
22932 dynamic_linker='GNU ld.so'
22939 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22942 dynamic_linker='NetBSD (a.out) ld.so'
22944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22945 soname_spec='${libname}${release}${shared_ext}$major'
22946 dynamic_linker='NetBSD ld.elf_so'
22948 shlibpath_var=LD_LIBRARY_PATH
22949 shlibpath_overrides_runpath=yes
22950 hardcode_into_libs=yes
22955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22956 shlibpath_var=LD_LIBRARY_PATH
22957 shlibpath_overrides_runpath=yes
22964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22965 soname_spec='${libname}${release}${shared_ext}$major'
22966 shlibpath_var=LD_LIBRARY_PATH
22967 shlibpath_overrides_runpath=yes
22972 sys_lib_dlsearch_path_spec="/usr/lib"
22974 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22976 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22977 *) need_version=no ;;
22979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22981 shlibpath_var=LD_LIBRARY_PATH
22982 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22984 openbsd2.[89] | openbsd2.[89].*)
22985 shlibpath_overrides_runpath=no
22988 shlibpath_overrides_runpath=yes
22992 shlibpath_overrides_runpath=yes
22997 libname_spec='$name'
23000 library_names_spec='$libname${shared_ext} $libname.a'
23001 dynamic_linker='OS/2 ld.exe'
23002 shlibpath_var=LIBPATH
23005 osf3* | osf4* | osf5*)
23009 soname_spec='${libname}${release}${shared_ext}$major'
23010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23011 shlibpath_var=LD_LIBRARY_PATH
23012 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23013 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23021 soname_spec='${libname}${release}${shared_ext}$major'
23022 shlibpath_var=LD_LIBRARY_PATH
23023 shlibpath_overrides_runpath=yes
23024 hardcode_into_libs=yes
23025 # ldd complains unless libraries are executable
23026 postinstall_cmds='chmod +x $lib'
23031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23032 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23033 shlibpath_var=LD_LIBRARY_PATH
23034 shlibpath_overrides_runpath=yes
23035 if test "$with_gnu_ld" = yes; then
23043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23044 soname_spec='${libname}${release}${shared_ext}$major'
23045 shlibpath_var=LD_LIBRARY_PATH
23046 case $host_vendor in
23048 shlibpath_overrides_runpath=no
23050 export_dynamic_flag_spec='${wl}-Blargedynsym'
23051 runpath_var=LD_RUN_PATH
23059 shlibpath_overrides_runpath=no
23060 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23066 if test -d /usr/nec ;then
23068 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23069 soname_spec='$libname${shared_ext}.$major'
23070 shlibpath_var=LD_LIBRARY_PATH
23074 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23075 version_type=freebsd-elf
23078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23079 soname_spec='${libname}${release}${shared_ext}$major'
23080 shlibpath_var=LD_LIBRARY_PATH
23081 hardcode_into_libs=yes
23082 if test "$with_gnu_ld" = yes; then
23083 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23084 shlibpath_overrides_runpath=no
23086 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23087 shlibpath_overrides_runpath=yes
23090 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23094 sys_lib_dlsearch_path_spec='/usr/lib'
23099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23100 soname_spec='${libname}${release}${shared_ext}$major'
23101 shlibpath_var=LD_LIBRARY_PATH
23108 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23109 echo "${ECHO_T}$dynamic_linker" >&6; }
23110 test "$dynamic_linker" = no && can_build_shared=no
23112 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23113 if test "$GCC" = yes; then
23114 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23117 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23118 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23119 hardcode_action_F77=
23120 if test -n "$hardcode_libdir_flag_spec_F77" || \
23121 test -n "$runpath_var_F77" || \
23122 test "X$hardcode_automatic_F77" = "Xyes" ; then
23124 # We can hardcode non-existant directories.
23125 if test "$hardcode_direct_F77" != no &&
23126 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23127 # have to relink, otherwise we might link with an installed library
23128 # when we should be linking with a yet-to-be-installed one
23129 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23130 test "$hardcode_minus_L_F77" != no; then
23131 # Linking always hardcodes the temporary library directory.
23132 hardcode_action_F77=relink
23134 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23135 hardcode_action_F77=immediate
23138 # We cannot hardcode anything, or else we can only hardcode existing
23140 hardcode_action_F77=unsupported
23142 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23143 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23145 if test "$hardcode_action_F77" = relink; then
23146 # Fast installation is not supported
23147 enable_fast_install=no
23148 elif test "$shlibpath_overrides_runpath" = yes ||
23149 test "$enable_shared" = no; then
23150 # Fast installation is not necessary
23151 enable_fast_install=needless
23155 # The else clause should only fire when bootstrapping the
23156 # libtool distribution, otherwise you forgot to ship ltmain.sh
23157 # with your package, and you will get complaints that there are
23158 # no rules to generate ltmain.sh.
23159 if test -f "$ltmain"; then
23160 # See if we are running on zsh, and set the options which allow our commands through
23161 # without removal of \ escapes.
23162 if test -n "${ZSH_VERSION+set}" ; then
23163 setopt NO_GLOB_SUBST
23165 # Now quote all the things that may contain metacharacters while being
23166 # careful not to overquote the AC_SUBSTed values. We take copies of the
23167 # variables and quote the copies for generation of the libtool script.
23168 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23170 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23171 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23172 deplibs_check_method reload_flag reload_cmds need_locks \
23173 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23174 lt_cv_sys_global_symbol_to_c_name_address \
23175 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23176 old_postinstall_cmds old_postuninstall_cmds \
23180 lt_prog_compiler_wl_F77 \
23181 lt_prog_compiler_pic_F77 \
23182 lt_prog_compiler_static_F77 \
23183 lt_prog_compiler_no_builtin_flag_F77 \
23184 export_dynamic_flag_spec_F77 \
23185 thread_safe_flag_spec_F77 \
23186 whole_archive_flag_spec_F77 \
23187 enable_shared_with_static_runtimes_F77 \
23188 old_archive_cmds_F77 \
23189 old_archive_from_new_cmds_F77 \
23190 predep_objects_F77 \
23191 postdep_objects_F77 \
23194 compiler_lib_search_path_F77 \
23196 archive_expsym_cmds_F77 \
23197 postinstall_cmds_F77 \
23198 postuninstall_cmds_F77 \
23199 old_archive_from_expsyms_cmds_F77 \
23200 allow_undefined_flag_F77 \
23201 no_undefined_flag_F77 \
23202 export_symbols_cmds_F77 \
23203 hardcode_libdir_flag_spec_F77 \
23204 hardcode_libdir_flag_spec_ld_F77 \
23205 hardcode_libdir_separator_F77 \
23206 hardcode_automatic_F77 \
23208 module_expsym_cmds_F77 \
23209 lt_cv_prog_compiler_c_o_F77 \
23210 exclude_expsyms_F77 \
23211 include_expsyms_F77; do
23214 old_archive_cmds_F77 | \
23215 old_archive_from_new_cmds_F77 | \
23216 archive_cmds_F77 | \
23217 archive_expsym_cmds_F77 | \
23218 module_cmds_F77 | \
23219 module_expsym_cmds_F77 | \
23220 old_archive_from_expsyms_cmds_F77 | \
23221 export_symbols_cmds_F77 | \
23222 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23223 postinstall_cmds | postuninstall_cmds | \
23224 old_postinstall_cmds | old_postuninstall_cmds | \
23225 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23226 # Double-quote double-evaled strings.
23227 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23230 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23236 *'\$0 --fallback-echo"')
23237 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23243 cat <<__EOF__ >> "$cfgfile"
23244 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23246 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23248 # Shell to use when invoking shell scripts.
23251 # Whether or not to build shared libraries.
23252 build_libtool_libs=$enable_shared
23254 # Whether or not to build static libraries.
23255 build_old_libs=$enable_static
23257 # Whether or not to add -lc for building shared libraries.
23258 build_libtool_need_lc=$archive_cmds_need_lc_F77
23260 # Whether or not to disallow shared libs when runtime libs are static
23261 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23263 # Whether or not to optimize for fast installation.
23264 fast_install=$enable_fast_install
23267 host_alias=$host_alias
23271 # The build system.
23272 build_alias=$build_alias
23276 # An echo program that does not interpret backslashes.
23281 AR_FLAGS=$lt_AR_FLAGS
23286 # LTCC compiler flags.
23287 LTCFLAGS=$lt_LTCFLAGS
23289 # A language-specific compiler.
23290 CC=$lt_compiler_F77
23292 # Is the compiler the GNU C compiler?
23298 # The linker used to build libraries.
23301 # Whether we need hard or soft links.
23304 # A BSD-compatible nm program.
23307 # A symbol stripping program
23310 # Used to examine libraries when file_magic_cmd begins "file"
23311 MAGIC_CMD=$MAGIC_CMD
23313 # Used on cygwin: DLL creation program.
23316 # Used on cygwin: object dumper.
23319 # Used on cygwin: assembler.
23322 # The name of the directory that contains temporary libtool files.
23325 # How to create reloadable object files.
23326 reload_flag=$lt_reload_flag
23327 reload_cmds=$lt_reload_cmds
23329 # How to pass a linker flag through the compiler.
23330 wl=$lt_lt_prog_compiler_wl_F77
23332 # Object file suffix (normally "o").
23333 objext="$ac_objext"
23335 # Old archive suffix (normally "a").
23338 # Shared library suffix (normally ".so").
23339 shrext_cmds='$shrext_cmds'
23341 # Executable file suffix (normally "").
23344 # Additional compiler flags for building library objects.
23345 pic_flag=$lt_lt_prog_compiler_pic_F77
23348 # What is the maximum length of a command?
23349 max_cmd_len=$lt_cv_sys_max_cmd_len
23351 # Does compiler simultaneously support -c and -o options?
23352 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23354 # Must we lock files when doing compilation?
23355 need_locks=$lt_need_locks
23357 # Do we need the lib prefix for modules?
23358 need_lib_prefix=$need_lib_prefix
23360 # Do we need a version for libraries?
23361 need_version=$need_version
23363 # Whether dlopen is supported.
23364 dlopen_support=$enable_dlopen
23366 # Whether dlopen of programs is supported.
23367 dlopen_self=$enable_dlopen_self
23369 # Whether dlopen of statically linked programs is supported.
23370 dlopen_self_static=$enable_dlopen_self_static
23372 # Compiler flag to prevent dynamic linking.
23373 link_static_flag=$lt_lt_prog_compiler_static_F77
23375 # Compiler flag to turn off builtin functions.
23376 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23378 # Compiler flag to allow reflexive dlopens.
23379 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23381 # Compiler flag to generate shared objects directly from archives.
23382 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23384 # Compiler flag to generate thread-safe objects.
23385 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23387 # Library versioning type.
23388 version_type=$version_type
23390 # Format of library name prefix.
23391 libname_spec=$lt_libname_spec
23393 # List of archive names. First name is the real one, the rest are links.
23394 # The last name is the one that the linker finds with -lNAME.
23395 library_names_spec=$lt_library_names_spec
23397 # The coded name of the library, if different from the real name.
23398 soname_spec=$lt_soname_spec
23400 # Commands used to build and install an old-style archive.
23402 old_archive_cmds=$lt_old_archive_cmds_F77
23403 old_postinstall_cmds=$lt_old_postinstall_cmds
23404 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23406 # Create an old-style archive from a shared archive.
23407 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23409 # Create a temporary old-style archive to link instead of a shared archive.
23410 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23412 # Commands used to build and install a shared archive.
23413 archive_cmds=$lt_archive_cmds_F77
23414 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23415 postinstall_cmds=$lt_postinstall_cmds
23416 postuninstall_cmds=$lt_postuninstall_cmds
23418 # Commands used to build a loadable module (assumed same as above if empty)
23419 module_cmds=$lt_module_cmds_F77
23420 module_expsym_cmds=$lt_module_expsym_cmds_F77
23422 # Commands to strip libraries.
23423 old_striplib=$lt_old_striplib
23424 striplib=$lt_striplib
23426 # Dependencies to place before the objects being linked to create a
23428 predep_objects=$lt_predep_objects_F77
23430 # Dependencies to place after the objects being linked to create a
23432 postdep_objects=$lt_postdep_objects_F77
23434 # Dependencies to place before the objects being linked to create a
23436 predeps=$lt_predeps_F77
23438 # Dependencies to place after the objects being linked to create a
23440 postdeps=$lt_postdeps_F77
23442 # The library search path used internally by the compiler when linking
23443 # a shared library.
23444 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23446 # Method to check whether dependent libraries are shared objects.
23447 deplibs_check_method=$lt_deplibs_check_method
23449 # Command to use when deplibs_check_method == file_magic.
23450 file_magic_cmd=$lt_file_magic_cmd
23452 # Flag that allows shared libraries with undefined symbols to be built.
23453 allow_undefined_flag=$lt_allow_undefined_flag_F77
23455 # Flag that forces no undefined symbols.
23456 no_undefined_flag=$lt_no_undefined_flag_F77
23458 # Commands used to finish a libtool library installation in a directory.
23459 finish_cmds=$lt_finish_cmds
23461 # Same as above, but a single script fragment to be evaled but not shown.
23462 finish_eval=$lt_finish_eval
23464 # Take the output of nm and produce a listing of raw symbols and C names.
23465 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23467 # Transform the output of nm in a proper C declaration
23468 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23470 # Transform the output of nm in a C name address pair
23471 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23473 # This is the shared library runtime path variable.
23474 runpath_var=$runpath_var
23476 # This is the shared library path variable.
23477 shlibpath_var=$shlibpath_var
23479 # Is shlibpath searched before the hard-coded library search path?
23480 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23482 # How to hardcode a shared library path into an executable.
23483 hardcode_action=$hardcode_action_F77
23485 # Whether we should hardcode library paths into libraries.
23486 hardcode_into_libs=$hardcode_into_libs
23488 # Flag to hardcode \$libdir into a binary during linking.
23489 # This must work even if \$libdir does not exist.
23490 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23492 # If ld is used when linking, flag to hardcode \$libdir into
23493 # a binary during linking. This must work even if \$libdir does
23495 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23497 # Whether we need a single -rpath flag with a separated argument.
23498 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23500 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23501 # resulting binary.
23502 hardcode_direct=$hardcode_direct_F77
23504 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23505 # resulting binary.
23506 hardcode_minus_L=$hardcode_minus_L_F77
23508 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23509 # the resulting binary.
23510 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23512 # Set to yes if building a shared library automatically hardcodes DIR into the library
23513 # and all subsequent libraries and executables linked against it.
23514 hardcode_automatic=$hardcode_automatic_F77
23516 # Variables whose values should be saved in libtool wrapper scripts and
23517 # restored at relink time.
23518 variables_saved_for_relink="$variables_saved_for_relink"
23520 # Whether libtool must link a program against all its dependency libraries.
23521 link_all_deplibs=$link_all_deplibs_F77
23523 # Compile-time system search path for libraries
23524 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23526 # Run-time system search path for libraries
23527 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23529 # Fix the shell variable \$srcfile for the compiler.
23530 fix_srcfile_path="$fix_srcfile_path_F77"
23532 # Set to yes if exported symbols are required.
23533 always_export_symbols=$always_export_symbols_F77
23535 # The commands to list exported symbols.
23536 export_symbols_cmds=$lt_export_symbols_cmds_F77
23538 # The commands to extract the exported symbol list from a shared archive.
23539 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23541 # Symbols that should not be listed in the preloaded symbols.
23542 exclude_expsyms=$lt_exclude_expsyms_F77
23544 # Symbols that must always be exported.
23545 include_expsyms=$lt_include_expsyms_F77
23547 # ### END LIBTOOL TAG CONFIG: $tagname
23553 # If there is no Makefile yet, we rely on a make rule to execute
23554 # `config.status --recheck' to rerun these tests and create the
23555 # libtool script then.
23556 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23557 if test -f "$ltmain_in"; then
23558 test -f Makefile && make "$ltmain"
23564 ac_cpp='$CPP $CPPFLAGS'
23565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23577 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23579 ac_cpp='$CPP $CPPFLAGS'
23580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23585 # Source file extension for Java test sources.
23588 # Object file extension for compiled Java test sources.
23592 # Code to be used in simple compile tests
23593 lt_simple_compile_test_code="class foo {}\n"
23595 # Code to be used in simple link tests
23596 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23598 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23600 # If no C compiler was specified, use CC.
23603 # If no C compiler flags were specified, use CFLAGS.
23604 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23606 # Allow CC to be a program name with arguments.
23610 # save warnings/boilerplate of simple test code
23611 ac_outfile=conftest.$ac_objext
23612 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23613 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23614 _lt_compiler_boilerplate=`cat conftest.err`
23617 ac_outfile=conftest.$ac_objext
23618 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23619 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23620 _lt_linker_boilerplate=`cat conftest.err`
23624 # Allow CC to be a program name with arguments.
23629 for cc_temp in $compiler""; do
23631 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23632 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23637 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23640 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23641 archive_cmds_need_lc_GCJ=no
23643 old_archive_cmds_GCJ=$old_archive_cmds
23646 lt_prog_compiler_no_builtin_flag_GCJ=
23648 if test "$GCC" = yes; then
23649 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23652 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23653 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23654 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23655 echo $ECHO_N "(cached) $ECHO_C" >&6
23657 lt_cv_prog_compiler_rtti_exceptions=no
23658 ac_outfile=conftest.$ac_objext
23659 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23660 lt_compiler_flag="-fno-rtti -fno-exceptions"
23661 # Insert the option either (1) after the last *FLAGS variable, or
23662 # (2) before a word containing "conftest.", or (3) at the end.
23663 # Note that $ac_compile itself does not contain backslashes and begins
23664 # with a dollar sign (not a hyphen), so the echo should work correctly.
23665 # The option is referenced via a variable to avoid confusing sed.
23666 lt_compile=`echo "$ac_compile" | $SED \
23667 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23669 -e 's:$: $lt_compiler_flag:'`
23670 (eval echo "\"\$as_me:23670: $lt_compile\"" >&5)
23671 (eval "$lt_compile" 2>conftest.err)
23673 cat conftest.err >&5
23674 echo "$as_me:23674: \$? = $ac_status" >&5
23675 if (exit $ac_status) && test -s "$ac_outfile"; then
23676 # The compiler can only warn and ignore the option if not recognized
23677 # So say no if there are warnings other than the usual output.
23678 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23679 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23680 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23681 lt_cv_prog_compiler_rtti_exceptions=yes
23687 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23688 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23690 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23691 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23698 lt_prog_compiler_wl_GCJ=
23699 lt_prog_compiler_pic_GCJ=
23700 lt_prog_compiler_static_GCJ=
23702 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23703 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23705 if test "$GCC" = yes; then
23706 lt_prog_compiler_wl_GCJ='-Wl,'
23707 lt_prog_compiler_static_GCJ='-static'
23711 # All AIX code is PIC.
23712 if test "$host_cpu" = ia64; then
23713 # AIX 5 now supports IA64 processor
23714 lt_prog_compiler_static_GCJ='-Bstatic'
23719 # FIXME: we need at least 68020 code to build shared libraries, but
23720 # adding the `-m68020' flag to GCC prevents building anything better,
23722 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23725 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23726 # PIC is the default for these OSes.
23729 mingw* | pw32* | os2*)
23730 # This hack is so that the source file can tell whether it is being
23731 # built for inclusion in a dll (and should export symbols for example).
23732 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23735 darwin* | rhapsody*)
23736 # PIC is the default on this platform
23737 # Common symbols not allowed in MH_DYLIB files
23738 lt_prog_compiler_pic_GCJ='-fno-common'
23742 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23743 # Instead, we relocate shared libraries at runtime.
23747 # Just because we use GCC doesn't mean we suddenly get shared libraries
23748 # on systems that don't support them.
23749 lt_prog_compiler_can_build_shared_GCJ=no
23754 if test -d /usr/nec; then
23755 lt_prog_compiler_pic_GCJ=-Kconform_pic
23760 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23761 # not for PA HP-UX.
23767 lt_prog_compiler_pic_GCJ='-fPIC'
23773 lt_prog_compiler_pic_GCJ='-fPIC'
23777 # PORTME Check for flag to pass linker flags through the system compiler.
23780 lt_prog_compiler_wl_GCJ='-Wl,'
23781 if test "$host_cpu" = ia64; then
23782 # AIX 5 now supports IA64 processor
23783 lt_prog_compiler_static_GCJ='-Bstatic'
23785 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23789 # PIC is the default on this platform
23790 # Common symbols not allowed in MH_DYLIB files
23791 case $cc_basename in
23793 lt_prog_compiler_pic_GCJ='-qnocommon'
23794 lt_prog_compiler_wl_GCJ='-Wl,'
23799 mingw* | pw32* | os2*)
23800 # This hack is so that the source file can tell whether it is being
23801 # built for inclusion in a dll (and should export symbols for example).
23802 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23805 hpux9* | hpux10* | hpux11*)
23806 lt_prog_compiler_wl_GCJ='-Wl,'
23807 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23808 # not for PA HP-UX.
23814 lt_prog_compiler_pic_GCJ='+Z'
23817 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23818 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23821 irix5* | irix6* | nonstopux*)
23822 lt_prog_compiler_wl_GCJ='-Wl,'
23823 # PIC (with -KPIC) is the default.
23824 lt_prog_compiler_static_GCJ='-non_shared'
23828 lt_prog_compiler_pic_GCJ='-KPIC'
23829 lt_prog_compiler_static_GCJ='-Bstatic'
23833 case $cc_basename in
23835 lt_prog_compiler_wl_GCJ='-Wl,'
23836 lt_prog_compiler_pic_GCJ='-KPIC'
23837 lt_prog_compiler_static_GCJ='-static'
23839 pgcc* | pgf77* | pgf90* | pgf95*)
23840 # Portland Group compilers (*not* the Pentium gcc compiler,
23841 # which looks to be a dead project)
23842 lt_prog_compiler_wl_GCJ='-Wl,'
23843 lt_prog_compiler_pic_GCJ='-fpic'
23844 lt_prog_compiler_static_GCJ='-Bstatic'
23847 lt_prog_compiler_wl_GCJ='-Wl,'
23848 # All Alpha code is PIC.
23849 lt_prog_compiler_static_GCJ='-non_shared'
23854 osf3* | osf4* | osf5*)
23855 lt_prog_compiler_wl_GCJ='-Wl,'
23856 # All OSF/1 code is PIC.
23857 lt_prog_compiler_static_GCJ='-non_shared'
23861 lt_prog_compiler_pic_GCJ='-KPIC'
23862 lt_prog_compiler_static_GCJ='-Bstatic'
23863 case $cc_basename in
23864 f77* | f90* | f95*)
23865 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23867 lt_prog_compiler_wl_GCJ='-Wl,';;
23872 lt_prog_compiler_wl_GCJ='-Qoption ld '
23873 lt_prog_compiler_pic_GCJ='-PIC'
23874 lt_prog_compiler_static_GCJ='-Bstatic'
23877 sysv4 | sysv4.2uw2* | sysv4.3*)
23878 lt_prog_compiler_wl_GCJ='-Wl,'
23879 lt_prog_compiler_pic_GCJ='-KPIC'
23880 lt_prog_compiler_static_GCJ='-Bstatic'
23884 if test -d /usr/nec ;then
23885 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23886 lt_prog_compiler_static_GCJ='-Bstatic'
23890 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23891 lt_prog_compiler_wl_GCJ='-Wl,'
23892 lt_prog_compiler_pic_GCJ='-KPIC'
23893 lt_prog_compiler_static_GCJ='-Bstatic'
23897 lt_prog_compiler_wl_GCJ='-Wl,'
23898 lt_prog_compiler_can_build_shared_GCJ=no
23902 lt_prog_compiler_pic_GCJ='-pic'
23903 lt_prog_compiler_static_GCJ='-Bstatic'
23907 lt_prog_compiler_can_build_shared_GCJ=no
23912 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23913 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23916 # Check to make sure the PIC flag actually works.
23918 if test -n "$lt_prog_compiler_pic_GCJ"; then
23920 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23921 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23922 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23923 echo $ECHO_N "(cached) $ECHO_C" >&6
23925 lt_prog_compiler_pic_works_GCJ=no
23926 ac_outfile=conftest.$ac_objext
23927 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23928 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23929 # Insert the option either (1) after the last *FLAGS variable, or
23930 # (2) before a word containing "conftest.", or (3) at the end.
23931 # Note that $ac_compile itself does not contain backslashes and begins
23932 # with a dollar sign (not a hyphen), so the echo should work correctly.
23933 # The option is referenced via a variable to avoid confusing sed.
23934 lt_compile=`echo "$ac_compile" | $SED \
23935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23937 -e 's:$: $lt_compiler_flag:'`
23938 (eval echo "\"\$as_me:23938: $lt_compile\"" >&5)
23939 (eval "$lt_compile" 2>conftest.err)
23941 cat conftest.err >&5
23942 echo "$as_me:23942: \$? = $ac_status" >&5
23943 if (exit $ac_status) && test -s "$ac_outfile"; then
23944 # The compiler can only warn and ignore the option if not recognized
23945 # So say no if there are warnings other than the usual output.
23946 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23947 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23948 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23949 lt_prog_compiler_pic_works_GCJ=yes
23955 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23956 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23958 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23959 case $lt_prog_compiler_pic_GCJ in
23961 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23964 lt_prog_compiler_pic_GCJ=
23965 lt_prog_compiler_can_build_shared_GCJ=no
23970 # For platforms which do not support PIC, -DPIC is meaningless:
23972 lt_prog_compiler_pic_GCJ=
23975 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23980 # Check to make sure the static flag actually works.
23982 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23983 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23984 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23985 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23986 echo $ECHO_N "(cached) $ECHO_C" >&6
23988 lt_prog_compiler_static_works_GCJ=no
23989 save_LDFLAGS="$LDFLAGS"
23990 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23991 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23992 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23993 # The linker can only warn and ignore the option if not recognized
23994 # So say no if there are warnings
23995 if test -s conftest.err; then
23996 # Append any errors to the config.log.
23997 cat conftest.err 1>&5
23998 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24000 if diff conftest.exp conftest.er2 >/dev/null; then
24001 lt_prog_compiler_static_works_GCJ=yes
24004 lt_prog_compiler_static_works_GCJ=yes
24008 LDFLAGS="$save_LDFLAGS"
24011 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24012 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24014 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24017 lt_prog_compiler_static_GCJ=
24021 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24022 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24023 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24024 echo $ECHO_N "(cached) $ECHO_C" >&6
24026 lt_cv_prog_compiler_c_o_GCJ=no
24027 $rm -r conftest 2>/dev/null
24031 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24033 lt_compiler_flag="-o out/conftest2.$ac_objext"
24034 # Insert the option either (1) after the last *FLAGS variable, or
24035 # (2) before a word containing "conftest.", or (3) at the end.
24036 # Note that $ac_compile itself does not contain backslashes and begins
24037 # with a dollar sign (not a hyphen), so the echo should work correctly.
24038 lt_compile=`echo "$ac_compile" | $SED \
24039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24041 -e 's:$: $lt_compiler_flag:'`
24042 (eval echo "\"\$as_me:24042: $lt_compile\"" >&5)
24043 (eval "$lt_compile" 2>out/conftest.err)
24045 cat out/conftest.err >&5
24046 echo "$as_me:24046: \$? = $ac_status" >&5
24047 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24049 # The compiler can only warn and ignore the option if not recognized
24050 # So say no if there are warnings
24051 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24053 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24054 lt_cv_prog_compiler_c_o_GCJ=yes
24059 # SGI C++ compiler will create directory out/ii_files/ for
24060 # template instantiation
24061 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24062 $rm out/* && rmdir out
24068 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24069 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24072 hard_links="nottested"
24073 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24074 # do not overwrite the value of need_locks provided by the user
24075 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24076 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24079 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24081 ln conftest.a conftest.b 2>&5 || hard_links=no
24082 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24083 { echo "$as_me:$LINENO: result: $hard_links" >&5
24084 echo "${ECHO_T}$hard_links" >&6; }
24085 if test "$hard_links" = no; then
24086 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24087 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24094 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24095 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24098 allow_undefined_flag_GCJ=
24099 enable_shared_with_static_runtimes_GCJ=no
24101 archive_expsym_cmds_GCJ=
24102 old_archive_From_new_cmds_GCJ=
24103 old_archive_from_expsyms_cmds_GCJ=
24104 export_dynamic_flag_spec_GCJ=
24105 whole_archive_flag_spec_GCJ=
24106 thread_safe_flag_spec_GCJ=
24107 hardcode_libdir_flag_spec_GCJ=
24108 hardcode_libdir_flag_spec_ld_GCJ=
24109 hardcode_libdir_separator_GCJ=
24110 hardcode_direct_GCJ=no
24111 hardcode_minus_L_GCJ=no
24112 hardcode_shlibpath_var_GCJ=unsupported
24113 link_all_deplibs_GCJ=unknown
24114 hardcode_automatic_GCJ=no
24116 module_expsym_cmds_GCJ=
24117 always_export_symbols_GCJ=no
24118 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24119 # include_expsyms should be a list of space-separated symbols to be *always*
24120 # included in the symbol list
24121 include_expsyms_GCJ=
24122 # exclude_expsyms can be an extended regexp of symbols to exclude
24123 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24124 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24125 # as well as any symbol that contains `d'.
24126 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24127 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24128 # platforms (ab)use it in PIC code, but their linkers get confused if
24129 # the symbol is explicitly referenced. Since portable code cannot
24130 # rely on this symbol name, it's probably fine to never include it in
24131 # preloaded symbol tables.
24132 extract_expsyms_cmds=
24133 # Just being paranoid about ensuring that cc_basename is set.
24134 for cc_temp in $compiler""; do
24136 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24137 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24142 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24145 cygwin* | mingw* | pw32*)
24146 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24147 # When not using gcc, we currently assume that we are using
24148 # Microsoft Visual C++.
24149 if test "$GCC" != yes; then
24154 # we just hope/assume this is gcc and not c89 (= MSVC++)
24163 if test "$with_gnu_ld" = yes; then
24164 # If archive_cmds runs LD, not CC, wlarc should be empty
24167 # Set some defaults for GNU ld with shared library support. These
24168 # are reset later if shared libraries are not supported. Putting them
24169 # here allows them to be overridden if necessary.
24170 runpath_var=LD_RUN_PATH
24171 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24172 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24173 # ancient GNU ld didn't support --whole-archive et. al.
24174 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24175 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24177 whole_archive_flag_spec_GCJ=
24179 supports_anon_versioning=no
24180 case `$LD -v 2>/dev/null` in
24181 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24182 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24183 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24184 *\ 2.11.*) ;; # other 2.11 versions
24185 *) supports_anon_versioning=yes ;;
24188 # See if GNU ld supports shared libraries.
24190 aix3* | aix4* | aix5*)
24191 # On AIX/PPC, the GNU linker is very broken
24192 if test "$host_cpu" != ia64; then
24196 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24197 *** to be unable to reliably create shared libraries on AIX.
24198 *** Therefore, libtool is disabling shared libraries support. If you
24199 *** really care for shared libraries, you may want to modify your PATH
24200 *** so that a non-GNU linker is found, and then restart.
24207 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)'
24208 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24209 hardcode_minus_L_GCJ=yes
24211 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24212 # that the semantics of dynamic libraries on AmigaOS, at least up
24213 # to version 4, is to share data among multiple programs linked
24214 # with the same dynamic library. Since this doesn't match the
24215 # behavior of shared libraries on other platforms, we can't use
24221 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24222 allow_undefined_flag_GCJ=unsupported
24223 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24224 # support --undefined. This deserves some investigation. FIXME
24225 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24231 cygwin* | mingw* | pw32*)
24232 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24233 # as there is no search path for DLLs.
24234 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24235 allow_undefined_flag_GCJ=unsupported
24236 always_export_symbols_GCJ=no
24237 enable_shared_with_static_runtimes_GCJ=yes
24238 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24240 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24241 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24242 # If the export-symbols file already is a .def file (1st line
24243 # is EXPORTS), use it as is; otherwise, prepend...
24244 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24245 cp $export_symbols $output_objdir/$soname.def;
24247 echo EXPORTS > $output_objdir/$soname.def;
24248 cat $export_symbols >> $output_objdir/$soname.def;
24250 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24257 hardcode_direct_GCJ=no
24258 hardcode_shlibpath_var_GCJ=no
24259 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24260 export_dynamic_flag_spec_GCJ='${wl}-E'
24261 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24262 # Instead, shared libraries are loaded at an image base (0x10000000 by
24263 # default) and relocated if they conflict, which is a slow very memory
24264 # consuming and fragmenting process. To avoid this, we pick a random,
24265 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24266 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24267 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'
24268 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'
24272 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24274 case $cc_basename,$host_cpu in
24275 pgcc*) # Portland Group C compiler
24276 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'
24277 tmp_addflag=' $pic_flag'
24279 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24280 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'
24281 tmp_addflag=' $pic_flag -Mnomain' ;;
24282 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24283 tmp_addflag=' -i_dynamic' ;;
24284 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24285 tmp_addflag=' -i_dynamic -nofor_main' ;;
24286 ifc* | ifort*) # Intel Fortran compiler
24287 tmp_addflag=' -nofor_main' ;;
24289 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24291 if test $supports_anon_versioning = yes; then
24292 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24293 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24294 $echo "local: *; };" >> $output_objdir/$libname.ver~
24295 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24303 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24304 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24307 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24308 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24313 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24317 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24318 *** create shared libraries on Solaris systems. Therefore, libtool
24319 *** is disabling shared libraries support. We urge you to upgrade GNU
24320 *** binutils to release 2.9.1 or newer. Another option is to modify
24321 *** your PATH or compiler configuration so that the native linker is
24322 *** used, and then restart.
24325 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24326 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24327 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24334 case `$LD -v 2>&1` in
24335 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24339 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24340 *** reliably create shared libraries on SCO systems. Therefore, libtool
24341 *** is disabling shared libraries support. We urge you to upgrade GNU
24342 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24343 *** your PATH or compiler configuration so that the native linker is
24344 *** used, and then restart.
24349 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24350 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24351 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24352 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24361 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24363 hardcode_direct_GCJ=yes
24364 hardcode_shlibpath_var_GCJ=no
24368 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24369 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24370 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24377 if test "$ld_shlibs_GCJ" = no; then
24379 hardcode_libdir_flag_spec_GCJ=
24380 export_dynamic_flag_spec_GCJ=
24381 whole_archive_flag_spec_GCJ=
24384 # PORTME fill in a description of your system's linker (not GNU ld)
24387 allow_undefined_flag_GCJ=unsupported
24388 always_export_symbols_GCJ=yes
24389 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'
24390 # Note: this linker hardcodes the directories in LIBPATH if there
24391 # are no directories specified by -L.
24392 hardcode_minus_L_GCJ=yes
24393 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24394 # Neither direct hardcoding nor static linking is supported with a
24396 hardcode_direct_GCJ=unsupported
24401 if test "$host_cpu" = ia64; then
24402 # On IA64, the linker does run time linking by default, so we don't
24403 # have to do anything special.
24404 aix_use_runtimelinking=no
24405 exp_sym_flag='-Bexport'
24408 # If we're using GNU nm, then we don't want the "-C" option.
24409 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24410 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24411 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'
24413 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'
24415 aix_use_runtimelinking=no
24417 # Test if we are trying to use run time linking or normal
24418 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24419 # need to do runtime linking.
24420 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24421 for ld_flag in $LDFLAGS; do
24422 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24423 aix_use_runtimelinking=yes
24430 exp_sym_flag='-bexport'
24431 no_entry_flag='-bnoentry'
24434 # When large executables or shared objects are built, AIX ld can
24435 # have problems creating the table of contents. If linking a library
24436 # or program results in "error TOC overflow" add -mminimal-toc to
24437 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24438 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24440 archive_cmds_GCJ=''
24441 hardcode_direct_GCJ=yes
24442 hardcode_libdir_separator_GCJ=':'
24443 link_all_deplibs_GCJ=yes
24445 if test "$GCC" = yes; then
24446 case $host_os in aix4.[012]|aix4.[012].*)
24447 # We only want to do this on AIX 4.2 and lower, the check
24448 # below for broken collect2 doesn't work under 4.3+
24449 collect2name=`${CC} -print-prog-name=collect2`
24450 if test -f "$collect2name" && \
24451 strings "$collect2name" | grep resolve_lib_name >/dev/null
24453 # We have reworked collect2
24454 hardcode_direct_GCJ=yes
24456 # We have old collect2
24457 hardcode_direct_GCJ=unsupported
24458 # It fails to find uninstalled libraries when the uninstalled
24459 # path is not listed in the libpath. Setting hardcode_minus_L
24460 # to unsupported forces relinking
24461 hardcode_minus_L_GCJ=yes
24462 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24463 hardcode_libdir_separator_GCJ=
24467 shared_flag='-shared'
24468 if test "$aix_use_runtimelinking" = yes; then
24469 shared_flag="$shared_flag "'${wl}-G'
24473 if test "$host_cpu" = ia64; then
24474 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24475 # chokes on -Wl,-G. The following line is correct:
24478 if test "$aix_use_runtimelinking" = yes; then
24479 shared_flag='${wl}-G'
24481 shared_flag='${wl}-bM:SRE'
24486 # It seems that -bexpall does not export symbols beginning with
24487 # underscore (_), so it is better to generate a list of symbols to export.
24488 always_export_symbols_GCJ=yes
24489 if test "$aix_use_runtimelinking" = yes; then
24490 # Warning - without using the other runtime loading flags (-brtl),
24491 # -berok will link without error, but may produce a broken library.
24492 allow_undefined_flag_GCJ='-berok'
24493 # Determine the default libpath from the value encoded in an empty executable.
24494 cat >conftest.$ac_ext <<_ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h. */
24509 rm -f conftest.$ac_objext conftest$ac_exeext
24510 if { (ac_try="$ac_link"
24511 case "(($ac_try" in
24512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24513 *) ac_try_echo=$ac_try;;
24515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24516 (eval "$ac_link") 2>conftest.er1
24518 grep -v '^ *+' conftest.er1 >conftest.err
24520 cat conftest.err >&5
24521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522 (exit $ac_status); } &&
24523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24524 { (case "(($ac_try" in
24525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24526 *) ac_try_echo=$ac_try;;
24528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24529 (eval "$ac_try") 2>&5
24531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24532 (exit $ac_status); }; } &&
24533 { ac_try='test -s conftest$ac_exeext'
24534 { (case "(($ac_try" in
24535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24536 *) ac_try_echo=$ac_try;;
24538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24539 (eval "$ac_try") 2>&5
24541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542 (exit $ac_status); }; }; then
24544 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24546 # Check for a 64-bit object if we didn't find anything.
24547 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; }
24550 echo "$as_me: failed program was:" >&5
24551 sed 's/^/| /' conftest.$ac_ext >&5
24556 rm -f core conftest.err conftest.$ac_objext \
24557 conftest$ac_exeext conftest.$ac_ext
24558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24560 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24561 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"
24563 if test "$host_cpu" = ia64; then
24564 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24565 allow_undefined_flag_GCJ="-z nodefs"
24566 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"
24568 # Determine the default libpath from the value encoded in an empty executable.
24569 cat >conftest.$ac_ext <<_ACEOF
24572 cat confdefs.h >>conftest.$ac_ext
24573 cat >>conftest.$ac_ext <<_ACEOF
24574 /* end confdefs.h. */
24584 rm -f conftest.$ac_objext conftest$ac_exeext
24585 if { (ac_try="$ac_link"
24586 case "(($ac_try" in
24587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24588 *) ac_try_echo=$ac_try;;
24590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24591 (eval "$ac_link") 2>conftest.er1
24593 grep -v '^ *+' conftest.er1 >conftest.err
24595 cat conftest.err >&5
24596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597 (exit $ac_status); } &&
24598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24599 { (case "(($ac_try" in
24600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24601 *) ac_try_echo=$ac_try;;
24603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24604 (eval "$ac_try") 2>&5
24606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607 (exit $ac_status); }; } &&
24608 { ac_try='test -s conftest$ac_exeext'
24609 { (case "(($ac_try" in
24610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24611 *) ac_try_echo=$ac_try;;
24613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24614 (eval "$ac_try") 2>&5
24616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); }; }; then
24619 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24621 # Check for a 64-bit object if we didn't find anything.
24622 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; }
24625 echo "$as_me: failed program was:" >&5
24626 sed 's/^/| /' conftest.$ac_ext >&5
24631 rm -f core conftest.err conftest.$ac_objext \
24632 conftest$ac_exeext conftest.$ac_ext
24633 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24635 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24636 # Warning - without using the other run time loading flags,
24637 # -berok will link without error, but may produce a broken library.
24638 no_undefined_flag_GCJ=' ${wl}-bernotok'
24639 allow_undefined_flag_GCJ=' ${wl}-berok'
24640 # Exported symbols can be pulled into shared objects from archives
24641 whole_archive_flag_spec_GCJ='$convenience'
24642 archive_cmds_need_lc_GCJ=yes
24643 # This is similar to how AIX traditionally builds its shared libraries.
24644 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'
24650 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)'
24651 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24652 hardcode_minus_L_GCJ=yes
24653 # see comment about different semantics on the GNU ld section
24658 export_dynamic_flag_spec_GCJ=-rdynamic
24661 cygwin* | mingw* | pw32*)
24662 # When not using gcc, we currently assume that we are using
24663 # Microsoft Visual C++.
24664 # hardcode_libdir_flag_spec is actually meaningless, as there is
24665 # no search path for DLLs.
24666 hardcode_libdir_flag_spec_GCJ=' '
24667 allow_undefined_flag_GCJ=unsupported
24668 # Tell ltmain to make .lib files, not .a files.
24670 # Tell ltmain to make .dll files, not .so files.
24672 # FIXME: Setting linknames here is a bad hack.
24673 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24674 # The linker will automatically build a .lib file if we build a DLL.
24675 old_archive_From_new_cmds_GCJ='true'
24676 # FIXME: Should let the user specify the lib program.
24677 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24678 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24679 enable_shared_with_static_runtimes_GCJ=yes
24682 darwin* | rhapsody*)
24684 rhapsody* | darwin1.[012])
24685 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24688 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24689 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24691 case ${MACOSX_DEPLOYMENT_TARGET} in
24693 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24696 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24702 archive_cmds_need_lc_GCJ=no
24703 hardcode_direct_GCJ=no
24704 hardcode_automatic_GCJ=yes
24705 hardcode_shlibpath_var_GCJ=unsupported
24706 whole_archive_flag_spec_GCJ=''
24707 link_all_deplibs_GCJ=yes
24708 if test "$GCC" = yes ; then
24709 output_verbose_link_cmd='echo'
24710 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24711 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24712 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24713 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}'
24714 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}'
24716 case $cc_basename in
24718 output_verbose_link_cmd='echo'
24719 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24720 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24721 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24722 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}'
24723 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}'
24733 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24734 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24735 hardcode_shlibpath_var_GCJ=no
24742 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24743 # support. Future versions do this automatically, but an explicit c++rt0.o
24744 # does not break anything, and helps significantly (at the cost of a little
24747 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24748 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24749 hardcode_direct_GCJ=yes
24750 hardcode_shlibpath_var_GCJ=no
24753 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24755 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24756 hardcode_direct_GCJ=yes
24757 hardcode_minus_L_GCJ=yes
24758 hardcode_shlibpath_var_GCJ=no
24761 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24762 freebsd* | kfreebsd*-gnu | dragonfly*)
24763 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24764 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24765 hardcode_direct_GCJ=yes
24766 hardcode_shlibpath_var_GCJ=no
24770 if test "$GCC" = yes; then
24771 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'
24773 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'
24775 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24776 hardcode_libdir_separator_GCJ=:
24777 hardcode_direct_GCJ=yes
24779 # hardcode_minus_L: Not really in the search PATH,
24780 # but as the default location of the library.
24781 hardcode_minus_L_GCJ=yes
24782 export_dynamic_flag_spec_GCJ='${wl}-E'
24786 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24787 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24789 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24791 if test "$with_gnu_ld" = no; then
24792 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24793 hardcode_libdir_separator_GCJ=:
24795 hardcode_direct_GCJ=yes
24796 export_dynamic_flag_spec_GCJ='${wl}-E'
24798 # hardcode_minus_L: Not really in the search PATH,
24799 # but as the default location of the library.
24800 hardcode_minus_L_GCJ=yes
24805 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24808 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24811 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24814 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24820 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24823 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24826 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24830 if test "$with_gnu_ld" = no; then
24831 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24832 hardcode_libdir_separator_GCJ=:
24836 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24837 hardcode_direct_GCJ=no
24838 hardcode_shlibpath_var_GCJ=no
24841 hardcode_direct_GCJ=yes
24842 export_dynamic_flag_spec_GCJ='${wl}-E'
24844 # hardcode_minus_L: Not really in the search PATH,
24845 # but as the default location of the library.
24846 hardcode_minus_L_GCJ=yes
24852 irix5* | irix6* | nonstopux*)
24853 if test "$GCC" = yes; then
24854 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'
24856 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'
24857 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24859 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24860 hardcode_libdir_separator_GCJ=:
24861 link_all_deplibs_GCJ=yes
24865 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24866 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24868 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24870 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24871 hardcode_direct_GCJ=yes
24872 hardcode_shlibpath_var_GCJ=no
24876 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24877 hardcode_direct_GCJ=yes
24878 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24879 hardcode_libdir_separator_GCJ=:
24880 hardcode_shlibpath_var_GCJ=no
24884 hardcode_direct_GCJ=yes
24885 hardcode_shlibpath_var_GCJ=no
24886 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24887 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24888 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24889 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24890 export_dynamic_flag_spec_GCJ='${wl}-E'
24893 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24894 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24895 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24898 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24899 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24906 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24907 hardcode_minus_L_GCJ=yes
24908 allow_undefined_flag_GCJ=unsupported
24909 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'
24910 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24914 if test "$GCC" = yes; then
24915 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24916 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'
24918 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24919 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'
24921 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24922 hardcode_libdir_separator_GCJ=:
24925 osf4* | osf5*) # as osf3* with the addition of -msym flag
24926 if test "$GCC" = yes; then
24927 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24928 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'
24929 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24931 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24932 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'
24933 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~
24934 $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'
24936 # Both c and cxx compiler support -rpath directly
24937 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24939 hardcode_libdir_separator_GCJ=:
24943 no_undefined_flag_GCJ=' -z text'
24944 if test "$GCC" = yes; then
24946 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24947 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24948 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24951 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24952 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24953 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24955 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24956 hardcode_shlibpath_var_GCJ=no
24958 solaris2.[0-5] | solaris2.[0-5].*) ;;
24960 # The compiler driver will combine linker options so we
24961 # cannot just pass the convience library names through
24962 # without $wl, iff we do not link with $LD.
24963 # Luckily, gcc supports the same syntax we need for Sun Studio.
24964 # Supported since Solaris 2.6 (maybe 2.5.1?)
24967 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24969 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' ;;
24972 link_all_deplibs_GCJ=yes
24976 if test "x$host_vendor" = xsequent; then
24977 # Use $CC to link under sequent, because it throws in some extra .o
24978 # files that make .init and .fini sections work.
24979 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24981 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24983 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24984 hardcode_direct_GCJ=yes
24985 hardcode_minus_L_GCJ=yes
24986 hardcode_shlibpath_var_GCJ=no
24990 case $host_vendor in
24992 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24993 hardcode_direct_GCJ=yes # is this really true???
24996 ## LD is ld it makes a PLAMLIB
24997 ## CC just makes a GrossModule.
24998 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24999 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25000 hardcode_direct_GCJ=no
25003 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25004 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25007 runpath_var='LD_RUN_PATH'
25008 hardcode_shlibpath_var_GCJ=no
25012 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25013 hardcode_shlibpath_var_GCJ=no
25014 export_dynamic_flag_spec_GCJ='-Bexport'
25018 if test -d /usr/nec; then
25019 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25020 hardcode_shlibpath_var_GCJ=no
25021 runpath_var=LD_RUN_PATH
25022 hardcode_runpath_var=yes
25027 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25028 no_undefined_flag_GCJ='${wl}-z,text'
25029 archive_cmds_need_lc_GCJ=no
25030 hardcode_shlibpath_var_GCJ=no
25031 runpath_var='LD_RUN_PATH'
25033 if test "$GCC" = yes; then
25034 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25035 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25037 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25038 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25042 sysv5* | sco3.2v5* | sco5v6*)
25043 # Note: We can NOT use -z defs as we might desire, because we do not
25044 # link with -lc, and that would cause any symbols used from libc to
25045 # always be unresolved, which means just about no library would
25046 # ever link correctly. If we're not using GNU ld we use -z text
25047 # though, which does catch some bad symbols but isn't as heavy-handed
25049 no_undefined_flag_GCJ='${wl}-z,text'
25050 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25051 archive_cmds_need_lc_GCJ=no
25052 hardcode_shlibpath_var_GCJ=no
25053 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25054 hardcode_libdir_separator_GCJ=':'
25055 link_all_deplibs_GCJ=yes
25056 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25057 runpath_var='LD_RUN_PATH'
25059 if test "$GCC" = yes; then
25060 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25061 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25063 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25064 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25069 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25070 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25071 hardcode_shlibpath_var_GCJ=no
25080 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25081 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25082 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25085 # Do we need to explicitly link libc?
25087 case "x$archive_cmds_need_lc_GCJ" in
25089 # Assume -lc should be added
25090 archive_cmds_need_lc_GCJ=yes
25092 if test "$enable_shared" = yes && test "$GCC" = yes; then
25093 case $archive_cmds_GCJ in
25095 # FIXME: we may have to deal with multi-command sequences.
25098 # Test whether the compiler implicitly links with -lc since on some
25099 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25100 # to ld, don't add -lc before -lgcc.
25101 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25102 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25107 (eval $ac_compile) 2>&5
25109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110 (exit $ac_status); } 2>conftest.err; then
25113 libobjs=conftest.$ac_objext
25115 wl=$lt_prog_compiler_wl_GCJ
25116 pic_flag=$lt_prog_compiler_pic_GCJ
25122 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25123 allow_undefined_flag_GCJ=
25124 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25125 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); }
25130 archive_cmds_need_lc_GCJ=no
25132 archive_cmds_need_lc_GCJ=yes
25134 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25136 cat conftest.err 1>&5
25139 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25140 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25147 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25148 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25149 library_names_spec=
25150 libname_spec='lib$name'
25154 postuninstall_cmds=
25158 shlibpath_overrides_runpath=unknown
25160 dynamic_linker="$host_os ld.so"
25161 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25162 if test "$GCC" = yes; then
25163 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25164 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25165 # if the path contains ";" then we assume it to be the separator
25166 # otherwise default to the standard path separator (i.e. ":") - it is
25167 # assumed that no part of a normal pathname contains ";" but that should
25168 # okay in the real world where ";" in dirpaths is itself problematic.
25169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25174 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25176 need_lib_prefix=unknown
25177 hardcode_into_libs=no
25179 # when you set need_version to no, make sure it does not cause -set_version
25180 # flags to be left without arguments
25181 need_version=unknown
25186 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25187 shlibpath_var=LIBPATH
25189 # AIX 3 has no versioning support, so we append a major version to the name.
25190 soname_spec='${libname}${release}${shared_ext}$major'
25197 hardcode_into_libs=yes
25198 if test "$host_cpu" = ia64; then
25199 # AIX 5 supports IA64
25200 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25201 shlibpath_var=LD_LIBRARY_PATH
25203 # With GCC up to 2.95.x, collect2 would create an import file
25204 # for dependence libraries. The import file would start with
25205 # the line `#! .'. This would cause the generated library to
25206 # depend on `.', always an invalid library. This was fixed in
25207 # development snapshots of GCC prior to 3.0.
25209 aix4 | aix4.[01] | aix4.[01].*)
25210 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25212 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25215 can_build_shared=no
25219 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25220 # soname into executable. Probably we can add versioning support to
25221 # collect2, so additional links can be useful in future.
25222 if test "$aix_use_runtimelinking" = yes; then
25223 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25224 # instead of lib<name>.a to let people know that these are not
25225 # typical AIX shared libraries.
25226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25228 # We preserve .a as extension for shared libraries through AIX4.2
25229 # and later when we are not doing run time linking.
25230 library_names_spec='${libname}${release}.a $libname.a'
25231 soname_spec='${libname}${release}${shared_ext}$major'
25233 shlibpath_var=LIBPATH
25238 library_names_spec='$libname.ixlibrary $libname.a'
25239 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25240 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'
25244 library_names_spec='${libname}${shared_ext}'
25245 dynamic_linker="$host_os ld.so"
25246 shlibpath_var=LIBRARY_PATH
25252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25253 soname_spec='${libname}${release}${shared_ext}$major'
25254 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25255 shlibpath_var=LD_LIBRARY_PATH
25256 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25257 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25258 # the default ld.so.conf also contains /usr/contrib/lib and
25259 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25260 # libtool to hard-code these into programs
25263 cygwin* | mingw* | pw32*)
25264 version_type=windows
25269 case $GCC,$host_os in
25270 yes,cygwin* | yes,mingw* | yes,pw32*)
25271 library_names_spec='$libname.dll.a'
25272 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25273 postinstall_cmds='base_file=`basename \${file}`~
25274 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25275 dldir=$destdir/`dirname \$dlpath`~
25276 test -d \$dldir || mkdir -p \$dldir~
25277 $install_prog $dir/$dlname \$dldir/$dlname~
25278 chmod a+x \$dldir/$dlname'
25279 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25280 dlpath=$dir/\$dldll~
25282 shlibpath_overrides_runpath=yes
25286 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25287 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25288 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25291 # MinGW DLLs use traditional 'lib' prefix
25292 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25293 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25294 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25295 # It is most probably a Windows format PATH printed by
25296 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25297 # path with ; separators, and with drive letters. We can handle the
25298 # drive letters (cygwin fileutils understands them), so leave them,
25299 # especially as we might pass files found there to a mingw objdump,
25300 # which wouldn't understand a cygwinified path. Ahh.
25301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25303 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25307 # pw32 DLLs use 'pw' prefix rather than 'lib'
25308 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25314 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25317 dynamic_linker='Win32 ld.exe'
25318 # FIXME: first we should search . and the directory the executable is in
25322 darwin* | rhapsody*)
25323 dynamic_linker="$host_os dyld"
25324 version_type=darwin
25327 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25328 soname_spec='${libname}${release}${major}$shared_ext'
25329 shlibpath_overrides_runpath=yes
25330 shlibpath_var=DYLD_LIBRARY_PATH
25331 shrext_cmds='.dylib'
25332 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25333 if test "$GCC" = yes; then
25334 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"`
25336 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25338 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25346 soname_spec='${libname}${release}${shared_ext}$major'
25347 shlibpath_var=LD_LIBRARY_PATH
25358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25359 soname_spec='${libname}${release}${shared_ext}$major'
25360 shlibpath_var=LD_LIBRARY_PATH
25361 shlibpath_overrides_runpath=no
25362 hardcode_into_libs=yes
25363 dynamic_linker='GNU ld.so'
25366 freebsd* | dragonfly*)
25367 # DragonFly does not have aout. When/if they implement a new
25368 # versioning mechanism, adjust this.
25369 if test -x /usr/bin/objformat; then
25370 objformat=`/usr/bin/objformat`
25373 freebsd[123]*) objformat=aout ;;
25374 *) objformat=elf ;;
25377 version_type=freebsd-$objformat
25378 case $version_type in
25380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25385 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25389 shlibpath_var=LD_LIBRARY_PATH
25392 shlibpath_overrides_runpath=yes
25394 freebsd3.[01]* | freebsdelf3.[01]*)
25395 shlibpath_overrides_runpath=yes
25396 hardcode_into_libs=yes
25398 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25399 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25400 shlibpath_overrides_runpath=no
25401 hardcode_into_libs=yes
25403 freebsd*) # from 4.6 on
25404 shlibpath_overrides_runpath=yes
25405 hardcode_into_libs=yes
25414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25415 soname_spec='${libname}${release}${shared_ext}$major'
25416 shlibpath_var=LD_LIBRARY_PATH
25417 hardcode_into_libs=yes
25420 hpux9* | hpux10* | hpux11*)
25421 # Give a soname corresponding to the major version so that dld.sl refuses to
25422 # link against other versions.
25429 hardcode_into_libs=yes
25430 dynamic_linker="$host_os dld.so"
25431 shlibpath_var=LD_LIBRARY_PATH
25432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25434 soname_spec='${libname}${release}${shared_ext}$major'
25435 if test "X$HPUX_IA64_MODE" = X32; then
25436 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25438 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25444 hardcode_into_libs=yes
25445 dynamic_linker="$host_os dld.sl"
25446 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25449 soname_spec='${libname}${release}${shared_ext}$major'
25450 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25455 dynamic_linker="$host_os dld.sl"
25456 shlibpath_var=SHLIB_PATH
25457 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25459 soname_spec='${libname}${release}${shared_ext}$major'
25462 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25463 postinstall_cmds='chmod 555 $lib'
25470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25471 soname_spec='${libname}${release}${shared_ext}$major'
25472 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25473 shlibpath_var=LD_LIBRARY_PATH
25474 shlibpath_overrides_runpath=no
25475 hardcode_into_libs=yes
25478 irix5* | irix6* | nonstopux*)
25480 nonstopux*) version_type=nonstopux ;;
25482 if test "$lt_cv_prog_gnu_ld" = yes; then
25490 soname_spec='${libname}${release}${shared_ext}$major'
25491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25493 irix5* | nonstopux*)
25494 libsuff= shlibsuff=
25497 case $LD in # libtool.m4 will add one of these switches to LD
25498 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25499 libsuff= shlibsuff= libmagic=32-bit;;
25500 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25501 libsuff=32 shlibsuff=N32 libmagic=N32;;
25502 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25503 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25504 *) libsuff= shlibsuff= libmagic=never-match;;
25508 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25509 shlibpath_overrides_runpath=no
25510 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25511 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25512 hardcode_into_libs=yes
25515 # No shared lib support for Linux oldld, aout, or coff.
25516 linux*oldld* | linux*aout* | linux*coff*)
25520 # This must be Linux ELF.
25525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25526 soname_spec='${libname}${release}${shared_ext}$major'
25527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25528 shlibpath_var=LD_LIBRARY_PATH
25529 shlibpath_overrides_runpath=no
25530 # This implies no fast_install, which is unacceptable.
25531 # Some rework will be needed to allow for fast_install
25532 # before this can be enabled.
25533 hardcode_into_libs=yes
25535 # Append ld.so.conf contents to the search path
25536 if test -f /etc/ld.so.conf; then
25537 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' ' '`
25538 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25541 # We used to test for /lib/ld.so.1 and disable shared libraries on
25542 # powerpc, because MkLinux only supported shared libraries with the
25543 # GNU dynamic linker. Since this was broken with cross compilers,
25544 # most powerpc-linux boxes support dynamic linking these days and
25545 # people can always --disable-shared, the test was removed, and we
25546 # assume the GNU/Linux dynamic linker is in use.
25547 dynamic_linker='GNU/Linux ld.so'
25554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25555 soname_spec='${libname}${release}${shared_ext}$major'
25556 shlibpath_var=LD_LIBRARY_PATH
25557 shlibpath_overrides_runpath=no
25558 hardcode_into_libs=yes
25559 dynamic_linker='GNU ld.so'
25566 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25569 dynamic_linker='NetBSD (a.out) ld.so'
25571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25572 soname_spec='${libname}${release}${shared_ext}$major'
25573 dynamic_linker='NetBSD ld.elf_so'
25575 shlibpath_var=LD_LIBRARY_PATH
25576 shlibpath_overrides_runpath=yes
25577 hardcode_into_libs=yes
25582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25583 shlibpath_var=LD_LIBRARY_PATH
25584 shlibpath_overrides_runpath=yes
25591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25592 soname_spec='${libname}${release}${shared_ext}$major'
25593 shlibpath_var=LD_LIBRARY_PATH
25594 shlibpath_overrides_runpath=yes
25599 sys_lib_dlsearch_path_spec="/usr/lib"
25601 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25603 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25604 *) need_version=no ;;
25606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25608 shlibpath_var=LD_LIBRARY_PATH
25609 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25611 openbsd2.[89] | openbsd2.[89].*)
25612 shlibpath_overrides_runpath=no
25615 shlibpath_overrides_runpath=yes
25619 shlibpath_overrides_runpath=yes
25624 libname_spec='$name'
25627 library_names_spec='$libname${shared_ext} $libname.a'
25628 dynamic_linker='OS/2 ld.exe'
25629 shlibpath_var=LIBPATH
25632 osf3* | osf4* | osf5*)
25636 soname_spec='${libname}${release}${shared_ext}$major'
25637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25638 shlibpath_var=LD_LIBRARY_PATH
25639 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25640 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25648 soname_spec='${libname}${release}${shared_ext}$major'
25649 shlibpath_var=LD_LIBRARY_PATH
25650 shlibpath_overrides_runpath=yes
25651 hardcode_into_libs=yes
25652 # ldd complains unless libraries are executable
25653 postinstall_cmds='chmod +x $lib'
25658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25659 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25660 shlibpath_var=LD_LIBRARY_PATH
25661 shlibpath_overrides_runpath=yes
25662 if test "$with_gnu_ld" = yes; then
25670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25671 soname_spec='${libname}${release}${shared_ext}$major'
25672 shlibpath_var=LD_LIBRARY_PATH
25673 case $host_vendor in
25675 shlibpath_overrides_runpath=no
25677 export_dynamic_flag_spec='${wl}-Blargedynsym'
25678 runpath_var=LD_RUN_PATH
25686 shlibpath_overrides_runpath=no
25687 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25693 if test -d /usr/nec ;then
25695 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25696 soname_spec='$libname${shared_ext}.$major'
25697 shlibpath_var=LD_LIBRARY_PATH
25701 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25702 version_type=freebsd-elf
25705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25706 soname_spec='${libname}${release}${shared_ext}$major'
25707 shlibpath_var=LD_LIBRARY_PATH
25708 hardcode_into_libs=yes
25709 if test "$with_gnu_ld" = yes; then
25710 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25711 shlibpath_overrides_runpath=no
25713 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25714 shlibpath_overrides_runpath=yes
25717 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25721 sys_lib_dlsearch_path_spec='/usr/lib'
25726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25727 soname_spec='${libname}${release}${shared_ext}$major'
25728 shlibpath_var=LD_LIBRARY_PATH
25735 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25736 echo "${ECHO_T}$dynamic_linker" >&6; }
25737 test "$dynamic_linker" = no && can_build_shared=no
25739 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25740 if test "$GCC" = yes; then
25741 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25744 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25745 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25746 hardcode_action_GCJ=
25747 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25748 test -n "$runpath_var_GCJ" || \
25749 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25751 # We can hardcode non-existant directories.
25752 if test "$hardcode_direct_GCJ" != no &&
25753 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25754 # have to relink, otherwise we might link with an installed library
25755 # when we should be linking with a yet-to-be-installed one
25756 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25757 test "$hardcode_minus_L_GCJ" != no; then
25758 # Linking always hardcodes the temporary library directory.
25759 hardcode_action_GCJ=relink
25761 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25762 hardcode_action_GCJ=immediate
25765 # We cannot hardcode anything, or else we can only hardcode existing
25767 hardcode_action_GCJ=unsupported
25769 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25770 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25772 if test "$hardcode_action_GCJ" = relink; then
25773 # Fast installation is not supported
25774 enable_fast_install=no
25775 elif test "$shlibpath_overrides_runpath" = yes ||
25776 test "$enable_shared" = no; then
25777 # Fast installation is not necessary
25778 enable_fast_install=needless
25782 # The else clause should only fire when bootstrapping the
25783 # libtool distribution, otherwise you forgot to ship ltmain.sh
25784 # with your package, and you will get complaints that there are
25785 # no rules to generate ltmain.sh.
25786 if test -f "$ltmain"; then
25787 # See if we are running on zsh, and set the options which allow our commands through
25788 # without removal of \ escapes.
25789 if test -n "${ZSH_VERSION+set}" ; then
25790 setopt NO_GLOB_SUBST
25792 # Now quote all the things that may contain metacharacters while being
25793 # careful not to overquote the AC_SUBSTed values. We take copies of the
25794 # variables and quote the copies for generation of the libtool script.
25795 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25797 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25798 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25799 deplibs_check_method reload_flag reload_cmds need_locks \
25800 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25801 lt_cv_sys_global_symbol_to_c_name_address \
25802 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25803 old_postinstall_cmds old_postuninstall_cmds \
25807 lt_prog_compiler_wl_GCJ \
25808 lt_prog_compiler_pic_GCJ \
25809 lt_prog_compiler_static_GCJ \
25810 lt_prog_compiler_no_builtin_flag_GCJ \
25811 export_dynamic_flag_spec_GCJ \
25812 thread_safe_flag_spec_GCJ \
25813 whole_archive_flag_spec_GCJ \
25814 enable_shared_with_static_runtimes_GCJ \
25815 old_archive_cmds_GCJ \
25816 old_archive_from_new_cmds_GCJ \
25817 predep_objects_GCJ \
25818 postdep_objects_GCJ \
25821 compiler_lib_search_path_GCJ \
25823 archive_expsym_cmds_GCJ \
25824 postinstall_cmds_GCJ \
25825 postuninstall_cmds_GCJ \
25826 old_archive_from_expsyms_cmds_GCJ \
25827 allow_undefined_flag_GCJ \
25828 no_undefined_flag_GCJ \
25829 export_symbols_cmds_GCJ \
25830 hardcode_libdir_flag_spec_GCJ \
25831 hardcode_libdir_flag_spec_ld_GCJ \
25832 hardcode_libdir_separator_GCJ \
25833 hardcode_automatic_GCJ \
25835 module_expsym_cmds_GCJ \
25836 lt_cv_prog_compiler_c_o_GCJ \
25837 exclude_expsyms_GCJ \
25838 include_expsyms_GCJ; do
25841 old_archive_cmds_GCJ | \
25842 old_archive_from_new_cmds_GCJ | \
25843 archive_cmds_GCJ | \
25844 archive_expsym_cmds_GCJ | \
25845 module_cmds_GCJ | \
25846 module_expsym_cmds_GCJ | \
25847 old_archive_from_expsyms_cmds_GCJ | \
25848 export_symbols_cmds_GCJ | \
25849 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25850 postinstall_cmds | postuninstall_cmds | \
25851 old_postinstall_cmds | old_postuninstall_cmds | \
25852 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25853 # Double-quote double-evaled strings.
25854 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25857 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25863 *'\$0 --fallback-echo"')
25864 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25870 cat <<__EOF__ >> "$cfgfile"
25871 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25873 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25875 # Shell to use when invoking shell scripts.
25878 # Whether or not to build shared libraries.
25879 build_libtool_libs=$enable_shared
25881 # Whether or not to build static libraries.
25882 build_old_libs=$enable_static
25884 # Whether or not to add -lc for building shared libraries.
25885 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25887 # Whether or not to disallow shared libs when runtime libs are static
25888 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25890 # Whether or not to optimize for fast installation.
25891 fast_install=$enable_fast_install
25894 host_alias=$host_alias
25898 # The build system.
25899 build_alias=$build_alias
25903 # An echo program that does not interpret backslashes.
25908 AR_FLAGS=$lt_AR_FLAGS
25913 # LTCC compiler flags.
25914 LTCFLAGS=$lt_LTCFLAGS
25916 # A language-specific compiler.
25917 CC=$lt_compiler_GCJ
25919 # Is the compiler the GNU C compiler?
25925 # The linker used to build libraries.
25928 # Whether we need hard or soft links.
25931 # A BSD-compatible nm program.
25934 # A symbol stripping program
25937 # Used to examine libraries when file_magic_cmd begins "file"
25938 MAGIC_CMD=$MAGIC_CMD
25940 # Used on cygwin: DLL creation program.
25943 # Used on cygwin: object dumper.
25946 # Used on cygwin: assembler.
25949 # The name of the directory that contains temporary libtool files.
25952 # How to create reloadable object files.
25953 reload_flag=$lt_reload_flag
25954 reload_cmds=$lt_reload_cmds
25956 # How to pass a linker flag through the compiler.
25957 wl=$lt_lt_prog_compiler_wl_GCJ
25959 # Object file suffix (normally "o").
25960 objext="$ac_objext"
25962 # Old archive suffix (normally "a").
25965 # Shared library suffix (normally ".so").
25966 shrext_cmds='$shrext_cmds'
25968 # Executable file suffix (normally "").
25971 # Additional compiler flags for building library objects.
25972 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25975 # What is the maximum length of a command?
25976 max_cmd_len=$lt_cv_sys_max_cmd_len
25978 # Does compiler simultaneously support -c and -o options?
25979 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25981 # Must we lock files when doing compilation?
25982 need_locks=$lt_need_locks
25984 # Do we need the lib prefix for modules?
25985 need_lib_prefix=$need_lib_prefix
25987 # Do we need a version for libraries?
25988 need_version=$need_version
25990 # Whether dlopen is supported.
25991 dlopen_support=$enable_dlopen
25993 # Whether dlopen of programs is supported.
25994 dlopen_self=$enable_dlopen_self
25996 # Whether dlopen of statically linked programs is supported.
25997 dlopen_self_static=$enable_dlopen_self_static
25999 # Compiler flag to prevent dynamic linking.
26000 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26002 # Compiler flag to turn off builtin functions.
26003 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26005 # Compiler flag to allow reflexive dlopens.
26006 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26008 # Compiler flag to generate shared objects directly from archives.
26009 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26011 # Compiler flag to generate thread-safe objects.
26012 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26014 # Library versioning type.
26015 version_type=$version_type
26017 # Format of library name prefix.
26018 libname_spec=$lt_libname_spec
26020 # List of archive names. First name is the real one, the rest are links.
26021 # The last name is the one that the linker finds with -lNAME.
26022 library_names_spec=$lt_library_names_spec
26024 # The coded name of the library, if different from the real name.
26025 soname_spec=$lt_soname_spec
26027 # Commands used to build and install an old-style archive.
26029 old_archive_cmds=$lt_old_archive_cmds_GCJ
26030 old_postinstall_cmds=$lt_old_postinstall_cmds
26031 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26033 # Create an old-style archive from a shared archive.
26034 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26036 # Create a temporary old-style archive to link instead of a shared archive.
26037 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26039 # Commands used to build and install a shared archive.
26040 archive_cmds=$lt_archive_cmds_GCJ
26041 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26042 postinstall_cmds=$lt_postinstall_cmds
26043 postuninstall_cmds=$lt_postuninstall_cmds
26045 # Commands used to build a loadable module (assumed same as above if empty)
26046 module_cmds=$lt_module_cmds_GCJ
26047 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26049 # Commands to strip libraries.
26050 old_striplib=$lt_old_striplib
26051 striplib=$lt_striplib
26053 # Dependencies to place before the objects being linked to create a
26055 predep_objects=$lt_predep_objects_GCJ
26057 # Dependencies to place after the objects being linked to create a
26059 postdep_objects=$lt_postdep_objects_GCJ
26061 # Dependencies to place before the objects being linked to create a
26063 predeps=$lt_predeps_GCJ
26065 # Dependencies to place after the objects being linked to create a
26067 postdeps=$lt_postdeps_GCJ
26069 # The library search path used internally by the compiler when linking
26070 # a shared library.
26071 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26073 # Method to check whether dependent libraries are shared objects.
26074 deplibs_check_method=$lt_deplibs_check_method
26076 # Command to use when deplibs_check_method == file_magic.
26077 file_magic_cmd=$lt_file_magic_cmd
26079 # Flag that allows shared libraries with undefined symbols to be built.
26080 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26082 # Flag that forces no undefined symbols.
26083 no_undefined_flag=$lt_no_undefined_flag_GCJ
26085 # Commands used to finish a libtool library installation in a directory.
26086 finish_cmds=$lt_finish_cmds
26088 # Same as above, but a single script fragment to be evaled but not shown.
26089 finish_eval=$lt_finish_eval
26091 # Take the output of nm and produce a listing of raw symbols and C names.
26092 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26094 # Transform the output of nm in a proper C declaration
26095 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26097 # Transform the output of nm in a C name address pair
26098 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26100 # This is the shared library runtime path variable.
26101 runpath_var=$runpath_var
26103 # This is the shared library path variable.
26104 shlibpath_var=$shlibpath_var
26106 # Is shlibpath searched before the hard-coded library search path?
26107 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26109 # How to hardcode a shared library path into an executable.
26110 hardcode_action=$hardcode_action_GCJ
26112 # Whether we should hardcode library paths into libraries.
26113 hardcode_into_libs=$hardcode_into_libs
26115 # Flag to hardcode \$libdir into a binary during linking.
26116 # This must work even if \$libdir does not exist.
26117 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26119 # If ld is used when linking, flag to hardcode \$libdir into
26120 # a binary during linking. This must work even if \$libdir does
26122 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26124 # Whether we need a single -rpath flag with a separated argument.
26125 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26127 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26128 # resulting binary.
26129 hardcode_direct=$hardcode_direct_GCJ
26131 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26132 # resulting binary.
26133 hardcode_minus_L=$hardcode_minus_L_GCJ
26135 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26136 # the resulting binary.
26137 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26139 # Set to yes if building a shared library automatically hardcodes DIR into the library
26140 # and all subsequent libraries and executables linked against it.
26141 hardcode_automatic=$hardcode_automatic_GCJ
26143 # Variables whose values should be saved in libtool wrapper scripts and
26144 # restored at relink time.
26145 variables_saved_for_relink="$variables_saved_for_relink"
26147 # Whether libtool must link a program against all its dependency libraries.
26148 link_all_deplibs=$link_all_deplibs_GCJ
26150 # Compile-time system search path for libraries
26151 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26153 # Run-time system search path for libraries
26154 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26156 # Fix the shell variable \$srcfile for the compiler.
26157 fix_srcfile_path="$fix_srcfile_path_GCJ"
26159 # Set to yes if exported symbols are required.
26160 always_export_symbols=$always_export_symbols_GCJ
26162 # The commands to list exported symbols.
26163 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26165 # The commands to extract the exported symbol list from a shared archive.
26166 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26168 # Symbols that should not be listed in the preloaded symbols.
26169 exclude_expsyms=$lt_exclude_expsyms_GCJ
26171 # Symbols that must always be exported.
26172 include_expsyms=$lt_include_expsyms_GCJ
26174 # ### END LIBTOOL TAG CONFIG: $tagname
26180 # If there is no Makefile yet, we rely on a make rule to execute
26181 # `config.status --recheck' to rerun these tests and create the
26182 # libtool script then.
26183 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26184 if test -f "$ltmain_in"; then
26185 test -f Makefile && make "$ltmain"
26191 ac_cpp='$CPP $CPPFLAGS'
26192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26205 ac_cpp='$CPP $CPPFLAGS'
26206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26211 # Source file extension for RC test sources.
26214 # Object file extension for compiled RC test sources.
26218 # Code to be used in simple compile tests
26219 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26221 # Code to be used in simple link tests
26222 lt_simple_link_test_code="$lt_simple_compile_test_code"
26224 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26226 # If no C compiler was specified, use CC.
26229 # If no C compiler flags were specified, use CFLAGS.
26230 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26232 # Allow CC to be a program name with arguments.
26236 # save warnings/boilerplate of simple test code
26237 ac_outfile=conftest.$ac_objext
26238 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26239 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26240 _lt_compiler_boilerplate=`cat conftest.err`
26243 ac_outfile=conftest.$ac_objext
26244 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26245 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26246 _lt_linker_boilerplate=`cat conftest.err`
26250 # Allow CC to be a program name with arguments.
26255 for cc_temp in $compiler""; do
26257 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26258 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26263 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26265 lt_cv_prog_compiler_c_o_RC=yes
26267 # The else clause should only fire when bootstrapping the
26268 # libtool distribution, otherwise you forgot to ship ltmain.sh
26269 # with your package, and you will get complaints that there are
26270 # no rules to generate ltmain.sh.
26271 if test -f "$ltmain"; then
26272 # See if we are running on zsh, and set the options which allow our commands through
26273 # without removal of \ escapes.
26274 if test -n "${ZSH_VERSION+set}" ; then
26275 setopt NO_GLOB_SUBST
26277 # Now quote all the things that may contain metacharacters while being
26278 # careful not to overquote the AC_SUBSTed values. We take copies of the
26279 # variables and quote the copies for generation of the libtool script.
26280 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26282 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26283 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26284 deplibs_check_method reload_flag reload_cmds need_locks \
26285 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26286 lt_cv_sys_global_symbol_to_c_name_address \
26287 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26288 old_postinstall_cmds old_postuninstall_cmds \
26292 lt_prog_compiler_wl_RC \
26293 lt_prog_compiler_pic_RC \
26294 lt_prog_compiler_static_RC \
26295 lt_prog_compiler_no_builtin_flag_RC \
26296 export_dynamic_flag_spec_RC \
26297 thread_safe_flag_spec_RC \
26298 whole_archive_flag_spec_RC \
26299 enable_shared_with_static_runtimes_RC \
26300 old_archive_cmds_RC \
26301 old_archive_from_new_cmds_RC \
26302 predep_objects_RC \
26303 postdep_objects_RC \
26306 compiler_lib_search_path_RC \
26308 archive_expsym_cmds_RC \
26309 postinstall_cmds_RC \
26310 postuninstall_cmds_RC \
26311 old_archive_from_expsyms_cmds_RC \
26312 allow_undefined_flag_RC \
26313 no_undefined_flag_RC \
26314 export_symbols_cmds_RC \
26315 hardcode_libdir_flag_spec_RC \
26316 hardcode_libdir_flag_spec_ld_RC \
26317 hardcode_libdir_separator_RC \
26318 hardcode_automatic_RC \
26320 module_expsym_cmds_RC \
26321 lt_cv_prog_compiler_c_o_RC \
26322 exclude_expsyms_RC \
26323 include_expsyms_RC; do
26326 old_archive_cmds_RC | \
26327 old_archive_from_new_cmds_RC | \
26328 archive_cmds_RC | \
26329 archive_expsym_cmds_RC | \
26331 module_expsym_cmds_RC | \
26332 old_archive_from_expsyms_cmds_RC | \
26333 export_symbols_cmds_RC | \
26334 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26335 postinstall_cmds | postuninstall_cmds | \
26336 old_postinstall_cmds | old_postuninstall_cmds | \
26337 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26338 # Double-quote double-evaled strings.
26339 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26342 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26348 *'\$0 --fallback-echo"')
26349 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26355 cat <<__EOF__ >> "$cfgfile"
26356 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26358 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26360 # Shell to use when invoking shell scripts.
26363 # Whether or not to build shared libraries.
26364 build_libtool_libs=$enable_shared
26366 # Whether or not to build static libraries.
26367 build_old_libs=$enable_static
26369 # Whether or not to add -lc for building shared libraries.
26370 build_libtool_need_lc=$archive_cmds_need_lc_RC
26372 # Whether or not to disallow shared libs when runtime libs are static
26373 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26375 # Whether or not to optimize for fast installation.
26376 fast_install=$enable_fast_install
26379 host_alias=$host_alias
26383 # The build system.
26384 build_alias=$build_alias
26388 # An echo program that does not interpret backslashes.
26393 AR_FLAGS=$lt_AR_FLAGS
26398 # LTCC compiler flags.
26399 LTCFLAGS=$lt_LTCFLAGS
26401 # A language-specific compiler.
26404 # Is the compiler the GNU C compiler?
26410 # The linker used to build libraries.
26413 # Whether we need hard or soft links.
26416 # A BSD-compatible nm program.
26419 # A symbol stripping program
26422 # Used to examine libraries when file_magic_cmd begins "file"
26423 MAGIC_CMD=$MAGIC_CMD
26425 # Used on cygwin: DLL creation program.
26428 # Used on cygwin: object dumper.
26431 # Used on cygwin: assembler.
26434 # The name of the directory that contains temporary libtool files.
26437 # How to create reloadable object files.
26438 reload_flag=$lt_reload_flag
26439 reload_cmds=$lt_reload_cmds
26441 # How to pass a linker flag through the compiler.
26442 wl=$lt_lt_prog_compiler_wl_RC
26444 # Object file suffix (normally "o").
26445 objext="$ac_objext"
26447 # Old archive suffix (normally "a").
26450 # Shared library suffix (normally ".so").
26451 shrext_cmds='$shrext_cmds'
26453 # Executable file suffix (normally "").
26456 # Additional compiler flags for building library objects.
26457 pic_flag=$lt_lt_prog_compiler_pic_RC
26460 # What is the maximum length of a command?
26461 max_cmd_len=$lt_cv_sys_max_cmd_len
26463 # Does compiler simultaneously support -c and -o options?
26464 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26466 # Must we lock files when doing compilation?
26467 need_locks=$lt_need_locks
26469 # Do we need the lib prefix for modules?
26470 need_lib_prefix=$need_lib_prefix
26472 # Do we need a version for libraries?
26473 need_version=$need_version
26475 # Whether dlopen is supported.
26476 dlopen_support=$enable_dlopen
26478 # Whether dlopen of programs is supported.
26479 dlopen_self=$enable_dlopen_self
26481 # Whether dlopen of statically linked programs is supported.
26482 dlopen_self_static=$enable_dlopen_self_static
26484 # Compiler flag to prevent dynamic linking.
26485 link_static_flag=$lt_lt_prog_compiler_static_RC
26487 # Compiler flag to turn off builtin functions.
26488 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26490 # Compiler flag to allow reflexive dlopens.
26491 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26493 # Compiler flag to generate shared objects directly from archives.
26494 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26496 # Compiler flag to generate thread-safe objects.
26497 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26499 # Library versioning type.
26500 version_type=$version_type
26502 # Format of library name prefix.
26503 libname_spec=$lt_libname_spec
26505 # List of archive names. First name is the real one, the rest are links.
26506 # The last name is the one that the linker finds with -lNAME.
26507 library_names_spec=$lt_library_names_spec
26509 # The coded name of the library, if different from the real name.
26510 soname_spec=$lt_soname_spec
26512 # Commands used to build and install an old-style archive.
26514 old_archive_cmds=$lt_old_archive_cmds_RC
26515 old_postinstall_cmds=$lt_old_postinstall_cmds
26516 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26518 # Create an old-style archive from a shared archive.
26519 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26521 # Create a temporary old-style archive to link instead of a shared archive.
26522 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26524 # Commands used to build and install a shared archive.
26525 archive_cmds=$lt_archive_cmds_RC
26526 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26527 postinstall_cmds=$lt_postinstall_cmds
26528 postuninstall_cmds=$lt_postuninstall_cmds
26530 # Commands used to build a loadable module (assumed same as above if empty)
26531 module_cmds=$lt_module_cmds_RC
26532 module_expsym_cmds=$lt_module_expsym_cmds_RC
26534 # Commands to strip libraries.
26535 old_striplib=$lt_old_striplib
26536 striplib=$lt_striplib
26538 # Dependencies to place before the objects being linked to create a
26540 predep_objects=$lt_predep_objects_RC
26542 # Dependencies to place after the objects being linked to create a
26544 postdep_objects=$lt_postdep_objects_RC
26546 # Dependencies to place before the objects being linked to create a
26548 predeps=$lt_predeps_RC
26550 # Dependencies to place after the objects being linked to create a
26552 postdeps=$lt_postdeps_RC
26554 # The library search path used internally by the compiler when linking
26555 # a shared library.
26556 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26558 # Method to check whether dependent libraries are shared objects.
26559 deplibs_check_method=$lt_deplibs_check_method
26561 # Command to use when deplibs_check_method == file_magic.
26562 file_magic_cmd=$lt_file_magic_cmd
26564 # Flag that allows shared libraries with undefined symbols to be built.
26565 allow_undefined_flag=$lt_allow_undefined_flag_RC
26567 # Flag that forces no undefined symbols.
26568 no_undefined_flag=$lt_no_undefined_flag_RC
26570 # Commands used to finish a libtool library installation in a directory.
26571 finish_cmds=$lt_finish_cmds
26573 # Same as above, but a single script fragment to be evaled but not shown.
26574 finish_eval=$lt_finish_eval
26576 # Take the output of nm and produce a listing of raw symbols and C names.
26577 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26579 # Transform the output of nm in a proper C declaration
26580 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26582 # Transform the output of nm in a C name address pair
26583 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26585 # This is the shared library runtime path variable.
26586 runpath_var=$runpath_var
26588 # This is the shared library path variable.
26589 shlibpath_var=$shlibpath_var
26591 # Is shlibpath searched before the hard-coded library search path?
26592 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26594 # How to hardcode a shared library path into an executable.
26595 hardcode_action=$hardcode_action_RC
26597 # Whether we should hardcode library paths into libraries.
26598 hardcode_into_libs=$hardcode_into_libs
26600 # Flag to hardcode \$libdir into a binary during linking.
26601 # This must work even if \$libdir does not exist.
26602 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26604 # If ld is used when linking, flag to hardcode \$libdir into
26605 # a binary during linking. This must work even if \$libdir does
26607 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26609 # Whether we need a single -rpath flag with a separated argument.
26610 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26612 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26613 # resulting binary.
26614 hardcode_direct=$hardcode_direct_RC
26616 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26617 # resulting binary.
26618 hardcode_minus_L=$hardcode_minus_L_RC
26620 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26621 # the resulting binary.
26622 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26624 # Set to yes if building a shared library automatically hardcodes DIR into the library
26625 # and all subsequent libraries and executables linked against it.
26626 hardcode_automatic=$hardcode_automatic_RC
26628 # Variables whose values should be saved in libtool wrapper scripts and
26629 # restored at relink time.
26630 variables_saved_for_relink="$variables_saved_for_relink"
26632 # Whether libtool must link a program against all its dependency libraries.
26633 link_all_deplibs=$link_all_deplibs_RC
26635 # Compile-time system search path for libraries
26636 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26638 # Run-time system search path for libraries
26639 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26641 # Fix the shell variable \$srcfile for the compiler.
26642 fix_srcfile_path="$fix_srcfile_path_RC"
26644 # Set to yes if exported symbols are required.
26645 always_export_symbols=$always_export_symbols_RC
26647 # The commands to list exported symbols.
26648 export_symbols_cmds=$lt_export_symbols_cmds_RC
26650 # The commands to extract the exported symbol list from a shared archive.
26651 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26653 # Symbols that should not be listed in the preloaded symbols.
26654 exclude_expsyms=$lt_exclude_expsyms_RC
26656 # Symbols that must always be exported.
26657 include_expsyms=$lt_include_expsyms_RC
26659 # ### END LIBTOOL TAG CONFIG: $tagname
26665 # If there is no Makefile yet, we rely on a make rule to execute
26666 # `config.status --recheck' to rerun these tests and create the
26667 # libtool script then.
26668 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26669 if test -f "$ltmain_in"; then
26670 test -f Makefile && make "$ltmain"
26676 ac_cpp='$CPP $CPPFLAGS'
26677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26686 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26687 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26688 { (exit 1); exit 1; }; }
26692 # Append the new tag name to the list of available tags.
26693 if test -n "$tagname" ; then
26694 available_tags="$available_tags $tagname"
26700 # Now substitute the updated list of available tags.
26701 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26702 mv "${ofile}T" "$ofile"
26706 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26707 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26708 { (exit 1); exit 1; }; }
26714 # This can be used to rebuild libtool when needed
26715 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26717 # Always use our own libtool.
26718 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26720 # Prevent multiple expansion
26742 if test "$lt_cv_dlopen_self" = "yes" ; then
26744 cat >>confdefs.h <<\_ACEOF
26745 #define CAN_DLOPEN_SELF 1
26750 etags_version=`$ETAGS --version 2>&1`
26751 case "$etags_version" in
26752 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26753 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26754 *) ETAGSFLAGS="" ;;
26756 ETAGSFLAGS=$ETAGSFLAGS
26759 if test "$WITH_LLVMGCCDIR" = "default" ; then
26760 LLVMGCC="llvm-gcc${EXEEXT}"
26761 LLVMGXX="llvm-g++${EXEEXT}"
26762 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26763 set dummy $LLVMGCC; ac_word=$2
26764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26766 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26767 echo $ECHO_N "(cached) $ECHO_C" >&6
26771 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26775 for as_dir in $PATH
26778 test -z "$as_dir" && as_dir=.
26779 for ac_exec_ext in '' $ac_executable_extensions; do
26780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26781 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26792 LLVMGCC=$ac_cv_path_LLVMGCC
26793 if test -n "$LLVMGCC"; then
26794 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26795 echo "${ECHO_T}$LLVMGCC" >&6; }
26797 { echo "$as_me:$LINENO: result: no" >&5
26798 echo "${ECHO_T}no" >&6; }
26802 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26803 set dummy $LLVMGXX; ac_word=$2
26804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26806 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26807 echo $ECHO_N "(cached) $ECHO_C" >&6
26811 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26815 for as_dir in $PATH
26818 test -z "$as_dir" && as_dir=.
26819 for ac_exec_ext in '' $ac_executable_extensions; do
26820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26821 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26832 LLVMGXX=$ac_cv_path_LLVMGXX
26833 if test -n "$LLVMGXX"; then
26834 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26835 echo "${ECHO_T}$LLVMGXX" >&6; }
26837 { echo "$as_me:$LINENO: result: no" >&5
26838 echo "${ECHO_T}no" >&6; }
26843 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26844 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26851 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26852 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26865 if test "$GCC" != "yes" && test "$ICC" != "yes"
26867 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26868 echo "$as_me: error: gcc|icc required but not found" >&2;}
26869 { (exit 1); exit 1; }; }
26872 if test "$GXX" != "yes" && test "$IXX" != "yes"
26874 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26875 echo "$as_me: error: g++|icc required but not found" >&2;}
26876 { (exit 1); exit 1; }; }
26879 if test "$GCC" = "yes"
26881 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26882 if test "$gccmajor" -lt "3"
26884 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26885 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26886 { (exit 1); exit 1; }; }
26890 if test -z "$llvm_cv_gnu_make_command"
26892 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26893 echo "$as_me: error: GNU Make required but not found" >&2;}
26894 { (exit 1); exit 1; }; }
26897 { echo "$as_me:$LINENO: result: ok" >&5
26898 echo "${ECHO_T}ok" >&6; }
26902 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26903 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26904 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26905 echo $ECHO_N "(cached) $ECHO_C" >&6
26907 ac_check_lib_save_LIBS=$LIBS
26909 cat >conftest.$ac_ext <<_ACEOF
26912 cat confdefs.h >>conftest.$ac_ext
26913 cat >>conftest.$ac_ext <<_ACEOF
26914 /* end confdefs.h. */
26916 /* Override any GCC internal prototype to avoid an error.
26917 Use char because int might match the return type of a GCC
26918 builtin and then its argument prototype would still apply. */
26926 return elf_begin ();
26931 rm -f conftest.$ac_objext conftest$ac_exeext
26932 if { (ac_try="$ac_link"
26933 case "(($ac_try" in
26934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26935 *) ac_try_echo=$ac_try;;
26937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26938 (eval "$ac_link") 2>conftest.er1
26940 grep -v '^ *+' conftest.er1 >conftest.err
26942 cat conftest.err >&5
26943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944 (exit $ac_status); } &&
26945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26946 { (case "(($ac_try" in
26947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26948 *) ac_try_echo=$ac_try;;
26950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26951 (eval "$ac_try") 2>&5
26953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954 (exit $ac_status); }; } &&
26955 { ac_try='test -s conftest$ac_exeext'
26956 { (case "(($ac_try" in
26957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26958 *) ac_try_echo=$ac_try;;
26960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26961 (eval "$ac_try") 2>&5
26963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964 (exit $ac_status); }; }; then
26965 ac_cv_lib_elf_elf_begin=yes
26967 echo "$as_me: failed program was:" >&5
26968 sed 's/^/| /' conftest.$ac_ext >&5
26970 ac_cv_lib_elf_elf_begin=no
26973 rm -f core conftest.err conftest.$ac_objext \
26974 conftest$ac_exeext conftest.$ac_ext
26975 LIBS=$ac_check_lib_save_LIBS
26977 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26978 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26979 if test $ac_cv_lib_elf_elf_begin = yes; then
26980 cat >>confdefs.h <<_ACEOF
26981 #define HAVE_LIBELF 1
26989 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26990 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26991 if test "${ac_cv_lib_m_sin+set}" = set; then
26992 echo $ECHO_N "(cached) $ECHO_C" >&6
26994 ac_check_lib_save_LIBS=$LIBS
26996 cat >conftest.$ac_ext <<_ACEOF
26999 cat confdefs.h >>conftest.$ac_ext
27000 cat >>conftest.$ac_ext <<_ACEOF
27001 /* end confdefs.h. */
27003 /* Override any GCC internal prototype to avoid an error.
27004 Use char because int might match the return type of a GCC
27005 builtin and then its argument prototype would still apply. */
27018 rm -f conftest.$ac_objext conftest$ac_exeext
27019 if { (ac_try="$ac_link"
27020 case "(($ac_try" in
27021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27022 *) ac_try_echo=$ac_try;;
27024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27025 (eval "$ac_link") 2>conftest.er1
27027 grep -v '^ *+' conftest.er1 >conftest.err
27029 cat conftest.err >&5
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); } &&
27032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27033 { (case "(($ac_try" in
27034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27035 *) ac_try_echo=$ac_try;;
27037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27038 (eval "$ac_try") 2>&5
27040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); }; } &&
27042 { ac_try='test -s conftest$ac_exeext'
27043 { (case "(($ac_try" in
27044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27045 *) ac_try_echo=$ac_try;;
27047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27048 (eval "$ac_try") 2>&5
27050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); }; }; then
27052 ac_cv_lib_m_sin=yes
27054 echo "$as_me: failed program was:" >&5
27055 sed 's/^/| /' conftest.$ac_ext >&5
27060 rm -f core conftest.err conftest.$ac_objext \
27061 conftest$ac_exeext conftest.$ac_ext
27062 LIBS=$ac_check_lib_save_LIBS
27064 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27065 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27066 if test $ac_cv_lib_m_sin = yes; then
27067 cat >>confdefs.h <<_ACEOF
27068 #define HAVE_LIBM 1
27075 if test "$llvm_cv_os_type" = "MingW" ; then
27077 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27078 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27079 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27080 echo $ECHO_N "(cached) $ECHO_C" >&6
27082 ac_check_lib_save_LIBS=$LIBS
27083 LIBS="-limagehlp $LIBS"
27084 cat >conftest.$ac_ext <<_ACEOF
27087 cat confdefs.h >>conftest.$ac_ext
27088 cat >>conftest.$ac_ext <<_ACEOF
27089 /* end confdefs.h. */
27100 rm -f conftest.$ac_objext conftest$ac_exeext
27101 if { (ac_try="$ac_link"
27102 case "(($ac_try" in
27103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27104 *) ac_try_echo=$ac_try;;
27106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27107 (eval "$ac_link") 2>conftest.er1
27109 grep -v '^ *+' conftest.er1 >conftest.err
27111 cat conftest.err >&5
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); } &&
27114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27115 { (case "(($ac_try" in
27116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117 *) ac_try_echo=$ac_try;;
27119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120 (eval "$ac_try") 2>&5
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); }; } &&
27124 { ac_try='test -s conftest$ac_exeext'
27125 { (case "(($ac_try" in
27126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27127 *) ac_try_echo=$ac_try;;
27129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27130 (eval "$ac_try") 2>&5
27132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133 (exit $ac_status); }; }; then
27134 ac_cv_lib_imagehlp_main=yes
27136 echo "$as_me: failed program was:" >&5
27137 sed 's/^/| /' conftest.$ac_ext >&5
27139 ac_cv_lib_imagehlp_main=no
27142 rm -f core conftest.err conftest.$ac_objext \
27143 conftest$ac_exeext conftest.$ac_ext
27144 LIBS=$ac_check_lib_save_LIBS
27146 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27147 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27148 if test $ac_cv_lib_imagehlp_main = yes; then
27149 cat >>confdefs.h <<_ACEOF
27150 #define HAVE_LIBIMAGEHLP 1
27153 LIBS="-limagehlp $LIBS"
27158 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27159 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27160 if test "${ac_cv_lib_psapi_main+set}" = set; then
27161 echo $ECHO_N "(cached) $ECHO_C" >&6
27163 ac_check_lib_save_LIBS=$LIBS
27164 LIBS="-lpsapi $LIBS"
27165 cat >conftest.$ac_ext <<_ACEOF
27168 cat confdefs.h >>conftest.$ac_ext
27169 cat >>conftest.$ac_ext <<_ACEOF
27170 /* end confdefs.h. */
27181 rm -f conftest.$ac_objext conftest$ac_exeext
27182 if { (ac_try="$ac_link"
27183 case "(($ac_try" in
27184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27185 *) ac_try_echo=$ac_try;;
27187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27188 (eval "$ac_link") 2>conftest.er1
27190 grep -v '^ *+' conftest.er1 >conftest.err
27192 cat conftest.err >&5
27193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194 (exit $ac_status); } &&
27195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27196 { (case "(($ac_try" in
27197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27198 *) ac_try_echo=$ac_try;;
27200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27201 (eval "$ac_try") 2>&5
27203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204 (exit $ac_status); }; } &&
27205 { ac_try='test -s conftest$ac_exeext'
27206 { (case "(($ac_try" in
27207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27208 *) ac_try_echo=$ac_try;;
27210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27211 (eval "$ac_try") 2>&5
27213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214 (exit $ac_status); }; }; then
27215 ac_cv_lib_psapi_main=yes
27217 echo "$as_me: failed program was:" >&5
27218 sed 's/^/| /' conftest.$ac_ext >&5
27220 ac_cv_lib_psapi_main=no
27223 rm -f core conftest.err conftest.$ac_objext \
27224 conftest$ac_exeext conftest.$ac_ext
27225 LIBS=$ac_check_lib_save_LIBS
27227 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27228 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27229 if test $ac_cv_lib_psapi_main = yes; then
27230 cat >>confdefs.h <<_ACEOF
27231 #define HAVE_LIBPSAPI 1
27234 LIBS="-lpsapi $LIBS"
27240 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27241 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27242 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27243 echo $ECHO_N "(cached) $ECHO_C" >&6
27245 ac_func_search_save_LIBS=$LIBS
27246 cat >conftest.$ac_ext <<_ACEOF
27249 cat confdefs.h >>conftest.$ac_ext
27250 cat >>conftest.$ac_ext <<_ACEOF
27251 /* end confdefs.h. */
27253 /* Override any GCC internal prototype to avoid an error.
27254 Use char because int might match the return type of a GCC
27255 builtin and then its argument prototype would still apply. */
27263 return lt_dlopen ();
27268 for ac_lib in '' ltdl; do
27269 if test -z "$ac_lib"; then
27270 ac_res="none required"
27273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27275 rm -f conftest.$ac_objext conftest$ac_exeext
27276 if { (ac_try="$ac_link"
27277 case "(($ac_try" in
27278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27279 *) ac_try_echo=$ac_try;;
27281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27282 (eval "$ac_link") 2>conftest.er1
27284 grep -v '^ *+' conftest.er1 >conftest.err
27286 cat conftest.err >&5
27287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288 (exit $ac_status); } &&
27289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27290 { (case "(($ac_try" in
27291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27292 *) ac_try_echo=$ac_try;;
27294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27295 (eval "$ac_try") 2>&5
27297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298 (exit $ac_status); }; } &&
27299 { ac_try='test -s conftest$ac_exeext'
27300 { (case "(($ac_try" in
27301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27302 *) ac_try_echo=$ac_try;;
27304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27305 (eval "$ac_try") 2>&5
27307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308 (exit $ac_status); }; }; then
27309 ac_cv_search_lt_dlopen=$ac_res
27311 echo "$as_me: failed program was:" >&5
27312 sed 's/^/| /' conftest.$ac_ext >&5
27317 rm -f core conftest.err conftest.$ac_objext \
27319 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27323 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27326 ac_cv_search_lt_dlopen=no
27328 rm conftest.$ac_ext
27329 LIBS=$ac_func_search_save_LIBS
27331 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27332 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27333 ac_res=$ac_cv_search_lt_dlopen
27334 if test "$ac_res" != no; then
27335 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27337 cat >>confdefs.h <<\_ACEOF
27338 #define HAVE_LT_DLOPEN 1
27342 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27343 not be available" >&5
27344 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27345 not be available" >&2;}
27349 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27350 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27351 if test "${ac_cv_search_dlopen+set}" = set; then
27352 echo $ECHO_N "(cached) $ECHO_C" >&6
27354 ac_func_search_save_LIBS=$LIBS
27355 cat >conftest.$ac_ext <<_ACEOF
27358 cat confdefs.h >>conftest.$ac_ext
27359 cat >>conftest.$ac_ext <<_ACEOF
27360 /* end confdefs.h. */
27362 /* Override any GCC internal prototype to avoid an error.
27363 Use char because int might match the return type of a GCC
27364 builtin and then its argument prototype would still apply. */
27377 for ac_lib in '' dl; do
27378 if test -z "$ac_lib"; then
27379 ac_res="none required"
27382 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27384 rm -f conftest.$ac_objext conftest$ac_exeext
27385 if { (ac_try="$ac_link"
27386 case "(($ac_try" in
27387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27388 *) ac_try_echo=$ac_try;;
27390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27391 (eval "$ac_link") 2>conftest.er1
27393 grep -v '^ *+' conftest.er1 >conftest.err
27395 cat conftest.err >&5
27396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397 (exit $ac_status); } &&
27398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27399 { (case "(($ac_try" in
27400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27401 *) ac_try_echo=$ac_try;;
27403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27404 (eval "$ac_try") 2>&5
27406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407 (exit $ac_status); }; } &&
27408 { ac_try='test -s conftest$ac_exeext'
27409 { (case "(($ac_try" in
27410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27411 *) ac_try_echo=$ac_try;;
27413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27414 (eval "$ac_try") 2>&5
27416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417 (exit $ac_status); }; }; then
27418 ac_cv_search_dlopen=$ac_res
27420 echo "$as_me: failed program was:" >&5
27421 sed 's/^/| /' conftest.$ac_ext >&5
27426 rm -f core conftest.err conftest.$ac_objext \
27428 if test "${ac_cv_search_dlopen+set}" = set; then
27432 if test "${ac_cv_search_dlopen+set}" = set; then
27435 ac_cv_search_dlopen=no
27437 rm conftest.$ac_ext
27438 LIBS=$ac_func_search_save_LIBS
27440 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27441 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27442 ac_res=$ac_cv_search_dlopen
27443 if test "$ac_res" != no; then
27444 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27446 cat >>confdefs.h <<\_ACEOF
27447 #define HAVE_DLOPEN 1
27451 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27452 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27456 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27457 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27458 if test "${ac_cv_search_mallinfo+set}" = set; then
27459 echo $ECHO_N "(cached) $ECHO_C" >&6
27461 ac_func_search_save_LIBS=$LIBS
27462 cat >conftest.$ac_ext <<_ACEOF
27465 cat confdefs.h >>conftest.$ac_ext
27466 cat >>conftest.$ac_ext <<_ACEOF
27467 /* end confdefs.h. */
27469 /* Override any GCC internal prototype to avoid an error.
27470 Use char because int might match the return type of a GCC
27471 builtin and then its argument prototype would still apply. */
27479 return mallinfo ();
27484 for ac_lib in '' malloc; do
27485 if test -z "$ac_lib"; then
27486 ac_res="none required"
27489 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27491 rm -f conftest.$ac_objext conftest$ac_exeext
27492 if { (ac_try="$ac_link"
27493 case "(($ac_try" in
27494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27495 *) ac_try_echo=$ac_try;;
27497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27498 (eval "$ac_link") 2>conftest.er1
27500 grep -v '^ *+' conftest.er1 >conftest.err
27502 cat conftest.err >&5
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); } &&
27505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27506 { (case "(($ac_try" in
27507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27508 *) ac_try_echo=$ac_try;;
27510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27511 (eval "$ac_try") 2>&5
27513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514 (exit $ac_status); }; } &&
27515 { ac_try='test -s conftest$ac_exeext'
27516 { (case "(($ac_try" in
27517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27518 *) ac_try_echo=$ac_try;;
27520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27521 (eval "$ac_try") 2>&5
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); }; }; then
27525 ac_cv_search_mallinfo=$ac_res
27527 echo "$as_me: failed program was:" >&5
27528 sed 's/^/| /' conftest.$ac_ext >&5
27533 rm -f core conftest.err conftest.$ac_objext \
27535 if test "${ac_cv_search_mallinfo+set}" = set; then
27539 if test "${ac_cv_search_mallinfo+set}" = set; then
27542 ac_cv_search_mallinfo=no
27544 rm conftest.$ac_ext
27545 LIBS=$ac_func_search_save_LIBS
27547 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27548 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27549 ac_res=$ac_cv_search_mallinfo
27550 if test "$ac_res" != no; then
27551 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27553 cat >>confdefs.h <<\_ACEOF
27554 #define HAVE_MALLINFO 1
27560 if test "$ENABLE_THREADS" -eq 1 ; then
27562 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27563 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27564 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27565 echo $ECHO_N "(cached) $ECHO_C" >&6
27567 ac_check_lib_save_LIBS=$LIBS
27568 LIBS="-lpthread $LIBS"
27569 cat >conftest.$ac_ext <<_ACEOF
27572 cat confdefs.h >>conftest.$ac_ext
27573 cat >>conftest.$ac_ext <<_ACEOF
27574 /* end confdefs.h. */
27576 /* Override any GCC internal prototype to avoid an error.
27577 Use char because int might match the return type of a GCC
27578 builtin and then its argument prototype would still apply. */
27582 char pthread_mutex_init ();
27586 return pthread_mutex_init ();
27591 rm -f conftest.$ac_objext conftest$ac_exeext
27592 if { (ac_try="$ac_link"
27593 case "(($ac_try" in
27594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27595 *) ac_try_echo=$ac_try;;
27597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27598 (eval "$ac_link") 2>conftest.er1
27600 grep -v '^ *+' conftest.er1 >conftest.err
27602 cat conftest.err >&5
27603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604 (exit $ac_status); } &&
27605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27606 { (case "(($ac_try" in
27607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27608 *) ac_try_echo=$ac_try;;
27610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27611 (eval "$ac_try") 2>&5
27613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614 (exit $ac_status); }; } &&
27615 { ac_try='test -s conftest$ac_exeext'
27616 { (case "(($ac_try" in
27617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27618 *) ac_try_echo=$ac_try;;
27620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27621 (eval "$ac_try") 2>&5
27623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624 (exit $ac_status); }; }; then
27625 ac_cv_lib_pthread_pthread_mutex_init=yes
27627 echo "$as_me: failed program was:" >&5
27628 sed 's/^/| /' conftest.$ac_ext >&5
27630 ac_cv_lib_pthread_pthread_mutex_init=no
27633 rm -f core conftest.err conftest.$ac_objext \
27634 conftest$ac_exeext conftest.$ac_ext
27635 LIBS=$ac_check_lib_save_LIBS
27637 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27638 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27639 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27640 cat >>confdefs.h <<_ACEOF
27641 #define HAVE_LIBPTHREAD 1
27644 LIBS="-lpthread $LIBS"
27648 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27649 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27650 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27651 echo $ECHO_N "(cached) $ECHO_C" >&6
27653 ac_func_search_save_LIBS=$LIBS
27654 cat >conftest.$ac_ext <<_ACEOF
27657 cat confdefs.h >>conftest.$ac_ext
27658 cat >>conftest.$ac_ext <<_ACEOF
27659 /* end confdefs.h. */
27661 /* Override any GCC internal prototype to avoid an error.
27662 Use char because int might match the return type of a GCC
27663 builtin and then its argument prototype would still apply. */
27667 char pthread_mutex_lock ();
27671 return pthread_mutex_lock ();
27676 for ac_lib in '' pthread; do
27677 if test -z "$ac_lib"; then
27678 ac_res="none required"
27681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27683 rm -f conftest.$ac_objext conftest$ac_exeext
27684 if { (ac_try="$ac_link"
27685 case "(($ac_try" in
27686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27687 *) ac_try_echo=$ac_try;;
27689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27690 (eval "$ac_link") 2>conftest.er1
27692 grep -v '^ *+' conftest.er1 >conftest.err
27694 cat conftest.err >&5
27695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696 (exit $ac_status); } &&
27697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27698 { (case "(($ac_try" in
27699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27700 *) ac_try_echo=$ac_try;;
27702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27703 (eval "$ac_try") 2>&5
27705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706 (exit $ac_status); }; } &&
27707 { ac_try='test -s conftest$ac_exeext'
27708 { (case "(($ac_try" in
27709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27710 *) ac_try_echo=$ac_try;;
27712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27713 (eval "$ac_try") 2>&5
27715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716 (exit $ac_status); }; }; then
27717 ac_cv_search_pthread_mutex_lock=$ac_res
27719 echo "$as_me: failed program was:" >&5
27720 sed 's/^/| /' conftest.$ac_ext >&5
27725 rm -f core conftest.err conftest.$ac_objext \
27727 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27731 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27734 ac_cv_search_pthread_mutex_lock=no
27736 rm conftest.$ac_ext
27737 LIBS=$ac_func_search_save_LIBS
27739 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27740 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27741 ac_res=$ac_cv_search_pthread_mutex_lock
27742 if test "$ac_res" != no; then
27743 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27745 cat >>confdefs.h <<\_ACEOF
27746 #define HAVE_PTHREAD_MUTEX_LOCK 1
27754 # Check whether --with-udis86 was given.
27755 if test "${with_udis86+set}" = set; then
27756 withval=$with_udis86;
27761 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27764 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27765 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27766 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27767 echo $ECHO_N "(cached) $ECHO_C" >&6
27769 ac_check_lib_save_LIBS=$LIBS
27770 LIBS="-ludis86 $LIBS"
27771 cat >conftest.$ac_ext <<_ACEOF
27774 cat confdefs.h >>conftest.$ac_ext
27775 cat >>conftest.$ac_ext <<_ACEOF
27776 /* end confdefs.h. */
27778 /* Override any GCC internal prototype to avoid an error.
27779 Use char because int might match the return type of a GCC
27780 builtin and then its argument prototype would still apply. */
27793 rm -f conftest.$ac_objext conftest$ac_exeext
27794 if { (ac_try="$ac_link"
27795 case "(($ac_try" in
27796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27797 *) ac_try_echo=$ac_try;;
27799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27800 (eval "$ac_link") 2>conftest.er1
27802 grep -v '^ *+' conftest.er1 >conftest.err
27804 cat conftest.err >&5
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); } &&
27807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27808 { (case "(($ac_try" in
27809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27810 *) ac_try_echo=$ac_try;;
27812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27813 (eval "$ac_try") 2>&5
27815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816 (exit $ac_status); }; } &&
27817 { ac_try='test -s conftest$ac_exeext'
27818 { (case "(($ac_try" in
27819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27820 *) ac_try_echo=$ac_try;;
27822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27823 (eval "$ac_try") 2>&5
27825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826 (exit $ac_status); }; }; then
27827 ac_cv_lib_udis86_ud_init=yes
27829 echo "$as_me: failed program was:" >&5
27830 sed 's/^/| /' conftest.$ac_ext >&5
27832 ac_cv_lib_udis86_ud_init=no
27835 rm -f core conftest.err conftest.$ac_objext \
27836 conftest$ac_exeext conftest.$ac_ext
27837 LIBS=$ac_check_lib_save_LIBS
27839 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27840 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27841 if test $ac_cv_lib_udis86_ud_init = yes; then
27842 cat >>confdefs.h <<_ACEOF
27843 #define HAVE_LIBUDIS86 1
27846 LIBS="-ludis86 $LIBS"
27850 echo "Error! You need to have libudis86 around."
27862 cat >>confdefs.h <<_ACEOF
27863 #define USE_UDIS86 $USE_UDIS86
27873 ac_header_dirent=no
27874 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27875 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27876 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27877 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27879 echo $ECHO_N "(cached) $ECHO_C" >&6
27881 cat >conftest.$ac_ext <<_ACEOF
27884 cat confdefs.h >>conftest.$ac_ext
27885 cat >>conftest.$ac_ext <<_ACEOF
27886 /* end confdefs.h. */
27887 #include <sys/types.h>
27899 rm -f conftest.$ac_objext
27900 if { (ac_try="$ac_compile"
27901 case "(($ac_try" in
27902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27903 *) ac_try_echo=$ac_try;;
27905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27906 (eval "$ac_compile") 2>conftest.er1
27908 grep -v '^ *+' conftest.er1 >conftest.err
27910 cat conftest.err >&5
27911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912 (exit $ac_status); } &&
27913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27914 { (case "(($ac_try" in
27915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27916 *) ac_try_echo=$ac_try;;
27918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27919 (eval "$ac_try") 2>&5
27921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922 (exit $ac_status); }; } &&
27923 { ac_try='test -s conftest.$ac_objext'
27924 { (case "(($ac_try" in
27925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27926 *) ac_try_echo=$ac_try;;
27928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27929 (eval "$ac_try") 2>&5
27931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27932 (exit $ac_status); }; }; then
27933 eval "$as_ac_Header=yes"
27935 echo "$as_me: failed program was:" >&5
27936 sed 's/^/| /' conftest.$ac_ext >&5
27938 eval "$as_ac_Header=no"
27941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27943 ac_res=`eval echo '${'$as_ac_Header'}'`
27944 { echo "$as_me:$LINENO: result: $ac_res" >&5
27945 echo "${ECHO_T}$ac_res" >&6; }
27946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27947 cat >>confdefs.h <<_ACEOF
27948 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27951 ac_header_dirent=$ac_hdr; break
27955 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27956 if test $ac_header_dirent = dirent.h; then
27957 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27958 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27959 if test "${ac_cv_search_opendir+set}" = set; then
27960 echo $ECHO_N "(cached) $ECHO_C" >&6
27962 ac_func_search_save_LIBS=$LIBS
27963 cat >conftest.$ac_ext <<_ACEOF
27966 cat confdefs.h >>conftest.$ac_ext
27967 cat >>conftest.$ac_ext <<_ACEOF
27968 /* end confdefs.h. */
27970 /* Override any GCC internal prototype to avoid an error.
27971 Use char because int might match the return type of a GCC
27972 builtin and then its argument prototype would still apply. */
27985 for ac_lib in '' dir; do
27986 if test -z "$ac_lib"; then
27987 ac_res="none required"
27990 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27992 rm -f conftest.$ac_objext conftest$ac_exeext
27993 if { (ac_try="$ac_link"
27994 case "(($ac_try" in
27995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27996 *) ac_try_echo=$ac_try;;
27998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27999 (eval "$ac_link") 2>conftest.er1
28001 grep -v '^ *+' conftest.er1 >conftest.err
28003 cat conftest.err >&5
28004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28005 (exit $ac_status); } &&
28006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28007 { (case "(($ac_try" in
28008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28009 *) ac_try_echo=$ac_try;;
28011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28012 (eval "$ac_try") 2>&5
28014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015 (exit $ac_status); }; } &&
28016 { ac_try='test -s conftest$ac_exeext'
28017 { (case "(($ac_try" in
28018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28019 *) ac_try_echo=$ac_try;;
28021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28022 (eval "$ac_try") 2>&5
28024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28025 (exit $ac_status); }; }; then
28026 ac_cv_search_opendir=$ac_res
28028 echo "$as_me: failed program was:" >&5
28029 sed 's/^/| /' conftest.$ac_ext >&5
28034 rm -f core conftest.err conftest.$ac_objext \
28036 if test "${ac_cv_search_opendir+set}" = set; then
28040 if test "${ac_cv_search_opendir+set}" = set; then
28043 ac_cv_search_opendir=no
28045 rm conftest.$ac_ext
28046 LIBS=$ac_func_search_save_LIBS
28048 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28049 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28050 ac_res=$ac_cv_search_opendir
28051 if test "$ac_res" != no; then
28052 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28057 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28058 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28059 if test "${ac_cv_search_opendir+set}" = set; then
28060 echo $ECHO_N "(cached) $ECHO_C" >&6
28062 ac_func_search_save_LIBS=$LIBS
28063 cat >conftest.$ac_ext <<_ACEOF
28066 cat confdefs.h >>conftest.$ac_ext
28067 cat >>conftest.$ac_ext <<_ACEOF
28068 /* end confdefs.h. */
28070 /* Override any GCC internal prototype to avoid an error.
28071 Use char because int might match the return type of a GCC
28072 builtin and then its argument prototype would still apply. */
28085 for ac_lib in '' x; do
28086 if test -z "$ac_lib"; then
28087 ac_res="none required"
28090 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28092 rm -f conftest.$ac_objext conftest$ac_exeext
28093 if { (ac_try="$ac_link"
28094 case "(($ac_try" in
28095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28096 *) ac_try_echo=$ac_try;;
28098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28099 (eval "$ac_link") 2>conftest.er1
28101 grep -v '^ *+' conftest.er1 >conftest.err
28103 cat conftest.err >&5
28104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105 (exit $ac_status); } &&
28106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28107 { (case "(($ac_try" in
28108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28109 *) ac_try_echo=$ac_try;;
28111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28112 (eval "$ac_try") 2>&5
28114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115 (exit $ac_status); }; } &&
28116 { ac_try='test -s conftest$ac_exeext'
28117 { (case "(($ac_try" in
28118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28119 *) ac_try_echo=$ac_try;;
28121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28122 (eval "$ac_try") 2>&5
28124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28125 (exit $ac_status); }; }; then
28126 ac_cv_search_opendir=$ac_res
28128 echo "$as_me: failed program was:" >&5
28129 sed 's/^/| /' conftest.$ac_ext >&5
28134 rm -f core conftest.err conftest.$ac_objext \
28136 if test "${ac_cv_search_opendir+set}" = set; then
28140 if test "${ac_cv_search_opendir+set}" = set; then
28143 ac_cv_search_opendir=no
28145 rm conftest.$ac_ext
28146 LIBS=$ac_func_search_save_LIBS
28148 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28149 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28150 ac_res=$ac_cv_search_opendir
28151 if test "$ac_res" != no; then
28152 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28158 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28159 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28160 if test "${ac_cv_header_mmap_anon+set}" = set; then
28161 echo $ECHO_N "(cached) $ECHO_C" >&6
28164 ac_cpp='$CPP $CPPFLAGS'
28165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28169 cat >conftest.$ac_ext <<_ACEOF
28172 cat confdefs.h >>conftest.$ac_ext
28173 cat >>conftest.$ac_ext <<_ACEOF
28174 /* end confdefs.h. */
28175 #include <sys/mman.h>
28176 #include <unistd.h>
28181 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28186 rm -f conftest.$ac_objext
28187 if { (ac_try="$ac_compile"
28188 case "(($ac_try" in
28189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28190 *) ac_try_echo=$ac_try;;
28192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28193 (eval "$ac_compile") 2>conftest.er1
28195 grep -v '^ *+' conftest.er1 >conftest.err
28197 cat conftest.err >&5
28198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199 (exit $ac_status); } &&
28200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28201 { (case "(($ac_try" in
28202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28203 *) ac_try_echo=$ac_try;;
28205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28206 (eval "$ac_try") 2>&5
28208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209 (exit $ac_status); }; } &&
28210 { ac_try='test -s conftest.$ac_objext'
28211 { (case "(($ac_try" in
28212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28213 *) ac_try_echo=$ac_try;;
28215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28216 (eval "$ac_try") 2>&5
28218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28219 (exit $ac_status); }; }; then
28220 ac_cv_header_mmap_anon=yes
28222 echo "$as_me: failed program was:" >&5
28223 sed 's/^/| /' conftest.$ac_ext >&5
28225 ac_cv_header_mmap_anon=no
28228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28230 ac_cpp='$CPP $CPPFLAGS'
28231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28237 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28238 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28239 if test "$ac_cv_header_mmap_anon" = yes; then
28241 cat >>confdefs.h <<\_ACEOF
28242 #define HAVE_MMAP_ANONYMOUS 1
28247 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28248 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28249 if test "${ac_cv_header_stat_broken+set}" = set; then
28250 echo $ECHO_N "(cached) $ECHO_C" >&6
28252 cat >conftest.$ac_ext <<_ACEOF
28255 cat confdefs.h >>conftest.$ac_ext
28256 cat >>conftest.$ac_ext <<_ACEOF
28257 /* end confdefs.h. */
28258 #include <sys/types.h>
28259 #include <sys/stat.h>
28261 #if defined S_ISBLK && defined S_IFDIR
28262 # if S_ISBLK (S_IFDIR)
28267 #if defined S_ISBLK && defined S_IFCHR
28268 # if S_ISBLK (S_IFCHR)
28273 #if defined S_ISLNK && defined S_IFREG
28274 # if S_ISLNK (S_IFREG)
28279 #if defined S_ISSOCK && defined S_IFREG
28280 # if S_ISSOCK (S_IFREG)
28286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28287 $EGREP "You lose" >/dev/null 2>&1; then
28288 ac_cv_header_stat_broken=yes
28290 ac_cv_header_stat_broken=no
28295 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28296 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28297 if test $ac_cv_header_stat_broken = yes; then
28299 cat >>confdefs.h <<\_ACEOF
28300 #define STAT_MACROS_BROKEN 1
28305 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28306 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28307 if test "${ac_cv_header_stdc+set}" = set; then
28308 echo $ECHO_N "(cached) $ECHO_C" >&6
28310 cat >conftest.$ac_ext <<_ACEOF
28313 cat confdefs.h >>conftest.$ac_ext
28314 cat >>conftest.$ac_ext <<_ACEOF
28315 /* end confdefs.h. */
28316 #include <stdlib.h>
28317 #include <stdarg.h>
28318 #include <string.h>
28329 rm -f conftest.$ac_objext
28330 if { (ac_try="$ac_compile"
28331 case "(($ac_try" in
28332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28333 *) ac_try_echo=$ac_try;;
28335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28336 (eval "$ac_compile") 2>conftest.er1
28338 grep -v '^ *+' conftest.er1 >conftest.err
28340 cat conftest.err >&5
28341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342 (exit $ac_status); } &&
28343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28344 { (case "(($ac_try" in
28345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28346 *) ac_try_echo=$ac_try;;
28348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28349 (eval "$ac_try") 2>&5
28351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352 (exit $ac_status); }; } &&
28353 { ac_try='test -s conftest.$ac_objext'
28354 { (case "(($ac_try" in
28355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28356 *) ac_try_echo=$ac_try;;
28358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28359 (eval "$ac_try") 2>&5
28361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362 (exit $ac_status); }; }; then
28363 ac_cv_header_stdc=yes
28365 echo "$as_me: failed program was:" >&5
28366 sed 's/^/| /' conftest.$ac_ext >&5
28368 ac_cv_header_stdc=no
28371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28373 if test $ac_cv_header_stdc = yes; then
28374 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28375 cat >conftest.$ac_ext <<_ACEOF
28378 cat confdefs.h >>conftest.$ac_ext
28379 cat >>conftest.$ac_ext <<_ACEOF
28380 /* end confdefs.h. */
28381 #include <string.h>
28384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28385 $EGREP "memchr" >/dev/null 2>&1; then
28388 ac_cv_header_stdc=no
28394 if test $ac_cv_header_stdc = yes; then
28395 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28396 cat >conftest.$ac_ext <<_ACEOF
28399 cat confdefs.h >>conftest.$ac_ext
28400 cat >>conftest.$ac_ext <<_ACEOF
28401 /* end confdefs.h. */
28402 #include <stdlib.h>
28405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28406 $EGREP "free" >/dev/null 2>&1; then
28409 ac_cv_header_stdc=no
28415 if test $ac_cv_header_stdc = yes; then
28416 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28417 if test "$cross_compiling" = yes; then
28420 cat >conftest.$ac_ext <<_ACEOF
28423 cat confdefs.h >>conftest.$ac_ext
28424 cat >>conftest.$ac_ext <<_ACEOF
28425 /* end confdefs.h. */
28427 #include <stdlib.h>
28428 #if ((' ' & 0x0FF) == 0x020)
28429 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28430 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28432 # define ISLOWER(c) \
28433 (('a' <= (c) && (c) <= 'i') \
28434 || ('j' <= (c) && (c) <= 'r') \
28435 || ('s' <= (c) && (c) <= 'z'))
28436 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28439 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28444 for (i = 0; i < 256; i++)
28445 if (XOR (islower (i), ISLOWER (i))
28446 || toupper (i) != TOUPPER (i))
28451 rm -f conftest$ac_exeext
28452 if { (ac_try="$ac_link"
28453 case "(($ac_try" in
28454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28455 *) ac_try_echo=$ac_try;;
28457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28458 (eval "$ac_link") 2>&5
28460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28462 { (case "(($ac_try" in
28463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28464 *) ac_try_echo=$ac_try;;
28466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28467 (eval "$ac_try") 2>&5
28469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28470 (exit $ac_status); }; }; then
28473 echo "$as_me: program exited with status $ac_status" >&5
28474 echo "$as_me: failed program was:" >&5
28475 sed 's/^/| /' conftest.$ac_ext >&5
28477 ( exit $ac_status )
28478 ac_cv_header_stdc=no
28480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28486 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28487 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28488 if test $ac_cv_header_stdc = yes; then
28490 cat >>confdefs.h <<\_ACEOF
28491 #define STDC_HEADERS 1
28496 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28497 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28498 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28499 echo $ECHO_N "(cached) $ECHO_C" >&6
28501 cat >conftest.$ac_ext <<_ACEOF
28504 cat confdefs.h >>conftest.$ac_ext
28505 cat >>conftest.$ac_ext <<_ACEOF
28506 /* end confdefs.h. */
28507 #include <sys/types.h>
28508 #include <sys/wait.h>
28509 #ifndef WEXITSTATUS
28510 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28513 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28521 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28526 rm -f conftest.$ac_objext
28527 if { (ac_try="$ac_compile"
28528 case "(($ac_try" in
28529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28530 *) ac_try_echo=$ac_try;;
28532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28533 (eval "$ac_compile") 2>conftest.er1
28535 grep -v '^ *+' conftest.er1 >conftest.err
28537 cat conftest.err >&5
28538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539 (exit $ac_status); } &&
28540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28541 { (case "(($ac_try" in
28542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28543 *) ac_try_echo=$ac_try;;
28545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28546 (eval "$ac_try") 2>&5
28548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549 (exit $ac_status); }; } &&
28550 { ac_try='test -s conftest.$ac_objext'
28551 { (case "(($ac_try" in
28552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28553 *) ac_try_echo=$ac_try;;
28555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28556 (eval "$ac_try") 2>&5
28558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559 (exit $ac_status); }; }; then
28560 ac_cv_header_sys_wait_h=yes
28562 echo "$as_me: failed program was:" >&5
28563 sed 's/^/| /' conftest.$ac_ext >&5
28565 ac_cv_header_sys_wait_h=no
28568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28570 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28571 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28572 if test $ac_cv_header_sys_wait_h = yes; then
28574 cat >>confdefs.h <<\_ACEOF
28575 #define HAVE_SYS_WAIT_H 1
28580 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28581 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28582 if test "${ac_cv_header_time+set}" = set; then
28583 echo $ECHO_N "(cached) $ECHO_C" >&6
28585 cat >conftest.$ac_ext <<_ACEOF
28588 cat confdefs.h >>conftest.$ac_ext
28589 cat >>conftest.$ac_ext <<_ACEOF
28590 /* end confdefs.h. */
28591 #include <sys/types.h>
28592 #include <sys/time.h>
28598 if ((struct tm *) 0)
28604 rm -f conftest.$ac_objext
28605 if { (ac_try="$ac_compile"
28606 case "(($ac_try" in
28607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28608 *) ac_try_echo=$ac_try;;
28610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28611 (eval "$ac_compile") 2>conftest.er1
28613 grep -v '^ *+' conftest.er1 >conftest.err
28615 cat conftest.err >&5
28616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 (exit $ac_status); } &&
28618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28619 { (case "(($ac_try" in
28620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28621 *) ac_try_echo=$ac_try;;
28623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28624 (eval "$ac_try") 2>&5
28626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28627 (exit $ac_status); }; } &&
28628 { ac_try='test -s conftest.$ac_objext'
28629 { (case "(($ac_try" in
28630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28631 *) ac_try_echo=$ac_try;;
28633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28634 (eval "$ac_try") 2>&5
28636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637 (exit $ac_status); }; }; then
28638 ac_cv_header_time=yes
28640 echo "$as_me: failed program was:" >&5
28641 sed 's/^/| /' conftest.$ac_ext >&5
28643 ac_cv_header_time=no
28646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28648 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28649 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28650 if test $ac_cv_header_time = yes; then
28652 cat >>confdefs.h <<\_ACEOF
28653 #define TIME_WITH_SYS_TIME 1
28665 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28672 echo $ECHO_N "(cached) $ECHO_C" >&6
28674 ac_res=`eval echo '${'$as_ac_Header'}'`
28675 { echo "$as_me:$LINENO: result: $ac_res" >&5
28676 echo "${ECHO_T}$ac_res" >&6; }
28678 # Is the header compilable?
28679 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28681 cat >conftest.$ac_ext <<_ACEOF
28684 cat confdefs.h >>conftest.$ac_ext
28685 cat >>conftest.$ac_ext <<_ACEOF
28686 /* end confdefs.h. */
28687 $ac_includes_default
28688 #include <$ac_header>
28690 rm -f conftest.$ac_objext
28691 if { (ac_try="$ac_compile"
28692 case "(($ac_try" in
28693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28694 *) ac_try_echo=$ac_try;;
28696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28697 (eval "$ac_compile") 2>conftest.er1
28699 grep -v '^ *+' conftest.er1 >conftest.err
28701 cat conftest.err >&5
28702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703 (exit $ac_status); } &&
28704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28705 { (case "(($ac_try" in
28706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28707 *) ac_try_echo=$ac_try;;
28709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28710 (eval "$ac_try") 2>&5
28712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28713 (exit $ac_status); }; } &&
28714 { ac_try='test -s conftest.$ac_objext'
28715 { (case "(($ac_try" in
28716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28717 *) ac_try_echo=$ac_try;;
28719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28720 (eval "$ac_try") 2>&5
28722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723 (exit $ac_status); }; }; then
28724 ac_header_compiler=yes
28726 echo "$as_me: failed program was:" >&5
28727 sed 's/^/| /' conftest.$ac_ext >&5
28729 ac_header_compiler=no
28732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28734 echo "${ECHO_T}$ac_header_compiler" >&6; }
28736 # Is the header present?
28737 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28739 cat >conftest.$ac_ext <<_ACEOF
28742 cat confdefs.h >>conftest.$ac_ext
28743 cat >>conftest.$ac_ext <<_ACEOF
28744 /* end confdefs.h. */
28745 #include <$ac_header>
28747 if { (ac_try="$ac_cpp conftest.$ac_ext"
28748 case "(($ac_try" in
28749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28750 *) ac_try_echo=$ac_try;;
28752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28755 grep -v '^ *+' conftest.er1 >conftest.err
28757 cat conftest.err >&5
28758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28759 (exit $ac_status); } >/dev/null; then
28760 if test -s conftest.err; then
28761 ac_cpp_err=$ac_c_preproc_warn_flag
28762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28769 if test -z "$ac_cpp_err"; then
28770 ac_header_preproc=yes
28772 echo "$as_me: failed program was:" >&5
28773 sed 's/^/| /' conftest.$ac_ext >&5
28775 ac_header_preproc=no
28778 rm -f conftest.err conftest.$ac_ext
28779 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28780 echo "${ECHO_T}$ac_header_preproc" >&6; }
28782 # So? What about this header?
28783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28789 ac_header_preproc=yes
28792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28799 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28805 ## ----------------------------------- ##
28806 ## Report this to llvmbugs@cs.uiuc.edu ##
28807 ## ----------------------------------- ##
28809 ) | sed "s/^/$as_me: WARNING: /" >&2
28812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28815 echo $ECHO_N "(cached) $ECHO_C" >&6
28817 eval "$as_ac_Header=\$ac_header_preproc"
28819 ac_res=`eval echo '${'$as_ac_Header'}'`
28820 { echo "$as_me:$LINENO: result: $ac_res" >&5
28821 echo "${ECHO_T}$ac_res" >&6; }
28824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28825 cat >>confdefs.h <<_ACEOF
28826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28839 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28846 echo $ECHO_N "(cached) $ECHO_C" >&6
28848 ac_res=`eval echo '${'$as_ac_Header'}'`
28849 { echo "$as_me:$LINENO: result: $ac_res" >&5
28850 echo "${ECHO_T}$ac_res" >&6; }
28852 # Is the header compilable?
28853 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28855 cat >conftest.$ac_ext <<_ACEOF
28858 cat confdefs.h >>conftest.$ac_ext
28859 cat >>conftest.$ac_ext <<_ACEOF
28860 /* end confdefs.h. */
28861 $ac_includes_default
28862 #include <$ac_header>
28864 rm -f conftest.$ac_objext
28865 if { (ac_try="$ac_compile"
28866 case "(($ac_try" in
28867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28868 *) ac_try_echo=$ac_try;;
28870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28871 (eval "$ac_compile") 2>conftest.er1
28873 grep -v '^ *+' conftest.er1 >conftest.err
28875 cat conftest.err >&5
28876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877 (exit $ac_status); } &&
28878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28879 { (case "(($ac_try" in
28880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28881 *) ac_try_echo=$ac_try;;
28883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28884 (eval "$ac_try") 2>&5
28886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887 (exit $ac_status); }; } &&
28888 { ac_try='test -s conftest.$ac_objext'
28889 { (case "(($ac_try" in
28890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28891 *) ac_try_echo=$ac_try;;
28893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28894 (eval "$ac_try") 2>&5
28896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28897 (exit $ac_status); }; }; then
28898 ac_header_compiler=yes
28900 echo "$as_me: failed program was:" >&5
28901 sed 's/^/| /' conftest.$ac_ext >&5
28903 ac_header_compiler=no
28906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28908 echo "${ECHO_T}$ac_header_compiler" >&6; }
28910 # Is the header present?
28911 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28913 cat >conftest.$ac_ext <<_ACEOF
28916 cat confdefs.h >>conftest.$ac_ext
28917 cat >>conftest.$ac_ext <<_ACEOF
28918 /* end confdefs.h. */
28919 #include <$ac_header>
28921 if { (ac_try="$ac_cpp conftest.$ac_ext"
28922 case "(($ac_try" in
28923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28924 *) ac_try_echo=$ac_try;;
28926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28929 grep -v '^ *+' conftest.er1 >conftest.err
28931 cat conftest.err >&5
28932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933 (exit $ac_status); } >/dev/null; then
28934 if test -s conftest.err; then
28935 ac_cpp_err=$ac_c_preproc_warn_flag
28936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28943 if test -z "$ac_cpp_err"; then
28944 ac_header_preproc=yes
28946 echo "$as_me: failed program was:" >&5
28947 sed 's/^/| /' conftest.$ac_ext >&5
28949 ac_header_preproc=no
28952 rm -f conftest.err conftest.$ac_ext
28953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28954 echo "${ECHO_T}$ac_header_preproc" >&6; }
28956 # So? What about this header?
28957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28959 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28960 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28962 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28963 ac_header_preproc=yes
28966 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28967 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28968 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28969 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28970 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28971 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28972 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28973 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28976 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28977 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28979 ## ----------------------------------- ##
28980 ## Report this to llvmbugs@cs.uiuc.edu ##
28981 ## ----------------------------------- ##
28983 ) | sed "s/^/$as_me: WARNING: /" >&2
28986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28989 echo $ECHO_N "(cached) $ECHO_C" >&6
28991 eval "$as_ac_Header=\$ac_header_preproc"
28993 ac_res=`eval echo '${'$as_ac_Header'}'`
28994 { echo "$as_me:$LINENO: result: $ac_res" >&5
28995 echo "${ECHO_T}$ac_res" >&6; }
28998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28999 cat >>confdefs.h <<_ACEOF
29000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29008 for ac_header in windows.h
29010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29015 echo $ECHO_N "(cached) $ECHO_C" >&6
29017 ac_res=`eval echo '${'$as_ac_Header'}'`
29018 { echo "$as_me:$LINENO: result: $ac_res" >&5
29019 echo "${ECHO_T}$ac_res" >&6; }
29021 # Is the header compilable?
29022 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29024 cat >conftest.$ac_ext <<_ACEOF
29027 cat confdefs.h >>conftest.$ac_ext
29028 cat >>conftest.$ac_ext <<_ACEOF
29029 /* end confdefs.h. */
29030 $ac_includes_default
29031 #include <$ac_header>
29033 rm -f conftest.$ac_objext
29034 if { (ac_try="$ac_compile"
29035 case "(($ac_try" in
29036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29037 *) ac_try_echo=$ac_try;;
29039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29040 (eval "$ac_compile") 2>conftest.er1
29042 grep -v '^ *+' conftest.er1 >conftest.err
29044 cat conftest.err >&5
29045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046 (exit $ac_status); } &&
29047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29048 { (case "(($ac_try" in
29049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29050 *) ac_try_echo=$ac_try;;
29052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29053 (eval "$ac_try") 2>&5
29055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056 (exit $ac_status); }; } &&
29057 { ac_try='test -s conftest.$ac_objext'
29058 { (case "(($ac_try" in
29059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29060 *) ac_try_echo=$ac_try;;
29062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29063 (eval "$ac_try") 2>&5
29065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066 (exit $ac_status); }; }; then
29067 ac_header_compiler=yes
29069 echo "$as_me: failed program was:" >&5
29070 sed 's/^/| /' conftest.$ac_ext >&5
29072 ac_header_compiler=no
29075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29077 echo "${ECHO_T}$ac_header_compiler" >&6; }
29079 # Is the header present?
29080 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29082 cat >conftest.$ac_ext <<_ACEOF
29085 cat confdefs.h >>conftest.$ac_ext
29086 cat >>conftest.$ac_ext <<_ACEOF
29087 /* end confdefs.h. */
29088 #include <$ac_header>
29090 if { (ac_try="$ac_cpp conftest.$ac_ext"
29091 case "(($ac_try" in
29092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29093 *) ac_try_echo=$ac_try;;
29095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29098 grep -v '^ *+' conftest.er1 >conftest.err
29100 cat conftest.err >&5
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); } >/dev/null; then
29103 if test -s conftest.err; then
29104 ac_cpp_err=$ac_c_preproc_warn_flag
29105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29112 if test -z "$ac_cpp_err"; then
29113 ac_header_preproc=yes
29115 echo "$as_me: failed program was:" >&5
29116 sed 's/^/| /' conftest.$ac_ext >&5
29118 ac_header_preproc=no
29121 rm -f conftest.err conftest.$ac_ext
29122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29123 echo "${ECHO_T}$ac_header_preproc" >&6; }
29125 # So? What about this header?
29126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29132 ac_header_preproc=yes
29135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29148 ## ----------------------------------- ##
29149 ## Report this to llvmbugs@cs.uiuc.edu ##
29150 ## ----------------------------------- ##
29152 ) | sed "s/^/$as_me: WARNING: /" >&2
29155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29158 echo $ECHO_N "(cached) $ECHO_C" >&6
29160 eval "$as_ac_Header=\$ac_header_preproc"
29162 ac_res=`eval echo '${'$as_ac_Header'}'`
29163 { echo "$as_me:$LINENO: result: $ac_res" >&5
29164 echo "${ECHO_T}$ac_res" >&6; }
29167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29168 cat >>confdefs.h <<_ACEOF
29169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29180 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29187 echo $ECHO_N "(cached) $ECHO_C" >&6
29189 ac_res=`eval echo '${'$as_ac_Header'}'`
29190 { echo "$as_me:$LINENO: result: $ac_res" >&5
29191 echo "${ECHO_T}$ac_res" >&6; }
29193 # Is the header compilable?
29194 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29196 cat >conftest.$ac_ext <<_ACEOF
29199 cat confdefs.h >>conftest.$ac_ext
29200 cat >>conftest.$ac_ext <<_ACEOF
29201 /* end confdefs.h. */
29202 $ac_includes_default
29203 #include <$ac_header>
29205 rm -f conftest.$ac_objext
29206 if { (ac_try="$ac_compile"
29207 case "(($ac_try" in
29208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29209 *) ac_try_echo=$ac_try;;
29211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29212 (eval "$ac_compile") 2>conftest.er1
29214 grep -v '^ *+' conftest.er1 >conftest.err
29216 cat conftest.err >&5
29217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218 (exit $ac_status); } &&
29219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29220 { (case "(($ac_try" in
29221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29222 *) ac_try_echo=$ac_try;;
29224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29225 (eval "$ac_try") 2>&5
29227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228 (exit $ac_status); }; } &&
29229 { ac_try='test -s conftest.$ac_objext'
29230 { (case "(($ac_try" in
29231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29232 *) ac_try_echo=$ac_try;;
29234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29235 (eval "$ac_try") 2>&5
29237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238 (exit $ac_status); }; }; then
29239 ac_header_compiler=yes
29241 echo "$as_me: failed program was:" >&5
29242 sed 's/^/| /' conftest.$ac_ext >&5
29244 ac_header_compiler=no
29247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29249 echo "${ECHO_T}$ac_header_compiler" >&6; }
29251 # Is the header present?
29252 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29254 cat >conftest.$ac_ext <<_ACEOF
29257 cat confdefs.h >>conftest.$ac_ext
29258 cat >>conftest.$ac_ext <<_ACEOF
29259 /* end confdefs.h. */
29260 #include <$ac_header>
29262 if { (ac_try="$ac_cpp conftest.$ac_ext"
29263 case "(($ac_try" in
29264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29265 *) ac_try_echo=$ac_try;;
29267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29270 grep -v '^ *+' conftest.er1 >conftest.err
29272 cat conftest.err >&5
29273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274 (exit $ac_status); } >/dev/null; then
29275 if test -s conftest.err; then
29276 ac_cpp_err=$ac_c_preproc_warn_flag
29277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29284 if test -z "$ac_cpp_err"; then
29285 ac_header_preproc=yes
29287 echo "$as_me: failed program was:" >&5
29288 sed 's/^/| /' conftest.$ac_ext >&5
29290 ac_header_preproc=no
29293 rm -f conftest.err conftest.$ac_ext
29294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29295 echo "${ECHO_T}$ac_header_preproc" >&6; }
29297 # So? What about this header?
29298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29300 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29301 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29303 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29304 ac_header_preproc=yes
29307 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29308 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29309 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29310 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29311 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29312 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29313 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29314 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29316 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29317 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29318 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29320 ## ----------------------------------- ##
29321 ## Report this to llvmbugs@cs.uiuc.edu ##
29322 ## ----------------------------------- ##
29324 ) | sed "s/^/$as_me: WARNING: /" >&2
29327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29330 echo $ECHO_N "(cached) $ECHO_C" >&6
29332 eval "$as_ac_Header=\$ac_header_preproc"
29334 ac_res=`eval echo '${'$as_ac_Header'}'`
29335 { echo "$as_me:$LINENO: result: $ac_res" >&5
29336 echo "${ECHO_T}$ac_res" >&6; }
29339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29340 cat >>confdefs.h <<_ACEOF
29341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29351 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29358 echo $ECHO_N "(cached) $ECHO_C" >&6
29360 ac_res=`eval echo '${'$as_ac_Header'}'`
29361 { echo "$as_me:$LINENO: result: $ac_res" >&5
29362 echo "${ECHO_T}$ac_res" >&6; }
29364 # Is the header compilable?
29365 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29367 cat >conftest.$ac_ext <<_ACEOF
29370 cat confdefs.h >>conftest.$ac_ext
29371 cat >>conftest.$ac_ext <<_ACEOF
29372 /* end confdefs.h. */
29373 $ac_includes_default
29374 #include <$ac_header>
29376 rm -f conftest.$ac_objext
29377 if { (ac_try="$ac_compile"
29378 case "(($ac_try" in
29379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29380 *) ac_try_echo=$ac_try;;
29382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29383 (eval "$ac_compile") 2>conftest.er1
29385 grep -v '^ *+' conftest.er1 >conftest.err
29387 cat conftest.err >&5
29388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29389 (exit $ac_status); } &&
29390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29391 { (case "(($ac_try" in
29392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29393 *) ac_try_echo=$ac_try;;
29395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29396 (eval "$ac_try") 2>&5
29398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399 (exit $ac_status); }; } &&
29400 { ac_try='test -s conftest.$ac_objext'
29401 { (case "(($ac_try" in
29402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29403 *) ac_try_echo=$ac_try;;
29405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29406 (eval "$ac_try") 2>&5
29408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409 (exit $ac_status); }; }; then
29410 ac_header_compiler=yes
29412 echo "$as_me: failed program was:" >&5
29413 sed 's/^/| /' conftest.$ac_ext >&5
29415 ac_header_compiler=no
29418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29420 echo "${ECHO_T}$ac_header_compiler" >&6; }
29422 # Is the header present?
29423 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29425 cat >conftest.$ac_ext <<_ACEOF
29428 cat confdefs.h >>conftest.$ac_ext
29429 cat >>conftest.$ac_ext <<_ACEOF
29430 /* end confdefs.h. */
29431 #include <$ac_header>
29433 if { (ac_try="$ac_cpp conftest.$ac_ext"
29434 case "(($ac_try" in
29435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29436 *) ac_try_echo=$ac_try;;
29438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29441 grep -v '^ *+' conftest.er1 >conftest.err
29443 cat conftest.err >&5
29444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29445 (exit $ac_status); } >/dev/null; then
29446 if test -s conftest.err; then
29447 ac_cpp_err=$ac_c_preproc_warn_flag
29448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29455 if test -z "$ac_cpp_err"; then
29456 ac_header_preproc=yes
29458 echo "$as_me: failed program was:" >&5
29459 sed 's/^/| /' conftest.$ac_ext >&5
29461 ac_header_preproc=no
29464 rm -f conftest.err conftest.$ac_ext
29465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29466 echo "${ECHO_T}$ac_header_preproc" >&6; }
29468 # So? What about this header?
29469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29475 ac_header_preproc=yes
29478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29481 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29485 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29491 ## ----------------------------------- ##
29492 ## Report this to llvmbugs@cs.uiuc.edu ##
29493 ## ----------------------------------- ##
29495 ) | sed "s/^/$as_me: WARNING: /" >&2
29498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29501 echo $ECHO_N "(cached) $ECHO_C" >&6
29503 eval "$as_ac_Header=\$ac_header_preproc"
29505 ac_res=`eval echo '${'$as_ac_Header'}'`
29506 { echo "$as_me:$LINENO: result: $ac_res" >&5
29507 echo "${ECHO_T}$ac_res" >&6; }
29510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29511 cat >>confdefs.h <<_ACEOF
29512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29519 if test "$ENABLE_THREADS" -eq 1 ; then
29521 for ac_header in pthread.h
29523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29528 echo $ECHO_N "(cached) $ECHO_C" >&6
29530 ac_res=`eval echo '${'$as_ac_Header'}'`
29531 { echo "$as_me:$LINENO: result: $ac_res" >&5
29532 echo "${ECHO_T}$ac_res" >&6; }
29534 # Is the header compilable?
29535 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29537 cat >conftest.$ac_ext <<_ACEOF
29540 cat confdefs.h >>conftest.$ac_ext
29541 cat >>conftest.$ac_ext <<_ACEOF
29542 /* end confdefs.h. */
29543 $ac_includes_default
29544 #include <$ac_header>
29546 rm -f conftest.$ac_objext
29547 if { (ac_try="$ac_compile"
29548 case "(($ac_try" in
29549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29550 *) ac_try_echo=$ac_try;;
29552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29553 (eval "$ac_compile") 2>conftest.er1
29555 grep -v '^ *+' conftest.er1 >conftest.err
29557 cat conftest.err >&5
29558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29559 (exit $ac_status); } &&
29560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29561 { (case "(($ac_try" in
29562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29563 *) ac_try_echo=$ac_try;;
29565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29566 (eval "$ac_try") 2>&5
29568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29569 (exit $ac_status); }; } &&
29570 { ac_try='test -s conftest.$ac_objext'
29571 { (case "(($ac_try" in
29572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29573 *) ac_try_echo=$ac_try;;
29575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29576 (eval "$ac_try") 2>&5
29578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579 (exit $ac_status); }; }; then
29580 ac_header_compiler=yes
29582 echo "$as_me: failed program was:" >&5
29583 sed 's/^/| /' conftest.$ac_ext >&5
29585 ac_header_compiler=no
29588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29590 echo "${ECHO_T}$ac_header_compiler" >&6; }
29592 # Is the header present?
29593 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29595 cat >conftest.$ac_ext <<_ACEOF
29598 cat confdefs.h >>conftest.$ac_ext
29599 cat >>conftest.$ac_ext <<_ACEOF
29600 /* end confdefs.h. */
29601 #include <$ac_header>
29603 if { (ac_try="$ac_cpp conftest.$ac_ext"
29604 case "(($ac_try" in
29605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29606 *) ac_try_echo=$ac_try;;
29608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29611 grep -v '^ *+' conftest.er1 >conftest.err
29613 cat conftest.err >&5
29614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615 (exit $ac_status); } >/dev/null; then
29616 if test -s conftest.err; then
29617 ac_cpp_err=$ac_c_preproc_warn_flag
29618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29625 if test -z "$ac_cpp_err"; then
29626 ac_header_preproc=yes
29628 echo "$as_me: failed program was:" >&5
29629 sed 's/^/| /' conftest.$ac_ext >&5
29631 ac_header_preproc=no
29634 rm -f conftest.err conftest.$ac_ext
29635 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29636 echo "${ECHO_T}$ac_header_preproc" >&6; }
29638 # So? What about this header?
29639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29644 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29645 ac_header_preproc=yes
29648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29651 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29652 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29653 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29654 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29655 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29658 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29659 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29661 ## ----------------------------------- ##
29662 ## Report this to llvmbugs@cs.uiuc.edu ##
29663 ## ----------------------------------- ##
29665 ) | sed "s/^/$as_me: WARNING: /" >&2
29668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29671 echo $ECHO_N "(cached) $ECHO_C" >&6
29673 eval "$as_ac_Header=\$ac_header_preproc"
29675 ac_res=`eval echo '${'$as_ac_Header'}'`
29676 { echo "$as_me:$LINENO: result: $ac_res" >&5
29677 echo "${ECHO_T}$ac_res" >&6; }
29680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29681 cat >>confdefs.h <<_ACEOF
29682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29700 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29701 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29702 if test "${ac_cv_huge_val_sanity+set}" = set; then
29703 echo $ECHO_N "(cached) $ECHO_C" >&6
29707 ac_cpp='$CXXCPP $CPPFLAGS'
29708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29713 if test "$cross_compiling" = yes; then
29714 ac_cv_huge_val_sanity=yes
29716 cat >conftest.$ac_ext <<_ACEOF
29719 cat confdefs.h >>conftest.$ac_ext
29720 cat >>conftest.$ac_ext <<_ACEOF
29721 /* end confdefs.h. */
29726 double x = HUGE_VAL; return x != x;
29731 rm -f conftest$ac_exeext
29732 if { (ac_try="$ac_link"
29733 case "(($ac_try" in
29734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29735 *) ac_try_echo=$ac_try;;
29737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29738 (eval "$ac_link") 2>&5
29740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29742 { (case "(($ac_try" in
29743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29744 *) ac_try_echo=$ac_try;;
29746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29747 (eval "$ac_try") 2>&5
29749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750 (exit $ac_status); }; }; then
29751 ac_cv_huge_val_sanity=yes
29753 echo "$as_me: program exited with status $ac_status" >&5
29754 echo "$as_me: failed program was:" >&5
29755 sed 's/^/| /' conftest.$ac_ext >&5
29757 ( exit $ac_status )
29758 ac_cv_huge_val_sanity=no
29760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29765 ac_cpp='$CPP $CPPFLAGS'
29766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29772 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29773 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29774 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29777 { echo "$as_me:$LINENO: checking for pid_t" >&5
29778 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29779 if test "${ac_cv_type_pid_t+set}" = set; then
29780 echo $ECHO_N "(cached) $ECHO_C" >&6
29782 cat >conftest.$ac_ext <<_ACEOF
29785 cat confdefs.h >>conftest.$ac_ext
29786 cat >>conftest.$ac_ext <<_ACEOF
29787 /* end confdefs.h. */
29788 $ac_includes_default
29789 typedef pid_t ac__type_new_;
29793 if ((ac__type_new_ *) 0)
29795 if (sizeof (ac__type_new_))
29801 rm -f conftest.$ac_objext
29802 if { (ac_try="$ac_compile"
29803 case "(($ac_try" in
29804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29805 *) ac_try_echo=$ac_try;;
29807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29808 (eval "$ac_compile") 2>conftest.er1
29810 grep -v '^ *+' conftest.er1 >conftest.err
29812 cat conftest.err >&5
29813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814 (exit $ac_status); } &&
29815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29816 { (case "(($ac_try" in
29817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29818 *) ac_try_echo=$ac_try;;
29820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29821 (eval "$ac_try") 2>&5
29823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824 (exit $ac_status); }; } &&
29825 { ac_try='test -s conftest.$ac_objext'
29826 { (case "(($ac_try" in
29827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29828 *) ac_try_echo=$ac_try;;
29830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29831 (eval "$ac_try") 2>&5
29833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834 (exit $ac_status); }; }; then
29835 ac_cv_type_pid_t=yes
29837 echo "$as_me: failed program was:" >&5
29838 sed 's/^/| /' conftest.$ac_ext >&5
29840 ac_cv_type_pid_t=no
29843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29845 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29846 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29847 if test $ac_cv_type_pid_t = yes; then
29851 cat >>confdefs.h <<_ACEOF
29857 { echo "$as_me:$LINENO: checking for size_t" >&5
29858 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29859 if test "${ac_cv_type_size_t+set}" = set; then
29860 echo $ECHO_N "(cached) $ECHO_C" >&6
29862 cat >conftest.$ac_ext <<_ACEOF
29865 cat confdefs.h >>conftest.$ac_ext
29866 cat >>conftest.$ac_ext <<_ACEOF
29867 /* end confdefs.h. */
29868 $ac_includes_default
29869 typedef size_t ac__type_new_;
29873 if ((ac__type_new_ *) 0)
29875 if (sizeof (ac__type_new_))
29881 rm -f conftest.$ac_objext
29882 if { (ac_try="$ac_compile"
29883 case "(($ac_try" in
29884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29885 *) ac_try_echo=$ac_try;;
29887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29888 (eval "$ac_compile") 2>conftest.er1
29890 grep -v '^ *+' conftest.er1 >conftest.err
29892 cat conftest.err >&5
29893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894 (exit $ac_status); } &&
29895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29896 { (case "(($ac_try" in
29897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29898 *) ac_try_echo=$ac_try;;
29900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29901 (eval "$ac_try") 2>&5
29903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904 (exit $ac_status); }; } &&
29905 { ac_try='test -s conftest.$ac_objext'
29906 { (case "(($ac_try" in
29907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29908 *) ac_try_echo=$ac_try;;
29910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29911 (eval "$ac_try") 2>&5
29913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914 (exit $ac_status); }; }; then
29915 ac_cv_type_size_t=yes
29917 echo "$as_me: failed program was:" >&5
29918 sed 's/^/| /' conftest.$ac_ext >&5
29920 ac_cv_type_size_t=no
29923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29925 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29926 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29927 if test $ac_cv_type_size_t = yes; then
29931 cat >>confdefs.h <<_ACEOF
29932 #define size_t unsigned int
29937 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29938 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29939 if test "${ac_cv_type_signal+set}" = set; then
29940 echo $ECHO_N "(cached) $ECHO_C" >&6
29942 cat >conftest.$ac_ext <<_ACEOF
29945 cat confdefs.h >>conftest.$ac_ext
29946 cat >>conftest.$ac_ext <<_ACEOF
29947 /* end confdefs.h. */
29948 #include <sys/types.h>
29949 #include <signal.h>
29954 return *(signal (0, 0)) (0) == 1;
29959 rm -f conftest.$ac_objext
29960 if { (ac_try="$ac_compile"
29961 case "(($ac_try" in
29962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29963 *) ac_try_echo=$ac_try;;
29965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29966 (eval "$ac_compile") 2>conftest.er1
29968 grep -v '^ *+' conftest.er1 >conftest.err
29970 cat conftest.err >&5
29971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29972 (exit $ac_status); } &&
29973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29974 { (case "(($ac_try" in
29975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29976 *) ac_try_echo=$ac_try;;
29978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29979 (eval "$ac_try") 2>&5
29981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 (exit $ac_status); }; } &&
29983 { ac_try='test -s conftest.$ac_objext'
29984 { (case "(($ac_try" in
29985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29986 *) ac_try_echo=$ac_try;;
29988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29989 (eval "$ac_try") 2>&5
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992 (exit $ac_status); }; }; then
29993 ac_cv_type_signal=int
29995 echo "$as_me: failed program was:" >&5
29996 sed 's/^/| /' conftest.$ac_ext >&5
29998 ac_cv_type_signal=void
30001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30003 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30004 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30006 cat >>confdefs.h <<_ACEOF
30007 #define RETSIGTYPE $ac_cv_type_signal
30011 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30012 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30013 if test "${ac_cv_struct_tm+set}" = set; then
30014 echo $ECHO_N "(cached) $ECHO_C" >&6
30016 cat >conftest.$ac_ext <<_ACEOF
30019 cat confdefs.h >>conftest.$ac_ext
30020 cat >>conftest.$ac_ext <<_ACEOF
30021 /* end confdefs.h. */
30022 #include <sys/types.h>
30028 struct tm *tp; tp->tm_sec;
30033 rm -f conftest.$ac_objext
30034 if { (ac_try="$ac_compile"
30035 case "(($ac_try" in
30036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30037 *) ac_try_echo=$ac_try;;
30039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30040 (eval "$ac_compile") 2>conftest.er1
30042 grep -v '^ *+' conftest.er1 >conftest.err
30044 cat conftest.err >&5
30045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046 (exit $ac_status); } &&
30047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30048 { (case "(($ac_try" in
30049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30050 *) ac_try_echo=$ac_try;;
30052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30053 (eval "$ac_try") 2>&5
30055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056 (exit $ac_status); }; } &&
30057 { ac_try='test -s conftest.$ac_objext'
30058 { (case "(($ac_try" in
30059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30060 *) ac_try_echo=$ac_try;;
30062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30063 (eval "$ac_try") 2>&5
30065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066 (exit $ac_status); }; }; then
30067 ac_cv_struct_tm=time.h
30069 echo "$as_me: failed program was:" >&5
30070 sed 's/^/| /' conftest.$ac_ext >&5
30072 ac_cv_struct_tm=sys/time.h
30075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30077 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30078 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30079 if test $ac_cv_struct_tm = sys/time.h; then
30081 cat >>confdefs.h <<\_ACEOF
30082 #define TM_IN_SYS_TIME 1
30087 { echo "$as_me:$LINENO: checking for int64_t" >&5
30088 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30089 if test "${ac_cv_type_int64_t+set}" = set; then
30090 echo $ECHO_N "(cached) $ECHO_C" >&6
30092 cat >conftest.$ac_ext <<_ACEOF
30095 cat confdefs.h >>conftest.$ac_ext
30096 cat >>conftest.$ac_ext <<_ACEOF
30097 /* end confdefs.h. */
30098 $ac_includes_default
30099 typedef int64_t ac__type_new_;
30103 if ((ac__type_new_ *) 0)
30105 if (sizeof (ac__type_new_))
30111 rm -f conftest.$ac_objext
30112 if { (ac_try="$ac_compile"
30113 case "(($ac_try" in
30114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30115 *) ac_try_echo=$ac_try;;
30117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30118 (eval "$ac_compile") 2>conftest.er1
30120 grep -v '^ *+' conftest.er1 >conftest.err
30122 cat conftest.err >&5
30123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124 (exit $ac_status); } &&
30125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30126 { (case "(($ac_try" in
30127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30128 *) ac_try_echo=$ac_try;;
30130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30131 (eval "$ac_try") 2>&5
30133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30134 (exit $ac_status); }; } &&
30135 { ac_try='test -s conftest.$ac_objext'
30136 { (case "(($ac_try" in
30137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30138 *) ac_try_echo=$ac_try;;
30140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30141 (eval "$ac_try") 2>&5
30143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144 (exit $ac_status); }; }; then
30145 ac_cv_type_int64_t=yes
30147 echo "$as_me: failed program was:" >&5
30148 sed 's/^/| /' conftest.$ac_ext >&5
30150 ac_cv_type_int64_t=no
30153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30155 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30156 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30157 if test $ac_cv_type_int64_t = yes; then
30159 cat >>confdefs.h <<_ACEOF
30160 #define HAVE_INT64_T 1
30165 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30166 echo "$as_me: error: Type int64_t required but not found" >&2;}
30167 { (exit 1); exit 1; }; }
30170 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30171 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30172 if test "${ac_cv_type_uint64_t+set}" = set; then
30173 echo $ECHO_N "(cached) $ECHO_C" >&6
30175 cat >conftest.$ac_ext <<_ACEOF
30178 cat confdefs.h >>conftest.$ac_ext
30179 cat >>conftest.$ac_ext <<_ACEOF
30180 /* end confdefs.h. */
30181 $ac_includes_default
30182 typedef uint64_t ac__type_new_;
30186 if ((ac__type_new_ *) 0)
30188 if (sizeof (ac__type_new_))
30194 rm -f conftest.$ac_objext
30195 if { (ac_try="$ac_compile"
30196 case "(($ac_try" in
30197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30198 *) ac_try_echo=$ac_try;;
30200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30201 (eval "$ac_compile") 2>conftest.er1
30203 grep -v '^ *+' conftest.er1 >conftest.err
30205 cat conftest.err >&5
30206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30207 (exit $ac_status); } &&
30208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30209 { (case "(($ac_try" in
30210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30211 *) ac_try_echo=$ac_try;;
30213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30214 (eval "$ac_try") 2>&5
30216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217 (exit $ac_status); }; } &&
30218 { ac_try='test -s conftest.$ac_objext'
30219 { (case "(($ac_try" in
30220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30221 *) ac_try_echo=$ac_try;;
30223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30224 (eval "$ac_try") 2>&5
30226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30227 (exit $ac_status); }; }; then
30228 ac_cv_type_uint64_t=yes
30230 echo "$as_me: failed program was:" >&5
30231 sed 's/^/| /' conftest.$ac_ext >&5
30233 ac_cv_type_uint64_t=no
30236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30238 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30239 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30240 if test $ac_cv_type_uint64_t = yes; then
30242 cat >>confdefs.h <<_ACEOF
30243 #define HAVE_UINT64_T 1
30248 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30249 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30250 if test "${ac_cv_type_u_int64_t+set}" = set; then
30251 echo $ECHO_N "(cached) $ECHO_C" >&6
30253 cat >conftest.$ac_ext <<_ACEOF
30256 cat confdefs.h >>conftest.$ac_ext
30257 cat >>conftest.$ac_ext <<_ACEOF
30258 /* end confdefs.h. */
30259 $ac_includes_default
30260 typedef u_int64_t ac__type_new_;
30264 if ((ac__type_new_ *) 0)
30266 if (sizeof (ac__type_new_))
30272 rm -f conftest.$ac_objext
30273 if { (ac_try="$ac_compile"
30274 case "(($ac_try" in
30275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30276 *) ac_try_echo=$ac_try;;
30278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30279 (eval "$ac_compile") 2>conftest.er1
30281 grep -v '^ *+' conftest.er1 >conftest.err
30283 cat conftest.err >&5
30284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30285 (exit $ac_status); } &&
30286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30287 { (case "(($ac_try" in
30288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30289 *) ac_try_echo=$ac_try;;
30291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30292 (eval "$ac_try") 2>&5
30294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295 (exit $ac_status); }; } &&
30296 { ac_try='test -s conftest.$ac_objext'
30297 { (case "(($ac_try" in
30298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30299 *) ac_try_echo=$ac_try;;
30301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30302 (eval "$ac_try") 2>&5
30304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305 (exit $ac_status); }; }; then
30306 ac_cv_type_u_int64_t=yes
30308 echo "$as_me: failed program was:" >&5
30309 sed 's/^/| /' conftest.$ac_ext >&5
30311 ac_cv_type_u_int64_t=no
30314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30316 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30317 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30318 if test $ac_cv_type_u_int64_t = yes; then
30320 cat >>confdefs.h <<_ACEOF
30321 #define HAVE_U_INT64_T 1
30326 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30327 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30328 { (exit 1); exit 1; }; }
30342 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30345 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30347 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30348 echo $ECHO_N "(cached) $ECHO_C" >&6
30350 cat >conftest.$ac_ext <<_ACEOF
30353 cat confdefs.h >>conftest.$ac_ext
30354 cat >>conftest.$ac_ext <<_ACEOF
30355 /* end confdefs.h. */
30356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30358 #define $ac_func innocuous_$ac_func
30360 /* System header to define __stub macros and hopefully few prototypes,
30361 which can conflict with char $ac_func (); below.
30362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30363 <limits.h> exists even on freestanding compilers. */
30366 # include <limits.h>
30368 # include <assert.h>
30373 /* Override any GCC internal prototype to avoid an error.
30374 Use char because int might match the return type of a GCC
30375 builtin and then its argument prototype would still apply. */
30380 /* The GNU C library defines this for functions which it implements
30381 to always fail with ENOSYS. Some functions are actually named
30382 something starting with __ and the normal name is an alias. */
30383 #if defined __stub_$ac_func || defined __stub___$ac_func
30390 return $ac_func ();
30395 rm -f conftest.$ac_objext conftest$ac_exeext
30396 if { (ac_try="$ac_link"
30397 case "(($ac_try" in
30398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30399 *) ac_try_echo=$ac_try;;
30401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30402 (eval "$ac_link") 2>conftest.er1
30404 grep -v '^ *+' conftest.er1 >conftest.err
30406 cat conftest.err >&5
30407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30408 (exit $ac_status); } &&
30409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30410 { (case "(($ac_try" in
30411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30412 *) ac_try_echo=$ac_try;;
30414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30415 (eval "$ac_try") 2>&5
30417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418 (exit $ac_status); }; } &&
30419 { ac_try='test -s conftest$ac_exeext'
30420 { (case "(($ac_try" in
30421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30422 *) ac_try_echo=$ac_try;;
30424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30425 (eval "$ac_try") 2>&5
30427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428 (exit $ac_status); }; }; then
30429 eval "$as_ac_var=yes"
30431 echo "$as_me: failed program was:" >&5
30432 sed 's/^/| /' conftest.$ac_ext >&5
30434 eval "$as_ac_var=no"
30437 rm -f core conftest.err conftest.$ac_objext \
30438 conftest$ac_exeext conftest.$ac_ext
30440 ac_res=`eval echo '${'$as_ac_var'}'`
30441 { echo "$as_me:$LINENO: result: $ac_res" >&5
30442 echo "${ECHO_T}$ac_res" >&6; }
30443 if test `eval echo '${'$as_ac_var'}'` = yes; then
30444 cat >>confdefs.h <<_ACEOF
30445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30455 for ac_func in powf fmodf strtof round
30457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30461 echo $ECHO_N "(cached) $ECHO_C" >&6
30463 cat >conftest.$ac_ext <<_ACEOF
30466 cat confdefs.h >>conftest.$ac_ext
30467 cat >>conftest.$ac_ext <<_ACEOF
30468 /* end confdefs.h. */
30469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30471 #define $ac_func innocuous_$ac_func
30473 /* System header to define __stub macros and hopefully few prototypes,
30474 which can conflict with char $ac_func (); below.
30475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30476 <limits.h> exists even on freestanding compilers. */
30479 # include <limits.h>
30481 # include <assert.h>
30486 /* Override any GCC internal prototype to avoid an error.
30487 Use char because int might match the return type of a GCC
30488 builtin and then its argument prototype would still apply. */
30493 /* The GNU C library defines this for functions which it implements
30494 to always fail with ENOSYS. Some functions are actually named
30495 something starting with __ and the normal name is an alias. */
30496 #if defined __stub_$ac_func || defined __stub___$ac_func
30503 return $ac_func ();
30508 rm -f conftest.$ac_objext conftest$ac_exeext
30509 if { (ac_try="$ac_link"
30510 case "(($ac_try" in
30511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30512 *) ac_try_echo=$ac_try;;
30514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30515 (eval "$ac_link") 2>conftest.er1
30517 grep -v '^ *+' conftest.er1 >conftest.err
30519 cat conftest.err >&5
30520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521 (exit $ac_status); } &&
30522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30523 { (case "(($ac_try" in
30524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30525 *) ac_try_echo=$ac_try;;
30527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30528 (eval "$ac_try") 2>&5
30530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531 (exit $ac_status); }; } &&
30532 { ac_try='test -s conftest$ac_exeext'
30533 { (case "(($ac_try" in
30534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30535 *) ac_try_echo=$ac_try;;
30537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30538 (eval "$ac_try") 2>&5
30540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541 (exit $ac_status); }; }; then
30542 eval "$as_ac_var=yes"
30544 echo "$as_me: failed program was:" >&5
30545 sed 's/^/| /' conftest.$ac_ext >&5
30547 eval "$as_ac_var=no"
30550 rm -f core conftest.err conftest.$ac_objext \
30551 conftest$ac_exeext conftest.$ac_ext
30553 ac_res=`eval echo '${'$as_ac_var'}'`
30554 { echo "$as_me:$LINENO: result: $ac_res" >&5
30555 echo "${ECHO_T}$ac_res" >&6; }
30556 if test `eval echo '${'$as_ac_var'}'` = yes; then
30557 cat >>confdefs.h <<_ACEOF
30558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30569 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30572 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30575 echo $ECHO_N "(cached) $ECHO_C" >&6
30577 cat >conftest.$ac_ext <<_ACEOF
30580 cat confdefs.h >>conftest.$ac_ext
30581 cat >>conftest.$ac_ext <<_ACEOF
30582 /* end confdefs.h. */
30583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30585 #define $ac_func innocuous_$ac_func
30587 /* System header to define __stub macros and hopefully few prototypes,
30588 which can conflict with char $ac_func (); below.
30589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30590 <limits.h> exists even on freestanding compilers. */
30593 # include <limits.h>
30595 # include <assert.h>
30600 /* Override any GCC internal prototype to avoid an error.
30601 Use char because int might match the return type of a GCC
30602 builtin and then its argument prototype would still apply. */
30607 /* The GNU C library defines this for functions which it implements
30608 to always fail with ENOSYS. Some functions are actually named
30609 something starting with __ and the normal name is an alias. */
30610 #if defined __stub_$ac_func || defined __stub___$ac_func
30617 return $ac_func ();
30622 rm -f conftest.$ac_objext conftest$ac_exeext
30623 if { (ac_try="$ac_link"
30624 case "(($ac_try" in
30625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30626 *) ac_try_echo=$ac_try;;
30628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30629 (eval "$ac_link") 2>conftest.er1
30631 grep -v '^ *+' conftest.er1 >conftest.err
30633 cat conftest.err >&5
30634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635 (exit $ac_status); } &&
30636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30637 { (case "(($ac_try" in
30638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30639 *) ac_try_echo=$ac_try;;
30641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30642 (eval "$ac_try") 2>&5
30644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645 (exit $ac_status); }; } &&
30646 { ac_try='test -s conftest$ac_exeext'
30647 { (case "(($ac_try" in
30648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30649 *) ac_try_echo=$ac_try;;
30651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30652 (eval "$ac_try") 2>&5
30654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655 (exit $ac_status); }; }; then
30656 eval "$as_ac_var=yes"
30658 echo "$as_me: failed program was:" >&5
30659 sed 's/^/| /' conftest.$ac_ext >&5
30661 eval "$as_ac_var=no"
30664 rm -f core conftest.err conftest.$ac_objext \
30665 conftest$ac_exeext conftest.$ac_ext
30667 ac_res=`eval echo '${'$as_ac_var'}'`
30668 { echo "$as_me:$LINENO: result: $ac_res" >&5
30669 echo "${ECHO_T}$ac_res" >&6; }
30670 if test `eval echo '${'$as_ac_var'}'` = yes; then
30671 cat >>confdefs.h <<_ACEOF
30672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30681 for ac_func in isatty mkdtemp mkstemp
30683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30684 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30686 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30687 echo $ECHO_N "(cached) $ECHO_C" >&6
30689 cat >conftest.$ac_ext <<_ACEOF
30692 cat confdefs.h >>conftest.$ac_ext
30693 cat >>conftest.$ac_ext <<_ACEOF
30694 /* end confdefs.h. */
30695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30697 #define $ac_func innocuous_$ac_func
30699 /* System header to define __stub macros and hopefully few prototypes,
30700 which can conflict with char $ac_func (); below.
30701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30702 <limits.h> exists even on freestanding compilers. */
30705 # include <limits.h>
30707 # include <assert.h>
30712 /* Override any GCC internal prototype to avoid an error.
30713 Use char because int might match the return type of a GCC
30714 builtin and then its argument prototype would still apply. */
30719 /* The GNU C library defines this for functions which it implements
30720 to always fail with ENOSYS. Some functions are actually named
30721 something starting with __ and the normal name is an alias. */
30722 #if defined __stub_$ac_func || defined __stub___$ac_func
30729 return $ac_func ();
30734 rm -f conftest.$ac_objext conftest$ac_exeext
30735 if { (ac_try="$ac_link"
30736 case "(($ac_try" in
30737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30738 *) ac_try_echo=$ac_try;;
30740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30741 (eval "$ac_link") 2>conftest.er1
30743 grep -v '^ *+' conftest.er1 >conftest.err
30745 cat conftest.err >&5
30746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747 (exit $ac_status); } &&
30748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30749 { (case "(($ac_try" in
30750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30751 *) ac_try_echo=$ac_try;;
30753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30754 (eval "$ac_try") 2>&5
30756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757 (exit $ac_status); }; } &&
30758 { ac_try='test -s conftest$ac_exeext'
30759 { (case "(($ac_try" in
30760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30761 *) ac_try_echo=$ac_try;;
30763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30764 (eval "$ac_try") 2>&5
30766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30767 (exit $ac_status); }; }; then
30768 eval "$as_ac_var=yes"
30770 echo "$as_me: failed program was:" >&5
30771 sed 's/^/| /' conftest.$ac_ext >&5
30773 eval "$as_ac_var=no"
30776 rm -f core conftest.err conftest.$ac_objext \
30777 conftest$ac_exeext conftest.$ac_ext
30779 ac_res=`eval echo '${'$as_ac_var'}'`
30780 { echo "$as_me:$LINENO: result: $ac_res" >&5
30781 echo "${ECHO_T}$ac_res" >&6; }
30782 if test `eval echo '${'$as_ac_var'}'` = yes; then
30783 cat >>confdefs.h <<_ACEOF
30784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30797 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30803 echo $ECHO_N "(cached) $ECHO_C" >&6
30805 cat >conftest.$ac_ext <<_ACEOF
30808 cat confdefs.h >>conftest.$ac_ext
30809 cat >>conftest.$ac_ext <<_ACEOF
30810 /* end confdefs.h. */
30811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30813 #define $ac_func innocuous_$ac_func
30815 /* System header to define __stub macros and hopefully few prototypes,
30816 which can conflict with char $ac_func (); below.
30817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30818 <limits.h> exists even on freestanding compilers. */
30821 # include <limits.h>
30823 # include <assert.h>
30828 /* Override any GCC internal prototype to avoid an error.
30829 Use char because int might match the return type of a GCC
30830 builtin and then its argument prototype would still apply. */
30835 /* The GNU C library defines this for functions which it implements
30836 to always fail with ENOSYS. Some functions are actually named
30837 something starting with __ and the normal name is an alias. */
30838 #if defined __stub_$ac_func || defined __stub___$ac_func
30845 return $ac_func ();
30850 rm -f conftest.$ac_objext conftest$ac_exeext
30851 if { (ac_try="$ac_link"
30852 case "(($ac_try" in
30853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30854 *) ac_try_echo=$ac_try;;
30856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30857 (eval "$ac_link") 2>conftest.er1
30859 grep -v '^ *+' conftest.er1 >conftest.err
30861 cat conftest.err >&5
30862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863 (exit $ac_status); } &&
30864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30865 { (case "(($ac_try" in
30866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30867 *) ac_try_echo=$ac_try;;
30869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30870 (eval "$ac_try") 2>&5
30872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30873 (exit $ac_status); }; } &&
30874 { ac_try='test -s conftest$ac_exeext'
30875 { (case "(($ac_try" in
30876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30877 *) ac_try_echo=$ac_try;;
30879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30880 (eval "$ac_try") 2>&5
30882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30883 (exit $ac_status); }; }; then
30884 eval "$as_ac_var=yes"
30886 echo "$as_me: failed program was:" >&5
30887 sed 's/^/| /' conftest.$ac_ext >&5
30889 eval "$as_ac_var=no"
30892 rm -f core conftest.err conftest.$ac_objext \
30893 conftest$ac_exeext conftest.$ac_ext
30895 ac_res=`eval echo '${'$as_ac_var'}'`
30896 { echo "$as_me:$LINENO: result: $ac_res" >&5
30897 echo "${ECHO_T}$ac_res" >&6; }
30898 if test `eval echo '${'$as_ac_var'}'` = yes; then
30899 cat >>confdefs.h <<_ACEOF
30900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30910 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30913 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30916 echo $ECHO_N "(cached) $ECHO_C" >&6
30918 cat >conftest.$ac_ext <<_ACEOF
30921 cat confdefs.h >>conftest.$ac_ext
30922 cat >>conftest.$ac_ext <<_ACEOF
30923 /* end confdefs.h. */
30924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30926 #define $ac_func innocuous_$ac_func
30928 /* System header to define __stub macros and hopefully few prototypes,
30929 which can conflict with char $ac_func (); below.
30930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30931 <limits.h> exists even on freestanding compilers. */
30934 # include <limits.h>
30936 # include <assert.h>
30941 /* Override any GCC internal prototype to avoid an error.
30942 Use char because int might match the return type of a GCC
30943 builtin and then its argument prototype would still apply. */
30948 /* The GNU C library defines this for functions which it implements
30949 to always fail with ENOSYS. Some functions are actually named
30950 something starting with __ and the normal name is an alias. */
30951 #if defined __stub_$ac_func || defined __stub___$ac_func
30958 return $ac_func ();
30963 rm -f conftest.$ac_objext conftest$ac_exeext
30964 if { (ac_try="$ac_link"
30965 case "(($ac_try" in
30966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30967 *) ac_try_echo=$ac_try;;
30969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30970 (eval "$ac_link") 2>conftest.er1
30972 grep -v '^ *+' conftest.er1 >conftest.err
30974 cat conftest.err >&5
30975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30976 (exit $ac_status); } &&
30977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30978 { (case "(($ac_try" in
30979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30980 *) ac_try_echo=$ac_try;;
30982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30983 (eval "$ac_try") 2>&5
30985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986 (exit $ac_status); }; } &&
30987 { ac_try='test -s conftest$ac_exeext'
30988 { (case "(($ac_try" in
30989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30990 *) ac_try_echo=$ac_try;;
30992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30993 (eval "$ac_try") 2>&5
30995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996 (exit $ac_status); }; }; then
30997 eval "$as_ac_var=yes"
30999 echo "$as_me: failed program was:" >&5
31000 sed 's/^/| /' conftest.$ac_ext >&5
31002 eval "$as_ac_var=no"
31005 rm -f core conftest.err conftest.$ac_objext \
31006 conftest$ac_exeext conftest.$ac_ext
31008 ac_res=`eval echo '${'$as_ac_var'}'`
31009 { echo "$as_me:$LINENO: result: $ac_res" >&5
31010 echo "${ECHO_T}$ac_res" >&6; }
31011 if test `eval echo '${'$as_ac_var'}'` = yes; then
31012 cat >>confdefs.h <<_ACEOF
31013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31023 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31026 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31028 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31029 echo $ECHO_N "(cached) $ECHO_C" >&6
31031 cat >conftest.$ac_ext <<_ACEOF
31034 cat confdefs.h >>conftest.$ac_ext
31035 cat >>conftest.$ac_ext <<_ACEOF
31036 /* end confdefs.h. */
31037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31039 #define $ac_func innocuous_$ac_func
31041 /* System header to define __stub macros and hopefully few prototypes,
31042 which can conflict with char $ac_func (); below.
31043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31044 <limits.h> exists even on freestanding compilers. */
31047 # include <limits.h>
31049 # include <assert.h>
31054 /* Override any GCC internal prototype to avoid an error.
31055 Use char because int might match the return type of a GCC
31056 builtin and then its argument prototype would still apply. */
31061 /* The GNU C library defines this for functions which it implements
31062 to always fail with ENOSYS. Some functions are actually named
31063 something starting with __ and the normal name is an alias. */
31064 #if defined __stub_$ac_func || defined __stub___$ac_func
31071 return $ac_func ();
31076 rm -f conftest.$ac_objext conftest$ac_exeext
31077 if { (ac_try="$ac_link"
31078 case "(($ac_try" in
31079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31080 *) ac_try_echo=$ac_try;;
31082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31083 (eval "$ac_link") 2>conftest.er1
31085 grep -v '^ *+' conftest.er1 >conftest.err
31087 cat conftest.err >&5
31088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089 (exit $ac_status); } &&
31090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31091 { (case "(($ac_try" in
31092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31093 *) ac_try_echo=$ac_try;;
31095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31096 (eval "$ac_try") 2>&5
31098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099 (exit $ac_status); }; } &&
31100 { ac_try='test -s conftest$ac_exeext'
31101 { (case "(($ac_try" in
31102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31103 *) ac_try_echo=$ac_try;;
31105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31106 (eval "$ac_try") 2>&5
31108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31109 (exit $ac_status); }; }; then
31110 eval "$as_ac_var=yes"
31112 echo "$as_me: failed program was:" >&5
31113 sed 's/^/| /' conftest.$ac_ext >&5
31115 eval "$as_ac_var=no"
31118 rm -f core conftest.err conftest.$ac_objext \
31119 conftest$ac_exeext conftest.$ac_ext
31121 ac_res=`eval echo '${'$as_ac_var'}'`
31122 { echo "$as_me:$LINENO: result: $ac_res" >&5
31123 echo "${ECHO_T}$ac_res" >&6; }
31124 if test `eval echo '${'$as_ac_var'}'` = yes; then
31125 cat >>confdefs.h <<_ACEOF
31126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31132 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31133 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31134 if test "${llvm_cv_c_printf_a+set}" = set; then
31135 echo $ECHO_N "(cached) $ECHO_C" >&6
31138 ac_cpp='$CPP $CPPFLAGS'
31139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31143 if test "$cross_compiling" = yes; then
31144 llvmac_cv_c_printf_a=no
31146 cat >conftest.$ac_ext <<_ACEOF
31150 cat confdefs.h >>conftest.$ac_ext
31151 cat >>conftest.$ac_ext <<_ACEOF
31152 /* end confdefs.h. */
31155 #include <stdlib.h>
31161 volatile double A, B;
31165 sprintf(Buffer, "%a", A);
31169 if (A != 0x1.999999999999ap-4)
31176 rm -f conftest$ac_exeext
31177 if { (ac_try="$ac_link"
31178 case "(($ac_try" in
31179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31180 *) ac_try_echo=$ac_try;;
31182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31183 (eval "$ac_link") 2>&5
31185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31187 { (case "(($ac_try" in
31188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31189 *) ac_try_echo=$ac_try;;
31191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31192 (eval "$ac_try") 2>&5
31194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195 (exit $ac_status); }; }; then
31196 llvm_cv_c_printf_a=yes
31198 echo "$as_me: program exited with status $ac_status" >&5
31199 echo "$as_me: failed program was:" >&5
31200 sed 's/^/| /' conftest.$ac_ext >&5
31202 ( exit $ac_status )
31203 llvmac_cv_c_printf_a=no
31205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31210 ac_cpp='$CPP $CPPFLAGS'
31211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31216 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31217 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31218 if test "$llvm_cv_c_printf_a" = "yes"; then
31220 cat >>confdefs.h <<\_ACEOF
31221 #define HAVE_PRINTF_A 1
31226 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31227 # for constant arguments. Useless!
31228 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31229 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31230 if test "${ac_cv_working_alloca_h+set}" = set; then
31231 echo $ECHO_N "(cached) $ECHO_C" >&6
31233 cat >conftest.$ac_ext <<_ACEOF
31236 cat confdefs.h >>conftest.$ac_ext
31237 cat >>conftest.$ac_ext <<_ACEOF
31238 /* end confdefs.h. */
31239 #include <alloca.h>
31243 char *p = (char *) alloca (2 * sizeof (int));
31249 rm -f conftest.$ac_objext conftest$ac_exeext
31250 if { (ac_try="$ac_link"
31251 case "(($ac_try" in
31252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31253 *) ac_try_echo=$ac_try;;
31255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31256 (eval "$ac_link") 2>conftest.er1
31258 grep -v '^ *+' conftest.er1 >conftest.err
31260 cat conftest.err >&5
31261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262 (exit $ac_status); } &&
31263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31264 { (case "(($ac_try" in
31265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31266 *) ac_try_echo=$ac_try;;
31268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31269 (eval "$ac_try") 2>&5
31271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272 (exit $ac_status); }; } &&
31273 { ac_try='test -s conftest$ac_exeext'
31274 { (case "(($ac_try" in
31275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31276 *) ac_try_echo=$ac_try;;
31278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31279 (eval "$ac_try") 2>&5
31281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31282 (exit $ac_status); }; }; then
31283 ac_cv_working_alloca_h=yes
31285 echo "$as_me: failed program was:" >&5
31286 sed 's/^/| /' conftest.$ac_ext >&5
31288 ac_cv_working_alloca_h=no
31291 rm -f core conftest.err conftest.$ac_objext \
31292 conftest$ac_exeext conftest.$ac_ext
31294 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31295 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31296 if test $ac_cv_working_alloca_h = yes; then
31298 cat >>confdefs.h <<\_ACEOF
31299 #define HAVE_ALLOCA_H 1
31304 { echo "$as_me:$LINENO: checking for alloca" >&5
31305 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31306 if test "${ac_cv_func_alloca_works+set}" = set; then
31307 echo $ECHO_N "(cached) $ECHO_C" >&6
31309 cat >conftest.$ac_ext <<_ACEOF
31312 cat confdefs.h >>conftest.$ac_ext
31313 cat >>conftest.$ac_ext <<_ACEOF
31314 /* end confdefs.h. */
31316 # define alloca __builtin_alloca
31319 # include <malloc.h>
31320 # define alloca _alloca
31323 # include <alloca.h>
31328 # ifndef alloca /* predefined by HP cc +Olibcalls */
31339 char *p = (char *) alloca (1);
31345 rm -f conftest.$ac_objext conftest$ac_exeext
31346 if { (ac_try="$ac_link"
31347 case "(($ac_try" in
31348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31349 *) ac_try_echo=$ac_try;;
31351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31352 (eval "$ac_link") 2>conftest.er1
31354 grep -v '^ *+' conftest.er1 >conftest.err
31356 cat conftest.err >&5
31357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31358 (exit $ac_status); } &&
31359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31360 { (case "(($ac_try" in
31361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31362 *) ac_try_echo=$ac_try;;
31364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31365 (eval "$ac_try") 2>&5
31367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31368 (exit $ac_status); }; } &&
31369 { ac_try='test -s conftest$ac_exeext'
31370 { (case "(($ac_try" in
31371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31372 *) ac_try_echo=$ac_try;;
31374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31375 (eval "$ac_try") 2>&5
31377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31378 (exit $ac_status); }; }; then
31379 ac_cv_func_alloca_works=yes
31381 echo "$as_me: failed program was:" >&5
31382 sed 's/^/| /' conftest.$ac_ext >&5
31384 ac_cv_func_alloca_works=no
31387 rm -f core conftest.err conftest.$ac_objext \
31388 conftest$ac_exeext conftest.$ac_ext
31390 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31391 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31393 if test $ac_cv_func_alloca_works = yes; then
31395 cat >>confdefs.h <<\_ACEOF
31396 #define HAVE_ALLOCA 1
31400 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31401 # that cause trouble. Some versions do not even contain alloca or
31402 # contain a buggy version. If you still want to use their alloca,
31403 # use ar to extract alloca.o from them instead of compiling alloca.c.
31405 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31407 cat >>confdefs.h <<\_ACEOF
31412 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31413 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31414 if test "${ac_cv_os_cray+set}" = set; then
31415 echo $ECHO_N "(cached) $ECHO_C" >&6
31417 cat >conftest.$ac_ext <<_ACEOF
31420 cat confdefs.h >>conftest.$ac_ext
31421 cat >>conftest.$ac_ext <<_ACEOF
31422 /* end confdefs.h. */
31423 #if defined CRAY && ! defined CRAY2
31430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31431 $EGREP "webecray" >/dev/null 2>&1; then
31439 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31440 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31441 if test $ac_cv_os_cray = yes; then
31442 for ac_func in _getb67 GETB67 getb67; do
31443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31444 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31446 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31447 echo $ECHO_N "(cached) $ECHO_C" >&6
31449 cat >conftest.$ac_ext <<_ACEOF
31452 cat confdefs.h >>conftest.$ac_ext
31453 cat >>conftest.$ac_ext <<_ACEOF
31454 /* end confdefs.h. */
31455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31457 #define $ac_func innocuous_$ac_func
31459 /* System header to define __stub macros and hopefully few prototypes,
31460 which can conflict with char $ac_func (); below.
31461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31462 <limits.h> exists even on freestanding compilers. */
31465 # include <limits.h>
31467 # include <assert.h>
31472 /* Override any GCC internal prototype to avoid an error.
31473 Use char because int might match the return type of a GCC
31474 builtin and then its argument prototype would still apply. */
31479 /* The GNU C library defines this for functions which it implements
31480 to always fail with ENOSYS. Some functions are actually named
31481 something starting with __ and the normal name is an alias. */
31482 #if defined __stub_$ac_func || defined __stub___$ac_func
31489 return $ac_func ();
31494 rm -f conftest.$ac_objext conftest$ac_exeext
31495 if { (ac_try="$ac_link"
31496 case "(($ac_try" in
31497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31498 *) ac_try_echo=$ac_try;;
31500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31501 (eval "$ac_link") 2>conftest.er1
31503 grep -v '^ *+' conftest.er1 >conftest.err
31505 cat conftest.err >&5
31506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507 (exit $ac_status); } &&
31508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31509 { (case "(($ac_try" in
31510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31511 *) ac_try_echo=$ac_try;;
31513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31514 (eval "$ac_try") 2>&5
31516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517 (exit $ac_status); }; } &&
31518 { ac_try='test -s conftest$ac_exeext'
31519 { (case "(($ac_try" in
31520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31521 *) ac_try_echo=$ac_try;;
31523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31524 (eval "$ac_try") 2>&5
31526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527 (exit $ac_status); }; }; then
31528 eval "$as_ac_var=yes"
31530 echo "$as_me: failed program was:" >&5
31531 sed 's/^/| /' conftest.$ac_ext >&5
31533 eval "$as_ac_var=no"
31536 rm -f core conftest.err conftest.$ac_objext \
31537 conftest$ac_exeext conftest.$ac_ext
31539 ac_res=`eval echo '${'$as_ac_var'}'`
31540 { echo "$as_me:$LINENO: result: $ac_res" >&5
31541 echo "${ECHO_T}$ac_res" >&6; }
31542 if test `eval echo '${'$as_ac_var'}'` = yes; then
31544 cat >>confdefs.h <<_ACEOF
31545 #define CRAY_STACKSEG_END $ac_func
31554 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31555 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31556 if test "${ac_cv_c_stack_direction+set}" = set; then
31557 echo $ECHO_N "(cached) $ECHO_C" >&6
31559 if test "$cross_compiling" = yes; then
31560 ac_cv_c_stack_direction=0
31562 cat >conftest.$ac_ext <<_ACEOF
31565 cat confdefs.h >>conftest.$ac_ext
31566 cat >>conftest.$ac_ext <<_ACEOF
31567 /* end confdefs.h. */
31568 $ac_includes_default
31570 find_stack_direction ()
31572 static char *addr = 0;
31577 return find_stack_direction ();
31580 return (&dummy > addr) ? 1 : -1;
31586 return find_stack_direction () < 0;
31589 rm -f conftest$ac_exeext
31590 if { (ac_try="$ac_link"
31591 case "(($ac_try" in
31592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31593 *) ac_try_echo=$ac_try;;
31595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31596 (eval "$ac_link") 2>&5
31598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31600 { (case "(($ac_try" in
31601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31602 *) ac_try_echo=$ac_try;;
31604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31605 (eval "$ac_try") 2>&5
31607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31608 (exit $ac_status); }; }; then
31609 ac_cv_c_stack_direction=1
31611 echo "$as_me: program exited with status $ac_status" >&5
31612 echo "$as_me: failed program was:" >&5
31613 sed 's/^/| /' conftest.$ac_ext >&5
31615 ( exit $ac_status )
31616 ac_cv_c_stack_direction=-1
31618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31623 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31624 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31626 cat >>confdefs.h <<_ACEOF
31627 #define STACK_DIRECTION $ac_cv_c_stack_direction
31634 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31635 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31636 if test "${ac_cv_func_rand48+set}" = set; then
31637 echo $ECHO_N "(cached) $ECHO_C" >&6
31640 ac_cpp='$CXXCPP $CPPFLAGS'
31641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31645 cat >conftest.$ac_ext <<_ACEOF
31648 cat confdefs.h >>conftest.$ac_ext
31649 cat >>conftest.$ac_ext <<_ACEOF
31650 /* end confdefs.h. */
31651 #include <stdlib.h>
31655 srand48(0);lrand48();drand48();
31660 rm -f conftest.$ac_objext
31661 if { (ac_try="$ac_compile"
31662 case "(($ac_try" in
31663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31664 *) ac_try_echo=$ac_try;;
31666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31667 (eval "$ac_compile") 2>conftest.er1
31669 grep -v '^ *+' conftest.er1 >conftest.err
31671 cat conftest.err >&5
31672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673 (exit $ac_status); } &&
31674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31675 { (case "(($ac_try" in
31676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31677 *) ac_try_echo=$ac_try;;
31679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31680 (eval "$ac_try") 2>&5
31682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31683 (exit $ac_status); }; } &&
31684 { ac_try='test -s conftest.$ac_objext'
31685 { (case "(($ac_try" in
31686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31687 *) ac_try_echo=$ac_try;;
31689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31690 (eval "$ac_try") 2>&5
31692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693 (exit $ac_status); }; }; then
31694 ac_cv_func_rand48=yes
31696 echo "$as_me: failed program was:" >&5
31697 sed 's/^/| /' conftest.$ac_ext >&5
31699 ac_cv_func_rand48=no
31702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31704 ac_cpp='$CPP $CPPFLAGS'
31705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31710 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31711 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31713 if test "$ac_cv_func_rand48" = "yes" ; then
31715 cat >>confdefs.h <<\_ACEOF
31716 #define HAVE_RAND48 1
31722 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31723 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31724 if test "${ac_cv_cxx_namespaces+set}" = set; then
31725 echo $ECHO_N "(cached) $ECHO_C" >&6
31728 ac_cpp='$CXXCPP $CPPFLAGS'
31729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31733 cat >conftest.$ac_ext <<_ACEOF
31736 cat confdefs.h >>conftest.$ac_ext
31737 cat >>conftest.$ac_ext <<_ACEOF
31738 /* end confdefs.h. */
31739 namespace Outer { namespace Inner { int i = 0; }}
31743 using namespace Outer::Inner; return i;
31748 rm -f conftest.$ac_objext
31749 if { (ac_try="$ac_compile"
31750 case "(($ac_try" in
31751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31752 *) ac_try_echo=$ac_try;;
31754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31755 (eval "$ac_compile") 2>conftest.er1
31757 grep -v '^ *+' conftest.er1 >conftest.err
31759 cat conftest.err >&5
31760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31761 (exit $ac_status); } &&
31762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31763 { (case "(($ac_try" in
31764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31765 *) ac_try_echo=$ac_try;;
31767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31768 (eval "$ac_try") 2>&5
31770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771 (exit $ac_status); }; } &&
31772 { ac_try='test -s conftest.$ac_objext'
31773 { (case "(($ac_try" in
31774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31775 *) ac_try_echo=$ac_try;;
31777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31778 (eval "$ac_try") 2>&5
31780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31781 (exit $ac_status); }; }; then
31782 ac_cv_cxx_namespaces=yes
31784 echo "$as_me: failed program was:" >&5
31785 sed 's/^/| /' conftest.$ac_ext >&5
31787 ac_cv_cxx_namespaces=no
31790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31792 ac_cpp='$CPP $CPPFLAGS'
31793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31799 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31800 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31801 if test "$ac_cv_cxx_namespaces" = yes; then
31803 cat >>confdefs.h <<\_ACEOF
31804 #define HAVE_NAMESPACES
31809 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31810 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31811 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31812 echo $ECHO_N "(cached) $ECHO_C" >&6
31816 ac_cpp='$CXXCPP $CPPFLAGS'
31817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31821 cat >conftest.$ac_ext <<_ACEOF
31824 cat confdefs.h >>conftest.$ac_ext
31825 cat >>conftest.$ac_ext <<_ACEOF
31826 /* end confdefs.h. */
31827 #include <ext/hash_map>
31828 #ifdef HAVE_NAMESPACES
31829 using namespace std;
31834 hash_map<int, int> t;
31839 rm -f conftest.$ac_objext
31840 if { (ac_try="$ac_compile"
31841 case "(($ac_try" in
31842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31843 *) ac_try_echo=$ac_try;;
31845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31846 (eval "$ac_compile") 2>conftest.er1
31848 grep -v '^ *+' conftest.er1 >conftest.err
31850 cat conftest.err >&5
31851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852 (exit $ac_status); } &&
31853 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31854 { (case "(($ac_try" in
31855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31856 *) ac_try_echo=$ac_try;;
31858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31859 (eval "$ac_try") 2>&5
31861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31862 (exit $ac_status); }; } &&
31863 { ac_try='test -s conftest.$ac_objext'
31864 { (case "(($ac_try" in
31865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31866 *) ac_try_echo=$ac_try;;
31868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31869 (eval "$ac_try") 2>&5
31871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31872 (exit $ac_status); }; }; then
31873 ac_cv_cxx_have_std_ext_hash_map=yes
31875 echo "$as_me: failed program was:" >&5
31876 sed 's/^/| /' conftest.$ac_ext >&5
31878 ac_cv_cxx_have_std_ext_hash_map=no
31881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31883 ac_cpp='$CPP $CPPFLAGS'
31884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31889 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31890 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31891 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31894 cat >>confdefs.h <<\_ACEOF
31895 #define HAVE_STD_EXT_HASH_MAP 1
31900 cat >>confdefs.h <<\_ACEOF
31901 #define HAVE_STD_EXT_HASH_MAP 0
31906 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31907 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31908 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31909 echo $ECHO_N "(cached) $ECHO_C" >&6
31913 ac_cpp='$CXXCPP $CPPFLAGS'
31914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31918 cat >conftest.$ac_ext <<_ACEOF
31921 cat confdefs.h >>conftest.$ac_ext
31922 cat >>conftest.$ac_ext <<_ACEOF
31923 /* end confdefs.h. */
31924 #include <ext/hash_map>
31925 #ifdef HAVE_NAMESPACES
31926 using namespace __gnu_cxx;
31931 hash_map<int,int> t;
31936 rm -f conftest.$ac_objext
31937 if { (ac_try="$ac_compile"
31938 case "(($ac_try" in
31939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31940 *) ac_try_echo=$ac_try;;
31942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31943 (eval "$ac_compile") 2>conftest.er1
31945 grep -v '^ *+' conftest.er1 >conftest.err
31947 cat conftest.err >&5
31948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949 (exit $ac_status); } &&
31950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31951 { (case "(($ac_try" in
31952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31953 *) ac_try_echo=$ac_try;;
31955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31956 (eval "$ac_try") 2>&5
31958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959 (exit $ac_status); }; } &&
31960 { ac_try='test -s conftest.$ac_objext'
31961 { (case "(($ac_try" in
31962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31963 *) ac_try_echo=$ac_try;;
31965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31966 (eval "$ac_try") 2>&5
31968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31969 (exit $ac_status); }; }; then
31970 ac_cv_cxx_have_gnu_ext_hash_map=yes
31972 echo "$as_me: failed program was:" >&5
31973 sed 's/^/| /' conftest.$ac_ext >&5
31975 ac_cv_cxx_have_gnu_ext_hash_map=no
31978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31980 ac_cpp='$CPP $CPPFLAGS'
31981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31986 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31987 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31988 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31991 cat >>confdefs.h <<\_ACEOF
31992 #define HAVE_GNU_EXT_HASH_MAP 1
31997 cat >>confdefs.h <<\_ACEOF
31998 #define HAVE_GNU_EXT_HASH_MAP 0
32003 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32004 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32005 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32006 echo $ECHO_N "(cached) $ECHO_C" >&6
32010 ac_cpp='$CXXCPP $CPPFLAGS'
32011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32015 cat >conftest.$ac_ext <<_ACEOF
32018 cat confdefs.h >>conftest.$ac_ext
32019 cat >>conftest.$ac_ext <<_ACEOF
32020 /* end confdefs.h. */
32021 #include <hash_map>
32025 hash_map<int,int> t;
32030 rm -f conftest.$ac_objext
32031 if { (ac_try="$ac_compile"
32032 case "(($ac_try" in
32033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32034 *) ac_try_echo=$ac_try;;
32036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32037 (eval "$ac_compile") 2>conftest.er1
32039 grep -v '^ *+' conftest.er1 >conftest.err
32041 cat conftest.err >&5
32042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32043 (exit $ac_status); } &&
32044 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32045 { (case "(($ac_try" in
32046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32047 *) ac_try_echo=$ac_try;;
32049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32050 (eval "$ac_try") 2>&5
32052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053 (exit $ac_status); }; } &&
32054 { ac_try='test -s conftest.$ac_objext'
32055 { (case "(($ac_try" in
32056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32057 *) ac_try_echo=$ac_try;;
32059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32060 (eval "$ac_try") 2>&5
32062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063 (exit $ac_status); }; }; then
32064 ac_cv_cxx_have_global_hash_map=yes
32066 echo "$as_me: failed program was:" >&5
32067 sed 's/^/| /' conftest.$ac_ext >&5
32069 ac_cv_cxx_have_global_hash_map=no
32072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32074 ac_cpp='$CPP $CPPFLAGS'
32075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32080 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32081 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32082 if test "$ac_cv_cxx_have_global_hash_map" = yes
32085 cat >>confdefs.h <<\_ACEOF
32086 #define HAVE_GLOBAL_HASH_MAP 1
32091 cat >>confdefs.h <<\_ACEOF
32092 #define HAVE_GLOBAL_HASH_MAP 0
32097 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32098 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32099 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32100 echo $ECHO_N "(cached) $ECHO_C" >&6
32104 ac_cpp='$CXXCPP $CPPFLAGS'
32105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32109 cat >conftest.$ac_ext <<_ACEOF
32112 cat confdefs.h >>conftest.$ac_ext
32113 cat >>conftest.$ac_ext <<_ACEOF
32114 /* end confdefs.h. */
32115 #include <ext/hash_set>
32116 #ifdef HAVE_NAMESPACES
32117 using namespace std;
32127 rm -f conftest.$ac_objext
32128 if { (ac_try="$ac_compile"
32129 case "(($ac_try" in
32130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32131 *) ac_try_echo=$ac_try;;
32133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32134 (eval "$ac_compile") 2>conftest.er1
32136 grep -v '^ *+' conftest.er1 >conftest.err
32138 cat conftest.err >&5
32139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32140 (exit $ac_status); } &&
32141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32142 { (case "(($ac_try" in
32143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32144 *) ac_try_echo=$ac_try;;
32146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32147 (eval "$ac_try") 2>&5
32149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150 (exit $ac_status); }; } &&
32151 { ac_try='test -s conftest.$ac_objext'
32152 { (case "(($ac_try" in
32153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32154 *) ac_try_echo=$ac_try;;
32156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32157 (eval "$ac_try") 2>&5
32159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32160 (exit $ac_status); }; }; then
32161 ac_cv_cxx_have_std_ext_hash_set=yes
32163 echo "$as_me: failed program was:" >&5
32164 sed 's/^/| /' conftest.$ac_ext >&5
32166 ac_cv_cxx_have_std_ext_hash_set=no
32169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32171 ac_cpp='$CPP $CPPFLAGS'
32172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32177 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32178 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32179 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32182 cat >>confdefs.h <<\_ACEOF
32183 #define HAVE_STD_EXT_HASH_SET 1
32188 cat >>confdefs.h <<\_ACEOF
32189 #define HAVE_STD_EXT_HASH_SET 0
32194 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32195 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32196 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32197 echo $ECHO_N "(cached) $ECHO_C" >&6
32201 ac_cpp='$CXXCPP $CPPFLAGS'
32202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32206 cat >conftest.$ac_ext <<_ACEOF
32209 cat confdefs.h >>conftest.$ac_ext
32210 cat >>conftest.$ac_ext <<_ACEOF
32211 /* end confdefs.h. */
32212 #include <ext/hash_set>
32213 #ifdef HAVE_NAMESPACES
32214 using namespace __gnu_cxx;
32224 rm -f conftest.$ac_objext
32225 if { (ac_try="$ac_compile"
32226 case "(($ac_try" in
32227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32228 *) ac_try_echo=$ac_try;;
32230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32231 (eval "$ac_compile") 2>conftest.er1
32233 grep -v '^ *+' conftest.er1 >conftest.err
32235 cat conftest.err >&5
32236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237 (exit $ac_status); } &&
32238 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32239 { (case "(($ac_try" in
32240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32241 *) ac_try_echo=$ac_try;;
32243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32244 (eval "$ac_try") 2>&5
32246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247 (exit $ac_status); }; } &&
32248 { ac_try='test -s conftest.$ac_objext'
32249 { (case "(($ac_try" in
32250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32251 *) ac_try_echo=$ac_try;;
32253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32254 (eval "$ac_try") 2>&5
32256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257 (exit $ac_status); }; }; then
32258 ac_cv_cxx_have_gnu_ext_hash_set=yes
32260 echo "$as_me: failed program was:" >&5
32261 sed 's/^/| /' conftest.$ac_ext >&5
32263 ac_cv_cxx_have_gnu_ext_hash_set=no
32266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32268 ac_cpp='$CPP $CPPFLAGS'
32269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32274 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32275 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32276 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32279 cat >>confdefs.h <<\_ACEOF
32280 #define HAVE_GNU_EXT_HASH_SET 1
32285 cat >>confdefs.h <<\_ACEOF
32286 #define HAVE_GNU_EXT_HASH_SET 0
32291 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32292 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32293 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32294 echo $ECHO_N "(cached) $ECHO_C" >&6
32298 ac_cpp='$CXXCPP $CPPFLAGS'
32299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32303 cat >conftest.$ac_ext <<_ACEOF
32306 cat confdefs.h >>conftest.$ac_ext
32307 cat >>conftest.$ac_ext <<_ACEOF
32308 /* end confdefs.h. */
32309 #include <hash_set>
32313 hash_set<int> t; return 0;
32318 rm -f conftest.$ac_objext
32319 if { (ac_try="$ac_compile"
32320 case "(($ac_try" in
32321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32322 *) ac_try_echo=$ac_try;;
32324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32325 (eval "$ac_compile") 2>conftest.er1
32327 grep -v '^ *+' conftest.er1 >conftest.err
32329 cat conftest.err >&5
32330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32331 (exit $ac_status); } &&
32332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32333 { (case "(($ac_try" in
32334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32335 *) ac_try_echo=$ac_try;;
32337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32338 (eval "$ac_try") 2>&5
32340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32341 (exit $ac_status); }; } &&
32342 { ac_try='test -s conftest.$ac_objext'
32343 { (case "(($ac_try" in
32344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32345 *) ac_try_echo=$ac_try;;
32347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32348 (eval "$ac_try") 2>&5
32350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32351 (exit $ac_status); }; }; then
32352 ac_cv_cxx_have_global_hash_set=yes
32354 echo "$as_me: failed program was:" >&5
32355 sed 's/^/| /' conftest.$ac_ext >&5
32357 ac_cv_cxx_have_global_hash_set=no
32360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32362 ac_cpp='$CPP $CPPFLAGS'
32363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32368 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32369 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32370 if test "$ac_cv_cxx_have_global_hash_set" = yes
32373 cat >>confdefs.h <<\_ACEOF
32374 #define HAVE_GLOBAL_HASH_SET 1
32379 cat >>confdefs.h <<\_ACEOF
32380 #define HAVE_GLOBAL_HASH_SET 0
32385 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32386 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32387 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32388 echo $ECHO_N "(cached) $ECHO_C" >&6
32392 ac_cpp='$CXXCPP $CPPFLAGS'
32393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32397 cat >conftest.$ac_ext <<_ACEOF
32400 cat confdefs.h >>conftest.$ac_ext
32401 cat >>conftest.$ac_ext <<_ACEOF
32402 /* end confdefs.h. */
32403 #include <iterator>
32404 #ifdef HAVE_NAMESPACES
32405 using namespace std;
32410 iterator<int,int,int> t; return 0;
32415 rm -f conftest.$ac_objext
32416 if { (ac_try="$ac_compile"
32417 case "(($ac_try" in
32418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32419 *) ac_try_echo=$ac_try;;
32421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32422 (eval "$ac_compile") 2>conftest.er1
32424 grep -v '^ *+' conftest.er1 >conftest.err
32426 cat conftest.err >&5
32427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428 (exit $ac_status); } &&
32429 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32430 { (case "(($ac_try" in
32431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32432 *) ac_try_echo=$ac_try;;
32434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32435 (eval "$ac_try") 2>&5
32437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438 (exit $ac_status); }; } &&
32439 { ac_try='test -s conftest.$ac_objext'
32440 { (case "(($ac_try" in
32441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32442 *) ac_try_echo=$ac_try;;
32444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32445 (eval "$ac_try") 2>&5
32447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448 (exit $ac_status); }; }; then
32449 ac_cv_cxx_have_std_iterator=yes
32451 echo "$as_me: failed program was:" >&5
32452 sed 's/^/| /' conftest.$ac_ext >&5
32454 ac_cv_cxx_have_std_iterator=no
32457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32459 ac_cpp='$CPP $CPPFLAGS'
32460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32466 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32467 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32468 if test "$ac_cv_cxx_have_std_iterator" = yes
32471 cat >>confdefs.h <<\_ACEOF
32472 #define HAVE_STD_ITERATOR 1
32477 cat >>confdefs.h <<\_ACEOF
32478 #define HAVE_STD_ITERATOR 0
32483 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32484 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32485 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32486 echo $ECHO_N "(cached) $ECHO_C" >&6
32490 ac_cpp='$CXXCPP $CPPFLAGS'
32491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32495 cat >conftest.$ac_ext <<_ACEOF
32498 cat confdefs.h >>conftest.$ac_ext
32499 cat >>conftest.$ac_ext <<_ACEOF
32500 /* end confdefs.h. */
32501 #include <iterator>
32502 #ifdef HAVE_NAMESPACES
32503 using namespace std;
32508 bidirectional_iterator<int,int> t; return 0;
32513 rm -f conftest.$ac_objext
32514 if { (ac_try="$ac_compile"
32515 case "(($ac_try" in
32516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32517 *) ac_try_echo=$ac_try;;
32519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32520 (eval "$ac_compile") 2>conftest.er1
32522 grep -v '^ *+' conftest.er1 >conftest.err
32524 cat conftest.err >&5
32525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32526 (exit $ac_status); } &&
32527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32528 { (case "(($ac_try" in
32529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32530 *) ac_try_echo=$ac_try;;
32532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32533 (eval "$ac_try") 2>&5
32535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536 (exit $ac_status); }; } &&
32537 { ac_try='test -s conftest.$ac_objext'
32538 { (case "(($ac_try" in
32539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32540 *) ac_try_echo=$ac_try;;
32542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32543 (eval "$ac_try") 2>&5
32545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546 (exit $ac_status); }; }; then
32547 ac_cv_cxx_have_bi_iterator=yes
32549 echo "$as_me: failed program was:" >&5
32550 sed 's/^/| /' conftest.$ac_ext >&5
32552 ac_cv_cxx_have_bi_iterator=no
32555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32557 ac_cpp='$CPP $CPPFLAGS'
32558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32564 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32565 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32566 if test "$ac_cv_cxx_have_bi_iterator" = yes
32569 cat >>confdefs.h <<\_ACEOF
32570 #define HAVE_BI_ITERATOR 1
32575 cat >>confdefs.h <<\_ACEOF
32576 #define HAVE_BI_ITERATOR 0
32581 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32582 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32583 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32584 echo $ECHO_N "(cached) $ECHO_C" >&6
32588 ac_cpp='$CXXCPP $CPPFLAGS'
32589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32593 cat >conftest.$ac_ext <<_ACEOF
32596 cat confdefs.h >>conftest.$ac_ext
32597 cat >>conftest.$ac_ext <<_ACEOF
32598 /* end confdefs.h. */
32599 #include <iterator>
32600 #ifdef HAVE_NAMESPACES
32601 using namespace std;
32606 forward_iterator<int,int> t; return 0;
32611 rm -f conftest.$ac_objext
32612 if { (ac_try="$ac_compile"
32613 case "(($ac_try" in
32614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32615 *) ac_try_echo=$ac_try;;
32617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32618 (eval "$ac_compile") 2>conftest.er1
32620 grep -v '^ *+' conftest.er1 >conftest.err
32622 cat conftest.err >&5
32623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624 (exit $ac_status); } &&
32625 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32626 { (case "(($ac_try" in
32627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32628 *) ac_try_echo=$ac_try;;
32630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32631 (eval "$ac_try") 2>&5
32633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32634 (exit $ac_status); }; } &&
32635 { ac_try='test -s conftest.$ac_objext'
32636 { (case "(($ac_try" in
32637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32638 *) ac_try_echo=$ac_try;;
32640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32641 (eval "$ac_try") 2>&5
32643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32644 (exit $ac_status); }; }; then
32645 ac_cv_cxx_have_fwd_iterator=yes
32647 echo "$as_me: failed program was:" >&5
32648 sed 's/^/| /' conftest.$ac_ext >&5
32650 ac_cv_cxx_have_fwd_iterator=no
32653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32655 ac_cpp='$CPP $CPPFLAGS'
32656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32662 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32663 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32664 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32667 cat >>confdefs.h <<\_ACEOF
32668 #define HAVE_FWD_ITERATOR 1
32673 cat >>confdefs.h <<\_ACEOF
32674 #define HAVE_FWD_ITERATOR 0
32680 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32681 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32682 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32683 echo $ECHO_N "(cached) $ECHO_C" >&6
32686 ac_cpp='$CXXCPP $CPPFLAGS'
32687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32691 cat >conftest.$ac_ext <<_ACEOF
32694 cat confdefs.h >>conftest.$ac_ext
32695 cat >>conftest.$ac_ext <<_ACEOF
32696 /* end confdefs.h. */
32706 rm -f conftest.$ac_objext
32707 if { (ac_try="$ac_compile"
32708 case "(($ac_try" in
32709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32710 *) ac_try_echo=$ac_try;;
32712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32713 (eval "$ac_compile") 2>conftest.er1
32715 grep -v '^ *+' conftest.er1 >conftest.err
32717 cat conftest.err >&5
32718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32719 (exit $ac_status); } &&
32720 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32721 { (case "(($ac_try" in
32722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32723 *) ac_try_echo=$ac_try;;
32725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32726 (eval "$ac_try") 2>&5
32728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729 (exit $ac_status); }; } &&
32730 { ac_try='test -s conftest.$ac_objext'
32731 { (case "(($ac_try" in
32732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32733 *) ac_try_echo=$ac_try;;
32735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32736 (eval "$ac_try") 2>&5
32738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32739 (exit $ac_status); }; }; then
32740 ac_cv_func_isnan_in_math_h=yes
32742 echo "$as_me: failed program was:" >&5
32743 sed 's/^/| /' conftest.$ac_ext >&5
32745 ac_cv_func_isnan_in_math_h=no
32748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32750 ac_cpp='$CPP $CPPFLAGS'
32751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32756 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32757 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32760 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32762 cat >>confdefs.h <<\_ACEOF
32763 #define HAVE_ISNAN_IN_MATH_H 1
32768 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32769 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32770 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32771 echo $ECHO_N "(cached) $ECHO_C" >&6
32774 ac_cpp='$CXXCPP $CPPFLAGS'
32775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32779 cat >conftest.$ac_ext <<_ACEOF
32782 cat confdefs.h >>conftest.$ac_ext
32783 cat >>conftest.$ac_ext <<_ACEOF
32784 /* end confdefs.h. */
32794 rm -f conftest.$ac_objext
32795 if { (ac_try="$ac_compile"
32796 case "(($ac_try" in
32797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32798 *) ac_try_echo=$ac_try;;
32800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32801 (eval "$ac_compile") 2>conftest.er1
32803 grep -v '^ *+' conftest.er1 >conftest.err
32805 cat conftest.err >&5
32806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32807 (exit $ac_status); } &&
32808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32809 { (case "(($ac_try" in
32810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32811 *) ac_try_echo=$ac_try;;
32813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32814 (eval "$ac_try") 2>&5
32816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817 (exit $ac_status); }; } &&
32818 { ac_try='test -s conftest.$ac_objext'
32819 { (case "(($ac_try" in
32820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32821 *) ac_try_echo=$ac_try;;
32823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32824 (eval "$ac_try") 2>&5
32826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827 (exit $ac_status); }; }; then
32828 ac_cv_func_isnan_in_cmath=yes
32830 echo "$as_me: failed program was:" >&5
32831 sed 's/^/| /' conftest.$ac_ext >&5
32833 ac_cv_func_isnan_in_cmath=no
32836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32838 ac_cpp='$CPP $CPPFLAGS'
32839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32844 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32845 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32847 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32849 cat >>confdefs.h <<\_ACEOF
32850 #define HAVE_ISNAN_IN_CMATH 1
32855 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32856 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32857 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32858 echo $ECHO_N "(cached) $ECHO_C" >&6
32861 ac_cpp='$CXXCPP $CPPFLAGS'
32862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32866 cat >conftest.$ac_ext <<_ACEOF
32869 cat confdefs.h >>conftest.$ac_ext
32870 cat >>conftest.$ac_ext <<_ACEOF
32871 /* end confdefs.h. */
32876 float f; std::isnan(f);
32881 rm -f conftest.$ac_objext
32882 if { (ac_try="$ac_compile"
32883 case "(($ac_try" in
32884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32885 *) ac_try_echo=$ac_try;;
32887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32888 (eval "$ac_compile") 2>conftest.er1
32890 grep -v '^ *+' conftest.er1 >conftest.err
32892 cat conftest.err >&5
32893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894 (exit $ac_status); } &&
32895 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32896 { (case "(($ac_try" in
32897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32898 *) ac_try_echo=$ac_try;;
32900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32901 (eval "$ac_try") 2>&5
32903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32904 (exit $ac_status); }; } &&
32905 { ac_try='test -s conftest.$ac_objext'
32906 { (case "(($ac_try" in
32907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32908 *) ac_try_echo=$ac_try;;
32910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32911 (eval "$ac_try") 2>&5
32913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32914 (exit $ac_status); }; }; then
32915 ac_cv_func_std_isnan_in_cmath=yes
32917 echo "$as_me: failed program was:" >&5
32918 sed 's/^/| /' conftest.$ac_ext >&5
32920 ac_cv_func_std_isnan_in_cmath=no
32923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32925 ac_cpp='$CPP $CPPFLAGS'
32926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32931 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32932 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32934 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32936 cat >>confdefs.h <<\_ACEOF
32937 #define HAVE_STD_ISNAN_IN_CMATH 1
32943 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32944 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32945 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32946 echo $ECHO_N "(cached) $ECHO_C" >&6
32949 ac_cpp='$CXXCPP $CPPFLAGS'
32950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32954 cat >conftest.$ac_ext <<_ACEOF
32957 cat confdefs.h >>conftest.$ac_ext
32958 cat >>conftest.$ac_ext <<_ACEOF
32959 /* end confdefs.h. */
32969 rm -f conftest.$ac_objext
32970 if { (ac_try="$ac_compile"
32971 case "(($ac_try" in
32972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32973 *) ac_try_echo=$ac_try;;
32975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32976 (eval "$ac_compile") 2>conftest.er1
32978 grep -v '^ *+' conftest.er1 >conftest.err
32980 cat conftest.err >&5
32981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982 (exit $ac_status); } &&
32983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32984 { (case "(($ac_try" in
32985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32986 *) ac_try_echo=$ac_try;;
32988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32989 (eval "$ac_try") 2>&5
32991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32992 (exit $ac_status); }; } &&
32993 { ac_try='test -s conftest.$ac_objext'
32994 { (case "(($ac_try" in
32995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32996 *) ac_try_echo=$ac_try;;
32998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32999 (eval "$ac_try") 2>&5
33001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33002 (exit $ac_status); }; }; then
33003 ac_cv_func_isinf_in_math_h=yes
33005 echo "$as_me: failed program was:" >&5
33006 sed 's/^/| /' conftest.$ac_ext >&5
33008 ac_cv_func_isinf_in_math_h=no
33011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33013 ac_cpp='$CPP $CPPFLAGS'
33014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33019 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33020 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33022 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33024 cat >>confdefs.h <<\_ACEOF
33025 #define HAVE_ISINF_IN_MATH_H 1
33030 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33031 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33032 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33033 echo $ECHO_N "(cached) $ECHO_C" >&6
33036 ac_cpp='$CXXCPP $CPPFLAGS'
33037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33041 cat >conftest.$ac_ext <<_ACEOF
33044 cat confdefs.h >>conftest.$ac_ext
33045 cat >>conftest.$ac_ext <<_ACEOF
33046 /* end confdefs.h. */
33056 rm -f conftest.$ac_objext
33057 if { (ac_try="$ac_compile"
33058 case "(($ac_try" in
33059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33060 *) ac_try_echo=$ac_try;;
33062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33063 (eval "$ac_compile") 2>conftest.er1
33065 grep -v '^ *+' conftest.er1 >conftest.err
33067 cat conftest.err >&5
33068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069 (exit $ac_status); } &&
33070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33071 { (case "(($ac_try" in
33072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33073 *) ac_try_echo=$ac_try;;
33075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33076 (eval "$ac_try") 2>&5
33078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079 (exit $ac_status); }; } &&
33080 { ac_try='test -s conftest.$ac_objext'
33081 { (case "(($ac_try" in
33082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33083 *) ac_try_echo=$ac_try;;
33085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33086 (eval "$ac_try") 2>&5
33088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33089 (exit $ac_status); }; }; then
33090 ac_cv_func_isinf_in_cmath=yes
33092 echo "$as_me: failed program was:" >&5
33093 sed 's/^/| /' conftest.$ac_ext >&5
33095 ac_cv_func_isinf_in_cmath=no
33098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33100 ac_cpp='$CPP $CPPFLAGS'
33101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33106 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33107 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33109 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33111 cat >>confdefs.h <<\_ACEOF
33112 #define HAVE_ISINF_IN_CMATH 1
33117 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33118 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33119 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33120 echo $ECHO_N "(cached) $ECHO_C" >&6
33123 ac_cpp='$CXXCPP $CPPFLAGS'
33124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33128 cat >conftest.$ac_ext <<_ACEOF
33131 cat confdefs.h >>conftest.$ac_ext
33132 cat >>conftest.$ac_ext <<_ACEOF
33133 /* end confdefs.h. */
33138 float f; std::isinf(f)}
33143 rm -f conftest.$ac_objext
33144 if { (ac_try="$ac_compile"
33145 case "(($ac_try" in
33146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33147 *) ac_try_echo=$ac_try;;
33149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33150 (eval "$ac_compile") 2>conftest.er1
33152 grep -v '^ *+' conftest.er1 >conftest.err
33154 cat conftest.err >&5
33155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156 (exit $ac_status); } &&
33157 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33158 { (case "(($ac_try" in
33159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33160 *) ac_try_echo=$ac_try;;
33162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33163 (eval "$ac_try") 2>&5
33165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166 (exit $ac_status); }; } &&
33167 { ac_try='test -s conftest.$ac_objext'
33168 { (case "(($ac_try" in
33169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33170 *) ac_try_echo=$ac_try;;
33172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33173 (eval "$ac_try") 2>&5
33175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33176 (exit $ac_status); }; }; then
33177 ac_cv_func_std_isinf_in_cmath=yes
33179 echo "$as_me: failed program was:" >&5
33180 sed 's/^/| /' conftest.$ac_ext >&5
33182 ac_cv_func_std_isinf_in_cmath=no
33185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33187 ac_cpp='$CPP $CPPFLAGS'
33188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33193 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33194 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33196 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33198 cat >>confdefs.h <<\_ACEOF
33199 #define HAVE_STD_ISINF_IN_CMATH 1
33204 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33205 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33206 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33207 echo $ECHO_N "(cached) $ECHO_C" >&6
33210 ac_cpp='$CXXCPP $CPPFLAGS'
33211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33215 cat >conftest.$ac_ext <<_ACEOF
33218 cat confdefs.h >>conftest.$ac_ext
33219 cat >>conftest.$ac_ext <<_ACEOF
33220 /* end confdefs.h. */
33221 #include <ieeefp.h>
33225 float f; finite(f);
33230 rm -f conftest.$ac_objext
33231 if { (ac_try="$ac_compile"
33232 case "(($ac_try" in
33233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33234 *) ac_try_echo=$ac_try;;
33236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33237 (eval "$ac_compile") 2>conftest.er1
33239 grep -v '^ *+' conftest.er1 >conftest.err
33241 cat conftest.err >&5
33242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243 (exit $ac_status); } &&
33244 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33245 { (case "(($ac_try" in
33246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33247 *) ac_try_echo=$ac_try;;
33249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33250 (eval "$ac_try") 2>&5
33252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33253 (exit $ac_status); }; } &&
33254 { ac_try='test -s conftest.$ac_objext'
33255 { (case "(($ac_try" in
33256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33257 *) ac_try_echo=$ac_try;;
33259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33260 (eval "$ac_try") 2>&5
33262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33263 (exit $ac_status); }; }; then
33264 ac_cv_func_finite_in_ieeefp_h=yes
33266 echo "$as_me: failed program was:" >&5
33267 sed 's/^/| /' conftest.$ac_ext >&5
33269 ac_cv_func_finite_in_ieeefp_h=no
33272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33274 ac_cpp='$CPP $CPPFLAGS'
33275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33280 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33281 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33283 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33285 cat >>confdefs.h <<\_ACEOF
33286 #define HAVE_FINITE_IN_IEEEFP_H 1
33293 if test "$llvm_cv_platform_type" = "Unix" ; then
33296 for ac_header in stdlib.h unistd.h
33298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33303 echo $ECHO_N "(cached) $ECHO_C" >&6
33305 ac_res=`eval echo '${'$as_ac_Header'}'`
33306 { echo "$as_me:$LINENO: result: $ac_res" >&5
33307 echo "${ECHO_T}$ac_res" >&6; }
33309 # Is the header compilable?
33310 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33312 cat >conftest.$ac_ext <<_ACEOF
33315 cat confdefs.h >>conftest.$ac_ext
33316 cat >>conftest.$ac_ext <<_ACEOF
33317 /* end confdefs.h. */
33318 $ac_includes_default
33319 #include <$ac_header>
33321 rm -f conftest.$ac_objext
33322 if { (ac_try="$ac_compile"
33323 case "(($ac_try" in
33324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33325 *) ac_try_echo=$ac_try;;
33327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33328 (eval "$ac_compile") 2>conftest.er1
33330 grep -v '^ *+' conftest.er1 >conftest.err
33332 cat conftest.err >&5
33333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334 (exit $ac_status); } &&
33335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33336 { (case "(($ac_try" in
33337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33338 *) ac_try_echo=$ac_try;;
33340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33341 (eval "$ac_try") 2>&5
33343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33344 (exit $ac_status); }; } &&
33345 { ac_try='test -s conftest.$ac_objext'
33346 { (case "(($ac_try" in
33347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33348 *) ac_try_echo=$ac_try;;
33350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33351 (eval "$ac_try") 2>&5
33353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33354 (exit $ac_status); }; }; then
33355 ac_header_compiler=yes
33357 echo "$as_me: failed program was:" >&5
33358 sed 's/^/| /' conftest.$ac_ext >&5
33360 ac_header_compiler=no
33363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33364 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33365 echo "${ECHO_T}$ac_header_compiler" >&6; }
33367 # Is the header present?
33368 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33370 cat >conftest.$ac_ext <<_ACEOF
33373 cat confdefs.h >>conftest.$ac_ext
33374 cat >>conftest.$ac_ext <<_ACEOF
33375 /* end confdefs.h. */
33376 #include <$ac_header>
33378 if { (ac_try="$ac_cpp conftest.$ac_ext"
33379 case "(($ac_try" in
33380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33381 *) ac_try_echo=$ac_try;;
33383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33386 grep -v '^ *+' conftest.er1 >conftest.err
33388 cat conftest.err >&5
33389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33390 (exit $ac_status); } >/dev/null; then
33391 if test -s conftest.err; then
33392 ac_cpp_err=$ac_c_preproc_warn_flag
33393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33400 if test -z "$ac_cpp_err"; then
33401 ac_header_preproc=yes
33403 echo "$as_me: failed program was:" >&5
33404 sed 's/^/| /' conftest.$ac_ext >&5
33406 ac_header_preproc=no
33409 rm -f conftest.err conftest.$ac_ext
33410 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33411 echo "${ECHO_T}$ac_header_preproc" >&6; }
33413 # So? What about this header?
33414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33420 ac_header_preproc=yes
33423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33430 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33436 ## ----------------------------------- ##
33437 ## Report this to llvmbugs@cs.uiuc.edu ##
33438 ## ----------------------------------- ##
33440 ) | sed "s/^/$as_me: WARNING: /" >&2
33443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33446 echo $ECHO_N "(cached) $ECHO_C" >&6
33448 eval "$as_ac_Header=\$ac_header_preproc"
33450 ac_res=`eval echo '${'$as_ac_Header'}'`
33451 { echo "$as_me:$LINENO: result: $ac_res" >&5
33452 echo "${ECHO_T}$ac_res" >&6; }
33455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33456 cat >>confdefs.h <<_ACEOF
33457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33465 for ac_func in getpagesize
33467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33471 echo $ECHO_N "(cached) $ECHO_C" >&6
33473 cat >conftest.$ac_ext <<_ACEOF
33476 cat confdefs.h >>conftest.$ac_ext
33477 cat >>conftest.$ac_ext <<_ACEOF
33478 /* end confdefs.h. */
33479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33481 #define $ac_func innocuous_$ac_func
33483 /* System header to define __stub macros and hopefully few prototypes,
33484 which can conflict with char $ac_func (); below.
33485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33486 <limits.h> exists even on freestanding compilers. */
33489 # include <limits.h>
33491 # include <assert.h>
33496 /* Override any GCC internal prototype to avoid an error.
33497 Use char because int might match the return type of a GCC
33498 builtin and then its argument prototype would still apply. */
33503 /* The GNU C library defines this for functions which it implements
33504 to always fail with ENOSYS. Some functions are actually named
33505 something starting with __ and the normal name is an alias. */
33506 #if defined __stub_$ac_func || defined __stub___$ac_func
33513 return $ac_func ();
33518 rm -f conftest.$ac_objext conftest$ac_exeext
33519 if { (ac_try="$ac_link"
33520 case "(($ac_try" in
33521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33522 *) ac_try_echo=$ac_try;;
33524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33525 (eval "$ac_link") 2>conftest.er1
33527 grep -v '^ *+' conftest.er1 >conftest.err
33529 cat conftest.err >&5
33530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33531 (exit $ac_status); } &&
33532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33533 { (case "(($ac_try" in
33534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33535 *) ac_try_echo=$ac_try;;
33537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33538 (eval "$ac_try") 2>&5
33540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541 (exit $ac_status); }; } &&
33542 { ac_try='test -s conftest$ac_exeext'
33543 { (case "(($ac_try" in
33544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33545 *) ac_try_echo=$ac_try;;
33547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33548 (eval "$ac_try") 2>&5
33550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551 (exit $ac_status); }; }; then
33552 eval "$as_ac_var=yes"
33554 echo "$as_me: failed program was:" >&5
33555 sed 's/^/| /' conftest.$ac_ext >&5
33557 eval "$as_ac_var=no"
33560 rm -f core conftest.err conftest.$ac_objext \
33561 conftest$ac_exeext conftest.$ac_ext
33563 ac_res=`eval echo '${'$as_ac_var'}'`
33564 { echo "$as_me:$LINENO: result: $ac_res" >&5
33565 echo "${ECHO_T}$ac_res" >&6; }
33566 if test `eval echo '${'$as_ac_var'}'` = yes; then
33567 cat >>confdefs.h <<_ACEOF
33568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33574 { echo "$as_me:$LINENO: checking for working mmap" >&5
33575 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33576 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33577 echo $ECHO_N "(cached) $ECHO_C" >&6
33579 if test "$cross_compiling" = yes; then
33580 ac_cv_func_mmap_fixed_mapped=no
33582 cat >conftest.$ac_ext <<_ACEOF
33585 cat confdefs.h >>conftest.$ac_ext
33586 cat >>conftest.$ac_ext <<_ACEOF
33587 /* end confdefs.h. */
33588 $ac_includes_default
33589 /* malloc might have been renamed as rpl_malloc. */
33592 /* Thanks to Mike Haertel and Jim Avera for this test.
33593 Here is a matrix of mmap possibilities:
33594 mmap private not fixed
33595 mmap private fixed at somewhere currently unmapped
33596 mmap private fixed at somewhere already mapped
33597 mmap shared not fixed
33598 mmap shared fixed at somewhere currently unmapped
33599 mmap shared fixed at somewhere already mapped
33600 For private mappings, we should verify that changes cannot be read()
33601 back from the file, nor mmap's back from the file at a different
33602 address. (There have been systems where private was not correctly
33603 implemented like the infamous i386 svr4.0, and systems where the
33604 VM page cache was not coherent with the file system buffer cache
33605 like early versions of FreeBSD and possibly contemporary NetBSD.)
33606 For shared mappings, we should conversely verify that changes get
33607 propagated back to all the places they're supposed to be.
33609 Grep wants private fixed already mapped.
33610 The main things grep needs to know about mmap are:
33611 * does it exist and is it safe to write into the mmap'd area
33612 * how to use it (BSD variants) */
33615 #include <sys/mman.h>
33617 #if !STDC_HEADERS && !HAVE_STDLIB_H
33621 /* This mess was copied from the GNU getpagesize.h. */
33622 #if !HAVE_GETPAGESIZE
33623 /* Assume that all systems that can run configure have sys/param.h. */
33624 # if !HAVE_SYS_PARAM_H
33625 # define HAVE_SYS_PARAM_H 1
33628 # ifdef _SC_PAGESIZE
33629 # define getpagesize() sysconf(_SC_PAGESIZE)
33630 # else /* no _SC_PAGESIZE */
33631 # if HAVE_SYS_PARAM_H
33632 # include <sys/param.h>
33633 # ifdef EXEC_PAGESIZE
33634 # define getpagesize() EXEC_PAGESIZE
33635 # else /* no EXEC_PAGESIZE */
33637 # define getpagesize() NBPG * CLSIZE
33640 # endif /* no CLSIZE */
33641 # else /* no NBPG */
33643 # define getpagesize() NBPC
33644 # else /* no NBPC */
33646 # define getpagesize() PAGESIZE
33647 # endif /* PAGESIZE */
33648 # endif /* no NBPC */
33649 # endif /* no NBPG */
33650 # endif /* no EXEC_PAGESIZE */
33651 # else /* no HAVE_SYS_PARAM_H */
33652 # define getpagesize() 8192 /* punt totally */
33653 # endif /* no HAVE_SYS_PARAM_H */
33654 # endif /* no _SC_PAGESIZE */
33656 #endif /* no HAVE_GETPAGESIZE */
33661 char *data, *data2, *data3;
33665 pagesize = getpagesize ();
33667 /* First, make a file with some known garbage in it. */
33668 data = (char *) malloc (pagesize);
33671 for (i = 0; i < pagesize; ++i)
33672 *(data + i) = rand ();
33674 fd = creat ("conftest.mmap", 0600);
33677 if (write (fd, data, pagesize) != pagesize)
33681 /* Next, try to mmap the file at a fixed address which already has
33682 something else allocated at it. If we can, also make sure that
33683 we see the same garbage. */
33684 fd = open ("conftest.mmap", O_RDWR);
33687 data2 = (char *) malloc (2 * pagesize);
33690 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33691 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33692 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33694 for (i = 0; i < pagesize; ++i)
33695 if (*(data + i) != *(data2 + i))
33698 /* Finally, make sure that changes to the mapped area do not
33699 percolate back to the file as seen by read(). (This is a bug on
33700 some variants of i386 svr4.0.) */
33701 for (i = 0; i < pagesize; ++i)
33702 *(data2 + i) = *(data2 + i) + 1;
33703 data3 = (char *) malloc (pagesize);
33706 if (read (fd, data3, pagesize) != pagesize)
33708 for (i = 0; i < pagesize; ++i)
33709 if (*(data + i) != *(data3 + i))
33715 rm -f conftest$ac_exeext
33716 if { (ac_try="$ac_link"
33717 case "(($ac_try" in
33718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33719 *) ac_try_echo=$ac_try;;
33721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33722 (eval "$ac_link") 2>&5
33724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33726 { (case "(($ac_try" in
33727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33728 *) ac_try_echo=$ac_try;;
33730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33731 (eval "$ac_try") 2>&5
33733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33734 (exit $ac_status); }; }; then
33735 ac_cv_func_mmap_fixed_mapped=yes
33737 echo "$as_me: program exited with status $ac_status" >&5
33738 echo "$as_me: failed program was:" >&5
33739 sed 's/^/| /' conftest.$ac_ext >&5
33741 ( exit $ac_status )
33742 ac_cv_func_mmap_fixed_mapped=no
33744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33749 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33750 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33751 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33753 cat >>confdefs.h <<\_ACEOF
33754 #define HAVE_MMAP 1
33758 rm -f conftest.mmap
33760 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33761 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33762 if test "${ac_cv_func_mmap_file+set}" = set; then
33763 echo $ECHO_N "(cached) $ECHO_C" >&6
33766 ac_cpp='$CPP $CPPFLAGS'
33767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33771 if test "$cross_compiling" = yes; then
33772 ac_cv_func_mmap_file=no
33774 cat >conftest.$ac_ext <<_ACEOF
33778 cat confdefs.h >>conftest.$ac_ext
33779 cat >>conftest.$ac_ext <<_ACEOF
33780 /* end confdefs.h. */
33782 #include <sys/types.h>
33783 #include <sys/mman.h>
33791 fd = creat ("foo",0777);
33792 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33794 return (fd != (int) MAP_FAILED);
33799 rm -f conftest$ac_exeext
33800 if { (ac_try="$ac_link"
33801 case "(($ac_try" in
33802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33803 *) ac_try_echo=$ac_try;;
33805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33806 (eval "$ac_link") 2>&5
33808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33810 { (case "(($ac_try" in
33811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33812 *) ac_try_echo=$ac_try;;
33814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33815 (eval "$ac_try") 2>&5
33817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818 (exit $ac_status); }; }; then
33819 ac_cv_func_mmap_file=yes
33821 echo "$as_me: program exited with status $ac_status" >&5
33822 echo "$as_me: failed program was:" >&5
33823 sed 's/^/| /' conftest.$ac_ext >&5
33825 ( exit $ac_status )
33826 ac_cv_func_mmap_file=no
33828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33833 ac_cpp='$CPP $CPPFLAGS'
33834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33840 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33841 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33842 if test "$ac_cv_func_mmap_file" = yes; then
33844 cat >>confdefs.h <<\_ACEOF
33845 #define HAVE_MMAP_FILE
33852 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33853 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33854 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33855 echo $ECHO_N "(cached) $ECHO_C" >&6
33857 if test "$llvm_cv_os_type" = "Interix" ; then
33858 ac_cv_need_dev_zero_for_mmap=yes
33860 ac_cv_need_dev_zero_for_mmap=no
33864 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33865 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33866 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33868 cat >>confdefs.h <<\_ACEOF
33869 #define NEED_DEV_ZERO_FOR_MMAP 1
33874 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33876 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33877 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33879 if test "$ac_cv_func_mmap_file" = "no"
33881 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33882 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33888 for ac_func in __dso_handle
33890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33894 echo $ECHO_N "(cached) $ECHO_C" >&6
33896 cat >conftest.$ac_ext <<_ACEOF
33899 cat confdefs.h >>conftest.$ac_ext
33900 cat >>conftest.$ac_ext <<_ACEOF
33901 /* end confdefs.h. */
33902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33904 #define $ac_func innocuous_$ac_func
33906 /* System header to define __stub macros and hopefully few prototypes,
33907 which can conflict with char $ac_func (); below.
33908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33909 <limits.h> exists even on freestanding compilers. */
33912 # include <limits.h>
33914 # include <assert.h>
33919 /* Override any GCC internal prototype to avoid an error.
33920 Use char because int might match the return type of a GCC
33921 builtin and then its argument prototype would still apply. */
33926 /* The GNU C library defines this for functions which it implements
33927 to always fail with ENOSYS. Some functions are actually named
33928 something starting with __ and the normal name is an alias. */
33929 #if defined __stub_$ac_func || defined __stub___$ac_func
33936 return $ac_func ();
33941 rm -f conftest.$ac_objext conftest$ac_exeext
33942 if { (ac_try="$ac_link"
33943 case "(($ac_try" in
33944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33945 *) ac_try_echo=$ac_try;;
33947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33948 (eval "$ac_link") 2>conftest.er1
33950 grep -v '^ *+' conftest.er1 >conftest.err
33952 cat conftest.err >&5
33953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954 (exit $ac_status); } &&
33955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33956 { (case "(($ac_try" in
33957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33958 *) ac_try_echo=$ac_try;;
33960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33961 (eval "$ac_try") 2>&5
33963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964 (exit $ac_status); }; } &&
33965 { ac_try='test -s conftest$ac_exeext'
33966 { (case "(($ac_try" in
33967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33968 *) ac_try_echo=$ac_try;;
33970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33971 (eval "$ac_try") 2>&5
33973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33974 (exit $ac_status); }; }; then
33975 eval "$as_ac_var=yes"
33977 echo "$as_me: failed program was:" >&5
33978 sed 's/^/| /' conftest.$ac_ext >&5
33980 eval "$as_ac_var=no"
33983 rm -f core conftest.err conftest.$ac_objext \
33984 conftest$ac_exeext conftest.$ac_ext
33986 ac_res=`eval echo '${'$as_ac_var'}'`
33987 { echo "$as_me:$LINENO: result: $ac_res" >&5
33988 echo "${ECHO_T}$ac_res" >&6; }
33989 if test `eval echo '${'$as_ac_var'}'` = yes; then
33990 cat >>confdefs.h <<_ACEOF
33991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33998 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33999 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34000 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34001 echo $ECHO_N "(cached) $ECHO_C" >&6
34003 llvm_cv_llvmgcc_sanity="no"
34004 if test -x "$LLVMGCC" ; then
34005 cp /dev/null conftest.c
34006 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34007 grep 'target datalayout =' > /dev/null 2>&1
34008 if test $? -eq 0 ; then
34009 llvm_cv_llvmgcc_sanity="yes"
34014 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34015 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34017 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34018 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34019 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34020 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34021 LLVMCC1=$llvmcc1path
34023 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34024 LLVMCC1PLUS=$llvmcc1pluspath
34026 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34027 LLVMGCCDIR=$llvmgccdir
34029 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34030 LLVMGCCLIBEXEC=$llvmgcclibexec
34032 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34033 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34034 LLVMGCC_VERSION=$llvmgccversion
34036 LLVMGCC_MAJVERS=$llvmgccmajvers
34038 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34039 LLVMGCC_LANGS=$llvmgcclangs
34041 { echo "$as_me:$LINENO: result: ok" >&5
34042 echo "${ECHO_T}ok" >&6; }
34045 SHLIBEXT=$libltdl_cv_shlibext
34048 # Translate the various configuration directories and other basic
34049 # information into substitutions that will end up in Makefile.config.in
34050 # that these configured values can be used by the makefiles
34051 if test "${prefix}" = "NONE" ; then
34052 prefix="/usr/local"
34054 eval LLVM_PREFIX="${prefix}";
34055 eval LLVM_BINDIR="${prefix}/bin";
34056 eval LLVM_LIBDIR="${prefix}/lib";
34057 eval LLVM_DATADIR="${prefix}/share/llvm";
34058 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34059 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34060 eval LLVM_INCLUDEDIR="${prefix}/include";
34061 eval LLVM_INFODIR="${prefix}/info";
34062 eval LLVM_MANDIR="${prefix}/man";
34063 LLVM_CONFIGTIME=`date`
34075 # Place the various directores into the config.h file as #defines so that we
34076 # can know about the installation paths within LLVM.
34078 cat >>confdefs.h <<_ACEOF
34079 #define LLVM_PREFIX "$LLVM_PREFIX"
34083 cat >>confdefs.h <<_ACEOF
34084 #define LLVM_BINDIR "$LLVM_BINDIR"
34088 cat >>confdefs.h <<_ACEOF
34089 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34093 cat >>confdefs.h <<_ACEOF
34094 #define LLVM_DATADIR "$LLVM_DATADIR"
34098 cat >>confdefs.h <<_ACEOF
34099 #define LLVM_DATADIR "$LLVM_DOCSDIR"
34103 cat >>confdefs.h <<_ACEOF
34104 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34108 cat >>confdefs.h <<_ACEOF
34109 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34113 cat >>confdefs.h <<_ACEOF
34114 #define LLVM_INFODIR "$LLVM_INFODIR"
34118 cat >>confdefs.h <<_ACEOF
34119 #define LLVM_MANDIR "$LLVM_MANDIR"
34123 cat >>confdefs.h <<_ACEOF
34124 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34129 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34131 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34133 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34135 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34137 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34140 ac_config_files="$ac_config_files Makefile.config"
34143 ac_config_files="$ac_config_files llvm.spec"
34146 ac_config_files="$ac_config_files docs/doxygen.cfg"
34149 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34152 ac_config_commands="$ac_config_commands setup"
34154 ac_config_commands="$ac_config_commands Makefile"
34157 ac_config_commands="$ac_config_commands Makefile.common"
34160 ac_config_commands="$ac_config_commands examples/Makefile"
34163 ac_config_commands="$ac_config_commands lib/Makefile"
34166 ac_config_commands="$ac_config_commands runtime/Makefile"
34169 ac_config_commands="$ac_config_commands test/Makefile"
34172 ac_config_commands="$ac_config_commands test/Makefile.tests"
34175 ac_config_commands="$ac_config_commands tools/Makefile"
34178 ac_config_commands="$ac_config_commands utils/Makefile"
34181 ac_config_commands="$ac_config_commands projects/Makefile"
34184 ac_config_commands="$ac_config_commands bindings/Makefile"
34187 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34191 cat >confcache <<\_ACEOF
34192 # This file is a shell script that caches the results of configure
34193 # tests run on this system so they can be shared between configure
34194 # scripts and configure runs, see configure's option --config-cache.
34195 # It is not useful on other systems. If it contains results you don't
34196 # want to keep, you may remove or edit it.
34198 # config.status only pays attention to the cache file if you give it
34199 # the --recheck option to rerun configure.
34201 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34202 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34203 # following values.
34207 # The following way of writing the cache mishandles newlines in values,
34208 # but we know of no workaround that is simple, portable, and efficient.
34209 # So, we kill variables containing newlines.
34210 # Ultrix sh set writes to stderr and can't be redirected directly,
34211 # and sets the high bit in the cache file unless we assign to the vars.
34213 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34214 eval ac_val=\$$ac_var
34218 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34219 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34222 _ | IFS | as_nl) ;; #(
34223 *) $as_unset $ac_var ;;
34229 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34230 *${as_nl}ac_space=\ *)
34231 # `set' does not quote correctly, so add quotes (double-quote
34232 # substitution turns \\\\ into \\, and sed turns \\ into \).
34235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34238 # `set' quotes correctly as required by POSIX, so do not add quotes.
34239 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34248 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34250 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34252 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34253 if test -w "$cache_file"; then
34254 test "x$cache_file" != "x/dev/null" &&
34255 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34256 echo "$as_me: updating cache $cache_file" >&6;}
34257 cat confcache >$cache_file
34259 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34260 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34265 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34266 # Let make expand exec_prefix.
34267 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34269 DEFS=-DHAVE_CONFIG_H
34273 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34274 # 1. Remove the extension, and $U if already installed.
34275 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34276 ac_i=`echo "$ac_i" | sed "$ac_script"`
34277 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34278 # will be set to the directory where LIBOBJS objects are built.
34279 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34280 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34282 LIBOBJS=$ac_libobjs
34284 LTLIBOBJS=$ac_ltlibobjs
34287 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34288 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34289 Usually this means the macro was only invoked conditionally." >&5
34290 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34291 Usually this means the macro was only invoked conditionally." >&2;}
34292 { (exit 1); exit 1; }; }
34294 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34295 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34296 Usually this means the macro was only invoked conditionally." >&5
34297 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34298 Usually this means the macro was only invoked conditionally." >&2;}
34299 { (exit 1); exit 1; }; }
34302 : ${CONFIG_STATUS=./config.status}
34303 ac_clean_files_save=$ac_clean_files
34304 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34305 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34306 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34307 cat >$CONFIG_STATUS <<_ACEOF
34309 # Generated by $as_me.
34310 # Run this file to recreate the current configuration.
34311 # Compiler output produced by configure, useful for debugging
34312 # configure, is in config.log if it exists.
34315 ac_cs_recheck=false
34317 SHELL=\${CONFIG_SHELL-$SHELL}
34320 cat >>$CONFIG_STATUS <<\_ACEOF
34321 ## --------------------- ##
34322 ## M4sh Initialization. ##
34323 ## --------------------- ##
34325 # Be Bourne compatible
34326 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34329 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34330 # is contrary to our usage. Disable this feature.
34331 alias -g '${1+"$@"}'='"$@"'
34332 setopt NO_GLOB_SUBST
34334 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34336 BIN_SH=xpg4; export BIN_SH # for Tru64
34337 DUALCASE=1; export DUALCASE # for MKS sh
34341 # Avoid depending upon Character Ranges.
34342 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34343 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34344 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34345 as_cr_digits='0123456789'
34346 as_cr_alnum=$as_cr_Letters$as_cr_digits
34348 # The user is always right.
34349 if test "${PATH_SEPARATOR+set}" != set; then
34350 echo "#! /bin/sh" >conf$$.sh
34351 echo "exit 0" >>conf$$.sh
34353 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34361 # Support unset when possible.
34362 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34370 # We need space, tab and new line, in precisely that order. Quoting is
34371 # there to prevent editors from complaining about space-tab.
34372 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34373 # splitting by setting IFS to empty value.)
34378 # Find who we are. Look in the path if we contain no directory separator.
34380 *[\\/]* ) as_myself=$0 ;;
34381 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34382 for as_dir in $PATH
34385 test -z "$as_dir" && as_dir=.
34386 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34392 # We did not find ourselves, most probably we were run as `sh COMMAND'
34393 # in which case we are not to be found in the path.
34394 if test "x$as_myself" = x; then
34397 if test ! -f "$as_myself"; then
34398 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34399 { (exit 1); exit 1; }
34402 # Work around bugs in pre-3.0 UWIN ksh.
34403 for as_var in ENV MAIL MAILPATH
34404 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34412 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34413 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34414 LC_TELEPHONE LC_TIME
34416 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34417 eval $as_var=C; export $as_var
34419 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34423 # Required to use basename.
34424 if expr a : '\(a\)' >/dev/null 2>&1 &&
34425 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34431 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34432 as_basename=basename
34438 # Name of the executable.
34439 as_me=`$as_basename -- "$0" ||
34440 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34441 X"$0" : 'X\(//\)$' \| \
34442 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34444 sed '/^.*\/\([^/][^/]*\)\/*$/{
34463 as_lineno_1=$LINENO
34464 as_lineno_2=$LINENO
34465 test "x$as_lineno_1" != "x$as_lineno_2" &&
34466 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34468 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34469 # uniformly replaced by the line number. The first 'sed' inserts a
34470 # line-number line after each line using $LINENO; the second 'sed'
34471 # does the real work. The second script uses 'N' to pair each
34472 # line-number line with the line containing $LINENO, and appends
34473 # trailing '-' during substitution so that $LINENO is not a special
34474 # case at line end.
34475 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34476 # scripts with optimization help from Paolo Bonzini. Blame Lee
34477 # E. McMahon (1931-1989) for sed's syntax. :-)
34489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34492 ' >$as_me.lineno &&
34493 chmod +x "$as_me.lineno" ||
34494 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34495 { (exit 1); exit 1; }; }
34497 # Don't try to exec as it changes $[0], causing all sort of problems
34498 # (the dirname of $[0] is not the place where we might find the
34499 # original and so on. Autoconf is especially sensitive to this).
34500 . "./$as_me.lineno"
34501 # Exit status is that of the last command.
34506 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34512 ECHO_C= ECHO_N= ECHO_T=
34513 case `echo -n x` in
34515 case `echo 'x\c'` in
34516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34523 if expr a : '\(a\)' >/dev/null 2>&1 &&
34524 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34530 rm -f conf$$ conf$$.exe conf$$.file
34531 if test -d conf$$.dir; then
34532 rm -f conf$$.dir/conf$$.file
34538 if ln -s conf$$.file conf$$ 2>/dev/null; then
34540 # ... but there are two gotchas:
34541 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34542 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34543 # In both cases, we have to default to `cp -p'.
34544 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34546 elif ln conf$$.file conf$$ 2>/dev/null; then
34551 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34552 rmdir conf$$.dir 2>/dev/null
34554 if mkdir -p . 2>/dev/null; then
34557 test -d ./-p && rmdir ./-p
34561 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34562 # systems may use methods other than mode bits to determine executability.
34563 cat >conf$$.file <<_ASEOF
34567 chmod +x conf$$.file
34568 if test -x conf$$.file >/dev/null 2>&1; then
34569 as_executable_p="test -x"
34575 # Sed expression to map a string onto a valid CPP name.
34576 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34578 # Sed expression to map a string onto a valid variable name.
34579 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34584 # Save the log message, to keep $[0] and so on meaningful, and to
34585 # report actual input values of CONFIG_FILES etc. instead of their
34586 # values after options handling.
34588 This file was extended by llvm $as_me 2.2svn, which was
34589 generated by GNU Autoconf 2.60. Invocation command line was
34591 CONFIG_FILES = $CONFIG_FILES
34592 CONFIG_HEADERS = $CONFIG_HEADERS
34593 CONFIG_LINKS = $CONFIG_LINKS
34594 CONFIG_COMMANDS = $CONFIG_COMMANDS
34597 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34602 cat >>$CONFIG_STATUS <<_ACEOF
34603 # Files that config.status was made for.
34604 config_files="$ac_config_files"
34605 config_headers="$ac_config_headers"
34606 config_commands="$ac_config_commands"
34610 cat >>$CONFIG_STATUS <<\_ACEOF
34612 \`$as_me' instantiates files from templates according to the
34613 current configuration.
34615 Usage: $0 [OPTIONS] [FILE]...
34617 -h, --help print this help, then exit
34618 -V, --version print version number, then exit
34619 -q, --quiet do not print progress messages
34620 -d, --debug don't remove temporary files
34621 --recheck update $as_me by reconfiguring in the same conditions
34622 --file=FILE[:TEMPLATE]
34623 instantiate the configuration file FILE
34624 --header=FILE[:TEMPLATE]
34625 instantiate the configuration header FILE
34627 Configuration files:
34630 Configuration headers:
34633 Configuration commands:
34636 Report bugs to <bug-autoconf@gnu.org>."
34639 cat >>$CONFIG_STATUS <<_ACEOF
34641 llvm config.status 2.2svn
34642 configured by $0, generated by GNU Autoconf 2.60,
34643 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34645 Copyright (C) 2006 Free Software Foundation, Inc.
34646 This config.status script is free software; the Free Software Foundation
34647 gives unlimited permission to copy, distribute and modify it."
34654 cat >>$CONFIG_STATUS <<\_ACEOF
34655 # If no file are specified by the user, then we need to provide default
34656 # value. By we need to know if files were specified by the user.
34662 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34663 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34674 # Handling of the options.
34675 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34677 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34678 echo "$ac_cs_version"; exit ;;
34679 --debug | --debu | --deb | --de | --d | -d )
34681 --file | --fil | --fi | --f )
34683 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34684 ac_need_defaults=false;;
34685 --header | --heade | --head | --hea )
34687 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34688 ac_need_defaults=false;;
34690 # Conflict between --help and --header
34691 { echo "$as_me: error: ambiguous option: $1
34692 Try \`$0 --help' for more information." >&2
34693 { (exit 1); exit 1; }; };;
34694 --help | --hel | -h )
34695 echo "$ac_cs_usage"; exit ;;
34696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34697 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34700 # This is an error.
34701 -*) { echo "$as_me: error: unrecognized option: $1
34702 Try \`$0 --help' for more information." >&2
34703 { (exit 1); exit 1; }; } ;;
34705 *) ac_config_targets="$ac_config_targets $1"
34706 ac_need_defaults=false ;;
34712 ac_configure_extra_args=
34714 if $ac_cs_silent; then
34716 ac_configure_extra_args="$ac_configure_extra_args --silent"
34720 cat >>$CONFIG_STATUS <<_ACEOF
34721 if \$ac_cs_recheck; then
34722 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34723 CONFIG_SHELL=$SHELL
34724 export CONFIG_SHELL
34725 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34729 cat >>$CONFIG_STATUS <<\_ACEOF
34733 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34734 ## Running $as_me. ##
34740 cat >>$CONFIG_STATUS <<_ACEOF
34744 llvm_src="${srcdir}"
34748 cat >>$CONFIG_STATUS <<\_ACEOF
34750 # Handling of arguments.
34751 for ac_config_target in $ac_config_targets
34753 case $ac_config_target in
34754 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34755 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34756 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34757 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34758 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34759 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34760 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34761 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34762 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34763 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34764 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34765 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34766 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34767 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34768 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34769 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34770 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34771 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34772 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34773 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34774 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34775 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34777 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34778 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34779 { (exit 1); exit 1; }; };;
34784 # If the user did not use the arguments to specify the items to instantiate,
34785 # then the envvar interface is used. Set only those that are not.
34786 # We use the long form for the default assignment because of an extremely
34787 # bizarre bug on SunOS 4.1.3.
34788 if $ac_need_defaults; then
34789 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34790 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34791 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34794 # Have a temporary directory for convenience. Make it in the build tree
34795 # simply because there is no reason against having it here, and in addition,
34796 # creating and moving files from /tmp can sometimes cause problems.
34797 # Hook for its removal unless debugging.
34798 # Note that there is a small window in which the directory will not be cleaned:
34799 # after its creation but before its name has been assigned to `$tmp'.
34803 trap 'exit_status=$?
34804 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34806 trap '{ (exit 1); exit 1; }' 1 2 13 15
34808 # Create a (secure) tmp directory for tmp files.
34811 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34812 test -n "$tmp" && test -d "$tmp"
34815 tmp=./conf$$-$RANDOM
34816 (umask 077 && mkdir "$tmp")
34819 echo "$me: cannot create a temporary directory in ." >&2
34820 { (exit 1); exit 1; }
34824 # Set up the sed scripts for CONFIG_FILES section.
34827 # No need to generate the scripts if there are no CONFIG_FILES.
34828 # This happens for instance when ./config.status config.h
34829 if test -n "$CONFIG_FILES"; then
34836 for ac_last_try in false false false false false :; do
34837 cat >conf$$subs.sed <<_ACEOF
34838 SHELL!$SHELL$ac_delim
34839 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34840 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34841 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34842 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34843 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34844 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34845 exec_prefix!$exec_prefix$ac_delim
34846 prefix!$prefix$ac_delim
34847 program_transform_name!$program_transform_name$ac_delim
34848 bindir!$bindir$ac_delim
34849 sbindir!$sbindir$ac_delim
34850 libexecdir!$libexecdir$ac_delim
34851 datarootdir!$datarootdir$ac_delim
34852 datadir!$datadir$ac_delim
34853 sysconfdir!$sysconfdir$ac_delim
34854 sharedstatedir!$sharedstatedir$ac_delim
34855 localstatedir!$localstatedir$ac_delim
34856 includedir!$includedir$ac_delim
34857 oldincludedir!$oldincludedir$ac_delim
34858 docdir!$docdir$ac_delim
34859 infodir!$infodir$ac_delim
34860 htmldir!$htmldir$ac_delim
34861 dvidir!$dvidir$ac_delim
34862 pdfdir!$pdfdir$ac_delim
34863 psdir!$psdir$ac_delim
34864 libdir!$libdir$ac_delim
34865 localedir!$localedir$ac_delim
34866 mandir!$mandir$ac_delim
34867 DEFS!$DEFS$ac_delim
34868 ECHO_C!$ECHO_C$ac_delim
34869 ECHO_N!$ECHO_N$ac_delim
34870 ECHO_T!$ECHO_T$ac_delim
34871 LIBS!$LIBS$ac_delim
34872 build_alias!$build_alias$ac_delim
34873 host_alias!$host_alias$ac_delim
34874 target_alias!$target_alias$ac_delim
34875 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34876 subdirs!$subdirs$ac_delim
34877 build!$build$ac_delim
34878 build_cpu!$build_cpu$ac_delim
34879 build_vendor!$build_vendor$ac_delim
34880 build_os!$build_os$ac_delim
34881 host!$host$ac_delim
34882 host_cpu!$host_cpu$ac_delim
34883 host_vendor!$host_vendor$ac_delim
34884 host_os!$host_os$ac_delim
34885 target!$target$ac_delim
34886 target_cpu!$target_cpu$ac_delim
34887 target_vendor!$target_vendor$ac_delim
34888 target_os!$target_os$ac_delim
34890 LINKALL!$LINKALL$ac_delim
34891 NOLINKALL!$NOLINKALL$ac_delim
34892 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34893 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34894 ARCH!$ARCH$ac_delim
34895 ENDIAN!$ENDIAN$ac_delim
34897 CFLAGS!$CFLAGS$ac_delim
34898 LDFLAGS!$LDFLAGS$ac_delim
34899 CPPFLAGS!$CPPFLAGS$ac_delim
34900 ac_ct_CC!$ac_ct_CC$ac_delim
34901 EXEEXT!$EXEEXT$ac_delim
34902 OBJEXT!$OBJEXT$ac_delim
34904 GREP!$GREP$ac_delim
34905 EGREP!$EGREP$ac_delim
34906 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34907 BUILD_CC!$BUILD_CC$ac_delim
34908 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34909 CVSBUILD!$CVSBUILD$ac_delim
34910 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34911 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34912 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34913 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34914 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34916 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34917 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34918 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34919 ENABLE_PIC!$ENABLE_PIC$ac_delim
34920 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34921 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34922 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34924 CXXFLAGS!$CXXFLAGS$ac_delim
34925 ac_ct_CXX!$ac_ct_CXX$ac_delim
34927 LEXLIB!$LEXLIB$ac_delim
34928 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34929 FLEX!$FLEX$ac_delim
34930 YACC!$YACC$ac_delim
34931 YFLAGS!$YFLAGS$ac_delim
34932 BISON!$BISON$ac_delim
34934 ifGNUmake!$ifGNUmake$ac_delim
34937 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34939 elif $ac_last_try; then
34940 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34941 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34942 { (exit 1); exit 1; }; }
34944 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34948 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34949 if test -n "$ac_eof"; then
34950 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34951 ac_eof=`expr $ac_eof + 1`
34954 cat >>$CONFIG_STATUS <<_ACEOF
34955 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34956 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34959 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34960 s/^/s,@/; s/!/@,|#_!!_#|/
34963 s/'"$ac_delim"'$/,g/; t
34965 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34966 ' >>$CONFIG_STATUS <conf$$subs.sed
34967 rm -f conf$$subs.sed
34968 cat >>$CONFIG_STATUS <<_ACEOF
34974 for ac_last_try in false false false false false :; do
34975 cat >conf$$subs.sed <<_ACEOF
34976 LN_S!$LN_S$ac_delim
34979 DATE!$DATE$ac_delim
34980 FIND!$FIND$ac_delim
34981 MKDIR!$MKDIR$ac_delim
34983 RANLIB!$RANLIB$ac_delim
34987 BINPWD!$BINPWD$ac_delim
34988 GRAPHVIZ!$GRAPHVIZ$ac_delim
34991 DOTTY!$DOTTY$ac_delim
34992 PERL!$PERL$ac_delim
34993 HAVE_PERL!$HAVE_PERL$ac_delim
34994 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34995 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34996 INSTALL_DATA!$INSTALL_DATA$ac_delim
34997 BZIP2!$BZIP2$ac_delim
34998 DOXYGEN!$DOXYGEN$ac_delim
34999 GROFF!$GROFF$ac_delim
35000 GZIP!$GZIP$ac_delim
35001 POD2HTML!$POD2HTML$ac_delim
35002 POD2MAN!$POD2MAN$ac_delim
35003 RUNTEST!$RUNTEST$ac_delim
35004 TCLSH!$TCLSH$ac_delim
35006 OCAMLC!$OCAMLC$ac_delim
35007 OCAMLOPT!$OCAMLOPT$ac_delim
35008 OCAMLDEP!$OCAMLDEP$ac_delim
35009 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35010 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35011 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35012 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35013 LIBADD_DL!$LIBADD_DL$ac_delim
35014 ECHO!$ECHO$ac_delim
35016 STRIP!$STRIP$ac_delim
35017 CXXCPP!$CXXCPP$ac_delim
35019 FFLAGS!$FFLAGS$ac_delim
35020 ac_ct_F77!$ac_ct_F77$ac_delim
35021 LIBTOOL!$LIBTOOL$ac_delim
35022 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
35023 LLVMGCC!$LLVMGCC$ac_delim
35024 LLVMGXX!$LLVMGXX$ac_delim
35025 USE_UDIS86!$USE_UDIS86$ac_delim
35026 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35027 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35028 ALLOCA!$ALLOCA$ac_delim
35029 MMAP_FILE!$MMAP_FILE$ac_delim
35030 LLVMCC1!$LLVMCC1$ac_delim
35031 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35032 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35033 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35034 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35035 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35036 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35037 SHLIBEXT!$SHLIBEXT$ac_delim
35038 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35039 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35040 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35041 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35042 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35043 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35044 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35045 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35046 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35047 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35048 LIBOBJS!$LIBOBJS$ac_delim
35049 LTLIBOBJS!$LTLIBOBJS$ac_delim
35052 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 74; then
35054 elif $ac_last_try; then
35055 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35056 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35057 { (exit 1); exit 1; }; }
35059 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35063 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35064 if test -n "$ac_eof"; then
35065 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35066 ac_eof=`expr $ac_eof + 1`
35069 cat >>$CONFIG_STATUS <<_ACEOF
35070 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35071 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35074 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35075 s/^/s,@/; s/!/@,|#_!!_#|/
35078 s/'"$ac_delim"'$/,g/; t
35080 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35081 ' >>$CONFIG_STATUS <conf$$subs.sed
35082 rm -f conf$$subs.sed
35083 cat >>$CONFIG_STATUS <<_ACEOF
35090 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35091 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35092 # trailing colons and then remove the whole line if VPATH becomes empty
35093 # (actually we leave an empty line to preserve line numbers).
35094 if test "x$srcdir" = x.; then
35095 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35096 s/:*\$(srcdir):*/:/
35097 s/:*\${srcdir}:*/:/
35099 s/^\([^=]*=[ ]*\):*/\1/
35105 cat >>$CONFIG_STATUS <<\_ACEOF
35106 fi # test -n "$CONFIG_FILES"
35109 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35112 :[FHLC]) ac_mode=$ac_tag; continue;;
35114 case $ac_mode$ac_tag in
35116 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35117 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35118 { (exit 1); exit 1; }; };;
35119 :[FH]-) ac_tag=-:-;;
35120 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35137 -) ac_f="$tmp/stdin";;
35138 *) # Look for the file first in the build tree, then in the source tree
35139 # (if the path is not absolute). The absolute path cannot be DOS-style,
35140 # because $ac_f cannot contain `:'.
35144 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35146 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35147 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35148 { (exit 1); exit 1; }; };;
35150 ac_file_inputs="$ac_file_inputs $ac_f"
35153 # Let's still pretend it is `configure' which instantiates (i.e., don't
35154 # use $as_me), people would be surprised to read:
35155 # /* config.h. Generated by config.status. */
35156 configure_input="Generated from "`IFS=:
35157 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35158 if test x"$ac_file" != x-; then
35159 configure_input="$ac_file. $configure_input"
35160 { echo "$as_me:$LINENO: creating $ac_file" >&5
35161 echo "$as_me: creating $ac_file" >&6;}
35165 *:-:* | *:-) cat >"$tmp/stdin";;
35170 ac_dir=`$as_dirname -- "$ac_file" ||
35171 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35172 X"$ac_file" : 'X\(//\)[^/]' \| \
35173 X"$ac_file" : 'X\(//\)$' \| \
35174 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35180 /^X\(\/\/\)[^/].*/{
35195 -*) as_dir=./$as_dir;;
35197 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35201 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35202 *) as_qdir=$as_dir;;
35204 as_dirs="'$as_qdir' $as_dirs"
35205 as_dir=`$as_dirname -- "$as_dir" ||
35206 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35207 X"$as_dir" : 'X\(//\)[^/]' \| \
35208 X"$as_dir" : 'X\(//\)$' \| \
35209 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35215 /^X\(\/\/\)[^/].*/{
35228 test -d "$as_dir" && break
35230 test -z "$as_dirs" || eval "mkdir $as_dirs"
35231 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35232 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35233 { (exit 1); exit 1; }; }; }
35237 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35239 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35240 # A ".." for each directory in $ac_dir_suffix.
35241 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35242 case $ac_top_builddir_sub in
35243 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35244 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35247 ac_abs_top_builddir=$ac_pwd
35248 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35249 # for backward compatibility:
35250 ac_top_builddir=$ac_top_build_prefix
35253 .) # We are building in place.
35255 ac_top_srcdir=$ac_top_builddir_sub
35256 ac_abs_top_srcdir=$ac_pwd ;;
35257 [\\/]* | ?:[\\/]* ) # Absolute name.
35258 ac_srcdir=$srcdir$ac_dir_suffix;
35259 ac_top_srcdir=$srcdir
35260 ac_abs_top_srcdir=$srcdir ;;
35261 *) # Relative name.
35262 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35263 ac_top_srcdir=$ac_top_build_prefix$srcdir
35264 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35266 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35276 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35277 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35281 cat >>$CONFIG_STATUS <<\_ACEOF
35282 # If the template does not know about datarootdir, expand it.
35283 # FIXME: This hack should be removed a few years after 2.60.
35284 ac_datarootdir_hack=; ac_datarootdir_seen=
35286 case `sed -n '/datarootdir/ {
35295 ' $ac_file_inputs` in
35296 *datarootdir*) ac_datarootdir_seen=yes;;
35297 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35298 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35299 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35301 cat >>$CONFIG_STATUS <<_ACEOF
35302 ac_datarootdir_hack='
35303 s&@datadir@&$datadir&g
35304 s&@docdir@&$docdir&g
35305 s&@infodir@&$infodir&g
35306 s&@localedir@&$localedir&g
35307 s&@mandir@&$mandir&g
35308 s&\\\${datarootdir}&$datarootdir&g' ;;
35312 # Neutralize VPATH when `$srcdir' = `.'.
35313 # Shell code in configure.ac might set extrasub.
35314 # FIXME: do we really want to maintain this feature?
35315 cat >>$CONFIG_STATUS <<_ACEOF
35319 cat >>$CONFIG_STATUS <<\_ACEOF
35321 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35322 s&@configure_input@&$configure_input&;t t
35323 s&@top_builddir@&$ac_top_builddir_sub&;t t
35324 s&@srcdir@&$ac_srcdir&;t t
35325 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35326 s&@top_srcdir@&$ac_top_srcdir&;t t
35327 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35328 s&@builddir@&$ac_builddir&;t t
35329 s&@abs_builddir@&$ac_abs_builddir&;t t
35330 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35331 s&@INSTALL@&$ac_INSTALL&;t t
35332 $ac_datarootdir_hack
35333 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35335 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35336 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35337 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35338 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35339 which seems to be undefined. Please make sure it is defined." >&5
35340 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35341 which seems to be undefined. Please make sure it is defined." >&2;}
35345 -) cat "$tmp/out"; rm -f "$tmp/out";;
35346 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35355 # Transform confdefs.h into a sed script `conftest.defines', that
35356 # substitutes the proper values into config.h.in to produce config.h.
35357 rm -f conftest.defines conftest.tail
35358 # First, append a space to every undef/define line, to ease matching.
35359 echo 's/$/ /' >conftest.defines
35360 # Then, protect against being on the right side of a sed subst, or in
35361 # an unquoted here document, in config.status. If some macros were
35362 # called several times there might be several #defines for the same
35363 # symbol, which is useless. But do not sort them, since the last
35364 # AC_DEFINE must be honored.
35365 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35366 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35367 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35368 # PARAMS is the parameter list in the macro definition--in most cases, it's
35369 # just an empty string.
35370 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35371 ac_dB='\\)[ (].*,\\1define\\2'
35379 s/^[ ]*#[ ]*define[ ][ ]*//
35384 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35385 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35386 ' >>conftest.defines
35388 # Remove the space that was appended to ease matching.
35389 # Then replace #undef with comments. This is necessary, for
35390 # example, in the case of _POSIX_SOURCE, which is predefined and required
35391 # on some systems where configure will not decide to define it.
35392 # (The regexp can be short, since the line contains either #define or #undef.)
35394 s,^[ #]*u.*,/* & */,' >>conftest.defines
35396 # Break up conftest.defines:
35397 ac_max_sed_lines=50
35399 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35400 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35401 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35403 ac_in='$ac_file_inputs'
35404 ac_out='"$tmp/out1"'
35405 ac_nxt='"$tmp/out2"'
35409 # Write a here document:
35410 cat >>$CONFIG_STATUS <<_ACEOF
35411 # First, check the format of the line:
35412 cat >"\$tmp/defines.sed" <<\\CEOF
35413 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35414 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35418 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35420 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35421 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35422 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35423 grep . conftest.tail >/dev/null || break
35424 rm -f conftest.defines
35425 mv conftest.tail conftest.defines
35427 rm -f conftest.defines conftest.tail
35429 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35430 cat >>$CONFIG_STATUS <<\_ACEOF
35431 if test x"$ac_file" != x-; then
35432 echo "/* $configure_input */" >"$tmp/config.h"
35433 cat "$ac_result" >>"$tmp/config.h"
35434 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35435 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35436 echo "$as_me: $ac_file is unchanged" >&6;}
35439 mv "$tmp/config.h" $ac_file
35442 echo "/* $configure_input */"
35448 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35449 echo "$as_me: executing $ac_file commands" >&6;}
35454 case $ac_file$ac_mode in
35455 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35456 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35457 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35458 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35459 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35460 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35461 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35462 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35463 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35464 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35465 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35466 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35467 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35468 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35469 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35470 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35471 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35472 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35473 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35474 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35475 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35476 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35477 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35478 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35484 { (exit 0); exit 0; }
35486 chmod +x $CONFIG_STATUS
35487 ac_clean_files=$ac_clean_files_save
35490 # configure is writing to config.log, and then calls config.status.
35491 # config.status does its own redirection, appending to config.log.
35492 # Unfortunately, on DOS this fails, as config.log is still kept open
35493 # by configure, so config.status won't be able to write to it; its
35494 # output is simply discarded. So we exec the FD to /dev/null,
35495 # effectively closing config.log, so it can be properly (re)opened and
35496 # appended to by config.status. When coming back to configure, we
35497 # need to make the FD available again.
35498 if test "$no_create" != yes; then
35500 ac_config_status_args=
35501 test "$silent" = yes &&
35502 ac_config_status_args="$ac_config_status_args --quiet"
35504 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35506 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35507 # would make configure fail if this is the last instruction.
35508 $ac_cs_success || { (exit 1); exit 1; }
35512 # CONFIG_SUBDIRS section.
35514 if test "$no_recursion" != yes; then
35516 # Remove --cache-file and --srcdir arguments so they do not pile up.
35517 ac_sub_configure_args=
35519 eval "set x $ac_configure_args"
35523 if test -n "$ac_prev"; then
35528 -cache-file | --cache-file | --cache-fil | --cache-fi \
35529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35530 ac_prev=cache_file ;;
35531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35535 --config-cache | -C)
35537 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35539 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35541 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35543 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35547 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35549 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35553 # Always prepend --prefix to ensure using the same prefix
35554 # in subdir configurations.
35555 ac_arg="--prefix=$prefix"
35557 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35559 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35562 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35564 # Do not complain, so a configure script can configure whichever
35565 # parts of a large source tree are present.
35566 test -d "$srcdir/$ac_dir" || continue
35568 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35569 echo "$as_me:$LINENO: $ac_msg" >&5
35573 -*) as_dir=./$as_dir;;
35575 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35579 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35580 *) as_qdir=$as_dir;;
35582 as_dirs="'$as_qdir' $as_dirs"
35583 as_dir=`$as_dirname -- "$as_dir" ||
35584 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35585 X"$as_dir" : 'X\(//\)[^/]' \| \
35586 X"$as_dir" : 'X\(//\)$' \| \
35587 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35593 /^X\(\/\/\)[^/].*/{
35606 test -d "$as_dir" && break
35608 test -z "$as_dirs" || eval "mkdir $as_dirs"
35609 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35610 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35611 { (exit 1); exit 1; }; }; }
35615 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35617 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35618 # A ".." for each directory in $ac_dir_suffix.
35619 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35620 case $ac_top_builddir_sub in
35621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35625 ac_abs_top_builddir=$ac_pwd
35626 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35627 # for backward compatibility:
35628 ac_top_builddir=$ac_top_build_prefix
35631 .) # We are building in place.
35633 ac_top_srcdir=$ac_top_builddir_sub
35634 ac_abs_top_srcdir=$ac_pwd ;;
35635 [\\/]* | ?:[\\/]* ) # Absolute name.
35636 ac_srcdir=$srcdir$ac_dir_suffix;
35637 ac_top_srcdir=$srcdir
35638 ac_abs_top_srcdir=$srcdir ;;
35639 *) # Relative name.
35640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35641 ac_top_srcdir=$ac_top_build_prefix$srcdir
35642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35644 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35649 # Check for guested configure; otherwise get Cygnus style configure.
35650 if test -f "$ac_srcdir/configure.gnu"; then
35651 ac_sub_configure=$ac_srcdir/configure.gnu
35652 elif test -f "$ac_srcdir/configure"; then
35653 ac_sub_configure=$ac_srcdir/configure
35654 elif test -f "$ac_srcdir/configure.in"; then
35655 # This should be Cygnus configure.
35656 ac_sub_configure=$ac_aux_dir/configure
35658 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35659 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35663 # The recursion is here.
35664 if test -n "$ac_sub_configure"; then
35665 # Make the cache file name correct relative to the subdirectory.
35666 case $cache_file in
35667 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35668 *) # Relative name.
35669 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35672 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35673 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35674 # The eval makes quoting arguments work.
35675 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35676 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35677 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35678 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35679 { (exit 1); exit 1; }; }