2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.6svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
553 if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
556 elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606 for dir in $PATH /usr/ucb; do
608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
656 # maybe with a smaller string...
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
672 # Oops. We lost completely, so just stick with echo.
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames=${tagnames+${tagnames},}CXX
693 tagnames=${tagnames+${tagnames},}F77
695 exec 7<&0 </dev/null 6>&1
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
705 ac_default_prefix=/usr/local
707 ac_config_libobj_dir=.
713 SHELL=${CONFIG_SHELL-/bin/sh}
715 # Identity of this package.
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.6svn'
719 PACKAGE_STRING='llvm 2.6svn'
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
834 ENABLE_EXPENSIVE_CHECKS
888 CONVENIENCE_LTDL_TRUE
889 CONVENIENCE_LTDL_FALSE
928 ENABLE_VISIBILITY_INLINES_HIDDEN
933 ac_precious_vars='build_alias
947 ac_subdirs_all='projects/sample
949 projects/llvm-stacker
956 projects/llvm-poolalloc
958 projects/llvm-kernel'
960 # Initialize some variables set by options.
962 ac_init_version=false
963 # The variables have the same names as the options, with
964 # dashes changed to underlines.
972 program_transform_name=s,x,x,
980 # Installation directory options.
981 # These are left unexpanded so users can "make install exec_prefix=/foo"
982 # and all the variables that are supposed to be based on exec_prefix
983 # by default will actually change.
984 # Use braces instead of parens because sh, perl, etc. also accept them.
985 # (The list follows the same order as the GNU Coding Standards.)
986 bindir='${exec_prefix}/bin'
987 sbindir='${exec_prefix}/sbin'
988 libexecdir='${exec_prefix}/libexec'
989 datarootdir='${prefix}/share'
990 datadir='${datarootdir}'
991 sysconfdir='${prefix}/etc'
992 sharedstatedir='${prefix}/com'
993 localstatedir='${prefix}/var'
994 includedir='${prefix}/include'
995 oldincludedir='/usr/include'
996 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
997 infodir='${datarootdir}/info'
1002 libdir='${exec_prefix}/lib'
1003 localedir='${datarootdir}/locale'
1004 mandir='${datarootdir}/man'
1010 # If the previous option needs an argument, assign it.
1011 if test -n "$ac_prev"; then
1012 eval $ac_prev=\$ac_option
1018 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022 # Accept the important Cygnus configure options, so we can diagnose typos.
1024 case $ac_dashdash$ac_option in
1028 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1031 bindir=$ac_optarg ;;
1033 -build | --build | --buil | --bui | --bu)
1034 ac_prev=build_alias ;;
1035 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1036 build_alias=$ac_optarg ;;
1038 -cache-file | --cache-file | --cache-fil | --cache-fi \
1039 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1040 ac_prev=cache_file ;;
1041 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1042 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1043 cache_file=$ac_optarg ;;
1045 --config-cache | -C)
1046 cache_file=config.cache ;;
1048 -datadir | --datadir | --datadi | --datad)
1050 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1051 datadir=$ac_optarg ;;
1053 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1054 | --dataroo | --dataro | --datar)
1055 ac_prev=datarootdir ;;
1056 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1057 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1058 datarootdir=$ac_optarg ;;
1060 -disable-* | --disable-*)
1061 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1064 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1065 { (exit 1); exit 1; }; }
1066 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1067 eval enable_$ac_feature=no ;;
1069 -docdir | --docdir | --docdi | --doc | --do)
1071 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1072 docdir=$ac_optarg ;;
1074 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1077 dvidir=$ac_optarg ;;
1079 -enable-* | --enable-*)
1080 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1083 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1084 { (exit 1); exit 1; }; }
1085 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1086 eval enable_$ac_feature=\$ac_optarg ;;
1088 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090 | --exec | --exe | --ex)
1091 ac_prev=exec_prefix ;;
1092 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094 | --exec=* | --exe=* | --ex=*)
1095 exec_prefix=$ac_optarg ;;
1097 -gas | --gas | --ga | --g)
1098 # Obsolete; use --with-gas.
1101 -help | --help | --hel | --he | -h)
1102 ac_init_help=long ;;
1103 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104 ac_init_help=recursive ;;
1105 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106 ac_init_help=short ;;
1108 -host | --host | --hos | --ho)
1109 ac_prev=host_alias ;;
1110 -host=* | --host=* | --hos=* | --ho=*)
1111 host_alias=$ac_optarg ;;
1113 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117 htmldir=$ac_optarg ;;
1119 -includedir | --includedir | --includedi | --included | --include \
1120 | --includ | --inclu | --incl | --inc)
1121 ac_prev=includedir ;;
1122 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123 | --includ=* | --inclu=* | --incl=* | --inc=*)
1124 includedir=$ac_optarg ;;
1126 -infodir | --infodir | --infodi | --infod | --info | --inf)
1128 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129 infodir=$ac_optarg ;;
1131 -libdir | --libdir | --libdi | --libd)
1133 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134 libdir=$ac_optarg ;;
1136 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137 | --libexe | --libex | --libe)
1138 ac_prev=libexecdir ;;
1139 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140 | --libexe=* | --libex=* | --libe=*)
1141 libexecdir=$ac_optarg ;;
1143 -localedir | --localedir | --localedi | --localed | --locale)
1144 ac_prev=localedir ;;
1145 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146 localedir=$ac_optarg ;;
1148 -localstatedir | --localstatedir | --localstatedi | --localstated \
1149 | --localstate | --localstat | --localsta | --localst | --locals)
1150 ac_prev=localstatedir ;;
1151 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153 localstatedir=$ac_optarg ;;
1155 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158 mandir=$ac_optarg ;;
1160 -nfp | --nfp | --nf)
1161 # Obsolete; use --without-fp.
1164 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165 | --no-cr | --no-c | -n)
1168 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174 | --oldin | --oldi | --old | --ol | --o)
1175 ac_prev=oldincludedir ;;
1176 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179 oldincludedir=$ac_optarg ;;
1181 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184 prefix=$ac_optarg ;;
1186 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187 | --program-pre | --program-pr | --program-p)
1188 ac_prev=program_prefix ;;
1189 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191 program_prefix=$ac_optarg ;;
1193 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194 | --program-suf | --program-su | --program-s)
1195 ac_prev=program_suffix ;;
1196 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198 program_suffix=$ac_optarg ;;
1200 -program-transform-name | --program-transform-name \
1201 | --program-transform-nam | --program-transform-na \
1202 | --program-transform-n | --program-transform- \
1203 | --program-transform | --program-transfor \
1204 | --program-transfo | --program-transf \
1205 | --program-trans | --program-tran \
1206 | --progr-tra | --program-tr | --program-t)
1207 ac_prev=program_transform_name ;;
1208 -program-transform-name=* | --program-transform-name=* \
1209 | --program-transform-nam=* | --program-transform-na=* \
1210 | --program-transform-n=* | --program-transform-=* \
1211 | --program-transform=* | --program-transfor=* \
1212 | --program-transfo=* | --program-transf=* \
1213 | --program-trans=* | --program-tran=* \
1214 | --progr-tra=* | --program-tr=* | --program-t=*)
1215 program_transform_name=$ac_optarg ;;
1217 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220 pdfdir=$ac_optarg ;;
1222 -psdir | --psdir | --psdi | --psd | --ps)
1224 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228 | -silent | --silent | --silen | --sile | --sil)
1231 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235 sbindir=$ac_optarg ;;
1237 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239 | --sharedst | --shareds | --shared | --share | --shar \
1241 ac_prev=sharedstatedir ;;
1242 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246 sharedstatedir=$ac_optarg ;;
1248 -site | --site | --sit)
1250 -site=* | --site=* | --sit=*)
1253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256 srcdir=$ac_optarg ;;
1258 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259 | --syscon | --sysco | --sysc | --sys | --sy)
1260 ac_prev=sysconfdir ;;
1261 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263 sysconfdir=$ac_optarg ;;
1265 -target | --target | --targe | --targ | --tar | --ta | --t)
1266 ac_prev=target_alias ;;
1267 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268 target_alias=$ac_optarg ;;
1270 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273 -version | --version | --versio | --versi | --vers | -V)
1274 ac_init_version=: ;;
1277 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1280 { echo "$as_me: error: invalid package name: $ac_package" >&2
1281 { (exit 1); exit 1; }; }
1282 ac_package=`echo $ac_package| sed 's/-/_/g'`
1283 eval with_$ac_package=\$ac_optarg ;;
1285 -without-* | --without-*)
1286 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1289 { echo "$as_me: error: invalid package name: $ac_package" >&2
1290 { (exit 1); exit 1; }; }
1291 ac_package=`echo $ac_package | sed 's/-/_/g'`
1292 eval with_$ac_package=no ;;
1295 # Obsolete; use --with-x.
1298 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299 | --x-incl | --x-inc | --x-in | --x-i)
1300 ac_prev=x_includes ;;
1301 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1303 x_includes=$ac_optarg ;;
1305 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307 ac_prev=x_libraries ;;
1308 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1310 x_libraries=$ac_optarg ;;
1312 -*) { echo "$as_me: error: unrecognized option: $ac_option
1313 Try \`$0 --help' for more information." >&2
1314 { (exit 1); exit 1; }; }
1318 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319 # Reject names that are not valid shell variable names.
1320 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1321 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1322 { (exit 1); exit 1; }; }
1323 eval $ac_envvar=\$ac_optarg
1324 export $ac_envvar ;;
1327 # FIXME: should be removed in autoconf 3.0.
1328 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1329 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1330 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1331 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1337 if test -n "$ac_prev"; then
1338 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1339 { echo "$as_me: error: missing argument to $ac_option" >&2
1340 { (exit 1); exit 1; }; }
1343 # Be sure to have absolute directory names.
1344 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345 datadir sysconfdir sharedstatedir localstatedir includedir \
1346 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347 libdir localedir mandir
1349 eval ac_val=\$$ac_var
1351 [\\/$]* | ?:[\\/]* ) continue;;
1352 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1355 { (exit 1); exit 1; }; }
1358 # There might be people who depend on the old broken behavior: `$host'
1359 # used to hold the argument of --host etc.
1360 # FIXME: To remove some day.
1363 target=$target_alias
1365 # FIXME: To remove some day.
1366 if test "x$host_alias" != x; then
1367 if test "x$build_alias" = x; then
1368 cross_compiling=maybe
1369 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1370 If a cross compiler is detected then cross compile mode will be used." >&2
1371 elif test "x$build_alias" != "x$host_alias"; then
1377 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379 test "$silent" = yes && exec 6>/dev/null
1382 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383 ac_ls_di=`ls -di .` &&
1384 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1385 { echo "$as_me: error: Working directory cannot be determined" >&2
1386 { (exit 1); exit 1; }; }
1387 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388 { echo "$as_me: error: pwd does not report name of working directory" >&2
1389 { (exit 1); exit 1; }; }
1392 # Find the source files, if location was not specified.
1393 if test -z "$srcdir"; then
1394 ac_srcdir_defaulted=yes
1395 # Try the directory containing this script, then the parent directory.
1396 ac_confdir=`$as_dirname -- "$0" ||
1397 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398 X"$0" : 'X\(//\)[^/]' \| \
1399 X"$0" : 'X\(//\)$' \| \
1400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1424 ac_srcdir_defaulted=no
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1429 { (exit 1); exit 1; }; }
1431 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1434 { (exit 1); exit 1; }; }
1436 # When building in place, set srcdir=.
1437 if test "$ac_abs_confdir" = "$ac_pwd"; then
1440 # Remove unnecessary trailing slashes from srcdir.
1441 # Double slashes in file names in object file debugging info
1442 # mess up M-x gdb in Emacs.
1444 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446 for ac_var in $ac_precious_vars; do
1447 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_env_${ac_var}_value=\$${ac_var}
1449 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454 # Report the --help message.
1456 if test "$ac_init_help" = "long"; then
1457 # Omit some internal or obsolete options to make the list less imposing.
1458 # This message is too long to be a string in the A/UX 3.1 sh.
1460 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1462 Usage: $0 [OPTION]... [VAR=VALUE]...
1464 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465 VAR=VALUE. See below for descriptions of some of the useful variables.
1467 Defaults for the options are specified in brackets.
1470 -h, --help display this help and exit
1471 --help=short display options specific to this package
1472 --help=recursive display the short help of all the included packages
1473 -V, --version display version information and exit
1474 -q, --quiet, --silent do not print \`checking...' messages
1475 --cache-file=FILE cache test results in FILE [disabled]
1476 -C, --config-cache alias for \`--cache-file=config.cache'
1477 -n, --no-create do not create output files
1478 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480 Installation directories:
1481 --prefix=PREFIX install architecture-independent files in PREFIX
1482 [$ac_default_prefix]
1483 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1486 By default, \`make install' will install all the files in
1487 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1488 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489 for instance \`--prefix=\$HOME'.
1491 For better control, use the options below.
1493 Fine tuning of the installation directories:
1494 --bindir=DIR user executables [EPREFIX/bin]
1495 --sbindir=DIR system admin executables [EPREFIX/sbin]
1496 --libexecdir=DIR program executables [EPREFIX/libexec]
1497 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1498 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1499 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
1518 --build=BUILD configure for building on BUILD [guessed]
1519 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1520 --target=TARGET configure for building compilers for TARGET [HOST]
1524 if test -n "$ac_init_help"; then
1525 case $ac_init_help in
1526 short | recursive ) echo "Configuration of llvm 2.6svn:";;
1531 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1532 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1535 --enable-expensive-checks
1537 --enable-debug-runtime
1538 --enable-jit Enable Just In Time Compiling (default is YES)
1539 --enable-doxygen Build doxygen documentation (default is NO)
1540 --enable-threads Use threads if available (default is YES)
1541 --enable-pic Build LLVM with Position Independent Code (default
1543 --enable-targets Build specific host targets:
1544 all,host-only,{target-name} (default=all)
1545 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1547 --enable-bindings Build specific language bindings:
1548 all,auto,none,{binding-name} (default=auto)
1549 --enable-ltdl-install install libltdl
1550 --enable-shared[=PKGS] build shared libraries
1552 --enable-static[=PKGS] build static libraries
1554 --enable-fast-install[=PKGS]
1555 optimize for fast installation
1557 --disable-libtool-lock avoid locking (might break parallel builds)
1560 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1561 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1562 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1564 --with-llvmgcc Specify location of llvm-gcc driver (default
1566 --with-llvmgxx Specify location of llvm-g++ driver (default
1568 --with-extra-options Specify addtional options to compile LLVM with
1569 --with-ocaml-libdir Specify install location for ocaml bindings (default
1571 --with-binutils-include Specify path to binutils/include/ containing
1572 plugin-api.h file for gold plugin.
1573 --with-tclinclude directory where tcl headers are
1574 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1575 --with-pic try to use only PIC/non-PIC objects [default=use
1577 --with-tags[=TAGS] include additional configurations [automatic]
1578 --with-udis86=<path> Use udis86 external x86 disassembler library
1580 Some influential environment variables:
1581 CC C compiler command
1582 CFLAGS C compiler flags
1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
1585 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1586 you have headers in a nonstandard directory <include dir>
1588 CXX C++ compiler command
1589 CXXFLAGS C++ compiler flags
1590 CXXCPP C++ preprocessor
1591 F77 Fortran 77 compiler command
1592 FFLAGS Fortran 77 compiler flags
1594 Use these variables to override the choices made by `configure' or to help
1595 it to find libraries and programs with nonstandard names/locations.
1597 Report bugs to <llvmbugs@cs.uiuc.edu>.
1602 if test "$ac_init_help" = "recursive"; then
1603 # If there are subdirs, report their specific --help.
1604 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1605 test -d "$ac_dir" || continue
1609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1612 # A ".." for each directory in $ac_dir_suffix.
1613 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1614 case $ac_top_builddir_sub in
1615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1619 ac_abs_top_builddir=$ac_pwd
1620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621 # for backward compatibility:
1622 ac_top_builddir=$ac_top_build_prefix
1625 .) # We are building in place.
1627 ac_top_srcdir=$ac_top_builddir_sub
1628 ac_abs_top_srcdir=$ac_pwd ;;
1629 [\\/]* | ?:[\\/]* ) # Absolute name.
1630 ac_srcdir=$srcdir$ac_dir_suffix;
1631 ac_top_srcdir=$srcdir
1632 ac_abs_top_srcdir=$srcdir ;;
1634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635 ac_top_srcdir=$ac_top_build_prefix$srcdir
1636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1640 cd "$ac_dir" || { ac_status=$?; continue; }
1641 # Check for guested configure.
1642 if test -f "$ac_srcdir/configure.gnu"; then
1644 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645 elif test -f "$ac_srcdir/configure"; then
1647 $SHELL "$ac_srcdir/configure" --help=recursive
1649 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651 cd "$ac_pwd" || { ac_status=$?; break; }
1655 test -n "$ac_init_help" && exit $ac_status
1656 if $ac_init_version; then
1658 llvm configure 2.6svn
1659 generated by GNU Autoconf 2.60
1661 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1662 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1663 This configure script is free software; the Free Software Foundation
1664 gives unlimited permission to copy, distribute and modify it.
1666 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1670 cat >config.log <<_ACEOF
1671 This file contains any messages produced by compilers while
1672 running configure, to aid debugging if configure makes a mistake.
1674 It was created by llvm $as_me 2.6svn, which was
1675 generated by GNU Autoconf 2.60. Invocation command line was
1687 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1688 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1689 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1690 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1691 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1693 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1694 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1696 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1697 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1698 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1699 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1700 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1701 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1702 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 test -z "$as_dir" && as_dir=.
1711 echo "PATH: $as_dir"
1727 # Keep a trace of the command line.
1728 # Strip out --no-create and --no-recursion so they do not pile up.
1729 # Strip out --silent because we don't want to record it for future runs.
1730 # Also quote any args containing shell meta-characters.
1731 # Make two passes to allow for proper duplicate-argument suppression.
1735 ac_must_keep_next=false
1741 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1743 | -silent | --silent | --silen | --sile | --sil)
1746 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1749 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1751 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1752 if test $ac_must_keep_next = true; then
1753 ac_must_keep_next=false # Got value, back to normal.
1756 *=* | --config-cache | -C | -disable-* | --disable-* \
1757 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1758 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1759 | -with-* | --with-* | -without-* | --without-* | --x)
1760 case "$ac_configure_args0 " in
1761 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1764 -* ) ac_must_keep_next=true ;;
1767 ac_configure_args="$ac_configure_args '$ac_arg'"
1772 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1773 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1775 # When interrupted or exit'd, cleanup temporary files, and complete
1776 # config.log. We remove comments because anyway the quotes in there
1777 # would cause problems or look ugly.
1778 # WARNING: Use '\'' to represent an apostrophe within the trap.
1779 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1780 trap 'exit_status=$?
1781 # Save into config.log some information that might help in debugging.
1786 ## ---------------- ##
1787 ## Cache variables. ##
1788 ## ---------------- ##
1791 # The following way of writing the cache mishandles newlines in values,
1793 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1794 eval ac_val=\$$ac_var
1798 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1799 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1802 _ | IFS | as_nl) ;; #(
1803 *) $as_unset $ac_var ;;
1808 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1809 *${as_nl}ac_space=\ *)
1811 "s/'\''/'\''\\\\'\'''\''/g;
1812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1823 ## ----------------- ##
1824 ## Output variables. ##
1825 ## ----------------- ##
1828 for ac_var in $ac_subst_vars
1830 eval ac_val=\$$ac_var
1832 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1834 echo "$ac_var='\''$ac_val'\''"
1838 if test -n "$ac_subst_files"; then
1840 ## ------------------- ##
1841 ## File substitutions. ##
1842 ## ------------------- ##
1845 for ac_var in $ac_subst_files
1847 eval ac_val=\$$ac_var
1849 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1851 echo "$ac_var='\''$ac_val'\''"
1856 if test -s confdefs.h; then
1866 test "$ac_signal" != 0 &&
1867 echo "$as_me: caught signal $ac_signal"
1868 echo "$as_me: exit $exit_status"
1870 rm -f core *.core core.conftest.* &&
1871 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1874 for ac_signal in 1 2 13 15; do
1875 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1879 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1880 rm -f -r conftest* confdefs.h
1882 # Predefined preprocessor variables.
1884 cat >>confdefs.h <<_ACEOF
1885 #define PACKAGE_NAME "$PACKAGE_NAME"
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_STRING "$PACKAGE_STRING"
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1909 # Let the site file select an alternate cache file if it wants to.
1910 # Prefer explicitly selected file to automatically selected ones.
1911 if test -n "$CONFIG_SITE"; then
1912 set x "$CONFIG_SITE"
1913 elif test "x$prefix" != xNONE; then
1914 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1916 set x "$ac_default_prefix/share/config.site" \
1917 "$ac_default_prefix/etc/config.site"
1922 if test -r "$ac_site_file"; then
1923 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1924 echo "$as_me: loading site script $ac_site_file" >&6;}
1925 sed 's/^/| /' "$ac_site_file" >&5
1930 if test -r "$cache_file"; then
1931 # Some versions of bash will fail to source /dev/null (special
1932 # files actually), so we avoid doing that.
1933 if test -f "$cache_file"; then
1934 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1935 echo "$as_me: loading cache $cache_file" >&6;}
1937 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1938 *) . "./$cache_file";;
1942 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1943 echo "$as_me: creating cache $cache_file" >&6;}
1947 # Check that the precious variables saved in the cache have kept the same
1949 ac_cache_corrupted=false
1950 for ac_var in $ac_precious_vars; do
1951 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1952 eval ac_new_set=\$ac_env_${ac_var}_set
1953 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1954 eval ac_new_val=\$ac_env_${ac_var}_value
1955 case $ac_old_set,$ac_new_set in
1957 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1958 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1959 ac_cache_corrupted=: ;;
1961 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1962 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1963 ac_cache_corrupted=: ;;
1966 if test "x$ac_old_val" != "x$ac_new_val"; then
1967 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1968 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1969 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1970 echo "$as_me: former value: $ac_old_val" >&2;}
1971 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1972 echo "$as_me: current value: $ac_new_val" >&2;}
1973 ac_cache_corrupted=:
1976 # Pass precious variables to config.status.
1977 if test "$ac_new_set" = set; then
1979 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1980 *) ac_arg=$ac_var=$ac_new_val ;;
1982 case " $ac_configure_args " in
1983 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1984 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1988 if $ac_cache_corrupted; then
1989 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1990 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1991 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1992 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1993 { (exit 1); exit 1; }; }
2021 ac_cpp='$CPP $CPPFLAGS'
2022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2028 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2037 for ac_dir in autoconf "$srcdir"/autoconf; do
2038 if test -f "$ac_dir/install-sh"; then
2040 ac_install_sh="$ac_aux_dir/install-sh -c"
2042 elif test -f "$ac_dir/install.sh"; then
2044 ac_install_sh="$ac_aux_dir/install.sh -c"
2046 elif test -f "$ac_dir/shtool"; then
2048 ac_install_sh="$ac_aux_dir/shtool install -c"
2052 if test -z "$ac_aux_dir"; then
2053 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2054 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2055 { (exit 1); exit 1; }; }
2058 # These three variables are undocumented and unsupported,
2059 # and are intended to be withdrawn in a future Autoconf release.
2060 # They can cause serious problems if a builder's source tree is in a directory
2061 # whose full name contains unusual characters.
2062 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2063 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2064 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2068 if test ${srcdir} != "." ; then
2069 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2070 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2071 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2072 { (exit 1); exit 1; }; }
2076 for i in `ls ${srcdir}/projects`
2078 if test -d ${srcdir}/projects/${i} ; then
2081 sample) subdirs="$subdirs projects/sample"
2083 privbracket) subdirs="$subdirs projects/privbracket"
2085 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2087 # llvm-test is the old name of the test-suite, kept here for backwards
2089 llvm-test) subdirs="$subdirs projects/llvm-test"
2091 test-suite) subdirs="$subdirs projects/test-suite"
2093 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2095 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2097 llvm-java) subdirs="$subdirs projects/llvm-java"
2099 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2101 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2103 poolalloc) subdirs="$subdirs projects/poolalloc"
2105 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2108 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2109 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2116 # Make sure we can run config.sub.
2117 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2118 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2119 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2120 { (exit 1); exit 1; }; }
2122 { echo "$as_me:$LINENO: checking build system type" >&5
2123 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2124 if test "${ac_cv_build+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 ac_build_alias=$build_alias
2128 test "x$ac_build_alias" = x &&
2129 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2130 test "x$ac_build_alias" = x &&
2131 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2132 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2133 { (exit 1); exit 1; }; }
2134 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2135 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2136 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2137 { (exit 1); exit 1; }; }
2140 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2141 echo "${ECHO_T}$ac_cv_build" >&6; }
2142 case $ac_cv_build in
2144 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2145 echo "$as_me: error: invalid value of canonical build" >&2;}
2146 { (exit 1); exit 1; }; };;
2149 ac_save_IFS=$IFS; IFS='-'
2155 # Remember, the first character of IFS is used to create $*,
2156 # except with old shells:
2159 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2162 { echo "$as_me:$LINENO: checking host system type" >&5
2163 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2164 if test "${ac_cv_host+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 if test "x$host_alias" = x; then
2168 ac_cv_host=$ac_cv_build
2170 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2171 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2172 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2173 { (exit 1); exit 1; }; }
2177 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2178 echo "${ECHO_T}$ac_cv_host" >&6; }
2181 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2182 echo "$as_me: error: invalid value of canonical host" >&2;}
2183 { (exit 1); exit 1; }; };;
2186 ac_save_IFS=$IFS; IFS='-'
2192 # Remember, the first character of IFS is used to create $*,
2193 # except with old shells:
2196 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2199 { echo "$as_me:$LINENO: checking target system type" >&5
2200 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2201 if test "${ac_cv_target+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 if test "x$target_alias" = x; then
2205 ac_cv_target=$ac_cv_host
2207 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2208 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2209 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2210 { (exit 1); exit 1; }; }
2214 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2215 echo "${ECHO_T}$ac_cv_target" >&6; }
2216 case $ac_cv_target in
2218 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2219 echo "$as_me: error: invalid value of canonical target" >&2;}
2220 { (exit 1); exit 1; }; };;
2222 target=$ac_cv_target
2223 ac_save_IFS=$IFS; IFS='-'
2229 # Remember, the first character of IFS is used to create $*,
2230 # except with old shells:
2233 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2236 # The aliases save the names the user supplied, while $host etc.
2237 # will get canonicalized.
2238 test -n "$target_alias" &&
2239 test "$program_prefix$program_suffix$program_transform_name" = \
2241 program_prefix=${target_alias}-
2243 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2244 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2245 if test "${llvm_cv_os_type+set}" = set; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
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="AIX"
2253 llvm_cv_platform_type="Unix" ;;
2255 llvm_cv_link_all_option="-Wl,--whole-archive"
2256 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2257 llvm_cv_os_type="IRIX"
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="Cygwin"
2263 llvm_cv_platform_type="Unix" ;;
2265 llvm_cv_link_all_option="-Wl,-all_load"
2266 llvm_cv_no_link_all_option="-Wl,-noall_load"
2267 llvm_cv_os_type="Darwin"
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="FreeBSD"
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="OpenBSD"
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="NetBSD"
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="DragonFly"
2288 llvm_cv_platform_type="Unix" ;;
2290 llvm_cv_link_all_option="-Wl,--whole-archive"
2291 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2292 llvm_cv_os_type="HP-UX"
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="Interix"
2298 llvm_cv_platform_type="Unix" ;;
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="Linux"
2303 llvm_cv_platform_type="Unix" ;;
2305 llvm_cv_link_all_option="-Wl,-z,allextract"
2306 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2307 llvm_cv_os_type="SunOS"
2308 llvm_cv_platform_type="Unix" ;;
2310 llvm_cv_link_all_option="-Wl,--whole-archive"
2311 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2312 llvm_cv_os_type="Win32"
2313 llvm_cv_platform_type="Win32" ;;
2315 llvm_cv_link_all_option="-Wl,--whole-archive"
2316 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2317 llvm_cv_os_type="MingW"
2318 llvm_cv_platform_type="Win32" ;;
2320 llvm_cv_link_all_option=""
2321 llvm_cv_no_link_all_option=""
2322 llvm_cv_os_type="Unknown"
2323 llvm_cv_platform_type="Unknown" ;;
2326 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2327 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2329 if test "$llvm_cv_os_type" = "Unknown" ; then
2330 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2331 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2332 { (exit 1); exit 1; }; }
2338 LINKALL=$llvm_cv_link_all_option
2340 NOLINKALL=$llvm_cv_no_link_all_option
2343 case $llvm_cv_platform_type in
2346 cat >>confdefs.h <<\_ACEOF
2347 #define LLVM_ON_UNIX 1
2357 cat >>confdefs.h <<\_ACEOF
2358 #define LLVM_ON_WIN32 1
2368 { echo "$as_me:$LINENO: checking target architecture" >&5
2369 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2370 if test "${llvm_cv_target_arch+set}" = set; then
2371 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 i?86-*) llvm_cv_target_arch="x86" ;;
2375 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2376 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2377 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2378 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2379 ia64-*) llvm_cv_target_arch="IA64" ;;
2380 arm-*) llvm_cv_target_arch="ARM" ;;
2381 mips-*) llvm_cv_target_arch="Mips" ;;
2382 pic16-*) llvm_cv_target_arch="PIC16" ;;
2383 xcore-*) llvm_cv_target_arch="XCore" ;;
2384 *) llvm_cv_target_arch="Unknown" ;;
2387 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2388 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2390 if test "$llvm_cv_target_arch" = "Unknown" ; then
2391 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2392 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2395 ARCH=$llvm_cv_target_arch
2399 ac_cpp='$CPP $CPPFLAGS'
2400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2403 if test -n "$ac_tool_prefix"; then
2404 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2405 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2408 if test "${ac_cv_prog_CC+set}" = set; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
2411 if test -n "$CC"; then
2412 ac_cv_prog_CC="$CC" # Let the user override the test.
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 test -z "$as_dir" && as_dir=.
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2421 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 if test -n "$CC"; then
2433 { echo "$as_me:$LINENO: result: $CC" >&5
2434 echo "${ECHO_T}$CC" >&6; }
2436 { echo "$as_me:$LINENO: result: no" >&5
2437 echo "${ECHO_T}no" >&6; }
2442 if test -z "$ac_cv_prog_CC"; then
2444 # Extract the first word of "gcc", so it can be a program name with args.
2445 set dummy gcc; ac_word=$2
2446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2448 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 if test -n "$ac_ct_CC"; then
2452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 test -z "$as_dir" && as_dir=.
2459 for ac_exec_ext in '' $ac_executable_extensions; do
2460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2461 ac_cv_prog_ac_ct_CC="gcc"
2462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2472 if test -n "$ac_ct_CC"; then
2473 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2474 echo "${ECHO_T}$ac_ct_CC" >&6; }
2476 { echo "$as_me:$LINENO: result: no" >&5
2477 echo "${ECHO_T}no" >&6; }
2480 if test "x$ac_ct_CC" = x; then
2483 case $cross_compiling:$ac_tool_warned in
2485 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2486 whose name does not start with the host triplet. If you think this
2487 configuration is useful to you, please write to autoconf@gnu.org." >&5
2488 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2489 whose name does not start with the host triplet. If you think this
2490 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2491 ac_tool_warned=yes ;;
2499 if test -z "$CC"; then
2500 if test -n "$ac_tool_prefix"; then
2501 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2502 set dummy ${ac_tool_prefix}cc; ac_word=$2
2503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2505 if test "${ac_cv_prog_CC+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 if test -n "$CC"; then
2509 ac_cv_prog_CC="$CC" # Let the user override the test.
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 test -z "$as_dir" && as_dir=.
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2518 ac_cv_prog_CC="${ac_tool_prefix}cc"
2519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 if test -n "$CC"; then
2530 { echo "$as_me:$LINENO: result: $CC" >&5
2531 echo "${ECHO_T}$CC" >&6; }
2533 { echo "$as_me:$LINENO: result: no" >&5
2534 echo "${ECHO_T}no" >&6; }
2540 if test -z "$CC"; then
2541 # Extract the first word of "cc", so it can be a program name with args.
2542 set dummy cc; ac_word=$2
2543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2545 if test "${ac_cv_prog_CC+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2548 if test -n "$CC"; then
2549 ac_cv_prog_CC="$CC" # Let the user override the test.
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2559 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2560 ac_prog_rejected=yes
2564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 if test $ac_prog_rejected = yes; then
2572 # We found a bogon in the path, so make sure we never use it.
2573 set dummy $ac_cv_prog_CC
2575 if test $# != 0; then
2576 # We chose a different compiler from the bogus one.
2577 # However, it has the same basename, so the bogon will be chosen
2578 # first if we set CC to just the basename; use the full file name.
2580 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2586 if test -n "$CC"; then
2587 { echo "$as_me:$LINENO: result: $CC" >&5
2588 echo "${ECHO_T}$CC" >&6; }
2590 { echo "$as_me:$LINENO: result: no" >&5
2591 echo "${ECHO_T}no" >&6; }
2596 if test -z "$CC"; then
2597 if test -n "$ac_tool_prefix"; then
2598 for ac_prog in cl.exe
2600 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2601 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2604 if test "${ac_cv_prog_CC+set}" = set; then
2605 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 if test -n "$CC"; then
2608 ac_cv_prog_CC="$CC" # Let the user override the test.
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2617 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 if test -n "$CC"; then
2629 { echo "$as_me:$LINENO: result: $CC" >&5
2630 echo "${ECHO_T}$CC" >&6; }
2632 { echo "$as_me:$LINENO: result: no" >&5
2633 echo "${ECHO_T}no" >&6; }
2637 test -n "$CC" && break
2640 if test -z "$CC"; then
2642 for ac_prog in cl.exe
2644 # Extract the first word of "$ac_prog", so it can be a program name with args.
2645 set dummy $ac_prog; ac_word=$2
2646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 if test -n "$ac_ct_CC"; then
2652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2661 ac_cv_prog_ac_ct_CC="$ac_prog"
2662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2672 if test -n "$ac_ct_CC"; then
2673 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2674 echo "${ECHO_T}$ac_ct_CC" >&6; }
2676 { echo "$as_me:$LINENO: result: no" >&5
2677 echo "${ECHO_T}no" >&6; }
2681 test -n "$ac_ct_CC" && break
2684 if test "x$ac_ct_CC" = x; then
2687 case $cross_compiling:$ac_tool_warned in
2689 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2690 whose name does not start with the host triplet. If you think this
2691 configuration is useful to you, please write to autoconf@gnu.org." >&5
2692 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2693 whose name does not start with the host triplet. If you think this
2694 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2695 ac_tool_warned=yes ;;
2704 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2705 See \`config.log' for more details." >&5
2706 echo "$as_me: error: no acceptable C compiler found in \$PATH
2707 See \`config.log' for more details." >&2;}
2708 { (exit 1); exit 1; }; }
2710 # Provide some information about the compiler.
2711 echo "$as_me:$LINENO: checking for C compiler version" >&5
2712 ac_compiler=`set X $ac_compile; echo $2`
2713 { (ac_try="$ac_compiler --version >&5"
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719 (eval "$ac_compiler --version >&5") 2>&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }
2723 { (ac_try="$ac_compiler -v >&5"
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_compiler -v >&5") 2>&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }
2733 { (ac_try="$ac_compiler -V >&5"
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739 (eval "$ac_compiler -V >&5") 2>&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }
2744 cat >conftest.$ac_ext <<_ACEOF
2747 cat confdefs.h >>conftest.$ac_ext
2748 cat >>conftest.$ac_ext <<_ACEOF
2749 /* end confdefs.h. */
2759 ac_clean_files_save=$ac_clean_files
2760 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2761 # Try to create an executable without -o first, disregard a.out.
2762 # It will help us diagnose broken compilers, and finding out an intuition
2764 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2765 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2766 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2768 # List of possible output files, starting from the most likely.
2769 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2770 # only as a last resort. b.out is created by i960 compilers.
2771 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2773 # The IRIX 6 linker writes into existing files which may not be
2774 # executable, retaining their permissions. Remove them first so a
2775 # subsequent execution test works.
2777 for ac_file in $ac_files
2780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2781 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2786 if { (ac_try="$ac_link_default"
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792 (eval "$ac_link_default") 2>&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; then
2796 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2797 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2798 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2799 # so that the user can short-circuit this test for compilers unknown to
2801 for ac_file in $ac_files
2803 test -f "$ac_file" || continue
2805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2808 # We found the default executable, but exeext='' is most
2812 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2814 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2816 # We set ac_cv_exeext here because the later test for it is not
2817 # safe: cross compilers may not add the suffix if given an `-o'
2818 # argument, so we may need to know it at that point already.
2819 # Even if this section looks crufty: it has the advantage of
2826 test "$ac_cv_exeext" = no && ac_cv_exeext=
2829 echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2832 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2833 See \`config.log' for more details." >&5
2834 echo "$as_me: error: C compiler cannot create executables
2835 See \`config.log' for more details." >&2;}
2836 { (exit 77); exit 77; }; }
2839 ac_exeext=$ac_cv_exeext
2840 { echo "$as_me:$LINENO: result: $ac_file" >&5
2841 echo "${ECHO_T}$ac_file" >&6; }
2843 # Check that the compiler produces executables we can run. If not, either
2844 # the compiler is broken, or we cross compile.
2845 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2846 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2847 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2848 # If not cross compiling, check that we can run a simple program.
2849 if test "$cross_compiling" != yes; then
2850 if { ac_try='./$ac_file'
2851 { (case "(($ac_try" in
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856 (eval "$ac_try") 2>&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; }; then
2862 if test "$cross_compiling" = maybe; then
2865 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2866 If you meant to cross compile, use \`--host'.
2867 See \`config.log' for more details." >&5
2868 echo "$as_me: error: cannot run C compiled programs.
2869 If you meant to cross compile, use \`--host'.
2870 See \`config.log' for more details." >&2;}
2871 { (exit 1); exit 1; }; }
2875 { echo "$as_me:$LINENO: result: yes" >&5
2876 echo "${ECHO_T}yes" >&6; }
2878 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2879 ac_clean_files=$ac_clean_files_save
2880 # Check that the compiler produces executables we can run. If not, either
2881 # the compiler is broken, or we cross compile.
2882 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2883 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2884 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2885 echo "${ECHO_T}$cross_compiling" >&6; }
2887 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2888 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2889 if { (ac_try="$ac_link"
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_link") 2>&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; then
2899 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2900 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2901 # work properly (i.e., refer to `conftest.exe'), while it won't with
2903 for ac_file in conftest.exe conftest conftest.*; do
2904 test -f "$ac_file" || continue
2906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2907 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2913 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2914 See \`config.log' for more details." >&5
2915 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2916 See \`config.log' for more details." >&2;}
2917 { (exit 1); exit 1; }; }
2920 rm -f conftest$ac_cv_exeext
2921 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2922 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2924 rm -f conftest.$ac_ext
2925 EXEEXT=$ac_cv_exeext
2927 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2928 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2929 if test "${ac_cv_objext+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2932 cat >conftest.$ac_ext <<_ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h. */
2947 rm -f conftest.o conftest.obj
2948 if { (ac_try="$ac_compile"
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_compile") 2>&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; then
2958 for ac_file in conftest.o conftest.obj conftest.*; do
2959 test -f "$ac_file" || continue;
2961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2962 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2970 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2971 See \`config.log' for more details." >&5
2972 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2973 See \`config.log' for more details." >&2;}
2974 { (exit 1); exit 1; }; }
2977 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2979 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2980 echo "${ECHO_T}$ac_cv_objext" >&6; }
2981 OBJEXT=$ac_cv_objext
2983 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2984 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2985 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 cat >conftest.$ac_ext <<_ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h. */
3006 rm -f conftest.$ac_objext
3007 if { (ac_try="$ac_compile"
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_compile") 2>conftest.er1
3015 grep -v '^ *+' conftest.er1 >conftest.err
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } &&
3020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3021 { (case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_try") 2>&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; } &&
3030 { ac_try='test -s conftest.$ac_objext'
3031 { (case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_try") 2>&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }; }; then
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3052 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3053 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3054 GCC=`test $ac_compiler_gnu = yes && echo yes`
3055 ac_test_CFLAGS=${CFLAGS+set}
3056 ac_save_CFLAGS=$CFLAGS
3057 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3058 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3059 if test "${ac_cv_prog_cc_g+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 ac_save_c_werror_flag=$ac_c_werror_flag
3063 ac_c_werror_flag=yes
3066 cat >conftest.$ac_ext <<_ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3081 rm -f conftest.$ac_objext
3082 if { (ac_try="$ac_compile"
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_compile") 2>conftest.er1
3090 grep -v '^ *+' conftest.er1 >conftest.err
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } &&
3095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3096 { (case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_try") 2>&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_try") 2>&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; }; then
3117 echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3136 rm -f conftest.$ac_objext
3137 if { (ac_try="$ac_compile"
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_compile") 2>conftest.er1
3145 grep -v '^ *+' conftest.er1 >conftest.err
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } &&
3150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3151 { (case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_try") 2>&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_try") 2>&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3175 ac_c_werror_flag=$ac_save_c_werror_flag
3177 cat >conftest.$ac_ext <<_ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h. */
3192 rm -f conftest.$ac_objext
3193 if { (ac_try="$ac_compile"
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_compile") 2>conftest.er1
3201 grep -v '^ *+' conftest.er1 >conftest.err
3203 cat conftest.err >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } &&
3206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3207 { (case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3212 (eval "$ac_try") 2>&5
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); }; } &&
3216 { ac_try='test -s conftest.$ac_objext'
3217 { (case "(($ac_try" in
3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3222 (eval "$ac_try") 2>&5
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); }; }; then
3228 echo "$as_me: failed program was:" >&5
3229 sed 's/^/| /' conftest.$ac_ext >&5
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_c_werror_flag=$ac_save_c_werror_flag
3243 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3244 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3245 if test "$ac_test_CFLAGS" = set; then
3246 CFLAGS=$ac_save_CFLAGS
3247 elif test $ac_cv_prog_cc_g = yes; then
3248 if test "$GCC" = yes; then
3254 if test "$GCC" = yes; then
3260 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3261 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3262 if test "${ac_cv_prog_cc_c89+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 ac_cv_prog_cc_c89=no
3267 cat >conftest.$ac_ext <<_ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h. */
3275 #include <sys/types.h>
3276 #include <sys/stat.h>
3277 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3278 struct buf { int x; };
3279 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3280 static char *e (p, i)
3286 static char *f (char * (*g) (char **, int), char **p, ...)
3291 s = g (p, va_arg (v,int));
3296 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3297 function prototypes and stuff, but not '\xHH' hex character constants.
3298 These don't provoke an error unfortunately, instead are silently treated
3299 as 'x'. The following induces an error, until -std is added to get
3300 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3301 array size at least. It's necessary to write '\x00'==0 to get something
3302 that's true only with -std. */
3303 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3305 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3306 inside strings and character constants. */
3308 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3310 int test (int i, double x);
3311 struct s1 {int (*f) (int a);};
3312 struct s2 {int (*f) (double a);};
3313 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3319 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3324 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3325 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3327 CC="$ac_save_CC $ac_arg"
3328 rm -f conftest.$ac_objext
3329 if { (ac_try="$ac_compile"
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_compile") 2>conftest.er1
3337 grep -v '^ *+' conftest.er1 >conftest.err
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } &&
3342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3343 { (case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348 (eval "$ac_try") 2>&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try='test -s conftest.$ac_objext'
3353 { (case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358 (eval "$ac_try") 2>&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3362 ac_cv_prog_cc_c89=$ac_arg
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3370 rm -f core conftest.err conftest.$ac_objext
3371 test "x$ac_cv_prog_cc_c89" != "xno" && break
3373 rm -f conftest.$ac_ext
3378 case "x$ac_cv_prog_cc_c89" in
3380 { echo "$as_me:$LINENO: result: none needed" >&5
3381 echo "${ECHO_T}none needed" >&6; } ;;
3383 { echo "$as_me:$LINENO: result: unsupported" >&5
3384 echo "${ECHO_T}unsupported" >&6; } ;;
3386 CC="$CC $ac_cv_prog_cc_c89"
3387 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3388 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3393 ac_cpp='$CPP $CPPFLAGS'
3394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400 ac_cpp='$CPP $CPPFLAGS'
3401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3404 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3405 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3406 # On Suns, sometimes $CPP names a directory.
3407 if test -n "$CPP" && test -d "$CPP"; then
3410 if test -z "$CPP"; then
3411 if test "${ac_cv_prog_CPP+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 # Double quotes because CPP needs to be expanded
3415 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3418 for ac_c_preproc_warn_flag in '' yes
3420 # Use a header file that comes with gcc, so configuring glibc
3421 # with a fresh cross-compiler works.
3422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3423 # <limits.h> exists even on freestanding compilers.
3424 # On the NeXT, cc -E runs the code through the compiler's parser,
3425 # not just through cpp. "Syntax error" is here to catch this case.
3426 cat >conftest.$ac_ext <<_ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3433 # include <limits.h>
3435 # include <assert.h>
3439 if { (ac_try="$ac_cpp conftest.$ac_ext"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3447 grep -v '^ *+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } >/dev/null; then
3452 if test -s conftest.err; then
3453 ac_cpp_err=$ac_c_preproc_warn_flag
3454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3461 if test -z "$ac_cpp_err"; then
3464 echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3467 # Broken: fails on valid input.
3471 rm -f conftest.err conftest.$ac_ext
3473 # OK, works on sane cases. Now check whether nonexistent headers
3474 # can be detected and how.
3475 cat >conftest.$ac_ext <<_ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3481 #include <ac_nonexistent.h>
3483 if { (ac_try="$ac_cpp conftest.$ac_ext"
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3491 grep -v '^ *+' conftest.er1 >conftest.err
3493 cat conftest.err >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } >/dev/null; then
3496 if test -s conftest.err; then
3497 ac_cpp_err=$ac_c_preproc_warn_flag
3498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3505 if test -z "$ac_cpp_err"; then
3506 # Broken: success on invalid input.
3509 echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3512 # Passes both tests.
3517 rm -f conftest.err conftest.$ac_ext
3520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3521 rm -f conftest.err conftest.$ac_ext
3522 if $ac_preproc_ok; then
3534 { echo "$as_me:$LINENO: result: $CPP" >&5
3535 echo "${ECHO_T}$CPP" >&6; }
3537 for ac_c_preproc_warn_flag in '' yes
3539 # Use a header file that comes with gcc, so configuring glibc
3540 # with a fresh cross-compiler works.
3541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3542 # <limits.h> exists even on freestanding compilers.
3543 # On the NeXT, cc -E runs the code through the compiler's parser,
3544 # not just through cpp. "Syntax error" is here to catch this case.
3545 cat >conftest.$ac_ext <<_ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3552 # include <limits.h>
3554 # include <assert.h>
3558 if { (ac_try="$ac_cpp conftest.$ac_ext"
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3566 grep -v '^ *+' conftest.er1 >conftest.err
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } >/dev/null; then
3571 if test -s conftest.err; then
3572 ac_cpp_err=$ac_c_preproc_warn_flag
3573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3580 if test -z "$ac_cpp_err"; then
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3586 # Broken: fails on valid input.
3590 rm -f conftest.err conftest.$ac_ext
3592 # OK, works on sane cases. Now check whether nonexistent headers
3593 # can be detected and how.
3594 cat >conftest.$ac_ext <<_ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3600 #include <ac_nonexistent.h>
3602 if { (ac_try="$ac_cpp conftest.$ac_ext"
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3610 grep -v '^ *+' conftest.er1 >conftest.err
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); } >/dev/null; then
3615 if test -s conftest.err; then
3616 ac_cpp_err=$ac_c_preproc_warn_flag
3617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3624 if test -z "$ac_cpp_err"; then
3625 # Broken: success on invalid input.
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3631 # Passes both tests.
3636 rm -f conftest.err conftest.$ac_ext
3639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3640 rm -f conftest.err conftest.$ac_ext
3641 if $ac_preproc_ok; then
3644 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3645 See \`config.log' for more details." >&5
3646 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3647 See \`config.log' for more details." >&2;}
3648 { (exit 1); exit 1; }; }
3652 ac_cpp='$CPP $CPPFLAGS'
3653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3658 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3659 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3660 if test "${ac_cv_path_GREP+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 # Extract the first word of "grep ggrep" to use in msg output
3664 if test -z "$GREP"; then
3665 set dummy grep ggrep; ac_prog_name=$2
3666 if test "${ac_cv_path_GREP+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 ac_path_GREP_found=false
3670 # Loop through the user's path and test for each of PROGNAME-LIST
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3675 test -z "$as_dir" && as_dir=.
3676 for ac_prog in grep ggrep; do
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3679 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3680 # Check for GNU ac_path_GREP and select it if it is found.
3681 # Check for GNU $ac_path_GREP
3682 case `"$ac_path_GREP" --version 2>&1` in
3684 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3687 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3690 cat "conftest.in" "conftest.in" >"conftest.tmp"
3691 mv "conftest.tmp" "conftest.in"
3692 cp "conftest.in" "conftest.nl"
3693 echo 'GREP' >> "conftest.nl"
3694 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3696 ac_count=`expr $ac_count + 1`
3697 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3698 # Best one so far, save it but keep looking for a better one
3699 ac_cv_path_GREP="$ac_path_GREP"
3700 ac_path_GREP_max=$ac_count
3702 # 10*(2^10) chars as input seems more than enough
3703 test $ac_count -gt 10 && break
3705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3709 $ac_path_GREP_found && break 3
3719 GREP="$ac_cv_path_GREP"
3720 if test -z "$GREP"; then
3721 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3722 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3723 { (exit 1); exit 1; }; }
3727 ac_cv_path_GREP=$GREP
3732 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3733 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3734 GREP="$ac_cv_path_GREP"
3737 { echo "$as_me:$LINENO: checking for egrep" >&5
3738 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3739 if test "${ac_cv_path_EGREP+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3743 then ac_cv_path_EGREP="$GREP -E"
3745 # Extract the first word of "egrep" to use in msg output
3746 if test -z "$EGREP"; then
3747 set dummy egrep; ac_prog_name=$2
3748 if test "${ac_cv_path_EGREP+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 ac_path_EGREP_found=false
3752 # Loop through the user's path and test for each of PROGNAME-LIST
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3757 test -z "$as_dir" && as_dir=.
3758 for ac_prog in egrep; do
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3761 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3762 # Check for GNU ac_path_EGREP and select it if it is found.
3763 # Check for GNU $ac_path_EGREP
3764 case `"$ac_path_EGREP" --version 2>&1` in
3766 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3769 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3772 cat "conftest.in" "conftest.in" >"conftest.tmp"
3773 mv "conftest.tmp" "conftest.in"
3774 cp "conftest.in" "conftest.nl"
3775 echo 'EGREP' >> "conftest.nl"
3776 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3778 ac_count=`expr $ac_count + 1`
3779 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3780 # Best one so far, save it but keep looking for a better one
3781 ac_cv_path_EGREP="$ac_path_EGREP"
3782 ac_path_EGREP_max=$ac_count
3784 # 10*(2^10) chars as input seems more than enough
3785 test $ac_count -gt 10 && break
3787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3791 $ac_path_EGREP_found && break 3
3801 EGREP="$ac_cv_path_EGREP"
3802 if test -z "$EGREP"; then
3803 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3804 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3805 { (exit 1); exit 1; }; }
3809 ac_cv_path_EGREP=$EGREP
3815 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3816 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3817 EGREP="$ac_cv_path_EGREP"
3820 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3821 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3822 if test "${ac_cv_header_stdc+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 cat >conftest.$ac_ext <<_ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h. */
3844 rm -f conftest.$ac_objext
3845 if { (ac_try="$ac_compile"
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851 (eval "$ac_compile") 2>conftest.er1
3853 grep -v '^ *+' conftest.er1 >conftest.err
3855 cat conftest.err >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } &&
3858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3859 { (case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3864 (eval "$ac_try") 2>&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }; } &&
3868 { ac_try='test -s conftest.$ac_objext'
3869 { (case "(($ac_try" in
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3874 (eval "$ac_try") 2>&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
3878 ac_cv_header_stdc=yes
3880 echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3883 ac_cv_header_stdc=no
3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3888 if test $ac_cv_header_stdc = yes; then
3889 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3890 cat >conftest.$ac_ext <<_ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3900 $EGREP "memchr" >/dev/null 2>&1; then
3903 ac_cv_header_stdc=no
3909 if test $ac_cv_header_stdc = yes; then
3910 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3911 cat >conftest.$ac_ext <<_ACEOF
3914 cat confdefs.h >>conftest.$ac_ext
3915 cat >>conftest.$ac_ext <<_ACEOF
3916 /* end confdefs.h. */
3920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3921 $EGREP "free" >/dev/null 2>&1; then
3924 ac_cv_header_stdc=no
3930 if test $ac_cv_header_stdc = yes; then
3931 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3932 if test "$cross_compiling" = yes; then
3935 cat >conftest.$ac_ext <<_ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3943 #if ((' ' & 0x0FF) == 0x020)
3944 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3945 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3947 # define ISLOWER(c) \
3948 (('a' <= (c) && (c) <= 'i') \
3949 || ('j' <= (c) && (c) <= 'r') \
3950 || ('s' <= (c) && (c) <= 'z'))
3951 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3959 for (i = 0; i < 256; i++)
3960 if (XOR (islower (i), ISLOWER (i))
3961 || toupper (i) != TOUPPER (i))
3966 rm -f conftest$ac_exeext
3967 if { (ac_try="$ac_link"
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973 (eval "$ac_link") 2>&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3977 { (case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3982 (eval "$ac_try") 2>&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; }; then
3988 echo "$as_me: program exited with status $ac_status" >&5
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3993 ac_cv_header_stdc=no
3995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4001 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4002 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4003 if test $ac_cv_header_stdc = yes; then
4005 cat >>confdefs.h <<\_ACEOF
4006 #define STDC_HEADERS 1
4011 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4021 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4022 inttypes.h stdint.h unistd.h
4024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 cat >conftest.$ac_ext <<_ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4036 $ac_includes_default
4038 #include <$ac_header>
4040 rm -f conftest.$ac_objext
4041 if { (ac_try="$ac_compile"
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047 (eval "$ac_compile") 2>conftest.er1
4049 grep -v '^ *+' conftest.er1 >conftest.err
4051 cat conftest.err >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } &&
4054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4055 { (case "(($ac_try" in
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060 (eval "$ac_try") 2>&5
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; } &&
4064 { ac_try='test -s conftest.$ac_objext'
4065 { (case "(($ac_try" in
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070 (eval "$ac_try") 2>&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
4074 eval "$as_ac_Header=yes"
4076 echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4079 eval "$as_ac_Header=no"
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084 ac_res=`eval echo '${'$as_ac_Header'}'`
4085 { echo "$as_me:$LINENO: result: $ac_res" >&5
4086 echo "${ECHO_T}$ac_res" >&6; }
4087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4088 cat >>confdefs.h <<_ACEOF
4089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4097 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4098 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4099 if test "${ac_cv_c_bigendian+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 # See if sys/param.h defines the BYTE_ORDER macro.
4103 cat >conftest.$ac_ext <<_ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4109 #include <sys/types.h>
4110 #include <sys/param.h>
4115 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4123 rm -f conftest.$ac_objext
4124 if { (ac_try="$ac_compile"
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4130 (eval "$ac_compile") 2>conftest.er1
4132 grep -v '^ *+' conftest.er1 >conftest.err
4134 cat conftest.err >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); } &&
4137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4138 { (case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_try") 2>&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; } &&
4147 { ac_try='test -s conftest.$ac_objext'
4148 { (case "(($ac_try" in
4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4153 (eval "$ac_try") 2>&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; }; then
4157 # It does; now see whether it defined to BIG_ENDIAN or not.
4158 cat >conftest.$ac_ext <<_ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4164 #include <sys/types.h>
4165 #include <sys/param.h>
4170 #if BYTE_ORDER != BIG_ENDIAN
4178 rm -f conftest.$ac_objext
4179 if { (ac_try="$ac_compile"
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_compile") 2>conftest.er1
4187 grep -v '^ *+' conftest.er1 >conftest.err
4189 cat conftest.err >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); } &&
4192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4193 { (case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_try") 2>&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; } &&
4202 { ac_try='test -s conftest.$ac_objext'
4203 { (case "(($ac_try" in
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208 (eval "$ac_try") 2>&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); }; }; then
4212 ac_cv_c_bigendian=yes
4214 echo "$as_me: failed program was:" >&5
4215 sed 's/^/| /' conftest.$ac_ext >&5
4217 ac_cv_c_bigendian=no
4220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222 echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4225 # It does not; compile a test program.
4226 if test "$cross_compiling" = yes; then
4227 # try to guess the endianness by grepping values into an object file
4228 ac_cv_c_bigendian=unknown
4229 cat >conftest.$ac_ext <<_ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4235 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4236 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4237 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4238 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4239 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4240 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4244 _ascii (); _ebcdic ();
4249 rm -f conftest.$ac_objext
4250 if { (ac_try="$ac_compile"
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256 (eval "$ac_compile") 2>conftest.er1
4258 grep -v '^ *+' conftest.er1 >conftest.err
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
4263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4264 { (case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269 (eval "$ac_try") 2>&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; } &&
4273 { ac_try='test -s conftest.$ac_objext'
4274 { (case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_try") 2>&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4284 ac_cv_c_bigendian=yes
4286 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4287 if test "$ac_cv_c_bigendian" = unknown; then
4288 ac_cv_c_bigendian=no
4290 # finding both strings is unlikely to happen, but who knows?
4291 ac_cv_c_bigendian=unknown
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303 cat >conftest.$ac_ext <<_ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h. */
4309 $ac_includes_default
4314 /* Are we little or big endian? From Harbison&Steele. */
4318 char c[sizeof (long int)];
4321 return u.c[sizeof (long int) - 1] == 1;
4327 rm -f conftest$ac_exeext
4328 if { (ac_try="$ac_link"
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334 (eval "$ac_link") 2>&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4338 { (case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_try") 2>&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_cv_c_bigendian=no
4349 echo "$as_me: program exited with status $ac_status" >&5
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4354 ac_cv_c_bigendian=yes
4356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4365 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4366 case $ac_cv_c_bigendian in
4374 { { echo "$as_me:$LINENO: error: unknown endianness
4375 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4376 echo "$as_me: error: unknown endianness
4377 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4378 { (exit 1); exit 1; }; } ;;
4382 if test "$cross_compiling" = yes; then
4383 LLVM_CROSS_COMPILING=1
4386 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4387 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4388 if test "${ac_cv_build_exeext+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4392 ac_cv_build_exeext=.exe
4394 ac_build_prefix=${build_alias}-
4396 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4397 set dummy ${ac_build_prefix}gcc; ac_word=$2
4398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4400 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 if test -n "$BUILD_CC"; then
4404 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4413 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 BUILD_CC=$ac_cv_prog_BUILD_CC
4424 if test -n "$BUILD_CC"; then
4425 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4426 echo "${ECHO_T}$BUILD_CC" >&6; }
4428 { echo "$as_me:$LINENO: result: no" >&5
4429 echo "${ECHO_T}no" >&6; }
4433 if test -z "$BUILD_CC"; then
4434 # Extract the first word of "gcc", so it can be a program name with args.
4435 set dummy gcc; ac_word=$2
4436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4438 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 if test -n "$BUILD_CC"; then
4442 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4451 ac_cv_prog_BUILD_CC="gcc"
4452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 BUILD_CC=$ac_cv_prog_BUILD_CC
4462 if test -n "$BUILD_CC"; then
4463 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4464 echo "${ECHO_T}$BUILD_CC" >&6; }
4466 { echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6; }
4471 if test -z "$BUILD_CC"; then
4472 # Extract the first word of "cc", so it can be a program name with args.
4473 set dummy cc; ac_word=$2
4474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 if test -n "$BUILD_CC"; then
4480 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4490 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4491 ac_prog_rejected=yes
4494 ac_cv_prog_BUILD_CC="cc"
4495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 if test $ac_prog_rejected = yes; then
4503 # We found a bogon in the path, so make sure we never use it.
4504 set dummy $ac_cv_prog_BUILD_CC
4506 if test $# != 0; then
4507 # We chose a different compiler from the bogus one.
4508 # However, it has the same basename, so the bogon will be chosen
4509 # first if we set BUILD_CC to just the basename; use the full file name.
4511 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4516 BUILD_CC=$ac_cv_prog_BUILD_CC
4517 if test -n "$BUILD_CC"; then
4518 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4519 echo "${ECHO_T}$BUILD_CC" >&6; }
4521 { echo "$as_me:$LINENO: result: no" >&5
4522 echo "${ECHO_T}no" >&6; }
4528 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4529 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4530 { (exit 1); exit 1; }; }
4531 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4533 echo 'int main () { return 0; }' > conftest.$ac_ext
4535 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4536 (eval $ac_build_link) 2>&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; then
4540 for file in conftest.*; do
4542 *.c | *.o | *.obj | *.dSYM) ;;
4543 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4547 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4548 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4549 { (exit 1); exit 1; }; }
4552 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4557 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4558 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4559 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4560 ac_build_exeext=$BUILD_EXEEXT
4562 ac_build_prefix=${build_alias}-
4563 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4564 set dummy ${ac_build_prefix}g++; ac_word=$2
4565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4567 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 if test -n "$BUILD_CXX"; then
4571 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 test -z "$as_dir" && as_dir=.
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4580 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4590 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4591 if test -n "$BUILD_CXX"; then
4592 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4593 echo "${ECHO_T}$BUILD_CXX" >&6; }
4595 { echo "$as_me:$LINENO: result: no" >&5
4596 echo "${ECHO_T}no" >&6; }
4600 if test -z "$BUILD_CXX"; then
4601 # Extract the first word of "g++", so it can be a program name with args.
4602 set dummy g++; ac_word=$2
4603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4605 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 if test -n "$BUILD_CXX"; then
4609 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4618 ac_cv_prog_BUILD_CXX="g++"
4619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4629 if test -n "$BUILD_CXX"; then
4630 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4631 echo "${ECHO_T}$BUILD_CXX" >&6; }
4633 { echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6; }
4638 if test -z "$BUILD_CXX"; then
4639 # Extract the first word of "c++", so it can be a program name with args.
4640 set dummy c++; ac_word=$2
4641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4643 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 if test -n "$BUILD_CXX"; then
4647 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4657 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4658 ac_prog_rejected=yes
4661 ac_cv_prog_BUILD_CXX="c++"
4662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 if test $ac_prog_rejected = yes; then
4670 # We found a bogon in the path, so make sure we never use it.
4671 set dummy $ac_cv_prog_BUILD_CXX
4673 if test $# != 0; then
4674 # We chose a different compiler from the bogus one.
4675 # However, it has the same basename, so the bogon will be chosen
4676 # first if we set BUILD_CXX to just the basename; use the full file name.
4678 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4683 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4684 if test -n "$BUILD_CXX"; then
4685 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4686 echo "${ECHO_T}$BUILD_CXX" >&6; }
4688 { echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6; }
4696 LLVM_CROSS_COMPILING=0
4700 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4711 # Check whether --enable-optimized was given.
4712 if test "${enable_optimized+set}" = set; then
4713 enableval=$enable_optimized;
4718 if test ${enableval} = "no" ; then
4722 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4726 # Check whether --enable-assertions was given.
4727 if test "${enable_assertions+set}" = set; then
4728 enableval=$enable_assertions;
4733 if test ${enableval} = "yes" ; then
4737 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4741 # Check whether --enable-expensive-checks was given.
4742 if test "${enable_expensive_checks+set}" = set; then
4743 enableval=$enable_expensive_checks;
4748 if test ${enableval} = "yes" ; then
4749 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4751 EXPENSIVE_CHECKS=yes
4754 ENABLE_EXPENSIVE_CHECKS=
4760 # Check whether --enable-debug-runtime was given.
4761 if test "${enable_debug_runtime+set}" = set; then
4762 enableval=$enable_debug_runtime;
4767 if test ${enableval} = "no" ; then
4771 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4775 # Check whether --enable-jit was given.
4776 if test "${enable_jit+set}" = set; then
4777 enableval=$enable_jit;
4782 if test ${enableval} = "no"
4787 case "$llvm_cv_target_arch" in
4788 x86) TARGET_HAS_JIT=1
4790 Sparc) TARGET_HAS_JIT=0
4792 PowerPC) TARGET_HAS_JIT=1
4794 x86_64) TARGET_HAS_JIT=1
4796 Alpha) TARGET_HAS_JIT=1
4798 IA64) TARGET_HAS_JIT=0
4800 ARM) TARGET_HAS_JIT=0
4802 Mips) TARGET_HAS_JIT=0
4804 PIC16) TARGET_HAS_JIT=0
4806 XCore) TARGET_HAS_JIT=0
4813 # Check whether --enable-doxygen was given.
4814 if test "${enable_doxygen+set}" = set; then
4815 enableval=$enable_doxygen;
4820 case "$enableval" in
4821 yes) ENABLE_DOXYGEN=1
4823 no) ENABLE_DOXYGEN=0
4825 default) ENABLE_DOXYGEN=0
4827 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4828 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4829 { (exit 1); exit 1; }; } ;;
4832 # Check whether --enable-threads was given.
4833 if test "${enable_threads+set}" = set; then
4834 enableval=$enable_threads;
4839 case "$enableval" in
4840 yes) ENABLE_THREADS=1
4842 no) ENABLE_THREADS=0
4844 default) ENABLE_THREADS=1
4846 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4847 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4848 { (exit 1); exit 1; }; } ;;
4851 cat >>confdefs.h <<_ACEOF
4852 #define ENABLE_THREADS $ENABLE_THREADS
4856 # Check whether --enable-pic was given.
4857 if test "${enable_pic+set}" = set; then
4858 enableval=$enable_pic;
4863 case "$enableval" in
4868 default) ENABLE_PIC=1
4870 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4871 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4872 { (exit 1); exit 1; }; } ;;
4875 cat >>confdefs.h <<_ACEOF
4876 #define ENABLE_PIC $ENABLE_PIC
4881 # Check whether --enable-targets was given.
4882 if test "${enable_targets+set}" = set; then
4883 enableval=$enable_targets;
4888 case "$enableval" in
4889 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
4891 case "$llvm_cv_target_arch" in
4892 x86) TARGETS_TO_BUILD="X86" ;;
4893 x86_64) TARGETS_TO_BUILD="X86" ;;
4894 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4895 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4896 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4897 IA64) TARGETS_TO_BUILD="IA64" ;;
4898 ARM) TARGETS_TO_BUILD="ARM" ;;
4899 Mips) TARGETS_TO_BUILD="Mips" ;;
4900 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4901 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4902 XCore) TARGETS_TO_BUILD="XCore" ;;
4903 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4904 echo "$as_me: error: Can not set target to build" >&2;}
4905 { (exit 1); exit 1; }; } ;;
4908 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4910 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4911 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4912 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4913 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4914 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4915 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4916 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4917 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4918 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4919 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4920 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4921 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4922 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4923 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4924 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4925 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4926 { (exit 1); exit 1; }; } ;;
4931 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4934 # Check whether --enable-cbe-printf-a was given.
4935 if test "${enable_cbe_printf_a+set}" = set; then
4936 enableval=$enable_cbe_printf_a;
4941 case "$enableval" in
4942 yes) ENABLE_CBE_PRINTF_A=1
4944 no) ENABLE_CBE_PRINTF_A=0
4946 default) ENABLE_CBE_PRINTF_A=1
4948 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4949 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4950 { (exit 1); exit 1; }; } ;;
4953 cat >>confdefs.h <<_ACEOF
4954 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4959 # Check whether --with-llvmgccdir was given.
4960 if test "${with_llvmgccdir+set}" = set; then
4961 withval=$with_llvmgccdir;
4967 default) WITH_LLVMGCCDIR=default ;;
4968 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4969 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4970 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4971 { (exit 1); exit 1; }; } ;;
4975 # Check whether --with-llvmgcc was given.
4976 if test "${with_llvmgcc+set}" = set; then
4977 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4983 # Check whether --with-llvmgxx was given.
4984 if test "${with_llvmgxx+set}" = set; then
4985 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4990 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4991 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4992 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4993 { (exit 1); exit 1; }; };
4996 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4997 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4998 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4999 { (exit 1); exit 1; }; };
5003 # Check whether --with-extra-options was given.
5004 if test "${with_extra_options+set}" = set; then
5005 withval=$with_extra_options;
5011 default) EXTRA_OPTIONS= ;;
5012 *) EXTRA_OPTIONS=$withval ;;
5014 EXTRA_OPTIONS=$EXTRA_OPTIONS
5017 # Check whether --enable-bindings was given.
5018 if test "${enable_bindings+set}" = set; then
5019 enableval=$enable_bindings;
5024 BINDINGS_TO_BUILD=""
5025 case "$enableval" in
5026 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5027 all ) BINDINGS_TO_BUILD="ocaml" ;;
5028 none | no) BINDINGS_TO_BUILD="" ;;
5029 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5030 case "$a_binding" in
5031 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5032 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5033 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5034 { (exit 1); exit 1; }; } ;;
5041 # Check whether --with-ocaml-libdir was given.
5042 if test "${with_ocaml_libdir+set}" = set; then
5043 withval=$with_ocaml_libdir;
5049 auto) with_ocaml_libdir="$withval" ;;
5050 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5051 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5052 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5053 { (exit 1); exit 1; }; } ;;
5057 # Check whether --with-binutils-include was given.
5058 if test "${with_binutils_include+set}" = set; then
5059 withval=$with_binutils_include;
5065 default) WITH_BINUTILS_INCDIR=default ;;
5066 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5067 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5068 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5069 { (exit 1); exit 1; }; } ;;
5071 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5072 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5074 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5075 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5076 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5077 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5078 { (exit 1); exit 1; }; };
5084 ac_cpp='$CPP $CPPFLAGS'
5085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5089 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5090 # On Suns, sometimes $CPP names a directory.
5091 if test -n "$CPP" && test -d "$CPP"; then
5094 if test -z "$CPP"; then
5095 if test "${ac_cv_prog_CPP+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 # Double quotes because CPP needs to be expanded
5099 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5102 for ac_c_preproc_warn_flag in '' yes
5104 # Use a header file that comes with gcc, so configuring glibc
5105 # with a fresh cross-compiler works.
5106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5107 # <limits.h> exists even on freestanding compilers.
5108 # On the NeXT, cc -E runs the code through the compiler's parser,
5109 # not just through cpp. "Syntax error" is here to catch this case.
5110 cat >conftest.$ac_ext <<_ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5117 # include <limits.h>
5119 # include <assert.h>
5123 if { (ac_try="$ac_cpp conftest.$ac_ext"
5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126 *) ac_try_echo=$ac_try;;
5128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5131 grep -v '^ *+' conftest.er1 >conftest.err
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } >/dev/null; then
5136 if test -s conftest.err; then
5137 ac_cpp_err=$ac_c_preproc_warn_flag
5138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5145 if test -z "$ac_cpp_err"; then
5148 echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5151 # Broken: fails on valid input.
5155 rm -f conftest.err conftest.$ac_ext
5157 # OK, works on sane cases. Now check whether nonexistent headers
5158 # can be detected and how.
5159 cat >conftest.$ac_ext <<_ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5165 #include <ac_nonexistent.h>
5167 if { (ac_try="$ac_cpp conftest.$ac_ext"
5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5175 grep -v '^ *+' conftest.er1 >conftest.err
5177 cat conftest.err >&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); } >/dev/null; then
5180 if test -s conftest.err; then
5181 ac_cpp_err=$ac_c_preproc_warn_flag
5182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5189 if test -z "$ac_cpp_err"; then
5190 # Broken: success on invalid input.
5193 echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5196 # Passes both tests.
5201 rm -f conftest.err conftest.$ac_ext
5204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5205 rm -f conftest.err conftest.$ac_ext
5206 if $ac_preproc_ok; then
5218 { echo "$as_me:$LINENO: result: $CPP" >&5
5219 echo "${ECHO_T}$CPP" >&6; }
5221 for ac_c_preproc_warn_flag in '' yes
5223 # Use a header file that comes with gcc, so configuring glibc
5224 # with a fresh cross-compiler works.
5225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5226 # <limits.h> exists even on freestanding compilers.
5227 # On the NeXT, cc -E runs the code through the compiler's parser,
5228 # not just through cpp. "Syntax error" is here to catch this case.
5229 cat >conftest.$ac_ext <<_ACEOF
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5236 # include <limits.h>
5238 # include <assert.h>
5242 if { (ac_try="$ac_cpp conftest.$ac_ext"
5244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245 *) ac_try_echo=$ac_try;;
5247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5250 grep -v '^ *+' conftest.er1 >conftest.err
5252 cat conftest.err >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } >/dev/null; then
5255 if test -s conftest.err; then
5256 ac_cpp_err=$ac_c_preproc_warn_flag
5257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5264 if test -z "$ac_cpp_err"; then
5267 echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5270 # Broken: fails on valid input.
5274 rm -f conftest.err conftest.$ac_ext
5276 # OK, works on sane cases. Now check whether nonexistent headers
5277 # can be detected and how.
5278 cat >conftest.$ac_ext <<_ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h. */
5284 #include <ac_nonexistent.h>
5286 if { (ac_try="$ac_cpp conftest.$ac_ext"
5288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289 *) ac_try_echo=$ac_try;;
5291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5294 grep -v '^ *+' conftest.er1 >conftest.err
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } >/dev/null; then
5299 if test -s conftest.err; then
5300 ac_cpp_err=$ac_c_preproc_warn_flag
5301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5308 if test -z "$ac_cpp_err"; then
5309 # Broken: success on invalid input.
5312 echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5315 # Passes both tests.
5320 rm -f conftest.err conftest.$ac_ext
5323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5324 rm -f conftest.err conftest.$ac_ext
5325 if $ac_preproc_ok; then
5328 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5329 See \`config.log' for more details." >&5
5330 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5331 See \`config.log' for more details." >&2;}
5332 { (exit 1); exit 1; }; }
5336 ac_cpp='$CPP $CPPFLAGS'
5337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5342 ac_cpp='$CPP $CPPFLAGS'
5343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5346 if test -n "$ac_tool_prefix"; then
5349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5353 if test "${ac_cv_prog_CC+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 if test -n "$CC"; then
5357 ac_cv_prog_CC="$CC" # Let the user override the test.
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5366 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5377 if test -n "$CC"; then
5378 { echo "$as_me:$LINENO: result: $CC" >&5
5379 echo "${ECHO_T}$CC" >&6; }
5381 { echo "$as_me:$LINENO: result: no" >&5
5382 echo "${ECHO_T}no" >&6; }
5386 test -n "$CC" && break
5389 if test -z "$CC"; then
5393 # Extract the first word of "$ac_prog", so it can be a program name with args.
5394 set dummy $ac_prog; ac_word=$2
5395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5397 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 if test -n "$ac_ct_CC"; then
5401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5410 ac_cv_prog_ac_ct_CC="$ac_prog"
5411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5421 if test -n "$ac_ct_CC"; then
5422 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5423 echo "${ECHO_T}$ac_ct_CC" >&6; }
5425 { echo "$as_me:$LINENO: result: no" >&5
5426 echo "${ECHO_T}no" >&6; }
5430 test -n "$ac_ct_CC" && break
5433 if test "x$ac_ct_CC" = x; then
5436 case $cross_compiling:$ac_tool_warned in
5438 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5439 whose name does not start with the host triplet. If you think this
5440 configuration is useful to you, please write to autoconf@gnu.org." >&5
5441 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5442 whose name does not start with the host triplet. If you think this
5443 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5444 ac_tool_warned=yes ;;
5451 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5452 See \`config.log' for more details." >&5
5453 echo "$as_me: error: no acceptable C compiler found in \$PATH
5454 See \`config.log' for more details." >&2;}
5455 { (exit 1); exit 1; }; }
5457 # Provide some information about the compiler.
5458 echo "$as_me:$LINENO: checking for C compiler version" >&5
5459 ac_compiler=`set X $ac_compile; echo $2`
5460 { (ac_try="$ac_compiler --version >&5"
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_compiler --version >&5") 2>&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); }
5470 { (ac_try="$ac_compiler -v >&5"
5472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473 *) ac_try_echo=$ac_try;;
5475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476 (eval "$ac_compiler -v >&5") 2>&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); }
5480 { (ac_try="$ac_compiler -V >&5"
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486 (eval "$ac_compiler -V >&5") 2>&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); }
5491 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5492 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5493 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5496 cat >conftest.$ac_ext <<_ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h. */
5514 rm -f conftest.$ac_objext
5515 if { (ac_try="$ac_compile"
5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518 *) ac_try_echo=$ac_try;;
5520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521 (eval "$ac_compile") 2>conftest.er1
5523 grep -v '^ *+' conftest.er1 >conftest.err
5525 cat conftest.err >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } &&
5528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5529 { (case "(($ac_try" in
5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534 (eval "$ac_try") 2>&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; } &&
5538 { ac_try='test -s conftest.$ac_objext'
5539 { (case "(($ac_try" in
5540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541 *) ac_try_echo=$ac_try;;
5543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5544 (eval "$ac_try") 2>&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; }; then
5550 echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5560 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5561 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5562 GCC=`test $ac_compiler_gnu = yes && echo yes`
5563 ac_test_CFLAGS=${CFLAGS+set}
5564 ac_save_CFLAGS=$CFLAGS
5565 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5566 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5567 if test "${ac_cv_prog_cc_g+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 ac_save_c_werror_flag=$ac_c_werror_flag
5571 ac_c_werror_flag=yes
5574 cat >conftest.$ac_ext <<_ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5589 rm -f conftest.$ac_objext
5590 if { (ac_try="$ac_compile"
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596 (eval "$ac_compile") 2>conftest.er1
5598 grep -v '^ *+' conftest.er1 >conftest.err
5600 cat conftest.err >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } &&
5603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5604 { (case "(($ac_try" in
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5609 (eval "$ac_try") 2>&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; } &&
5613 { ac_try='test -s conftest.$ac_objext'
5614 { (case "(($ac_try" in
5615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616 *) ac_try_echo=$ac_try;;
5618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5619 (eval "$ac_try") 2>&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; }; then
5625 echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5629 cat >conftest.$ac_ext <<_ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h. */
5644 rm -f conftest.$ac_objext
5645 if { (ac_try="$ac_compile"
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651 (eval "$ac_compile") 2>conftest.er1
5653 grep -v '^ *+' conftest.er1 >conftest.err
5655 cat conftest.err >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } &&
5658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5659 { (case "(($ac_try" in
5660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661 *) ac_try_echo=$ac_try;;
5663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5664 (eval "$ac_try") 2>&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; } &&
5668 { ac_try='test -s conftest.$ac_objext'
5669 { (case "(($ac_try" in
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_try") 2>&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; }; then
5680 echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5683 ac_c_werror_flag=$ac_save_c_werror_flag
5685 cat >conftest.$ac_ext <<_ACEOF
5688 cat confdefs.h >>conftest.$ac_ext
5689 cat >>conftest.$ac_ext <<_ACEOF
5690 /* end confdefs.h. */
5700 rm -f conftest.$ac_objext
5701 if { (ac_try="$ac_compile"
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707 (eval "$ac_compile") 2>conftest.er1
5709 grep -v '^ *+' conftest.er1 >conftest.err
5711 cat conftest.err >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } &&
5714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5715 { (case "(($ac_try" in
5716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717 *) ac_try_echo=$ac_try;;
5719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_try") 2>&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; } &&
5724 { ac_try='test -s conftest.$ac_objext'
5725 { (case "(($ac_try" in
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_try") 2>&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
5736 echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749 ac_c_werror_flag=$ac_save_c_werror_flag
5751 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5752 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5753 if test "$ac_test_CFLAGS" = set; then
5754 CFLAGS=$ac_save_CFLAGS
5755 elif test $ac_cv_prog_cc_g = yes; then
5756 if test "$GCC" = yes; then
5762 if test "$GCC" = yes; then
5768 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5769 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5770 if test "${ac_cv_prog_cc_c89+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5773 ac_cv_prog_cc_c89=no
5775 cat >conftest.$ac_ext <<_ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5783 #include <sys/types.h>
5784 #include <sys/stat.h>
5785 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5786 struct buf { int x; };
5787 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5788 static char *e (p, i)
5794 static char *f (char * (*g) (char **, int), char **p, ...)
5799 s = g (p, va_arg (v,int));
5804 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5805 function prototypes and stuff, but not '\xHH' hex character constants.
5806 These don't provoke an error unfortunately, instead are silently treated
5807 as 'x'. The following induces an error, until -std is added to get
5808 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5809 array size at least. It's necessary to write '\x00'==0 to get something
5810 that's true only with -std. */
5811 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5813 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5814 inside strings and character constants. */
5816 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5818 int test (int i, double x);
5819 struct s1 {int (*f) (int a);};
5820 struct s2 {int (*f) (double a);};
5821 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5827 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5832 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5833 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5835 CC="$ac_save_CC $ac_arg"
5836 rm -f conftest.$ac_objext
5837 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5845 grep -v '^ *+' conftest.er1 >conftest.err
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } &&
5850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5851 { (case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_try") 2>&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; } &&
5860 { ac_try='test -s conftest.$ac_objext'
5861 { (case "(($ac_try" in
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866 (eval "$ac_try") 2>&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; }; then
5870 ac_cv_prog_cc_c89=$ac_arg
5872 echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5878 rm -f core conftest.err conftest.$ac_objext
5879 test "x$ac_cv_prog_cc_c89" != "xno" && break
5881 rm -f conftest.$ac_ext
5886 case "x$ac_cv_prog_cc_c89" in
5888 { echo "$as_me:$LINENO: result: none needed" >&5
5889 echo "${ECHO_T}none needed" >&6; } ;;
5891 { echo "$as_me:$LINENO: result: unsupported" >&5
5892 echo "${ECHO_T}unsupported" >&6; } ;;
5894 CC="$CC $ac_cv_prog_cc_c89"
5895 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5896 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5901 ac_cpp='$CPP $CPPFLAGS'
5902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5907 ac_cpp='$CXXCPP $CPPFLAGS'
5908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5911 if test -z "$CXX"; then
5912 if test -n "$CCC"; then
5915 if test -n "$ac_tool_prefix"; then
5918 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5919 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5922 if test "${ac_cv_prog_CXX+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 if test -n "$CXX"; then
5926 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5935 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 if test -n "$CXX"; then
5947 { echo "$as_me:$LINENO: result: $CXX" >&5
5948 echo "${ECHO_T}$CXX" >&6; }
5950 { echo "$as_me:$LINENO: result: no" >&5
5951 echo "${ECHO_T}no" >&6; }
5955 test -n "$CXX" && break
5958 if test -z "$CXX"; then
5962 # Extract the first word of "$ac_prog", so it can be a program name with args.
5963 set dummy $ac_prog; ac_word=$2
5964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5966 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 if test -n "$ac_ct_CXX"; then
5970 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5979 ac_cv_prog_ac_ct_CXX="$ac_prog"
5980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5990 if test -n "$ac_ct_CXX"; then
5991 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5992 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5994 { echo "$as_me:$LINENO: result: no" >&5
5995 echo "${ECHO_T}no" >&6; }
5999 test -n "$ac_ct_CXX" && break
6002 if test "x$ac_ct_CXX" = x; then
6005 case $cross_compiling:$ac_tool_warned in
6007 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6008 whose name does not start with the host triplet. If you think this
6009 configuration is useful to you, please write to autoconf@gnu.org." >&5
6010 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6011 whose name does not start with the host triplet. If you think this
6012 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6013 ac_tool_warned=yes ;;
6021 # Provide some information about the compiler.
6022 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6023 ac_compiler=`set X $ac_compile; echo $2`
6024 { (ac_try="$ac_compiler --version >&5"
6026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027 *) ac_try_echo=$ac_try;;
6029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6030 (eval "$ac_compiler --version >&5") 2>&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }
6034 { (ac_try="$ac_compiler -v >&5"
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_compiler -v >&5") 2>&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }
6044 { (ac_try="$ac_compiler -V >&5"
6046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047 *) ac_try_echo=$ac_try;;
6049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050 (eval "$ac_compiler -V >&5") 2>&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }
6055 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6056 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6057 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 cat >conftest.$ac_ext <<_ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6078 rm -f conftest.$ac_objext
6079 if { (ac_try="$ac_compile"
6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085 (eval "$ac_compile") 2>conftest.er1
6087 grep -v '^ *+' conftest.er1 >conftest.err
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6093 { (case "(($ac_try" in
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_try") 2>&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; } &&
6102 { ac_try='test -s conftest.$ac_objext'
6103 { (case "(($ac_try" in
6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108 (eval "$ac_try") 2>&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6121 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6124 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6125 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6126 GXX=`test $ac_compiler_gnu = yes && echo yes`
6127 ac_test_CXXFLAGS=${CXXFLAGS+set}
6128 ac_save_CXXFLAGS=$CXXFLAGS
6129 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6130 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6131 if test "${ac_cv_prog_cxx_g+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6135 ac_cxx_werror_flag=yes
6138 cat >conftest.$ac_ext <<_ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6153 rm -f conftest.$ac_objext
6154 if { (ac_try="$ac_compile"
6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160 (eval "$ac_compile") 2>conftest.er1
6162 grep -v '^ *+' conftest.er1 >conftest.err
6164 cat conftest.err >&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } &&
6167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6168 { (case "(($ac_try" in
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173 (eval "$ac_try") 2>&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); }; } &&
6177 { ac_try='test -s conftest.$ac_objext'
6178 { (case "(($ac_try" in
6179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180 *) ac_try_echo=$ac_try;;
6182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183 (eval "$ac_try") 2>&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; }; then
6187 ac_cv_prog_cxx_g=yes
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6193 cat >conftest.$ac_ext <<_ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h. */
6208 rm -f conftest.$ac_objext
6209 if { (ac_try="$ac_compile"
6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215 (eval "$ac_compile") 2>conftest.er1
6217 grep -v '^ *+' conftest.er1 >conftest.err
6219 cat conftest.err >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } &&
6222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6223 { (case "(($ac_try" in
6224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225 *) ac_try_echo=$ac_try;;
6227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228 (eval "$ac_try") 2>&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; } &&
6232 { ac_try='test -s conftest.$ac_objext'
6233 { (case "(($ac_try" in
6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235 *) ac_try_echo=$ac_try;;
6237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238 (eval "$ac_try") 2>&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; }; then
6244 echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6247 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6249 cat >conftest.$ac_ext <<_ACEOF
6252 cat confdefs.h >>conftest.$ac_ext
6253 cat >>conftest.$ac_ext <<_ACEOF
6254 /* end confdefs.h. */
6264 rm -f conftest.$ac_objext
6265 if { (ac_try="$ac_compile"
6267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$ac_compile") 2>conftest.er1
6273 grep -v '^ *+' conftest.er1 >conftest.err
6275 cat conftest.err >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } &&
6278 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6279 { (case "(($ac_try" in
6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284 (eval "$ac_try") 2>&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; } &&
6288 { ac_try='test -s conftest.$ac_objext'
6289 { (case "(($ac_try" in
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294 (eval "$ac_try") 2>&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
6298 ac_cv_prog_cxx_g=yes
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6313 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6315 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6316 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6317 if test "$ac_test_CXXFLAGS" = set; then
6318 CXXFLAGS=$ac_save_CXXFLAGS
6319 elif test $ac_cv_prog_cxx_g = yes; then
6320 if test "$GXX" = yes; then
6326 if test "$GXX" = yes; then
6333 ac_cpp='$CPP $CPPFLAGS'
6334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6339 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6340 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6341 if test "${lt_cv_path_NM+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 if test -n "$NM"; then
6345 # Let the user override the test.
6348 lt_nm_to_check="${ac_tool_prefix}nm"
6349 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6350 lt_nm_to_check="$lt_nm_to_check nm"
6352 for lt_tmp_nm in $lt_nm_to_check; do
6353 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6354 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6356 test -z "$ac_dir" && ac_dir=.
6357 tmp_nm="$ac_dir/$lt_tmp_nm"
6358 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6359 # Check to see if the nm accepts a BSD-compat flag.
6360 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6361 # nm: unknown option "B" ignored
6362 # Tru64's nm complains that /dev/null is an invalid object file
6363 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6364 */dev/null* | *'Invalid file or object type'*)
6365 lt_cv_path_NM="$tmp_nm -B"
6369 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6371 lt_cv_path_NM="$tmp_nm -p"
6375 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6376 continue # so that we can try to find one that supports BSD flags
6385 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6388 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6389 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6394 { echo "$as_me:$LINENO: checking for GNU make" >&5
6395 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6396 if test "${llvm_cv_gnu_make_command+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 llvm_cv_gnu_make_command=''
6400 for a in "$MAKE" make gmake gnumake ; do
6401 if test -z "$a" ; then continue ; fi ;
6402 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6404 llvm_cv_gnu_make_command=$a ;
6409 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6410 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6411 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6415 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6416 echo "${ECHO_T}\"Not found\"" >&6; };
6420 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6421 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6423 if test "$LN_S" = "ln -s"; then
6424 { echo "$as_me:$LINENO: result: yes" >&5
6425 echo "${ECHO_T}yes" >&6; }
6427 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6428 echo "${ECHO_T}no, using $LN_S" >&6; }
6431 # Extract the first word of "cmp", so it can be a program name with args.
6432 set dummy cmp; ac_word=$2
6433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6435 if test "${ac_cv_path_CMP+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6440 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6450 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6463 if test -n "$CMP"; then
6464 { echo "$as_me:$LINENO: result: $CMP" >&5
6465 echo "${ECHO_T}$CMP" >&6; }
6467 { echo "$as_me:$LINENO: result: no" >&5
6468 echo "${ECHO_T}no" >&6; }
6472 # Extract the first word of "cp", so it can be a program name with args.
6473 set dummy cp; ac_word=$2
6474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6476 if test "${ac_cv_path_CP+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6491 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6499 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6504 if test -n "$CP"; then
6505 { echo "$as_me:$LINENO: result: $CP" >&5
6506 echo "${ECHO_T}$CP" >&6; }
6508 { echo "$as_me:$LINENO: result: no" >&5
6509 echo "${ECHO_T}no" >&6; }
6513 # Extract the first word of "date", so it can be a program name with args.
6514 set dummy date; ac_word=$2
6515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6517 if test "${ac_cv_path_DATE+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6532 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6544 DATE=$ac_cv_path_DATE
6545 if test -n "$DATE"; then
6546 { echo "$as_me:$LINENO: result: $DATE" >&5
6547 echo "${ECHO_T}$DATE" >&6; }
6549 { echo "$as_me:$LINENO: result: no" >&5
6550 echo "${ECHO_T}no" >&6; }
6554 # Extract the first word of "find", so it can be a program name with args.
6555 set dummy find; ac_word=$2
6556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6558 if test "${ac_cv_path_FIND+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 test -z "$as_dir" && as_dir=.
6571 for ac_exec_ext in '' $ac_executable_extensions; do
6572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6573 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6585 FIND=$ac_cv_path_FIND
6586 if test -n "$FIND"; then
6587 { echo "$as_me:$LINENO: result: $FIND" >&5
6588 echo "${ECHO_T}$FIND" >&6; }
6590 { echo "$as_me:$LINENO: result: no" >&5
6591 echo "${ECHO_T}no" >&6; }
6595 # Extract the first word of "grep", so it can be a program name with args.
6596 set dummy grep; ac_word=$2
6597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6599 if test "${ac_cv_path_GREP+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6614 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6626 GREP=$ac_cv_path_GREP
6627 if test -n "$GREP"; then
6628 { echo "$as_me:$LINENO: result: $GREP" >&5
6629 echo "${ECHO_T}$GREP" >&6; }
6631 { echo "$as_me:$LINENO: result: no" >&5
6632 echo "${ECHO_T}no" >&6; }
6636 # Extract the first word of "mkdir", so it can be a program name with args.
6637 set dummy mkdir; ac_word=$2
6638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6640 if test "${ac_cv_path_MKDIR+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6645 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
6654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6655 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6663 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6667 MKDIR=$ac_cv_path_MKDIR
6668 if test -n "$MKDIR"; then
6669 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6670 echo "${ECHO_T}$MKDIR" >&6; }
6672 { echo "$as_me:$LINENO: result: no" >&5
6673 echo "${ECHO_T}no" >&6; }
6677 # Extract the first word of "mv", so it can be a program name with args.
6678 set dummy mv; ac_word=$2
6679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681 if test "${ac_cv_path_MV+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6696 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6709 if test -n "$MV"; then
6710 { echo "$as_me:$LINENO: result: $MV" >&5
6711 echo "${ECHO_T}$MV" >&6; }
6713 { echo "$as_me:$LINENO: result: no" >&5
6714 echo "${ECHO_T}no" >&6; }
6718 if test -n "$ac_tool_prefix"; then
6719 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6720 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723 if test "${ac_cv_prog_RANLIB+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 if test -n "$RANLIB"; then
6727 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6736 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 RANLIB=$ac_cv_prog_RANLIB
6747 if test -n "$RANLIB"; then
6748 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6749 echo "${ECHO_T}$RANLIB" >&6; }
6751 { echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6; }
6757 if test -z "$ac_cv_prog_RANLIB"; then
6758 ac_ct_RANLIB=$RANLIB
6759 # Extract the first word of "ranlib", so it can be a program name with args.
6760 set dummy ranlib; ac_word=$2
6761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 if test -n "$ac_ct_RANLIB"; then
6767 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6776 ac_cv_prog_ac_ct_RANLIB="ranlib"
6777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6787 if test -n "$ac_ct_RANLIB"; then
6788 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6789 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6791 { echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6; }
6795 if test "x$ac_ct_RANLIB" = x; then
6798 case $cross_compiling:$ac_tool_warned in
6800 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6801 whose name does not start with the host triplet. If you think this
6802 configuration is useful to you, please write to autoconf@gnu.org." >&5
6803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6804 whose name does not start with the host triplet. If you think this
6805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6806 ac_tool_warned=yes ;;
6808 RANLIB=$ac_ct_RANLIB
6811 RANLIB="$ac_cv_prog_RANLIB"
6814 # Extract the first word of "rm", so it can be a program name with args.
6815 set dummy rm; ac_word=$2
6816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818 if test "${ac_cv_path_RM+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6833 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6846 if test -n "$RM"; then
6847 { echo "$as_me:$LINENO: result: $RM" >&5
6848 echo "${ECHO_T}$RM" >&6; }
6850 { echo "$as_me:$LINENO: result: no" >&5
6851 echo "${ECHO_T}no" >&6; }
6855 # Extract the first word of "sed", so it can be a program name with args.
6856 set dummy sed; ac_word=$2
6857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859 if test "${ac_cv_path_SED+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6874 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6887 if test -n "$SED"; then
6888 { echo "$as_me:$LINENO: result: $SED" >&5
6889 echo "${ECHO_T}$SED" >&6; }
6891 { echo "$as_me:$LINENO: result: no" >&5
6892 echo "${ECHO_T}no" >&6; }
6896 # Extract the first word of "tar", so it can be a program name with args.
6897 set dummy tar; ac_word=$2
6898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6900 if test "${ac_cv_path_TAR+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6905 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
6914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6915 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6928 if test -n "$TAR"; then
6929 { echo "$as_me:$LINENO: result: $TAR" >&5
6930 echo "${ECHO_T}$TAR" >&6; }
6932 { echo "$as_me:$LINENO: result: no" >&5
6933 echo "${ECHO_T}no" >&6; }
6937 # Extract the first word of "pwd", so it can be a program name with args.
6938 set dummy pwd; ac_word=$2
6939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6941 if test "${ac_cv_path_BINPWD+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6946 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6956 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6968 BINPWD=$ac_cv_path_BINPWD
6969 if test -n "$BINPWD"; then
6970 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6971 echo "${ECHO_T}$BINPWD" >&6; }
6973 { echo "$as_me:$LINENO: result: no" >&5
6974 echo "${ECHO_T}no" >&6; }
6979 # Extract the first word of "Graphviz", so it can be a program name with args.
6980 set dummy Graphviz; ac_word=$2
6981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6983 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 test -z "$as_dir" && as_dir=.
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6998 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7006 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7010 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7011 if test -n "$GRAPHVIZ"; then
7012 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7013 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7015 { echo "$as_me:$LINENO: result: no" >&5
7016 echo "${ECHO_T}no" >&6; }
7020 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7022 cat >>confdefs.h <<\_ACEOF
7023 #define HAVE_GRAPHVIZ 1
7026 if test "$llvm_cv_os_type" = "MingW" ; then
7027 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7030 cat >>confdefs.h <<_ACEOF
7031 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7035 # Extract the first word of "dot", so it can be a program name with args.
7036 set dummy dot; ac_word=$2
7037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7039 if test "${ac_cv_path_DOT+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7044 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051 test -z "$as_dir" && as_dir=.
7052 for ac_exec_ext in '' $ac_executable_extensions; do
7053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7054 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7062 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7067 if test -n "$DOT"; then
7068 { echo "$as_me:$LINENO: result: $DOT" >&5
7069 echo "${ECHO_T}$DOT" >&6; }
7071 { echo "$as_me:$LINENO: result: no" >&5
7072 echo "${ECHO_T}no" >&6; }
7076 if test "$DOT" != "echo dot" ; then
7078 cat >>confdefs.h <<\_ACEOF
7082 if test "$llvm_cv_os_type" = "MingW" ; then
7083 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7086 cat >>confdefs.h <<_ACEOF
7087 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7091 for ac_prog in gv gsview32
7093 # Extract the first word of "$ac_prog", so it can be a program name with args.
7094 set dummy $ac_prog; ac_word=$2
7095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7097 if test "${ac_cv_path_GV+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7102 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7112 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 if test -n "$GV"; then
7125 { echo "$as_me:$LINENO: result: $GV" >&5
7126 echo "${ECHO_T}$GV" >&6; }
7128 { echo "$as_me:$LINENO: result: no" >&5
7129 echo "${ECHO_T}no" >&6; }
7133 test -n "$GV" && break
7135 test -n "$GV" || GV="echo gv"
7137 if test "$GV" != "echo gv" ; then
7139 cat >>confdefs.h <<\_ACEOF
7143 if test "$llvm_cv_os_type" = "MingW" ; then
7144 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7147 cat >>confdefs.h <<_ACEOF
7148 #define LLVM_PATH_GV "$GV${EXEEXT}"
7152 # Extract the first word of "dotty", so it can be a program name with args.
7153 set dummy dotty; ac_word=$2
7154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7156 if test "${ac_cv_path_DOTTY+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
7170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7171 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7183 DOTTY=$ac_cv_path_DOTTY
7184 if test -n "$DOTTY"; then
7185 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7186 echo "${ECHO_T}$DOTTY" >&6; }
7188 { echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6; }
7193 if test "$DOTTY" != "echo dotty" ; then
7195 cat >>confdefs.h <<\_ACEOF
7196 #define HAVE_DOTTY 1
7199 if test "$llvm_cv_os_type" = "MingW" ; then
7200 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7203 cat >>confdefs.h <<_ACEOF
7204 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7210 # Extract the first word of "perl", so it can be a program name with args.
7211 set dummy perl; ac_word=$2
7212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7214 if test "${ac_cv_path_PERL+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226 test -z "$as_dir" && as_dir=.
7227 for ac_exec_ext in '' $ac_executable_extensions; do
7228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7229 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7241 PERL=$ac_cv_path_PERL
7242 if test -n "$PERL"; then
7243 { echo "$as_me:$LINENO: result: $PERL" >&5
7244 echo "${ECHO_T}$PERL" >&6; }
7246 { echo "$as_me:$LINENO: result: no" >&5
7247 echo "${ECHO_T}no" >&6; }
7251 if test "$PERL" != "none"; then
7252 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7253 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7254 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7255 { echo "$as_me:$LINENO: result: yes" >&5
7256 echo "${ECHO_T}yes" >&6; }
7259 { echo "$as_me:$LINENO: result: not found" >&5
7260 echo "${ECHO_T}not found" >&6; }
7265 if test x"$PERL" = xnone; then
7268 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7269 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7270 { (exit 1); exit 1; }; }
7276 # Find a good install program. We prefer a C program (faster),
7277 # so one script is as good as another. But avoid the broken or
7278 # incompatible versions:
7279 # SysV /etc/install, /usr/sbin/install
7280 # SunOS /usr/etc/install
7281 # IRIX /sbin/install
7283 # AmigaOS /C/install, which installs bootblocks on floppy discs
7284 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7285 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7286 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7287 # OS/2's system install, which has a completely different semantic
7288 # ./install, which can be erroneously created by make from ./install.sh.
7289 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7290 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7291 if test -z "$INSTALL"; then
7292 if test "${ac_cv_path_install+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 test -z "$as_dir" && as_dir=.
7300 # Account for people who put trailing slashes in PATH elements.
7302 ./ | .// | /cC/* | \
7303 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7304 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7307 # OSF1 and SCO ODT 3.0 have their own names for install.
7308 # Don't use installbsd from OSF since it installs stuff as root
7310 for ac_prog in ginstall scoinst install; do
7311 for ac_exec_ext in '' $ac_executable_extensions; do
7312 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7313 if test $ac_prog = install &&
7314 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7315 # AIX install. It has an incompatible calling convention.
7317 elif test $ac_prog = install &&
7318 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7319 # program-specific install script used by HP pwplus--don't use.
7322 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7335 if test "${ac_cv_path_install+set}" = set; then
7336 INSTALL=$ac_cv_path_install
7338 # As a last resort, use the slow shell script. Don't cache a
7339 # value for INSTALL within a source directory, because that will
7340 # break other packages using the cache if that directory is
7341 # removed, or if the value is a relative name.
7342 INSTALL=$ac_install_sh
7345 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7346 echo "${ECHO_T}$INSTALL" >&6; }
7348 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7349 # It thinks the first close brace ends the variable substitution.
7350 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7352 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7354 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7357 # Extract the first word of "bzip2", so it can be a program name with args.
7358 set dummy bzip2; ac_word=$2
7359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7361 if test "${ac_cv_path_BZIP2+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 test -z "$as_dir" && as_dir=.
7374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7376 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 BZIP2=$ac_cv_path_BZIP2
7388 if test -n "$BZIP2"; then
7389 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7390 echo "${ECHO_T}$BZIP2" >&6; }
7392 { echo "$as_me:$LINENO: result: no" >&5
7393 echo "${ECHO_T}no" >&6; }
7397 # Extract the first word of "doxygen", so it can be a program name with args.
7398 set dummy doxygen; ac_word=$2
7399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7401 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7406 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 test -z "$as_dir" && as_dir=.
7414 for ac_exec_ext in '' $ac_executable_extensions; do
7415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7416 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7427 DOXYGEN=$ac_cv_path_DOXYGEN
7428 if test -n "$DOXYGEN"; then
7429 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7430 echo "${ECHO_T}$DOXYGEN" >&6; }
7432 { echo "$as_me:$LINENO: result: no" >&5
7433 echo "${ECHO_T}no" >&6; }
7437 # Extract the first word of "groff", so it can be a program name with args.
7438 set dummy groff; ac_word=$2
7439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7441 if test "${ac_cv_path_GROFF+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7446 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 test -z "$as_dir" && as_dir=.
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7456 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 GROFF=$ac_cv_path_GROFF
7468 if test -n "$GROFF"; then
7469 { echo "$as_me:$LINENO: result: $GROFF" >&5
7470 echo "${ECHO_T}$GROFF" >&6; }
7472 { echo "$as_me:$LINENO: result: no" >&5
7473 echo "${ECHO_T}no" >&6; }
7477 # Extract the first word of "gzip", so it can be a program name with args.
7478 set dummy gzip; ac_word=$2
7479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7481 if test "${ac_cv_path_GZIP+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7486 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 test -z "$as_dir" && as_dir=.
7494 for ac_exec_ext in '' $ac_executable_extensions; do
7495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7496 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 GZIP=$ac_cv_path_GZIP
7508 if test -n "$GZIP"; then
7509 { echo "$as_me:$LINENO: result: $GZIP" >&5
7510 echo "${ECHO_T}$GZIP" >&6; }
7512 { echo "$as_me:$LINENO: result: no" >&5
7513 echo "${ECHO_T}no" >&6; }
7517 # Extract the first word of "pod2html", so it can be a program name with args.
7518 set dummy pod2html; ac_word=$2
7519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7521 if test "${ac_cv_path_POD2HTML+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7526 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533 test -z "$as_dir" && as_dir=.
7534 for ac_exec_ext in '' $ac_executable_extensions; do
7535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7536 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7547 POD2HTML=$ac_cv_path_POD2HTML
7548 if test -n "$POD2HTML"; then
7549 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7550 echo "${ECHO_T}$POD2HTML" >&6; }
7552 { echo "$as_me:$LINENO: result: no" >&5
7553 echo "${ECHO_T}no" >&6; }
7557 # Extract the first word of "pod2man", so it can be a program name with args.
7558 set dummy pod2man; ac_word=$2
7559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7561 if test "${ac_cv_path_POD2MAN+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7566 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 test -z "$as_dir" && as_dir=.
7574 for ac_exec_ext in '' $ac_executable_extensions; do
7575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7576 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7587 POD2MAN=$ac_cv_path_POD2MAN
7588 if test -n "$POD2MAN"; then
7589 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7590 echo "${ECHO_T}$POD2MAN" >&6; }
7592 { echo "$as_me:$LINENO: result: no" >&5
7593 echo "${ECHO_T}no" >&6; }
7597 # Extract the first word of "runtest", so it can be a program name with args.
7598 set dummy runtest; ac_word=$2
7599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7601 if test "${ac_cv_path_RUNTEST+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7616 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 RUNTEST=$ac_cv_path_RUNTEST
7628 if test -n "$RUNTEST"; then
7629 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7630 echo "${ECHO_T}$RUNTEST" >&6; }
7632 { echo "$as_me:$LINENO: result: no" >&5
7633 echo "${ECHO_T}no" >&6; }
7639 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7640 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7642 # Check whether --with-tclinclude was given.
7643 if test "${with_tclinclude+set}" = set; then
7644 withval=$with_tclinclude; with_tclinclude=${withval}
7649 if test "${ac_cv_path_tclsh+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 if test x"${with_tclinclude}" != x ; then
7654 if test -f ${with_tclinclude}/tclsh ; then
7655 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7656 elif test -f ${with_tclinclude}/src/tclsh ; then
7657 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7659 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7660 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7661 { (exit 1); exit 1; }; }
7665 if test x"${ac_cv_path_tclsh}" = x ; then
7666 { echo "$as_me:$LINENO: result: none" >&5
7667 echo "${ECHO_T}none" >&6; }
7668 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
7670 # Extract the first word of "$ac_prog", so it can be a program name with args.
7671 set dummy $ac_prog; ac_word=$2
7672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7674 if test "${ac_cv_path_TCLSH+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7679 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 test -z "$as_dir" && as_dir=.
7687 for ac_exec_ext in '' $ac_executable_extensions; do
7688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7689 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7700 TCLSH=$ac_cv_path_TCLSH
7701 if test -n "$TCLSH"; then
7702 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7703 echo "${ECHO_T}$TCLSH" >&6; }
7705 { echo "$as_me:$LINENO: result: no" >&5
7706 echo "${ECHO_T}no" >&6; }
7710 test -n "$TCLSH" && break
7713 if test x"${TCLSH}" = x ; then
7714 ac_cv_path_tclsh='';
7716 ac_cv_path_tclsh="${TCLSH}";
7719 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7720 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7721 TCLSH="${ac_cv_path_tclsh}"
7727 # Extract the first word of "zip", so it can be a program name with args.
7728 set dummy zip; ac_word=$2
7729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7731 if test "${ac_cv_path_ZIP+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7736 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7746 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7758 if test -n "$ZIP"; then
7759 { echo "$as_me:$LINENO: result: $ZIP" >&5
7760 echo "${ECHO_T}$ZIP" >&6; }
7762 { echo "$as_me:$LINENO: result: no" >&5
7763 echo "${ECHO_T}no" >&6; }
7767 for ac_prog in ocamlc
7769 # Extract the first word of "$ac_prog", so it can be a program name with args.
7770 set dummy $ac_prog; ac_word=$2
7771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7773 if test "${ac_cv_path_OCAMLC+set}" = set; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7778 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 test -z "$as_dir" && as_dir=.
7786 for ac_exec_ext in '' $ac_executable_extensions; do
7787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7788 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 OCAMLC=$ac_cv_path_OCAMLC
7800 if test -n "$OCAMLC"; then
7801 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7802 echo "${ECHO_T}$OCAMLC" >&6; }
7804 { echo "$as_me:$LINENO: result: no" >&5
7805 echo "${ECHO_T}no" >&6; }
7809 test -n "$OCAMLC" && break
7812 for ac_prog in ocamlopt
7814 # Extract the first word of "$ac_prog", so it can be a program name with args.
7815 set dummy $ac_prog; ac_word=$2
7816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7818 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
7823 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830 test -z "$as_dir" && as_dir=.
7831 for ac_exec_ext in '' $ac_executable_extensions; do
7832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7833 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 OCAMLOPT=$ac_cv_path_OCAMLOPT
7845 if test -n "$OCAMLOPT"; then
7846 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7847 echo "${ECHO_T}$OCAMLOPT" >&6; }
7849 { echo "$as_me:$LINENO: result: no" >&5
7850 echo "${ECHO_T}no" >&6; }
7854 test -n "$OCAMLOPT" && break
7857 for ac_prog in ocamldep
7859 # Extract the first word of "$ac_prog", so it can be a program name with args.
7860 set dummy $ac_prog; ac_word=$2
7861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7863 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7878 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7889 OCAMLDEP=$ac_cv_path_OCAMLDEP
7890 if test -n "$OCAMLDEP"; then
7891 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7892 echo "${ECHO_T}$OCAMLDEP" >&6; }
7894 { echo "$as_me:$LINENO: result: no" >&5
7895 echo "${ECHO_T}no" >&6; }
7899 test -n "$OCAMLDEP" && break
7902 for ac_prog in ocamldoc
7904 # Extract the first word of "$ac_prog", so it can be a program name with args.
7905 set dummy $ac_prog; ac_word=$2
7906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7908 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7923 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7934 OCAMLDOC=$ac_cv_path_OCAMLDOC
7935 if test -n "$OCAMLDOC"; then
7936 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7937 echo "${ECHO_T}$OCAMLDOC" >&6; }
7939 { echo "$as_me:$LINENO: result: no" >&5
7940 echo "${ECHO_T}no" >&6; }
7944 test -n "$OCAMLDOC" && break
7947 for ac_prog in gas as
7949 # Extract the first word of "$ac_prog", so it can be a program name with args.
7950 set dummy $ac_prog; ac_word=$2
7951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7953 if test "${ac_cv_path_GAS+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 test -z "$as_dir" && as_dir=.
7966 for ac_exec_ext in '' $ac_executable_extensions; do
7967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7968 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 if test -n "$GAS"; then
7981 { echo "$as_me:$LINENO: result: $GAS" >&5
7982 echo "${ECHO_T}$GAS" >&6; }
7984 { echo "$as_me:$LINENO: result: no" >&5
7985 echo "${ECHO_T}no" >&6; }
7989 test -n "$GAS" && break
7993 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7994 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7995 if test "${llvm_cv_link_use_r+set}" = set; then
7996 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 ac_cpp='$CPP $CPPFLAGS'
8000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8005 CFLAGS="$CFLAGS -Wl,-R."
8006 cat >conftest.$ac_ext <<_ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8016 int main() { return 0; }
8021 rm -f conftest.$ac_objext conftest$ac_exeext
8022 if { (ac_try="$ac_link"
8024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8025 *) ac_try_echo=$ac_try;;
8027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8028 (eval "$ac_link") 2>conftest.er1
8030 grep -v '^ *+' conftest.er1 >conftest.err
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8036 { (case "(($ac_try" in
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041 (eval "$ac_try") 2>&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; } &&
8045 { ac_try='test -s conftest$ac_exeext'
8046 { (case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_try") 2>&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
8055 llvm_cv_link_use_r=yes
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8060 llvm_cv_link_use_r=no
8063 rm -f core conftest.err conftest.$ac_objext \
8064 conftest$ac_exeext conftest.$ac_ext
8067 ac_cpp='$CPP $CPPFLAGS'
8068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8074 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8075 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8076 if test "$llvm_cv_link_use_r" = yes ; then
8078 cat >>confdefs.h <<\_ACEOF
8079 #define HAVE_LINK_R 1
8087 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8088 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8089 if test "${ac_cv_c_const+set}" = set; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8092 cat >conftest.$ac_ext <<_ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8102 /* FIXME: Include the comments suggested by Paul. */
8104 /* Ultrix mips cc rejects this. */
8105 typedef int charset[2];
8107 /* SunOS 4.1.1 cc rejects this. */
8108 char const *const *ccp;
8110 /* NEC SVR4.0.2 mips cc rejects this. */
8111 struct point {int x, y;};
8112 static struct point const zero = {0,0};
8113 /* AIX XL C 1.02.0.0 rejects this.
8114 It does not let you subtract one const X* pointer from another in
8115 an arm of an if-expression whose if-part is not a constant
8117 const char *g = "string";
8118 ccp = &g + (g ? g-g : 0);
8119 /* HPUX 7.0 cc rejects these. */
8122 ccp = (char const *const *) p;
8123 { /* SCO 3.2v4 cc rejects this. */
8125 char const *s = 0 ? (char *) 0 : (char const *) 0;
8130 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8132 const int *foo = &x[0];
8135 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8136 typedef const int *iptr;
8140 { /* AIX XL C 1.02.0.0 rejects this saying
8141 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8142 struct s { int j; const int *ap[3]; };
8143 struct s *b; b->j = 5;
8145 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8149 return !x[0] && !zero.x;
8156 rm -f conftest.$ac_objext
8157 if { (ac_try="$ac_compile"
8159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160 *) ac_try_echo=$ac_try;;
8162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163 (eval "$ac_compile") 2>conftest.er1
8165 grep -v '^ *+' conftest.er1 >conftest.err
8167 cat conftest.err >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } &&
8170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8171 { (case "(($ac_try" in
8172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173 *) ac_try_echo=$ac_try;;
8175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176 (eval "$ac_try") 2>&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; } &&
8180 { ac_try='test -s conftest.$ac_objext'
8181 { (case "(($ac_try" in
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_try") 2>&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8201 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8202 if test $ac_cv_c_const = no; then
8204 cat >>confdefs.h <<\_ACEOF
8216 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8217 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8218 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8219 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 cat >conftest.$ac_ext <<_ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8229 #include <sys/types.h>
8241 rm -f conftest.$ac_objext
8242 if { (ac_try="$ac_compile"
8244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8245 *) ac_try_echo=$ac_try;;
8247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8248 (eval "$ac_compile") 2>conftest.er1
8250 grep -v '^ *+' conftest.er1 >conftest.err
8252 cat conftest.err >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } &&
8255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8256 { (case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_try") 2>&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; } &&
8265 { ac_try='test -s conftest.$ac_objext'
8266 { (case "(($ac_try" in
8267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268 *) ac_try_echo=$ac_try;;
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_try") 2>&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; }; then
8275 eval "$as_ac_Header=yes"
8277 echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8280 eval "$as_ac_Header=no"
8283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8285 ac_res=`eval echo '${'$as_ac_Header'}'`
8286 { echo "$as_me:$LINENO: result: $ac_res" >&5
8287 echo "${ECHO_T}$ac_res" >&6; }
8288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8289 cat >>confdefs.h <<_ACEOF
8290 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8293 ac_header_dirent=$ac_hdr; break
8297 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8298 if test $ac_header_dirent = dirent.h; then
8299 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8300 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8301 if test "${ac_cv_search_opendir+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 ac_func_search_save_LIBS=$LIBS
8305 cat >conftest.$ac_ext <<_ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h. */
8312 /* Override any GCC internal prototype to avoid an error.
8313 Use char because int might match the return type of a GCC
8314 builtin and then its argument prototype would still apply. */
8327 for ac_lib in '' dir; do
8328 if test -z "$ac_lib"; then
8329 ac_res="none required"
8332 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8334 rm -f conftest.$ac_objext conftest$ac_exeext
8335 if { (ac_try="$ac_link"
8337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338 *) ac_try_echo=$ac_try;;
8340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8341 (eval "$ac_link") 2>conftest.er1
8343 grep -v '^ *+' conftest.er1 >conftest.err
8345 cat conftest.err >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } &&
8348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8349 { (case "(($ac_try" in
8350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_try") 2>&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; } &&
8358 { ac_try='test -s conftest$ac_exeext'
8359 { (case "(($ac_try" in
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_try") 2>&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; }; then
8368 ac_cv_search_opendir=$ac_res
8370 echo "$as_me: failed program was:" >&5
8371 sed 's/^/| /' conftest.$ac_ext >&5
8376 rm -f core conftest.err conftest.$ac_objext \
8378 if test "${ac_cv_search_opendir+set}" = set; then
8382 if test "${ac_cv_search_opendir+set}" = set; then
8385 ac_cv_search_opendir=no
8388 LIBS=$ac_func_search_save_LIBS
8390 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8391 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8392 ac_res=$ac_cv_search_opendir
8393 if test "$ac_res" != no; then
8394 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8399 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8400 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8401 if test "${ac_cv_search_opendir+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 ac_func_search_save_LIBS=$LIBS
8405 cat >conftest.$ac_ext <<_ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h. */
8412 /* Override any GCC internal prototype to avoid an error.
8413 Use char because int might match the return type of a GCC
8414 builtin and then its argument prototype would still apply. */
8427 for ac_lib in '' x; do
8428 if test -z "$ac_lib"; then
8429 ac_res="none required"
8432 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8434 rm -f conftest.$ac_objext conftest$ac_exeext
8435 if { (ac_try="$ac_link"
8437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8438 *) ac_try_echo=$ac_try;;
8440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8441 (eval "$ac_link") 2>conftest.er1
8443 grep -v '^ *+' conftest.er1 >conftest.err
8445 cat conftest.err >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } &&
8448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8449 { (case "(($ac_try" in
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454 (eval "$ac_try") 2>&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; } &&
8458 { ac_try='test -s conftest$ac_exeext'
8459 { (case "(($ac_try" in
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464 (eval "$ac_try") 2>&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8468 ac_cv_search_opendir=$ac_res
8470 echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8476 rm -f core conftest.err conftest.$ac_objext \
8478 if test "${ac_cv_search_opendir+set}" = set; then
8482 if test "${ac_cv_search_opendir+set}" = set; then
8485 ac_cv_search_opendir=no
8488 LIBS=$ac_func_search_save_LIBS
8490 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8491 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8492 ac_res=$ac_cv_search_opendir
8493 if test "$ac_res" != no; then
8494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8501 for ac_header in dlfcn.h
8503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8510 ac_res=`eval echo '${'$as_ac_Header'}'`
8511 { echo "$as_me:$LINENO: result: $ac_res" >&5
8512 echo "${ECHO_T}$ac_res" >&6; }
8514 # Is the header compilable?
8515 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8517 cat >conftest.$ac_ext <<_ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8523 $ac_includes_default
8524 #include <$ac_header>
8526 rm -f conftest.$ac_objext
8527 if { (ac_try="$ac_compile"
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_compile") 2>conftest.er1
8535 grep -v '^ *+' conftest.er1 >conftest.err
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } &&
8540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8541 { (case "(($ac_try" in
8542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543 *) ac_try_echo=$ac_try;;
8545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546 (eval "$ac_try") 2>&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); }; } &&
8550 { ac_try='test -s conftest.$ac_objext'
8551 { (case "(($ac_try" in
8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556 (eval "$ac_try") 2>&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; }; then
8560 ac_header_compiler=yes
8562 echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.$ac_ext >&5
8565 ac_header_compiler=no
8568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8570 echo "${ECHO_T}$ac_header_compiler" >&6; }
8572 # Is the header present?
8573 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8575 cat >conftest.$ac_ext <<_ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h. */
8581 #include <$ac_header>
8583 if { (ac_try="$ac_cpp conftest.$ac_ext"
8585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586 *) ac_try_echo=$ac_try;;
8588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8591 grep -v '^ *+' conftest.er1 >conftest.err
8593 cat conftest.err >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } >/dev/null; then
8596 if test -s conftest.err; then
8597 ac_cpp_err=$ac_c_preproc_warn_flag
8598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8605 if test -z "$ac_cpp_err"; then
8606 ac_header_preproc=yes
8608 echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8611 ac_header_preproc=no
8614 rm -f conftest.err conftest.$ac_ext
8615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8616 echo "${ECHO_T}$ac_header_preproc" >&6; }
8618 # So? What about this header?
8619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8622 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8624 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8625 ac_header_preproc=yes
8628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8631 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8632 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8633 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8634 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8635 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8638 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8639 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8641 ## ----------------------------------- ##
8642 ## Report this to llvmbugs@cs.uiuc.edu ##
8643 ## ----------------------------------- ##
8645 ) | sed "s/^/$as_me: WARNING: /" >&2
8648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8653 eval "$as_ac_Header=\$ac_header_preproc"
8655 ac_res=`eval echo '${'$as_ac_Header'}'`
8656 { echo "$as_me:$LINENO: result: $ac_res" >&5
8657 echo "${ECHO_T}$ac_res" >&6; }
8660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8661 cat >>confdefs.h <<_ACEOF
8662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8669 # Check whether --enable-ltdl-install was given.
8670 if test "${enable_ltdl_install+set}" = set; then
8671 enableval=$enable_ltdl_install;
8677 if test x"${enable_ltdl_install-no}" != xno; then
8679 INSTALL_LTDL_FALSE='#'
8681 INSTALL_LTDL_TRUE='#'
8687 if test x"${enable_ltdl_convenience-no}" != xno; then
8688 CONVENIENCE_LTDL_TRUE=
8689 CONVENIENCE_LTDL_FALSE='#'
8691 CONVENIENCE_LTDL_TRUE='#'
8692 CONVENIENCE_LTDL_FALSE=
8696 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8697 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8699 libname_spec='lib$name'
8707 shlibpath_overrides_runpath=unknown
8709 dynamic_linker="$host_os ld.so"
8710 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8711 if test "$GCC" = yes; then
8712 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8713 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8714 # if the path contains ";" then we assume it to be the separator
8715 # otherwise default to the standard path separator (i.e. ":") - it is
8716 # assumed that no part of a normal pathname contains ";" but that should
8717 # okay in the real world where ";" in dirpaths is itself problematic.
8718 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8723 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8725 need_lib_prefix=unknown
8726 hardcode_into_libs=no
8728 # when you set need_version to no, make sure it does not cause -set_version
8729 # flags to be left without arguments
8730 need_version=unknown
8735 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8736 shlibpath_var=LIBPATH
8738 # AIX 3 has no versioning support, so we append a major version to the name.
8739 soname_spec='${libname}${release}${shared_ext}$major'
8746 hardcode_into_libs=yes
8747 if test "$host_cpu" = ia64; then
8748 # AIX 5 supports IA64
8749 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8750 shlibpath_var=LD_LIBRARY_PATH
8752 # With GCC up to 2.95.x, collect2 would create an import file
8753 # for dependence libraries. The import file would start with
8754 # the line `#! .'. This would cause the generated library to
8755 # depend on `.', always an invalid library. This was fixed in
8756 # development snapshots of GCC prior to 3.0.
8758 aix4 | aix4.[01] | aix4.[01].*)
8759 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8761 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8768 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8769 # soname into executable. Probably we can add versioning support to
8770 # collect2, so additional links can be useful in future.
8771 if test "$aix_use_runtimelinking" = yes; then
8772 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8773 # instead of lib<name>.a to let people know that these are not
8774 # typical AIX shared libraries.
8775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8777 # We preserve .a as extension for shared libraries through AIX4.2
8778 # and later when we are not doing run time linking.
8779 library_names_spec='${libname}${release}.a $libname.a'
8780 soname_spec='${libname}${release}${shared_ext}$major'
8782 shlibpath_var=LIBPATH
8787 library_names_spec='$libname.ixlibrary $libname.a'
8788 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8789 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'
8793 library_names_spec='${libname}${shared_ext}'
8794 dynamic_linker="$host_os ld.so"
8795 shlibpath_var=LIBRARY_PATH
8801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8802 soname_spec='${libname}${release}${shared_ext}$major'
8803 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8804 shlibpath_var=LD_LIBRARY_PATH
8805 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8806 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8807 # the default ld.so.conf also contains /usr/contrib/lib and
8808 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8809 # libtool to hard-code these into programs
8812 cygwin* | mingw* | pw32*)
8813 version_type=windows
8818 case $GCC,$host_os in
8819 yes,cygwin* | yes,mingw* | yes,pw32*)
8820 library_names_spec='$libname.dll.a'
8821 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8822 postinstall_cmds='base_file=`basename \${file}`~
8823 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8824 dldir=$destdir/`dirname \$dlpath`~
8825 test -d \$dldir || mkdir -p \$dldir~
8826 $install_prog $dir/$dlname \$dldir/$dlname~
8827 chmod a+x \$dldir/$dlname'
8828 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8829 dlpath=$dir/\$dldll~
8831 shlibpath_overrides_runpath=yes
8835 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8836 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8837 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8840 # MinGW DLLs use traditional 'lib' prefix
8841 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8842 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8843 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8844 # It is most probably a Windows format PATH printed by
8845 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8846 # path with ; separators, and with drive letters. We can handle the
8847 # drive letters (cygwin fileutils understands them), so leave them,
8848 # especially as we might pass files found there to a mingw objdump,
8849 # which wouldn't understand a cygwinified path. Ahh.
8850 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8852 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8856 # pw32 DLLs use 'pw' prefix rather than 'lib'
8857 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8863 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8866 dynamic_linker='Win32 ld.exe'
8867 # FIXME: first we should search . and the directory the executable is in
8871 darwin* | rhapsody*)
8872 dynamic_linker="$host_os dyld"
8876 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8877 soname_spec='${libname}${release}${major}$shared_ext'
8878 shlibpath_overrides_runpath=yes
8879 shlibpath_var=DYLD_LIBRARY_PATH
8880 shrext_cmds='.dylib'
8881 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8882 if test "$GCC" = yes; then
8883 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"`
8885 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8887 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8895 soname_spec='${libname}${release}${shared_ext}$major'
8896 shlibpath_var=LD_LIBRARY_PATH
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8908 soname_spec='${libname}${release}${shared_ext}$major'
8909 shlibpath_var=LD_LIBRARY_PATH
8910 shlibpath_overrides_runpath=no
8911 hardcode_into_libs=yes
8912 dynamic_linker='GNU ld.so'
8915 freebsd* | dragonfly*)
8916 # DragonFly does not have aout. When/if they implement a new
8917 # versioning mechanism, adjust this.
8918 if test -x /usr/bin/objformat; then
8919 objformat=`/usr/bin/objformat`
8922 freebsd[123]*) objformat=aout ;;
8926 version_type=freebsd-$objformat
8927 case $version_type in
8929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8934 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8938 shlibpath_var=LD_LIBRARY_PATH
8941 shlibpath_overrides_runpath=yes
8943 freebsd3.[01]* | freebsdelf3.[01]*)
8944 shlibpath_overrides_runpath=yes
8945 hardcode_into_libs=yes
8947 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8948 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8949 shlibpath_overrides_runpath=no
8950 hardcode_into_libs=yes
8952 freebsd*) # from 4.6 on
8953 shlibpath_overrides_runpath=yes
8954 hardcode_into_libs=yes
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8964 soname_spec='${libname}${release}${shared_ext}$major'
8965 shlibpath_var=LD_LIBRARY_PATH
8966 hardcode_into_libs=yes
8969 hpux9* | hpux10* | hpux11*)
8970 # Give a soname corresponding to the major version so that dld.sl refuses to
8971 # link against other versions.
8978 hardcode_into_libs=yes
8979 dynamic_linker="$host_os dld.so"
8980 shlibpath_var=LD_LIBRARY_PATH
8981 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8983 soname_spec='${libname}${release}${shared_ext}$major'
8984 if test "X$HPUX_IA64_MODE" = X32; then
8985 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8987 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8989 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8993 hardcode_into_libs=yes
8994 dynamic_linker="$host_os dld.sl"
8995 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9000 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9004 dynamic_linker="$host_os dld.sl"
9005 shlibpath_var=SHLIB_PATH
9006 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008 soname_spec='${libname}${release}${shared_ext}$major'
9011 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9012 postinstall_cmds='chmod 555 $lib'
9019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9020 soname_spec='${libname}${release}${shared_ext}$major'
9021 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9022 shlibpath_var=LD_LIBRARY_PATH
9023 shlibpath_overrides_runpath=no
9024 hardcode_into_libs=yes
9027 irix5* | irix6* | nonstopux*)
9029 nonstopux*) version_type=nonstopux ;;
9031 if test "$lt_cv_prog_gnu_ld" = yes; then
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9042 irix5* | nonstopux*)
9046 case $LD in # libtool.m4 will add one of these switches to LD
9047 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9048 libsuff= shlibsuff= libmagic=32-bit;;
9049 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9050 libsuff=32 shlibsuff=N32 libmagic=N32;;
9051 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9052 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9053 *) libsuff= shlibsuff= libmagic=never-match;;
9057 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9058 shlibpath_overrides_runpath=no
9059 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9060 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9061 hardcode_into_libs=yes
9064 # No shared lib support for Linux oldld, aout, or coff.
9065 linux*oldld* | linux*aout* | linux*coff*)
9069 # This must be Linux ELF.
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9075 soname_spec='${libname}${release}${shared_ext}$major'
9076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9077 shlibpath_var=LD_LIBRARY_PATH
9078 shlibpath_overrides_runpath=no
9079 # This implies no fast_install, which is unacceptable.
9080 # Some rework will be needed to allow for fast_install
9081 # before this can be enabled.
9082 hardcode_into_libs=yes
9084 # Append ld.so.conf contents to the search path
9085 if test -f /etc/ld.so.conf; then
9086 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' ' '`
9087 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9090 # We used to test for /lib/ld.so.1 and disable shared libraries on
9091 # powerpc, because MkLinux only supported shared libraries with the
9092 # GNU dynamic linker. Since this was broken with cross compilers,
9093 # most powerpc-linux boxes support dynamic linking these days and
9094 # people can always --disable-shared, the test was removed, and we
9095 # assume the GNU/Linux dynamic linker is in use.
9096 dynamic_linker='GNU/Linux ld.so'
9103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9104 soname_spec='${libname}${release}${shared_ext}$major'
9105 shlibpath_var=LD_LIBRARY_PATH
9106 shlibpath_overrides_runpath=no
9107 hardcode_into_libs=yes
9108 dynamic_linker='GNU ld.so'
9115 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9118 dynamic_linker='NetBSD (a.out) ld.so'
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9121 soname_spec='${libname}${release}${shared_ext}$major'
9122 dynamic_linker='NetBSD ld.elf_so'
9124 shlibpath_var=LD_LIBRARY_PATH
9125 shlibpath_overrides_runpath=yes
9126 hardcode_into_libs=yes
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132 shlibpath_var=LD_LIBRARY_PATH
9133 shlibpath_overrides_runpath=yes
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141 soname_spec='${libname}${release}${shared_ext}$major'
9142 shlibpath_var=LD_LIBRARY_PATH
9143 shlibpath_overrides_runpath=yes
9148 sys_lib_dlsearch_path_spec="/usr/lib"
9150 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9152 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9153 *) need_version=no ;;
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9157 shlibpath_var=LD_LIBRARY_PATH
9158 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9160 openbsd2.[89] | openbsd2.[89].*)
9161 shlibpath_overrides_runpath=no
9164 shlibpath_overrides_runpath=yes
9168 shlibpath_overrides_runpath=yes
9173 libname_spec='$name'
9176 library_names_spec='$libname${shared_ext} $libname.a'
9177 dynamic_linker='OS/2 ld.exe'
9178 shlibpath_var=LIBPATH
9181 osf3* | osf4* | osf5*)
9185 soname_spec='${libname}${release}${shared_ext}$major'
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187 shlibpath_var=LD_LIBRARY_PATH
9188 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9189 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9197 soname_spec='${libname}${release}${shared_ext}$major'
9198 shlibpath_var=LD_LIBRARY_PATH
9199 shlibpath_overrides_runpath=yes
9200 hardcode_into_libs=yes
9201 # ldd complains unless libraries are executable
9202 postinstall_cmds='chmod +x $lib'
9207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9208 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9209 shlibpath_var=LD_LIBRARY_PATH
9210 shlibpath_overrides_runpath=yes
9211 if test "$with_gnu_ld" = yes; then
9219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9220 soname_spec='${libname}${release}${shared_ext}$major'
9221 shlibpath_var=LD_LIBRARY_PATH
9222 case $host_vendor in
9224 shlibpath_overrides_runpath=no
9226 export_dynamic_flag_spec='${wl}-Blargedynsym'
9227 runpath_var=LD_RUN_PATH
9235 shlibpath_overrides_runpath=no
9236 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9242 if test -d /usr/nec ;then
9244 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9245 soname_spec='$libname${shared_ext}.$major'
9246 shlibpath_var=LD_LIBRARY_PATH
9250 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9251 version_type=freebsd-elf
9254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9255 soname_spec='${libname}${release}${shared_ext}$major'
9256 shlibpath_var=LD_LIBRARY_PATH
9257 hardcode_into_libs=yes
9258 if test "$with_gnu_ld" = yes; then
9259 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9260 shlibpath_overrides_runpath=no
9262 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9263 shlibpath_overrides_runpath=yes
9266 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9270 sys_lib_dlsearch_path_spec='/usr/lib'
9275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9276 soname_spec='${libname}${release}${shared_ext}$major'
9277 shlibpath_var=LD_LIBRARY_PATH
9284 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9285 echo "${ECHO_T}$dynamic_linker" >&6; }
9286 test "$dynamic_linker" = no && can_build_shared=no
9288 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9289 if test "$GCC" = yes; then
9290 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9294 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9295 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9296 if test "${libltdl_cv_shlibext+set}" = set; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9301 eval libltdl_cv_shlibext=$shrext_cmds
9304 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9305 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9306 if test -n "$libltdl_cv_shlibext"; then
9308 cat >>confdefs.h <<_ACEOF
9309 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9315 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9316 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9317 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 libltdl_cv_shlibpath_var="$shlibpath_var"
9322 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9323 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9324 if test -n "$libltdl_cv_shlibpath_var"; then
9326 cat >>confdefs.h <<_ACEOF
9327 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9333 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9334 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9335 if test "${libltdl_cv_sys_search_path+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
9338 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9340 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9341 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9342 if test -n "$libltdl_cv_sys_search_path"; then
9344 for dir in $libltdl_cv_sys_search_path; do
9345 if test -z "$sys_search_path"; then
9346 sys_search_path="$dir"
9348 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9352 cat >>confdefs.h <<_ACEOF
9353 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9358 { echo "$as_me:$LINENO: checking for objdir" >&5
9359 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9360 if test "${libltdl_cv_objdir+set}" = set; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
9363 libltdl_cv_objdir="$objdir"
9364 if test -n "$objdir"; then
9367 rm -f .libs 2>/dev/null
9368 mkdir .libs 2>/dev/null
9369 if test -d .libs; then
9370 libltdl_cv_objdir=.libs
9372 # MS-DOS does not allow filenames that begin with a dot.
9373 libltdl_cv_objdir=_libs
9375 rmdir .libs 2>/dev/null
9379 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9380 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9382 cat >>confdefs.h <<_ACEOF
9383 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9391 # Check for command to grab the raw symbol name followed by C symbol from nm.
9392 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9393 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9394 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9395 echo $ECHO_N "(cached) $ECHO_C" >&6
9398 # These are sane defaults that work on at least a few old systems.
9399 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9401 # Character class describing NM global symbol codes.
9402 symcode='[BCDEGRST]'
9404 # Regexp to match symbols that can be accessed directly from C.
9405 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9407 # Transform an extracted symbol line into a proper C declaration
9408 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9410 # Transform an extracted symbol line into symbol name and symbol address
9411 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'"
9413 # Define system-specific variables.
9418 cygwin* | mingw* | pw32*)
9419 symcode='[ABCDGISTW]'
9421 hpux*) # Its linker distinguishes data from code symbols
9422 if test "$host_cpu" = ia64; then
9423 symcode='[ABCDEGRST]'
9425 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9426 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'"
9429 if test "$host_cpu" = ia64; then
9430 symcode='[ABCDGIRSTW]'
9431 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9432 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9436 symcode='[BCDEGRST]'
9439 symcode='[BCDEGQRST]'
9450 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9458 # Handle CRLF in mingw tool chain
9462 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9466 # If we're using GNU nm, then use its standard symbol codes.
9467 case `$NM -V 2>&1` in
9468 *GNU* | *'with BFD'*)
9469 symcode='[ABCDGIRSTW]' ;;
9472 # Try without a prefix undercore, then with it.
9473 for ac_symprfx in "" "_"; do
9475 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9476 symxfrm="\\1 $ac_symprfx\\2 \\2"
9478 # Write the raw and C identifiers.
9479 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9481 # Check to see that the pipe works correctly.
9485 cat > conftest.$ac_ext <<EOF
9490 void nm_test_func(){}
9494 int main(){nm_test_var='a';nm_test_func();return(0);}
9497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9498 (eval $ac_compile) 2>&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; then
9502 # Now try to grab the symbols.
9504 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9505 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } && test -s "$nlist"; then
9509 # Try sorting and uniquifying the output.
9510 if sort "$nlist" | uniq > "$nlist"T; then
9511 mv -f "$nlist"T "$nlist"
9516 # Make sure that we snagged all the symbols we need.
9517 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9518 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9519 cat <<EOF > conftest.$ac_ext
9525 # Now generate the symbol file.
9526 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9528 cat <<EOF >> conftest.$ac_ext
9529 #if defined (__STDC__) && __STDC__
9530 # define lt_ptr_t void *
9532 # define lt_ptr_t char *
9536 /* The mapping between symbol names and symbols. */
9541 lt_preloaded_symbols[] =
9544 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9545 cat <<\EOF >> conftest.$ac_ext
9553 # Now try linking the two files.
9554 mv conftest.$ac_objext conftstm.$ac_objext
9555 lt_save_LIBS="$LIBS"
9556 lt_save_CFLAGS="$CFLAGS"
9557 LIBS="conftstm.$ac_objext"
9558 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9560 (eval $ac_link) 2>&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9566 LIBS="$lt_save_LIBS"
9567 CFLAGS="$lt_save_CFLAGS"
9569 echo "cannot find nm_test_func in $nlist" >&5
9572 echo "cannot find nm_test_var in $nlist" >&5
9575 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9578 echo "$progname: failed program was:" >&5
9579 cat conftest.$ac_ext >&5
9581 rm -f conftest* conftst*
9583 # Do not use the global_symbol_pipe unless it works.
9584 if test "$pipe_works" = yes; then
9587 lt_cv_sys_global_symbol_pipe=
9593 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9594 lt_cv_sys_global_symbol_to_cdecl=
9596 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9597 { echo "$as_me:$LINENO: result: failed" >&5
9598 echo "${ECHO_T}failed" >&6; }
9600 { echo "$as_me:$LINENO: result: ok" >&5
9601 echo "${ECHO_T}ok" >&6; }
9605 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9606 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9607 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9611 libltdl_cv_preloaded_symbols=yes
9613 libltdl_cv_preloaded_symbols=no
9617 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9618 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9619 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9621 cat >>confdefs.h <<\_ACEOF
9622 #define HAVE_PRELOADED_SYMBOLS 1
9630 ac_cpp='$CPP $CPPFLAGS'
9631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9636 { echo "$as_me:$LINENO: checking for shl_load" >&5
9637 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9638 if test "${ac_cv_func_shl_load+set}" = set; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
9641 cat >conftest.$ac_ext <<_ACEOF
9644 cat confdefs.h >>conftest.$ac_ext
9645 cat >>conftest.$ac_ext <<_ACEOF
9646 /* end confdefs.h. */
9647 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9649 #define shl_load innocuous_shl_load
9651 /* System header to define __stub macros and hopefully few prototypes,
9652 which can conflict with char shl_load (); below.
9653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9654 <limits.h> exists even on freestanding compilers. */
9657 # include <limits.h>
9659 # include <assert.h>
9664 /* Override any GCC internal prototype to avoid an error.
9665 Use char because int might match the return type of a GCC
9666 builtin and then its argument prototype would still apply. */
9671 /* The GNU C library defines this for functions which it implements
9672 to always fail with ENOSYS. Some functions are actually named
9673 something starting with __ and the normal name is an alias. */
9674 #if defined __stub_shl_load || defined __stub___shl_load
9686 rm -f conftest.$ac_objext conftest$ac_exeext
9687 if { (ac_try="$ac_link"
9689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690 *) ac_try_echo=$ac_try;;
9692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693 (eval "$ac_link") 2>conftest.er1
9695 grep -v '^ *+' conftest.er1 >conftest.err
9697 cat conftest.err >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } &&
9700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9701 { (case "(($ac_try" in
9702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703 *) ac_try_echo=$ac_try;;
9705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9706 (eval "$ac_try") 2>&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); }; } &&
9710 { ac_try='test -s conftest$ac_exeext'
9711 { (case "(($ac_try" in
9712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9713 *) ac_try_echo=$ac_try;;
9715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9716 (eval "$ac_try") 2>&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; }; then
9720 ac_cv_func_shl_load=yes
9722 echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9725 ac_cv_func_shl_load=no
9728 rm -f core conftest.err conftest.$ac_objext \
9729 conftest$ac_exeext conftest.$ac_ext
9731 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9732 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9733 if test $ac_cv_func_shl_load = yes; then
9735 cat >>confdefs.h <<\_ACEOF
9736 #define HAVE_SHL_LOAD 1
9740 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9741 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9742 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9745 ac_check_lib_save_LIBS=$LIBS
9747 cat >conftest.$ac_ext <<_ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9754 /* Override any GCC internal prototype to avoid an error.
9755 Use char because int might match the return type of a GCC
9756 builtin and then its argument prototype would still apply. */
9769 rm -f conftest.$ac_objext conftest$ac_exeext
9770 if { (ac_try="$ac_link"
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_link") 2>conftest.er1
9778 grep -v '^ *+' conftest.er1 >conftest.err
9780 cat conftest.err >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } &&
9783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9784 { (case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_try") 2>&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; } &&
9793 { ac_try='test -s conftest$ac_exeext'
9794 { (case "(($ac_try" in
9795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796 *) ac_try_echo=$ac_try;;
9798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799 (eval "$ac_try") 2>&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; }; then
9803 ac_cv_lib_dld_shl_load=yes
9805 echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9808 ac_cv_lib_dld_shl_load=no
9811 rm -f core conftest.err conftest.$ac_objext \
9812 conftest$ac_exeext conftest.$ac_ext
9813 LIBS=$ac_check_lib_save_LIBS
9815 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9816 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9817 if test $ac_cv_lib_dld_shl_load = yes; then
9819 cat >>confdefs.h <<\_ACEOF
9820 #define HAVE_SHL_LOAD 1
9823 LIBADD_DL="$LIBADD_DL -ldld"
9825 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9826 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9827 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9830 ac_check_lib_save_LIBS=$LIBS
9832 cat >conftest.$ac_ext <<_ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9839 /* Override any GCC internal prototype to avoid an error.
9840 Use char because int might match the return type of a GCC
9841 builtin and then its argument prototype would still apply. */
9854 rm -f conftest.$ac_objext conftest$ac_exeext
9855 if { (ac_try="$ac_link"
9857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858 *) ac_try_echo=$ac_try;;
9860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861 (eval "$ac_link") 2>conftest.er1
9863 grep -v '^ *+' conftest.er1 >conftest.err
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } &&
9868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9869 { (case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_try") 2>&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; } &&
9878 { ac_try='test -s conftest$ac_exeext'
9879 { (case "(($ac_try" in
9880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881 *) ac_try_echo=$ac_try;;
9883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9884 (eval "$ac_try") 2>&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; }; then
9888 ac_cv_lib_dl_dlopen=yes
9890 echo "$as_me: failed program was:" >&5
9891 sed 's/^/| /' conftest.$ac_ext >&5
9893 ac_cv_lib_dl_dlopen=no
9896 rm -f core conftest.err conftest.$ac_objext \
9897 conftest$ac_exeext conftest.$ac_ext
9898 LIBS=$ac_check_lib_save_LIBS
9900 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9901 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9902 if test $ac_cv_lib_dl_dlopen = yes; then
9904 cat >>confdefs.h <<\_ACEOF
9905 #define HAVE_LIBDL 1
9908 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9910 cat >conftest.$ac_ext <<_ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9928 rm -f conftest.$ac_objext conftest$ac_exeext
9929 if { (ac_try="$ac_link"
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935 (eval "$ac_link") 2>conftest.er1
9937 grep -v '^ *+' conftest.er1 >conftest.err
9939 cat conftest.err >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } &&
9942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9943 { (case "(($ac_try" in
9944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9945 *) ac_try_echo=$ac_try;;
9947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9948 (eval "$ac_try") 2>&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); }; } &&
9952 { ac_try='test -s conftest$ac_exeext'
9953 { (case "(($ac_try" in
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958 (eval "$ac_try") 2>&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9963 cat >>confdefs.h <<\_ACEOF
9964 #define HAVE_LIBDL 1
9966 libltdl_cv_func_dlopen="yes"
9968 echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9971 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9972 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9973 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 ac_check_lib_save_LIBS=$LIBS
9978 cat >conftest.$ac_ext <<_ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9985 /* Override any GCC internal prototype to avoid an error.
9986 Use char because int might match the return type of a GCC
9987 builtin and then its argument prototype would still apply. */
10000 rm -f conftest.$ac_objext conftest$ac_exeext
10001 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
10009 grep -v '^ *+' conftest.er1 >conftest.err
10011 cat conftest.err >&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } &&
10014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10015 { (case "(($ac_try" in
10016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017 *) ac_try_echo=$ac_try;;
10019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020 (eval "$ac_try") 2>&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }; } &&
10024 { ac_try='test -s conftest$ac_exeext'
10025 { (case "(($ac_try" in
10026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027 *) ac_try_echo=$ac_try;;
10029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030 (eval "$ac_try") 2>&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
10034 ac_cv_lib_svld_dlopen=yes
10036 echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10039 ac_cv_lib_svld_dlopen=no
10042 rm -f core conftest.err conftest.$ac_objext \
10043 conftest$ac_exeext conftest.$ac_ext
10044 LIBS=$ac_check_lib_save_LIBS
10046 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10047 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10048 if test $ac_cv_lib_svld_dlopen = yes; then
10050 cat >>confdefs.h <<\_ACEOF
10051 #define HAVE_LIBDL 1
10054 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10056 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10057 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10058 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10061 ac_check_lib_save_LIBS=$LIBS
10063 cat >conftest.$ac_ext <<_ACEOF
10066 cat confdefs.h >>conftest.$ac_ext
10067 cat >>conftest.$ac_ext <<_ACEOF
10068 /* end confdefs.h. */
10070 /* Override any GCC internal prototype to avoid an error.
10071 Use char because int might match the return type of a GCC
10072 builtin and then its argument prototype would still apply. */
10080 return dld_link ();
10085 rm -f conftest.$ac_objext conftest$ac_exeext
10086 if { (ac_try="$ac_link"
10087 case "(($ac_try" in
10088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089 *) ac_try_echo=$ac_try;;
10091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092 (eval "$ac_link") 2>conftest.er1
10094 grep -v '^ *+' conftest.er1 >conftest.err
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } &&
10099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10100 { (case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_try") 2>&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; } &&
10109 { ac_try='test -s conftest$ac_exeext'
10110 { (case "(($ac_try" in
10111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112 *) ac_try_echo=$ac_try;;
10114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115 (eval "$ac_try") 2>&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; }; then
10119 ac_cv_lib_dld_dld_link=yes
10121 echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.$ac_ext >&5
10124 ac_cv_lib_dld_dld_link=no
10127 rm -f core conftest.err conftest.$ac_objext \
10128 conftest$ac_exeext conftest.$ac_ext
10129 LIBS=$ac_check_lib_save_LIBS
10131 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10132 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10133 if test $ac_cv_lib_dld_dld_link = yes; then
10135 cat >>confdefs.h <<\_ACEOF
10139 LIBADD_DL="$LIBADD_DL -ldld"
10141 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10142 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10143 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10146 cat >conftest.$ac_ext <<_ACEOF
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h. */
10152 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10154 #define _dyld_func_lookup innocuous__dyld_func_lookup
10156 /* System header to define __stub macros and hopefully few prototypes,
10157 which can conflict with char _dyld_func_lookup (); below.
10158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10159 <limits.h> exists even on freestanding compilers. */
10162 # include <limits.h>
10164 # include <assert.h>
10167 #undef _dyld_func_lookup
10169 /* Override any GCC internal prototype to avoid an error.
10170 Use char because int might match the return type of a GCC
10171 builtin and then its argument prototype would still apply. */
10175 char _dyld_func_lookup ();
10176 /* The GNU C library defines this for functions which it implements
10177 to always fail with ENOSYS. Some functions are actually named
10178 something starting with __ and the normal name is an alias. */
10179 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10186 return _dyld_func_lookup ();
10191 rm -f conftest.$ac_objext conftest$ac_exeext
10192 if { (ac_try="$ac_link"
10193 case "(($ac_try" in
10194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195 *) ac_try_echo=$ac_try;;
10197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198 (eval "$ac_link") 2>conftest.er1
10200 grep -v '^ *+' conftest.er1 >conftest.err
10202 cat conftest.err >&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } &&
10205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10206 { (case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_try") 2>&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; } &&
10215 { ac_try='test -s conftest$ac_exeext'
10216 { (case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221 (eval "$ac_try") 2>&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; }; then
10225 ac_cv_func__dyld_func_lookup=yes
10227 echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10230 ac_cv_func__dyld_func_lookup=no
10233 rm -f core conftest.err conftest.$ac_objext \
10234 conftest$ac_exeext conftest.$ac_ext
10236 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10237 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10238 if test $ac_cv_func__dyld_func_lookup = yes; then
10240 cat >>confdefs.h <<\_ACEOF
10241 #define HAVE_DYLD 1
10255 rm -f core conftest.err conftest.$ac_objext \
10256 conftest$ac_exeext conftest.$ac_ext
10267 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10269 lt_save_LIBS="$LIBS"
10270 LIBS="$LIBS $LIBADD_DL"
10272 for ac_func in dlerror
10274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 cat >conftest.$ac_ext <<_ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h. */
10286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10288 #define $ac_func innocuous_$ac_func
10290 /* System header to define __stub macros and hopefully few prototypes,
10291 which can conflict with char $ac_func (); below.
10292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10293 <limits.h> exists even on freestanding compilers. */
10296 # include <limits.h>
10298 # include <assert.h>
10303 /* Override any GCC internal prototype to avoid an error.
10304 Use char because int might match the return type of a GCC
10305 builtin and then its argument prototype would still apply. */
10310 /* The GNU C library defines this for functions which it implements
10311 to always fail with ENOSYS. Some functions are actually named
10312 something starting with __ and the normal name is an alias. */
10313 #if defined __stub_$ac_func || defined __stub___$ac_func
10320 return $ac_func ();
10325 rm -f conftest.$ac_objext conftest$ac_exeext
10326 if { (ac_try="$ac_link"
10327 case "(($ac_try" in
10328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332 (eval "$ac_link") 2>conftest.er1
10334 grep -v '^ *+' conftest.er1 >conftest.err
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } &&
10339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10340 { (case "(($ac_try" in
10341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342 *) ac_try_echo=$ac_try;;
10344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345 (eval "$ac_try") 2>&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); }; } &&
10349 { ac_try='test -s conftest$ac_exeext'
10350 { (case "(($ac_try" in
10351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352 *) ac_try_echo=$ac_try;;
10354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355 (eval "$ac_try") 2>&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); }; }; then
10359 eval "$as_ac_var=yes"
10361 echo "$as_me: failed program was:" >&5
10362 sed 's/^/| /' conftest.$ac_ext >&5
10364 eval "$as_ac_var=no"
10367 rm -f core conftest.err conftest.$ac_objext \
10368 conftest$ac_exeext conftest.$ac_ext
10370 ac_res=`eval echo '${'$as_ac_var'}'`
10371 { echo "$as_me:$LINENO: result: $ac_res" >&5
10372 echo "${ECHO_T}$ac_res" >&6; }
10373 if test `eval echo '${'$as_ac_var'}'` = yes; then
10374 cat >>confdefs.h <<_ACEOF
10375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10381 LIBS="$lt_save_LIBS"
10384 ac_cpp='$CPP $CPPFLAGS'
10385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10391 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10392 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10393 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10394 echo $ECHO_N "(cached) $ECHO_C" >&6
10396 ac_cv_sys_symbol_underscore=no
10397 cat > conftest.$ac_ext <<EOF
10398 void nm_test_func(){}
10399 int main(){nm_test_func;return 0;}
10401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10402 (eval $ac_compile) 2>&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); }; then
10406 # Now try to grab the symbols.
10407 ac_nlist=conftest.nm
10408 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10409 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); } && test -s "$ac_nlist"; then
10413 # See whether the symbols have a leading underscore.
10414 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10415 ac_cv_sys_symbol_underscore=yes
10417 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10420 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10424 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10427 echo "configure: failed program was:" >&5
10433 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10434 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10437 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10438 if test x"$libltdl_cv_func_dlopen" = xyes ||
10439 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10440 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10441 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10442 if test "${libltdl_cv_need_uscore+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10445 libltdl_cv_need_uscore=unknown
10447 LIBS="$LIBS $LIBADD_DL"
10448 if test "$cross_compiling" = yes; then :
10449 libltdl_cv_need_uscore=cross
10451 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10452 lt_status=$lt_dlunknown
10453 cat > conftest.$ac_ext <<EOF
10454 #line 10454 "configure"
10455 #include "confdefs.h"
10464 # define LT_DLGLOBAL RTLD_GLOBAL
10467 # define LT_DLGLOBAL DL_GLOBAL
10469 # define LT_DLGLOBAL 0
10473 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10474 find out it does not work in some platform. */
10475 #ifndef LT_DLLAZY_OR_NOW
10477 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10480 # define LT_DLLAZY_OR_NOW DL_LAZY
10483 # define LT_DLLAZY_OR_NOW RTLD_NOW
10486 # define LT_DLLAZY_OR_NOW DL_NOW
10488 # define LT_DLLAZY_OR_NOW 0
10496 extern "C" void exit (int);
10499 void fnord() { int i=42;}
10502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10503 int status = $lt_dlunknown;
10507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10508 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10509 /* dlclose (self); */
10517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10518 (eval $ac_link) 2>&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10522 (./conftest; exit; ) >&5 2>/dev/null
10524 case x$lt_status in
10525 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10526 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10527 x$lt_dlunknown|x*) ;;
10530 # compilation failed
10539 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10540 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10544 if test x"$libltdl_cv_need_uscore" = xyes; then
10546 cat >>confdefs.h <<\_ACEOF
10547 #define NEED_USCORE 1
10553 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10554 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10555 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10556 echo $ECHO_N "(cached) $ECHO_C" >&6
10558 # PORTME does your system automatically load deplibs for dlopen?
10559 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10560 # For now, we just catch OSes we know something about -- in the
10561 # future, we'll try test this programmatically.
10562 libltdl_cv_sys_dlopen_deplibs=unknown
10564 aix3*|aix4.1.*|aix4.2.*)
10565 # Unknown whether this is true for these versions of AIX, but
10566 # we want this `case' here to explicitly catch those versions.
10567 libltdl_cv_sys_dlopen_deplibs=unknown
10570 libltdl_cv_sys_dlopen_deplibs=yes
10573 # Assuming the user has installed a libdl from somewhere, this is true
10574 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10575 libltdl_cv_sys_dlopen_deplibs=yes
10577 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10578 # GNU and its variants, using gnu ld.so (Glibc)
10579 libltdl_cv_sys_dlopen_deplibs=yes
10582 libltdl_cv_sys_dlopen_deplibs=yes
10585 libltdl_cv_sys_dlopen_deplibs=yes
10587 irix[12345]*|irix6.[01]*)
10588 # Catch all versions of IRIX before 6.2, and indicate that we don't
10589 # know how it worked for any of those versions.
10590 libltdl_cv_sys_dlopen_deplibs=unknown
10593 # The case above catches anything before 6.2, and it's known that
10594 # at 6.2 and later dlopen does load deplibs.
10595 libltdl_cv_sys_dlopen_deplibs=yes
10598 libltdl_cv_sys_dlopen_deplibs=yes
10601 libltdl_cv_sys_dlopen_deplibs=yes
10604 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10605 # it did *not* use an RPATH in a shared library to find objects the
10606 # library depends on, so we explictly say `no'.
10607 libltdl_cv_sys_dlopen_deplibs=no
10609 osf5.0|osf5.0a|osf5.1)
10610 # dlopen *does* load deplibs and with the right loader patch applied
10611 # it even uses RPATH in a shared library to search for shared objects
10612 # that the library depends on, but there's no easy way to know if that
10613 # patch is installed. Since this is the case, all we can really
10614 # say is unknown -- it depends on the patch being installed. If
10615 # it is, this changes to `yes'. Without it, it would be `no'.
10616 libltdl_cv_sys_dlopen_deplibs=unknown
10619 # the two cases above should catch all versions of osf <= 5.1. Read
10620 # the comments above for what we know about them.
10621 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10622 # is used to find them so we can finally say `yes'.
10623 libltdl_cv_sys_dlopen_deplibs=yes
10626 libltdl_cv_sys_dlopen_deplibs=yes
10628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10629 libltdl_cv_sys_dlopen_deplibs=yes
10634 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10635 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10636 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10638 cat >>confdefs.h <<\_ACEOF
10639 #define LTDL_DLOPEN_DEPLIBS 1
10645 for ac_header in argz.h
10647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6
10654 ac_res=`eval echo '${'$as_ac_Header'}'`
10655 { echo "$as_me:$LINENO: result: $ac_res" >&5
10656 echo "${ECHO_T}$ac_res" >&6; }
10658 # Is the header compilable?
10659 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10661 cat >conftest.$ac_ext <<_ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10667 $ac_includes_default
10668 #include <$ac_header>
10670 rm -f conftest.$ac_objext
10671 if { (ac_try="$ac_compile"
10672 case "(($ac_try" in
10673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674 *) ac_try_echo=$ac_try;;
10676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10677 (eval "$ac_compile") 2>conftest.er1
10679 grep -v '^ *+' conftest.er1 >conftest.err
10681 cat conftest.err >&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); } &&
10684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10685 { (case "(($ac_try" in
10686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687 *) ac_try_echo=$ac_try;;
10689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10690 (eval "$ac_try") 2>&5
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); }; } &&
10694 { ac_try='test -s conftest.$ac_objext'
10695 { (case "(($ac_try" in
10696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10697 *) ac_try_echo=$ac_try;;
10699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10700 (eval "$ac_try") 2>&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; }; then
10704 ac_header_compiler=yes
10706 echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.$ac_ext >&5
10709 ac_header_compiler=no
10712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10714 echo "${ECHO_T}$ac_header_compiler" >&6; }
10716 # Is the header present?
10717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10719 cat >conftest.$ac_ext <<_ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10725 #include <$ac_header>
10727 if { (ac_try="$ac_cpp conftest.$ac_ext"
10728 case "(($ac_try" in
10729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730 *) ac_try_echo=$ac_try;;
10732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10735 grep -v '^ *+' conftest.er1 >conftest.err
10737 cat conftest.err >&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); } >/dev/null; then
10740 if test -s conftest.err; then
10741 ac_cpp_err=$ac_c_preproc_warn_flag
10742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10749 if test -z "$ac_cpp_err"; then
10750 ac_header_preproc=yes
10752 echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10755 ac_header_preproc=no
10758 rm -f conftest.err conftest.$ac_ext
10759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10760 echo "${ECHO_T}$ac_header_preproc" >&6; }
10762 # So? What about this header?
10763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10769 ac_header_preproc=yes
10772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10775 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10779 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10785 ## ----------------------------------- ##
10786 ## Report this to llvmbugs@cs.uiuc.edu ##
10787 ## ----------------------------------- ##
10789 ) | sed "s/^/$as_me: WARNING: /" >&2
10792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10797 eval "$as_ac_Header=\$ac_header_preproc"
10799 ac_res=`eval echo '${'$as_ac_Header'}'`
10800 { echo "$as_me:$LINENO: result: $ac_res" >&5
10801 echo "${ECHO_T}$ac_res" >&6; }
10804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10805 cat >>confdefs.h <<_ACEOF
10806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10814 { echo "$as_me:$LINENO: checking for error_t" >&5
10815 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10816 if test "${ac_cv_type_error_t+set}" = set; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 cat >conftest.$ac_ext <<_ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h. */
10829 typedef error_t ac__type_new_;
10833 if ((ac__type_new_ *) 0)
10835 if (sizeof (ac__type_new_))
10841 rm -f conftest.$ac_objext
10842 if { (ac_try="$ac_compile"
10843 case "(($ac_try" in
10844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845 *) ac_try_echo=$ac_try;;
10847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10848 (eval "$ac_compile") 2>conftest.er1
10850 grep -v '^ *+' conftest.er1 >conftest.err
10852 cat conftest.err >&5
10853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); } &&
10855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10856 { (case "(($ac_try" in
10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858 *) ac_try_echo=$ac_try;;
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_try") 2>&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; } &&
10865 { ac_try='test -s conftest.$ac_objext'
10866 { (case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_try") 2>&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; }; then
10875 ac_cv_type_error_t=yes
10877 echo "$as_me: failed program was:" >&5
10878 sed 's/^/| /' conftest.$ac_ext >&5
10880 ac_cv_type_error_t=no
10883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10885 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10886 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10887 if test $ac_cv_type_error_t = yes; then
10889 cat >>confdefs.h <<_ACEOF
10890 #define HAVE_ERROR_T 1
10896 cat >>confdefs.h <<\_ACEOF
10897 #define error_t int
10908 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10911 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10913 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10916 cat >conftest.$ac_ext <<_ACEOF
10919 cat confdefs.h >>conftest.$ac_ext
10920 cat >>conftest.$ac_ext <<_ACEOF
10921 /* end confdefs.h. */
10922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10924 #define $ac_func innocuous_$ac_func
10926 /* System header to define __stub macros and hopefully few prototypes,
10927 which can conflict with char $ac_func (); below.
10928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10929 <limits.h> exists even on freestanding compilers. */
10932 # include <limits.h>
10934 # include <assert.h>
10939 /* Override any GCC internal prototype to avoid an error.
10940 Use char because int might match the return type of a GCC
10941 builtin and then its argument prototype would still apply. */
10946 /* The GNU C library defines this for functions which it implements
10947 to always fail with ENOSYS. Some functions are actually named
10948 something starting with __ and the normal name is an alias. */
10949 #if defined __stub_$ac_func || defined __stub___$ac_func
10956 return $ac_func ();
10961 rm -f conftest.$ac_objext conftest$ac_exeext
10962 if { (ac_try="$ac_link"
10963 case "(($ac_try" in
10964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10965 *) ac_try_echo=$ac_try;;
10967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10968 (eval "$ac_link") 2>conftest.er1
10970 grep -v '^ *+' conftest.er1 >conftest.err
10972 cat conftest.err >&5
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); } &&
10975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10976 { (case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;;
10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981 (eval "$ac_try") 2>&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; } &&
10985 { ac_try='test -s conftest$ac_exeext'
10986 { (case "(($ac_try" in
10987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988 *) ac_try_echo=$ac_try;;
10990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991 (eval "$ac_try") 2>&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); }; }; then
10995 eval "$as_ac_var=yes"
10997 echo "$as_me: failed program was:" >&5
10998 sed 's/^/| /' conftest.$ac_ext >&5
11000 eval "$as_ac_var=no"
11003 rm -f core conftest.err conftest.$ac_objext \
11004 conftest$ac_exeext conftest.$ac_ext
11006 ac_res=`eval echo '${'$as_ac_var'}'`
11007 { echo "$as_me:$LINENO: result: $ac_res" >&5
11008 echo "${ECHO_T}$ac_res" >&6; }
11009 if test `eval echo '${'$as_ac_var'}'` = yes; then
11010 cat >>confdefs.h <<_ACEOF
11011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11044 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11052 echo $ECHO_N "(cached) $ECHO_C" >&6
11054 ac_res=`eval echo '${'$as_ac_Header'}'`
11055 { echo "$as_me:$LINENO: result: $ac_res" >&5
11056 echo "${ECHO_T}$ac_res" >&6; }
11058 # Is the header compilable?
11059 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11061 cat >conftest.$ac_ext <<_ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h. */
11067 $ac_includes_default
11068 #include <$ac_header>
11070 rm -f conftest.$ac_objext
11071 if { (ac_try="$ac_compile"
11072 case "(($ac_try" in
11073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074 *) ac_try_echo=$ac_try;;
11076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077 (eval "$ac_compile") 2>conftest.er1
11079 grep -v '^ *+' conftest.er1 >conftest.err
11081 cat conftest.err >&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } &&
11084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11085 { (case "(($ac_try" in
11086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087 *) ac_try_echo=$ac_try;;
11089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090 (eval "$ac_try") 2>&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; } &&
11094 { ac_try='test -s conftest.$ac_objext'
11095 { (case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100 (eval "$ac_try") 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; }; then
11104 ac_header_compiler=yes
11106 echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.$ac_ext >&5
11109 ac_header_compiler=no
11112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11114 echo "${ECHO_T}$ac_header_compiler" >&6; }
11116 # Is the header present?
11117 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11119 cat >conftest.$ac_ext <<_ACEOF
11122 cat confdefs.h >>conftest.$ac_ext
11123 cat >>conftest.$ac_ext <<_ACEOF
11124 /* end confdefs.h. */
11125 #include <$ac_header>
11127 if { (ac_try="$ac_cpp conftest.$ac_ext"
11128 case "(($ac_try" in
11129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11130 *) ac_try_echo=$ac_try;;
11132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11135 grep -v '^ *+' conftest.er1 >conftest.err
11137 cat conftest.err >&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); } >/dev/null; then
11140 if test -s conftest.err; then
11141 ac_cpp_err=$ac_c_preproc_warn_flag
11142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11149 if test -z "$ac_cpp_err"; then
11150 ac_header_preproc=yes
11152 echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11155 ac_header_preproc=no
11158 rm -f conftest.err conftest.$ac_ext
11159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11160 echo "${ECHO_T}$ac_header_preproc" >&6; }
11162 # So? What about this header?
11163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11169 ac_header_preproc=yes
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11179 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11185 ## ----------------------------------- ##
11186 ## Report this to llvmbugs@cs.uiuc.edu ##
11187 ## ----------------------------------- ##
11189 ) | sed "s/^/$as_me: WARNING: /" >&2
11192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11197 eval "$as_ac_Header=\$ac_header_preproc"
11199 ac_res=`eval echo '${'$as_ac_Header'}'`
11200 { echo "$as_me:$LINENO: result: $ac_res" >&5
11201 echo "${ECHO_T}$ac_res" >&6; }
11204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11205 cat >>confdefs.h <<_ACEOF
11206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11217 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11226 ac_res=`eval echo '${'$as_ac_Header'}'`
11227 { echo "$as_me:$LINENO: result: $ac_res" >&5
11228 echo "${ECHO_T}$ac_res" >&6; }
11230 # Is the header compilable?
11231 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11233 cat >conftest.$ac_ext <<_ACEOF
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h. */
11239 $ac_includes_default
11240 #include <$ac_header>
11242 rm -f conftest.$ac_objext
11243 if { (ac_try="$ac_compile"
11244 case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249 (eval "$ac_compile") 2>conftest.er1
11251 grep -v '^ *+' conftest.er1 >conftest.err
11253 cat conftest.err >&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } &&
11256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11257 { (case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_try") 2>&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; } &&
11266 { ac_try='test -s conftest.$ac_objext'
11267 { (case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_try") 2>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; }; then
11276 ac_header_compiler=yes
11278 echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11281 ac_header_compiler=no
11284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11286 echo "${ECHO_T}$ac_header_compiler" >&6; }
11288 # Is the header present?
11289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11291 cat >conftest.$ac_ext <<_ACEOF
11294 cat confdefs.h >>conftest.$ac_ext
11295 cat >>conftest.$ac_ext <<_ACEOF
11296 /* end confdefs.h. */
11297 #include <$ac_header>
11299 if { (ac_try="$ac_cpp conftest.$ac_ext"
11300 case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11307 grep -v '^ *+' conftest.er1 >conftest.err
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } >/dev/null; then
11312 if test -s conftest.err; then
11313 ac_cpp_err=$ac_c_preproc_warn_flag
11314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11321 if test -z "$ac_cpp_err"; then
11322 ac_header_preproc=yes
11324 echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11327 ac_header_preproc=no
11330 rm -f conftest.err conftest.$ac_ext
11331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11332 echo "${ECHO_T}$ac_header_preproc" >&6; }
11334 # So? What about this header?
11335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11341 ac_header_preproc=yes
11344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11357 ## ----------------------------------- ##
11358 ## Report this to llvmbugs@cs.uiuc.edu ##
11359 ## ----------------------------------- ##
11361 ) | sed "s/^/$as_me: WARNING: /" >&2
11364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11369 eval "$as_ac_Header=\$ac_header_preproc"
11371 ac_res=`eval echo '${'$as_ac_Header'}'`
11372 { echo "$as_me:$LINENO: result: $ac_res" >&5
11373 echo "${ECHO_T}$ac_res" >&6; }
11376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11377 cat >>confdefs.h <<_ACEOF
11378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11387 for ac_header in string.h strings.h
11389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11396 ac_res=`eval echo '${'$as_ac_Header'}'`
11397 { echo "$as_me:$LINENO: result: $ac_res" >&5
11398 echo "${ECHO_T}$ac_res" >&6; }
11400 # Is the header compilable?
11401 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11403 cat >conftest.$ac_ext <<_ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h. */
11409 $ac_includes_default
11410 #include <$ac_header>
11412 rm -f conftest.$ac_objext
11413 if { (ac_try="$ac_compile"
11414 case "(($ac_try" in
11415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11416 *) ac_try_echo=$ac_try;;
11418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11419 (eval "$ac_compile") 2>conftest.er1
11421 grep -v '^ *+' conftest.er1 >conftest.err
11423 cat conftest.err >&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } &&
11426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11427 { (case "(($ac_try" in
11428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429 *) ac_try_echo=$ac_try;;
11431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432 (eval "$ac_try") 2>&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; } &&
11436 { ac_try='test -s conftest.$ac_objext'
11437 { (case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_try") 2>&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; }; then
11446 ac_header_compiler=yes
11448 echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11451 ac_header_compiler=no
11454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11456 echo "${ECHO_T}$ac_header_compiler" >&6; }
11458 # Is the header present?
11459 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11461 cat >conftest.$ac_ext <<_ACEOF
11464 cat confdefs.h >>conftest.$ac_ext
11465 cat >>conftest.$ac_ext <<_ACEOF
11466 /* end confdefs.h. */
11467 #include <$ac_header>
11469 if { (ac_try="$ac_cpp conftest.$ac_ext"
11470 case "(($ac_try" in
11471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11472 *) ac_try_echo=$ac_try;;
11474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11477 grep -v '^ *+' conftest.er1 >conftest.err
11479 cat conftest.err >&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); } >/dev/null; then
11482 if test -s conftest.err; then
11483 ac_cpp_err=$ac_c_preproc_warn_flag
11484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11491 if test -z "$ac_cpp_err"; then
11492 ac_header_preproc=yes
11494 echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11497 ac_header_preproc=no
11500 rm -f conftest.err conftest.$ac_ext
11501 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11502 echo "${ECHO_T}$ac_header_preproc" >&6; }
11504 # So? What about this header?
11505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11510 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11511 ac_header_preproc=yes
11514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11517 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11518 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11519 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11520 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11521 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11525 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11527 ## ----------------------------------- ##
11528 ## Report this to llvmbugs@cs.uiuc.edu ##
11529 ## ----------------------------------- ##
11531 ) | sed "s/^/$as_me: WARNING: /" >&2
11534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
11539 eval "$as_ac_Header=\$ac_header_preproc"
11541 ac_res=`eval echo '${'$as_ac_Header'}'`
11542 { echo "$as_me:$LINENO: result: $ac_res" >&5
11543 echo "${ECHO_T}$ac_res" >&6; }
11546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11547 cat >>confdefs.h <<_ACEOF
11548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11558 for ac_func in strchr index
11560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11566 cat >conftest.$ac_ext <<_ACEOF
11569 cat confdefs.h >>conftest.$ac_ext
11570 cat >>conftest.$ac_ext <<_ACEOF
11571 /* end confdefs.h. */
11572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11574 #define $ac_func innocuous_$ac_func
11576 /* System header to define __stub macros and hopefully few prototypes,
11577 which can conflict with char $ac_func (); below.
11578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11579 <limits.h> exists even on freestanding compilers. */
11582 # include <limits.h>
11584 # include <assert.h>
11589 /* Override any GCC internal prototype to avoid an error.
11590 Use char because int might match the return type of a GCC
11591 builtin and then its argument prototype would still apply. */
11596 /* The GNU C library defines this for functions which it implements
11597 to always fail with ENOSYS. Some functions are actually named
11598 something starting with __ and the normal name is an alias. */
11599 #if defined __stub_$ac_func || defined __stub___$ac_func
11606 return $ac_func ();
11611 rm -f conftest.$ac_objext conftest$ac_exeext
11612 if { (ac_try="$ac_link"
11613 case "(($ac_try" in
11614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615 *) ac_try_echo=$ac_try;;
11617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618 (eval "$ac_link") 2>conftest.er1
11620 grep -v '^ *+' conftest.er1 >conftest.err
11622 cat conftest.err >&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } &&
11625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11626 { (case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631 (eval "$ac_try") 2>&5
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; } &&
11635 { ac_try='test -s conftest$ac_exeext'
11636 { (case "(($ac_try" in
11637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11638 *) ac_try_echo=$ac_try;;
11640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11641 (eval "$ac_try") 2>&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; }; then
11645 eval "$as_ac_var=yes"
11647 echo "$as_me: failed program was:" >&5
11648 sed 's/^/| /' conftest.$ac_ext >&5
11650 eval "$as_ac_var=no"
11653 rm -f core conftest.err conftest.$ac_objext \
11654 conftest$ac_exeext conftest.$ac_ext
11656 ac_res=`eval echo '${'$as_ac_var'}'`
11657 { echo "$as_me:$LINENO: result: $ac_res" >&5
11658 echo "${ECHO_T}$ac_res" >&6; }
11659 if test `eval echo '${'$as_ac_var'}'` = yes; then
11660 cat >>confdefs.h <<_ACEOF
11661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11669 for ac_func in strrchr rindex
11671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11675 echo $ECHO_N "(cached) $ECHO_C" >&6
11677 cat >conftest.$ac_ext <<_ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h. */
11683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11685 #define $ac_func innocuous_$ac_func
11687 /* System header to define __stub macros and hopefully few prototypes,
11688 which can conflict with char $ac_func (); below.
11689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11690 <limits.h> exists even on freestanding compilers. */
11693 # include <limits.h>
11695 # include <assert.h>
11700 /* Override any GCC internal prototype to avoid an error.
11701 Use char because int might match the return type of a GCC
11702 builtin and then its argument prototype would still apply. */
11707 /* The GNU C library defines this for functions which it implements
11708 to always fail with ENOSYS. Some functions are actually named
11709 something starting with __ and the normal name is an alias. */
11710 #if defined __stub_$ac_func || defined __stub___$ac_func
11717 return $ac_func ();
11722 rm -f conftest.$ac_objext conftest$ac_exeext
11723 if { (ac_try="$ac_link"
11724 case "(($ac_try" in
11725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726 *) ac_try_echo=$ac_try;;
11728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11729 (eval "$ac_link") 2>conftest.er1
11731 grep -v '^ *+' conftest.er1 >conftest.err
11733 cat conftest.err >&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } &&
11736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11737 { (case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742 (eval "$ac_try") 2>&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }; } &&
11746 { ac_try='test -s conftest$ac_exeext'
11747 { (case "(($ac_try" in
11748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749 *) ac_try_echo=$ac_try;;
11751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752 (eval "$ac_try") 2>&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); }; }; then
11756 eval "$as_ac_var=yes"
11758 echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11761 eval "$as_ac_var=no"
11764 rm -f core conftest.err conftest.$ac_objext \
11765 conftest$ac_exeext conftest.$ac_ext
11767 ac_res=`eval echo '${'$as_ac_var'}'`
11768 { echo "$as_me:$LINENO: result: $ac_res" >&5
11769 echo "${ECHO_T}$ac_res" >&6; }
11770 if test `eval echo '${'$as_ac_var'}'` = yes; then
11771 cat >>confdefs.h <<_ACEOF
11772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11780 for ac_func in memcpy bcopy
11782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11783 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11786 echo $ECHO_N "(cached) $ECHO_C" >&6
11788 cat >conftest.$ac_ext <<_ACEOF
11791 cat confdefs.h >>conftest.$ac_ext
11792 cat >>conftest.$ac_ext <<_ACEOF
11793 /* end confdefs.h. */
11794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11796 #define $ac_func innocuous_$ac_func
11798 /* System header to define __stub macros and hopefully few prototypes,
11799 which can conflict with char $ac_func (); below.
11800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11801 <limits.h> exists even on freestanding compilers. */
11804 # include <limits.h>
11806 # include <assert.h>
11811 /* Override any GCC internal prototype to avoid an error.
11812 Use char because int might match the return type of a GCC
11813 builtin and then its argument prototype would still apply. */
11818 /* The GNU C library defines this for functions which it implements
11819 to always fail with ENOSYS. Some functions are actually named
11820 something starting with __ and the normal name is an alias. */
11821 #if defined __stub_$ac_func || defined __stub___$ac_func
11828 return $ac_func ();
11833 rm -f conftest.$ac_objext conftest$ac_exeext
11834 if { (ac_try="$ac_link"
11835 case "(($ac_try" in
11836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837 *) ac_try_echo=$ac_try;;
11839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840 (eval "$ac_link") 2>conftest.er1
11842 grep -v '^ *+' conftest.er1 >conftest.err
11844 cat conftest.err >&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } &&
11847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11848 { (case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_try") 2>&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); }; } &&
11857 { ac_try='test -s conftest$ac_exeext'
11858 { (case "(($ac_try" in
11859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860 *) ac_try_echo=$ac_try;;
11862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11863 (eval "$ac_try") 2>&5
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; }; then
11867 eval "$as_ac_var=yes"
11869 echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.$ac_ext >&5
11872 eval "$as_ac_var=no"
11875 rm -f core conftest.err conftest.$ac_objext \
11876 conftest$ac_exeext conftest.$ac_ext
11878 ac_res=`eval echo '${'$as_ac_var'}'`
11879 { echo "$as_me:$LINENO: result: $ac_res" >&5
11880 echo "${ECHO_T}$ac_res" >&6; }
11881 if test `eval echo '${'$as_ac_var'}'` = yes; then
11882 cat >>confdefs.h <<_ACEOF
11883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11891 for ac_func in memmove strcmp
11893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 cat >conftest.$ac_ext <<_ACEOF
11902 cat confdefs.h >>conftest.$ac_ext
11903 cat >>conftest.$ac_ext <<_ACEOF
11904 /* end confdefs.h. */
11905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11907 #define $ac_func innocuous_$ac_func
11909 /* System header to define __stub macros and hopefully few prototypes,
11910 which can conflict with char $ac_func (); below.
11911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11912 <limits.h> exists even on freestanding compilers. */
11915 # include <limits.h>
11917 # include <assert.h>
11922 /* Override any GCC internal prototype to avoid an error.
11923 Use char because int might match the return type of a GCC
11924 builtin and then its argument prototype would still apply. */
11929 /* The GNU C library defines this for functions which it implements
11930 to always fail with ENOSYS. Some functions are actually named
11931 something starting with __ and the normal name is an alias. */
11932 #if defined __stub_$ac_func || defined __stub___$ac_func
11939 return $ac_func ();
11944 rm -f conftest.$ac_objext conftest$ac_exeext
11945 if { (ac_try="$ac_link"
11946 case "(($ac_try" in
11947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948 *) ac_try_echo=$ac_try;;
11950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11951 (eval "$ac_link") 2>conftest.er1
11953 grep -v '^ *+' conftest.er1 >conftest.err
11955 cat conftest.err >&5
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); } &&
11958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11959 { (case "(($ac_try" in
11960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961 *) ac_try_echo=$ac_try;;
11963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11964 (eval "$ac_try") 2>&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); }; } &&
11968 { ac_try='test -s conftest$ac_exeext'
11969 { (case "(($ac_try" in
11970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971 *) ac_try_echo=$ac_try;;
11973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974 (eval "$ac_try") 2>&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; }; then
11978 eval "$as_ac_var=yes"
11980 echo "$as_me: failed program was:" >&5
11981 sed 's/^/| /' conftest.$ac_ext >&5
11983 eval "$as_ac_var=no"
11986 rm -f core conftest.err conftest.$ac_objext \
11987 conftest$ac_exeext conftest.$ac_ext
11989 ac_res=`eval echo '${'$as_ac_var'}'`
11990 { echo "$as_me:$LINENO: result: $ac_res" >&5
11991 echo "${ECHO_T}$ac_res" >&6; }
11992 if test `eval echo '${'$as_ac_var'}'` = yes; then
11993 cat >>confdefs.h <<_ACEOF
11994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12003 for ac_func in closedir opendir readdir
12005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12011 cat >conftest.$ac_ext <<_ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h. */
12017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12019 #define $ac_func innocuous_$ac_func
12021 /* System header to define __stub macros and hopefully few prototypes,
12022 which can conflict with char $ac_func (); below.
12023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12024 <limits.h> exists even on freestanding compilers. */
12027 # include <limits.h>
12029 # include <assert.h>
12034 /* Override any GCC internal prototype to avoid an error.
12035 Use char because int might match the return type of a GCC
12036 builtin and then its argument prototype would still apply. */
12041 /* The GNU C library defines this for functions which it implements
12042 to always fail with ENOSYS. Some functions are actually named
12043 something starting with __ and the normal name is an alias. */
12044 #if defined __stub_$ac_func || defined __stub___$ac_func
12051 return $ac_func ();
12056 rm -f conftest.$ac_objext conftest$ac_exeext
12057 if { (ac_try="$ac_link"
12058 case "(($ac_try" in
12059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12060 *) ac_try_echo=$ac_try;;
12062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12063 (eval "$ac_link") 2>conftest.er1
12065 grep -v '^ *+' conftest.er1 >conftest.err
12067 cat conftest.err >&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } &&
12070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12071 { (case "(($ac_try" in
12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073 *) ac_try_echo=$ac_try;;
12075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076 (eval "$ac_try") 2>&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; } &&
12080 { ac_try='test -s conftest$ac_exeext'
12081 { (case "(($ac_try" in
12082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12083 *) ac_try_echo=$ac_try;;
12085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12086 (eval "$ac_try") 2>&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; }; then
12090 eval "$as_ac_var=yes"
12092 echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12095 eval "$as_ac_var=no"
12098 rm -f core conftest.err conftest.$ac_objext \
12099 conftest$ac_exeext conftest.$ac_ext
12101 ac_res=`eval echo '${'$as_ac_var'}'`
12102 { echo "$as_me:$LINENO: result: $ac_res" >&5
12103 echo "${ECHO_T}$ac_res" >&6; }
12104 if test `eval echo '${'$as_ac_var'}'` = yes; then
12105 cat >>confdefs.h <<_ACEOF
12106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12113 # Check whether --enable-shared was given.
12114 if test "${enable_shared+set}" = set; then
12115 enableval=$enable_shared; p=${PACKAGE-default}
12117 yes) enable_shared=yes ;;
12118 no) enable_shared=no ;;
12121 # Look at the argument we got. We use all the common list separators.
12122 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12123 for pkg in $enableval; do
12125 if test "X$pkg" = "X$p"; then
12137 # Check whether --enable-static was given.
12138 if test "${enable_static+set}" = set; then
12139 enableval=$enable_static; p=${PACKAGE-default}
12141 yes) enable_static=yes ;;
12142 no) enable_static=no ;;
12145 # Look at the argument we got. We use all the common list separators.
12146 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12147 for pkg in $enableval; do
12149 if test "X$pkg" = "X$p"; then
12161 # Check whether --enable-fast-install was given.
12162 if test "${enable_fast_install+set}" = set; then
12163 enableval=$enable_fast_install; p=${PACKAGE-default}
12165 yes) enable_fast_install=yes ;;
12166 no) enable_fast_install=no ;;
12168 enable_fast_install=no
12169 # Look at the argument we got. We use all the common list separators.
12170 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12171 for pkg in $enableval; do
12173 if test "X$pkg" = "X$p"; then
12174 enable_fast_install=yes
12181 enable_fast_install=yes
12185 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12186 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12187 if test "${lt_cv_path_SED+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12190 # Loop through the user's path and test for sed and gsed.
12191 # Then use that list of sed's as ones to test for truncation.
12192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193 for as_dir in $PATH
12196 test -z "$as_dir" && as_dir=.
12197 for lt_ac_prog in sed gsed; do
12198 for ac_exec_ext in '' $ac_executable_extensions; do
12199 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12200 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12207 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12208 # along with /bin/sed that truncates output.
12209 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12210 test ! -f $lt_ac_sed && continue
12211 cat /dev/null > conftest.in
12213 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12214 # Check for GNU sed and select it if it is found.
12215 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12216 lt_cv_path_SED=$lt_ac_sed
12220 cat conftest.in conftest.in >conftest.tmp
12221 mv conftest.tmp conftest.in
12222 cp conftest.in conftest.nl
12224 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12225 cmp -s conftest.out conftest.nl || break
12226 # 10000 chars as input seems more than enough
12227 test $lt_ac_count -gt 10 && break
12228 lt_ac_count=`expr $lt_ac_count + 1`
12229 if test $lt_ac_count -gt $lt_ac_max; then
12230 lt_ac_max=$lt_ac_count
12231 lt_cv_path_SED=$lt_ac_sed
12238 SED=$lt_cv_path_SED
12239 { echo "$as_me:$LINENO: result: $SED" >&5
12240 echo "${ECHO_T}$SED" >&6; }
12243 # Check whether --with-gnu-ld was given.
12244 if test "${with_gnu_ld+set}" = set; then
12245 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12251 if test "$GCC" = yes; then
12252 # Check if gcc -print-prog-name=ld gives a path.
12253 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12254 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12257 # gcc leaves a trailing carriage return which upsets mingw
12258 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12260 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12263 # Accept absolute paths.
12265 re_direlt='/[^/][^/]*/\.\./'
12266 # Canonicalize the pathname of ld
12267 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12268 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12269 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12271 test -z "$LD" && LD="$ac_prog"
12274 # If it fails, then pretend we aren't using GCC.
12278 # If it is relative, then search for the first ld in PATH.
12279 with_gnu_ld=unknown
12282 elif test "$with_gnu_ld" = yes; then
12283 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12284 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12286 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12287 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12289 if test "${lt_cv_path_LD+set}" = set; then
12290 echo $ECHO_N "(cached) $ECHO_C" >&6
12292 if test -z "$LD"; then
12293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12294 for ac_dir in $PATH; do
12296 test -z "$ac_dir" && ac_dir=.
12297 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12298 lt_cv_path_LD="$ac_dir/$ac_prog"
12299 # Check to see if the program is GNU ld. I'd rather use --version,
12300 # but apparently some variants of GNU ld only accept -v.
12301 # Break only if it was the GNU/non-GNU ld that we prefer.
12302 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12303 *GNU* | *'with BFD'*)
12304 test "$with_gnu_ld" != no && break
12307 test "$with_gnu_ld" != yes && break
12314 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12318 LD="$lt_cv_path_LD"
12319 if test -n "$LD"; then
12320 { echo "$as_me:$LINENO: result: $LD" >&5
12321 echo "${ECHO_T}$LD" >&6; }
12323 { echo "$as_me:$LINENO: result: no" >&5
12324 echo "${ECHO_T}no" >&6; }
12326 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12327 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12328 { (exit 1); exit 1; }; }
12329 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12330 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12331 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12332 echo $ECHO_N "(cached) $ECHO_C" >&6
12334 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12335 case `$LD -v 2>&1 </dev/null` in
12336 *GNU* | *'with BFD'*)
12337 lt_cv_prog_gnu_ld=yes
12340 lt_cv_prog_gnu_ld=no
12344 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12345 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12346 with_gnu_ld=$lt_cv_prog_gnu_ld
12349 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12350 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12351 if test "${lt_cv_ld_reload_flag+set}" = set; then
12352 echo $ECHO_N "(cached) $ECHO_C" >&6
12354 lt_cv_ld_reload_flag='-r'
12356 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12357 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12358 reload_flag=$lt_cv_ld_reload_flag
12359 case $reload_flag in
12361 *) reload_flag=" $reload_flag" ;;
12363 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12366 if test "$GCC" = yes; then
12367 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12369 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12374 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12375 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12376 if test "${lt_cv_deplibs_check_method+set}" = set; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12379 lt_cv_file_magic_cmd='$MAGIC_CMD'
12380 lt_cv_file_magic_test_file=
12381 lt_cv_deplibs_check_method='unknown'
12382 # Need to set the preceding variable on all platforms that support
12383 # interlibrary dependencies.
12384 # 'none' -- dependencies not supported.
12385 # `unknown' -- same as none, but documents that we really don't know.
12386 # 'pass_all' -- all dependencies passed with no checks.
12387 # 'test_compile' -- check by making test program.
12388 # 'file_magic [[regex]]' -- check by looking for files in library path
12389 # which responds to the $file_magic_cmd with a given extended regex.
12390 # If you have `file' or equivalent on your system and you're not sure
12391 # whether `pass_all' will *always* work, you probably want this one.
12395 lt_cv_deplibs_check_method=pass_all
12399 lt_cv_deplibs_check_method=pass_all
12403 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12404 lt_cv_file_magic_cmd='/usr/bin/file -L'
12405 lt_cv_file_magic_test_file=/shlib/libc.so
12409 # func_win32_libid is a shell function defined in ltmain.sh
12410 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12411 lt_cv_file_magic_cmd='func_win32_libid'
12415 # Base MSYS/MinGW do not provide the 'file' command needed by
12416 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12417 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12418 lt_cv_file_magic_cmd='$OBJDUMP -f'
12421 darwin* | rhapsody*)
12422 lt_cv_deplibs_check_method=pass_all
12425 freebsd* | kfreebsd*-gnu | dragonfly*)
12426 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12429 # Not sure whether the presence of OpenBSD here was a mistake.
12430 # Let's accept both of them until this is cleared up.
12431 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12432 lt_cv_file_magic_cmd=/usr/bin/file
12433 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12437 lt_cv_deplibs_check_method=pass_all
12442 lt_cv_deplibs_check_method=pass_all
12445 hpux10.20* | hpux11*)
12446 lt_cv_file_magic_cmd=/usr/bin/file
12449 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12450 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12453 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]'
12454 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12457 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12458 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12464 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12465 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12468 irix5* | irix6* | nonstopux*)
12470 *-32|*"-32 ") libmagic=32-bit;;
12471 *-n32|*"-n32 ") libmagic=N32;;
12472 *-64|*"-64 ") libmagic=64-bit;;
12473 *) libmagic=never-match;;
12475 lt_cv_deplibs_check_method=pass_all
12478 # This must be Linux ELF.
12480 lt_cv_deplibs_check_method=pass_all
12484 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12485 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12487 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12492 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12493 lt_cv_file_magic_cmd=/usr/bin/file
12494 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12498 lt_cv_deplibs_check_method=unknown
12502 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12503 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12505 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12509 osf3* | osf4* | osf5*)
12510 lt_cv_deplibs_check_method=pass_all
12514 lt_cv_deplibs_check_method=pass_all
12518 case $host_vendor in
12520 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]'
12521 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12524 lt_cv_deplibs_check_method=pass_all
12527 lt_cv_file_magic_cmd='/bin/file'
12528 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12531 lt_cv_file_magic_cmd='/bin/file'
12532 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12533 lt_cv_file_magic_test_file=/lib/libc.so
12536 lt_cv_deplibs_check_method=pass_all
12539 lt_cv_deplibs_check_method=pass_all
12544 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12545 lt_cv_deplibs_check_method=pass_all
12550 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12551 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12552 file_magic_cmd=$lt_cv_file_magic_cmd
12553 deplibs_check_method=$lt_cv_deplibs_check_method
12554 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12558 # If no C compiler was specified, use CC.
12561 # If no C compiler flags were specified, use CFLAGS.
12562 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12564 # Allow CC to be a program name with arguments.
12567 # Check whether --enable-libtool-lock was given.
12568 if test "${enable_libtool_lock+set}" = set; then
12569 enableval=$enable_libtool_lock;
12572 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12574 # Some flags need to be propagated to the compiler or linker for good
12578 # Find out which ABI we are using.
12579 echo 'int i;' > conftest.$ac_ext
12580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12581 (eval $ac_compile) 2>&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; then
12585 case `/usr/bin/file conftest.$ac_objext` in
12587 HPUX_IA64_MODE="32"
12590 HPUX_IA64_MODE="64"
12597 # Find out which ABI we are using.
12598 echo '#line 12598 "configure"' > conftest.$ac_ext
12599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12600 (eval $ac_compile) 2>&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; then
12604 if test "$lt_cv_prog_gnu_ld" = yes; then
12605 case `/usr/bin/file conftest.$ac_objext` in
12607 LD="${LD-ld} -melf32bsmip"
12610 LD="${LD-ld} -melf32bmipn32"
12613 LD="${LD-ld} -melf64bmip"
12617 case `/usr/bin/file conftest.$ac_objext` in
12633 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12634 # Find out which ABI we are using.
12635 echo 'int i;' > conftest.$ac_ext
12636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12637 (eval $ac_compile) 2>&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); }; then
12641 case `/usr/bin/file conftest.o` in
12645 LD="${LD-ld} -m elf_i386"
12647 ppc64-*linux*|powerpc64-*linux*)
12648 LD="${LD-ld} -m elf32ppclinux"
12651 LD="${LD-ld} -m elf_s390"
12654 LD="${LD-ld} -m elf32_sparc"
12661 LD="${LD-ld} -m elf_x86_64"
12663 ppc*-*linux*|powerpc*-*linux*)
12664 LD="${LD-ld} -m elf64ppc"
12667 LD="${LD-ld} -m elf64_s390"
12670 LD="${LD-ld} -m elf64_sparc"
12680 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12681 SAVE_CFLAGS="$CFLAGS"
12682 CFLAGS="$CFLAGS -belf"
12683 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12684 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12685 if test "${lt_cv_cc_needs_belf+set}" = set; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12689 ac_cpp='$CPP $CPPFLAGS'
12690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12694 cat >conftest.$ac_ext <<_ACEOF
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h. */
12709 rm -f conftest.$ac_objext conftest$ac_exeext
12710 if { (ac_try="$ac_link"
12711 case "(($ac_try" in
12712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713 *) ac_try_echo=$ac_try;;
12715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716 (eval "$ac_link") 2>conftest.er1
12718 grep -v '^ *+' conftest.er1 >conftest.err
12720 cat conftest.err >&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } &&
12723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12724 { (case "(($ac_try" in
12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726 *) ac_try_echo=$ac_try;;
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729 (eval "$ac_try") 2>&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; } &&
12733 { ac_try='test -s conftest$ac_exeext'
12734 { (case "(($ac_try" in
12735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736 *) ac_try_echo=$ac_try;;
12738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12739 (eval "$ac_try") 2>&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; }; then
12743 lt_cv_cc_needs_belf=yes
12745 echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.$ac_ext >&5
12748 lt_cv_cc_needs_belf=no
12751 rm -f core conftest.err conftest.$ac_objext \
12752 conftest$ac_exeext conftest.$ac_ext
12754 ac_cpp='$CPP $CPPFLAGS'
12755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12760 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12761 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12762 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12763 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12764 CFLAGS="$SAVE_CFLAGS"
12768 # Find out which ABI we are using.
12769 echo 'int i;' > conftest.$ac_ext
12770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12771 (eval $ac_compile) 2>&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; then
12775 case `/usr/bin/file conftest.o` in
12777 case $lt_cv_prog_gnu_ld in
12778 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12779 *) LD="${LD-ld} -64" ;;
12790 need_locks="$enable_libtool_lock"
12795 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12796 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12797 (test "X$CXX" != "Xg++"))) ; then
12799 ac_cpp='$CXXCPP $CPPFLAGS'
12800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12803 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12804 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12805 if test -z "$CXXCPP"; then
12806 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12807 echo $ECHO_N "(cached) $ECHO_C" >&6
12809 # Double quotes because CXXCPP needs to be expanded
12810 for CXXCPP in "$CXX -E" "/lib/cpp"
12812 ac_preproc_ok=false
12813 for ac_cxx_preproc_warn_flag in '' yes
12815 # Use a header file that comes with gcc, so configuring glibc
12816 # with a fresh cross-compiler works.
12817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12818 # <limits.h> exists even on freestanding compilers.
12819 # On the NeXT, cc -E runs the code through the compiler's parser,
12820 # not just through cpp. "Syntax error" is here to catch this case.
12821 cat >conftest.$ac_ext <<_ACEOF
12824 cat confdefs.h >>conftest.$ac_ext
12825 cat >>conftest.$ac_ext <<_ACEOF
12826 /* end confdefs.h. */
12828 # include <limits.h>
12830 # include <assert.h>
12834 if { (ac_try="$ac_cpp conftest.$ac_ext"
12835 case "(($ac_try" in
12836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837 *) ac_try_echo=$ac_try;;
12839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12842 grep -v '^ *+' conftest.er1 >conftest.err
12844 cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } >/dev/null; then
12847 if test -s conftest.err; then
12848 ac_cpp_err=$ac_cxx_preproc_warn_flag
12849 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12856 if test -z "$ac_cpp_err"; then
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12862 # Broken: fails on valid input.
12866 rm -f conftest.err conftest.$ac_ext
12868 # OK, works on sane cases. Now check whether nonexistent headers
12869 # can be detected and how.
12870 cat >conftest.$ac_ext <<_ACEOF
12873 cat confdefs.h >>conftest.$ac_ext
12874 cat >>conftest.$ac_ext <<_ACEOF
12875 /* end confdefs.h. */
12876 #include <ac_nonexistent.h>
12878 if { (ac_try="$ac_cpp conftest.$ac_ext"
12879 case "(($ac_try" in
12880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12881 *) ac_try_echo=$ac_try;;
12883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12886 grep -v '^ *+' conftest.er1 >conftest.err
12888 cat conftest.err >&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); } >/dev/null; then
12891 if test -s conftest.err; then
12892 ac_cpp_err=$ac_cxx_preproc_warn_flag
12893 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12900 if test -z "$ac_cpp_err"; then
12901 # Broken: success on invalid input.
12904 echo "$as_me: failed program was:" >&5
12905 sed 's/^/| /' conftest.$ac_ext >&5
12907 # Passes both tests.
12912 rm -f conftest.err conftest.$ac_ext
12915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12916 rm -f conftest.err conftest.$ac_ext
12917 if $ac_preproc_ok; then
12922 ac_cv_prog_CXXCPP=$CXXCPP
12925 CXXCPP=$ac_cv_prog_CXXCPP
12927 ac_cv_prog_CXXCPP=$CXXCPP
12929 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12930 echo "${ECHO_T}$CXXCPP" >&6; }
12931 ac_preproc_ok=false
12932 for ac_cxx_preproc_warn_flag in '' yes
12934 # Use a header file that comes with gcc, so configuring glibc
12935 # with a fresh cross-compiler works.
12936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12937 # <limits.h> exists even on freestanding compilers.
12938 # On the NeXT, cc -E runs the code through the compiler's parser,
12939 # not just through cpp. "Syntax error" is here to catch this case.
12940 cat >conftest.$ac_ext <<_ACEOF
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h. */
12947 # include <limits.h>
12949 # include <assert.h>
12953 if { (ac_try="$ac_cpp conftest.$ac_ext"
12954 case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12961 grep -v '^ *+' conftest.er1 >conftest.err
12963 cat conftest.err >&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); } >/dev/null; then
12966 if test -s conftest.err; then
12967 ac_cpp_err=$ac_cxx_preproc_warn_flag
12968 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12975 if test -z "$ac_cpp_err"; then
12978 echo "$as_me: failed program was:" >&5
12979 sed 's/^/| /' conftest.$ac_ext >&5
12981 # Broken: fails on valid input.
12985 rm -f conftest.err conftest.$ac_ext
12987 # OK, works on sane cases. Now check whether nonexistent headers
12988 # can be detected and how.
12989 cat >conftest.$ac_ext <<_ACEOF
12992 cat confdefs.h >>conftest.$ac_ext
12993 cat >>conftest.$ac_ext <<_ACEOF
12994 /* end confdefs.h. */
12995 #include <ac_nonexistent.h>
12997 if { (ac_try="$ac_cpp conftest.$ac_ext"
12998 case "(($ac_try" in
12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000 *) ac_try_echo=$ac_try;;
13002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13005 grep -v '^ *+' conftest.er1 >conftest.err
13007 cat conftest.err >&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); } >/dev/null; then
13010 if test -s conftest.err; then
13011 ac_cpp_err=$ac_cxx_preproc_warn_flag
13012 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13019 if test -z "$ac_cpp_err"; then
13020 # Broken: success on invalid input.
13023 echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13026 # Passes both tests.
13031 rm -f conftest.err conftest.$ac_ext
13034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13035 rm -f conftest.err conftest.$ac_ext
13036 if $ac_preproc_ok; then
13039 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13040 See \`config.log' for more details." >&5
13041 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13042 See \`config.log' for more details." >&2;}
13043 { (exit 1); exit 1; }; }
13047 ac_cpp='$CXXCPP $CPPFLAGS'
13048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13056 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13057 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13058 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13059 if test -n "$ac_tool_prefix"; then
13060 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
13062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13063 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13066 if test "${ac_cv_prog_F77+set}" = set; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13069 if test -n "$F77"; then
13070 ac_cv_prog_F77="$F77" # Let the user override the test.
13072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13073 for as_dir in $PATH
13076 test -z "$as_dir" && as_dir=.
13077 for ac_exec_ext in '' $ac_executable_extensions; do
13078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13079 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13089 F77=$ac_cv_prog_F77
13090 if test -n "$F77"; then
13091 { echo "$as_me:$LINENO: result: $F77" >&5
13092 echo "${ECHO_T}$F77" >&6; }
13094 { echo "$as_me:$LINENO: result: no" >&5
13095 echo "${ECHO_T}no" >&6; }
13099 test -n "$F77" && break
13102 if test -z "$F77"; then
13104 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
13106 # Extract the first word of "$ac_prog", so it can be a program name with args.
13107 set dummy $ac_prog; ac_word=$2
13108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13110 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13111 echo $ECHO_N "(cached) $ECHO_C" >&6
13113 if test -n "$ac_ct_F77"; then
13114 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13117 for as_dir in $PATH
13120 test -z "$as_dir" && as_dir=.
13121 for ac_exec_ext in '' $ac_executable_extensions; do
13122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13123 ac_cv_prog_ac_ct_F77="$ac_prog"
13124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13133 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13134 if test -n "$ac_ct_F77"; then
13135 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13136 echo "${ECHO_T}$ac_ct_F77" >&6; }
13138 { echo "$as_me:$LINENO: result: no" >&5
13139 echo "${ECHO_T}no" >&6; }
13143 test -n "$ac_ct_F77" && break
13146 if test "x$ac_ct_F77" = x; then
13149 case $cross_compiling:$ac_tool_warned in
13151 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13152 whose name does not start with the host triplet. If you think this
13153 configuration is useful to you, please write to autoconf@gnu.org." >&5
13154 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13155 whose name does not start with the host triplet. If you think this
13156 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13157 ac_tool_warned=yes ;;
13164 # Provide some information about the compiler.
13165 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13166 ac_compiler=`set X $ac_compile; echo $2`
13167 { (ac_try="$ac_compiler --version >&5"
13168 case "(($ac_try" in
13169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13170 *) ac_try_echo=$ac_try;;
13172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13173 (eval "$ac_compiler --version >&5") 2>&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }
13177 { (ac_try="$ac_compiler -v >&5"
13178 case "(($ac_try" in
13179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180 *) ac_try_echo=$ac_try;;
13182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13183 (eval "$ac_compiler -v >&5") 2>&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }
13187 { (ac_try="$ac_compiler -V >&5"
13188 case "(($ac_try" in
13189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190 *) ac_try_echo=$ac_try;;
13192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193 (eval "$ac_compiler -V >&5") 2>&5
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }
13199 # If we don't use `.F' as extension, the preprocessor is not run on the
13200 # input file. (Note that this only needs to work for GNU compilers.)
13201 ac_save_ext=$ac_ext
13203 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13204 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13205 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13206 echo $ECHO_N "(cached) $ECHO_C" >&6
13208 cat >conftest.$ac_ext <<_ACEOF
13216 rm -f conftest.$ac_objext
13217 if { (ac_try="$ac_compile"
13218 case "(($ac_try" in
13219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220 *) ac_try_echo=$ac_try;;
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223 (eval "$ac_compile") 2>conftest.er1
13225 grep -v '^ *+' conftest.er1 >conftest.err
13227 cat conftest.err >&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); } &&
13230 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13231 { (case "(($ac_try" in
13232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233 *) ac_try_echo=$ac_try;;
13235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13236 (eval "$ac_try") 2>&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); }; } &&
13240 { ac_try='test -s conftest.$ac_objext'
13241 { (case "(($ac_try" in
13242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243 *) ac_try_echo=$ac_try;;
13245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246 (eval "$ac_try") 2>&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; }; then
13250 ac_compiler_gnu=yes
13252 echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13259 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13262 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13263 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13264 ac_ext=$ac_save_ext
13265 ac_test_FFLAGS=${FFLAGS+set}
13266 ac_save_FFLAGS=$FFLAGS
13268 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13269 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13270 if test "${ac_cv_prog_f77_g+set}" = set; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
13274 cat >conftest.$ac_ext <<_ACEOF
13279 rm -f conftest.$ac_objext
13280 if { (ac_try="$ac_compile"
13281 case "(($ac_try" in
13282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13283 *) ac_try_echo=$ac_try;;
13285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13286 (eval "$ac_compile") 2>conftest.er1
13288 grep -v '^ *+' conftest.er1 >conftest.err
13290 cat conftest.err >&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); } &&
13293 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13294 { (case "(($ac_try" in
13295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296 *) ac_try_echo=$ac_try;;
13298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13299 (eval "$ac_try") 2>&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); }; } &&
13303 { ac_try='test -s conftest.$ac_objext'
13304 { (case "(($ac_try" in
13305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306 *) ac_try_echo=$ac_try;;
13308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309 (eval "$ac_try") 2>&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; }; then
13313 ac_cv_prog_f77_g=yes
13315 echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13318 ac_cv_prog_f77_g=no
13321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13324 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13325 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13326 if test "$ac_test_FFLAGS" = set; then
13327 FFLAGS=$ac_save_FFLAGS
13328 elif test $ac_cv_prog_f77_g = yes; then
13329 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13335 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13342 G77=`test $ac_compiler_gnu = yes && echo yes`
13344 ac_cpp='$CPP $CPPFLAGS'
13345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13351 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13353 # find the maximum length of command line arguments
13354 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13355 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13356 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13357 echo $ECHO_N "(cached) $ECHO_C" >&6
13364 # On DJGPP, this test can blow up pretty badly due to problems in libc
13365 # (any single argument exceeding 2000 bytes causes a buffer overrun
13366 # during glob expansion). Even if it were fixed, the result of this
13367 # check would be larger than it should be.
13368 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13372 # Under GNU Hurd, this test is not required because there is
13373 # no limit to the length of command line arguments.
13374 # Libtool will interpret -1 as no limit whatsoever
13375 lt_cv_sys_max_cmd_len=-1;
13379 # On Win9x/ME, this test blows up -- it succeeds, but takes
13380 # about 5 minutes as the teststring grows exponentially.
13381 # Worse, since 9x/ME are not pre-emptively multitasking,
13382 # you end up with a "frozen" computer, even though with patience
13383 # the test eventually succeeds (with a max line length of 256k).
13384 # Instead, let's just punt: use the minimum linelength reported by
13385 # all of the supported platforms: 8192 (on NT/2K/XP).
13386 lt_cv_sys_max_cmd_len=8192;
13390 # On AmigaOS with pdksh, this test takes hours, literally.
13391 # So we just punt and use a minimum line length of 8192.
13392 lt_cv_sys_max_cmd_len=8192;
13395 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13396 # This has been around since 386BSD, at least. Likely further.
13397 if test -x /sbin/sysctl; then
13398 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13399 elif test -x /usr/sbin/sysctl; then
13400 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13402 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13404 # And add a safety zone
13405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13410 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13411 lt_cv_sys_max_cmd_len=196608
13415 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13416 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13417 # nice to cause kernel panics so lets avoid the loop below.
13418 # First set a reasonable default.
13419 lt_cv_sys_max_cmd_len=16384
13421 if test -x /sbin/sysconfig; then
13422 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13423 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13428 lt_cv_sys_max_cmd_len=102400
13430 sysv5* | sco5v6* | sysv4.2uw2*)
13431 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13432 if test -n "$kargmax"; then
13433 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13435 lt_cv_sys_max_cmd_len=32768
13439 # If test is not a shell built-in, we'll probably end up computing a
13440 # maximum length that is only half of the actual maximum length, but
13442 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13443 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13444 = "XX$teststring") >/dev/null 2>&1 &&
13445 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13446 lt_cv_sys_max_cmd_len=$new_result &&
13447 test $i != 17 # 1/2 MB should be enough
13450 teststring=$teststring$teststring
13453 # Add a significant safety factor because C++ compilers can tack on massive
13454 # amounts of additional arguments before passing them to the linker.
13455 # It appears as though 1/2 is a usable value.
13456 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13462 if test -n $lt_cv_sys_max_cmd_len ; then
13463 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13464 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13466 { echo "$as_me:$LINENO: result: none" >&5
13467 echo "${ECHO_T}none" >&6; }
13473 # Check for command to grab the raw symbol name followed by C symbol from nm.
13474 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13475 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13476 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
13480 # These are sane defaults that work on at least a few old systems.
13481 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13483 # Character class describing NM global symbol codes.
13484 symcode='[BCDEGRST]'
13486 # Regexp to match symbols that can be accessed directly from C.
13487 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13489 # Transform an extracted symbol line into a proper C declaration
13490 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13492 # Transform an extracted symbol line into symbol name and symbol address
13493 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'"
13495 # Define system-specific variables.
13500 cygwin* | mingw* | pw32*)
13501 symcode='[ABCDGISTW]'
13503 hpux*) # Its linker distinguishes data from code symbols
13504 if test "$host_cpu" = ia64; then
13505 symcode='[ABCDEGRST]'
13507 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13508 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'"
13511 if test "$host_cpu" = ia64; then
13512 symcode='[ABCDGIRSTW]'
13513 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13514 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'"
13517 irix* | nonstopux*)
13518 symcode='[BCDEGRST]'
13521 symcode='[BCDEGQRST]'
13532 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13540 # Handle CRLF in mingw tool chain
13544 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13548 # If we're using GNU nm, then use its standard symbol codes.
13549 case `$NM -V 2>&1` in
13550 *GNU* | *'with BFD'*)
13551 symcode='[ABCDGIRSTW]' ;;
13554 # Try without a prefix undercore, then with it.
13555 for ac_symprfx in "" "_"; do
13557 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13558 symxfrm="\\1 $ac_symprfx\\2 \\2"
13560 # Write the raw and C identifiers.
13561 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13563 # Check to see that the pipe works correctly.
13567 cat > conftest.$ac_ext <<EOF
13572 void nm_test_func(){}
13576 int main(){nm_test_var='a';nm_test_func();return(0);}
13579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13580 (eval $ac_compile) 2>&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; then
13584 # Now try to grab the symbols.
13586 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13587 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); } && test -s "$nlist"; then
13591 # Try sorting and uniquifying the output.
13592 if sort "$nlist" | uniq > "$nlist"T; then
13593 mv -f "$nlist"T "$nlist"
13598 # Make sure that we snagged all the symbols we need.
13599 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13600 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13601 cat <<EOF > conftest.$ac_ext
13607 # Now generate the symbol file.
13608 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13610 cat <<EOF >> conftest.$ac_ext
13611 #if defined (__STDC__) && __STDC__
13612 # define lt_ptr_t void *
13614 # define lt_ptr_t char *
13618 /* The mapping between symbol names and symbols. */
13623 lt_preloaded_symbols[] =
13626 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13627 cat <<\EOF >> conftest.$ac_ext
13635 # Now try linking the two files.
13636 mv conftest.$ac_objext conftstm.$ac_objext
13637 lt_save_LIBS="$LIBS"
13638 lt_save_CFLAGS="$CFLAGS"
13639 LIBS="conftstm.$ac_objext"
13640 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13642 (eval $ac_link) 2>&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13648 LIBS="$lt_save_LIBS"
13649 CFLAGS="$lt_save_CFLAGS"
13651 echo "cannot find nm_test_func in $nlist" >&5
13654 echo "cannot find nm_test_var in $nlist" >&5
13657 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13660 echo "$progname: failed program was:" >&5
13661 cat conftest.$ac_ext >&5
13663 rm -f conftest* conftst*
13665 # Do not use the global_symbol_pipe unless it works.
13666 if test "$pipe_works" = yes; then
13669 lt_cv_sys_global_symbol_pipe=
13675 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13676 lt_cv_sys_global_symbol_to_cdecl=
13678 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13679 { echo "$as_me:$LINENO: result: failed" >&5
13680 echo "${ECHO_T}failed" >&6; }
13682 { echo "$as_me:$LINENO: result: ok" >&5
13683 echo "${ECHO_T}ok" >&6; }
13686 { echo "$as_me:$LINENO: checking for objdir" >&5
13687 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13688 if test "${lt_cv_objdir+set}" = set; then
13689 echo $ECHO_N "(cached) $ECHO_C" >&6
13691 rm -f .libs 2>/dev/null
13692 mkdir .libs 2>/dev/null
13693 if test -d .libs; then
13696 # MS-DOS does not allow filenames that begin with a dot.
13699 rmdir .libs 2>/dev/null
13701 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13702 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13703 objdir=$lt_cv_objdir
13711 # AIX sometimes has problems with the GCC collect2 program. For some
13712 # reason, if we set the COLLECT_NAMES environment variable, the problems
13713 # vanish in a puff of smoke.
13714 if test "X${COLLECT_NAMES+set}" != Xset; then
13716 export COLLECT_NAMES
13721 # Sed substitution that helps us do robust quoting. It backslashifies
13722 # metacharacters that are still active within double-quoted strings.
13723 Xsed='sed -e 1s/^X//'
13724 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13726 # Same as above, but do not quote variable references.
13727 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13729 # Sed substitution to delay expansion of an escaped shell variable in a
13730 # double_quote_subst'ed string.
13731 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13733 # Sed substitution to avoid accidental globbing in evaled expressions
13734 no_glob_subst='s/\*/\\\*/g'
13739 # Global variables:
13740 default_ofile=mklib
13741 can_build_shared=yes
13743 # All known linkers require a `.a' archive for static linking (except MSVC,
13744 # which needs '.lib').
13746 ltmain="$ac_aux_dir/ltmain.sh"
13747 ofile="$default_ofile"
13748 with_gnu_ld="$lt_cv_prog_gnu_ld"
13750 if test -n "$ac_tool_prefix"; then
13751 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13752 set dummy ${ac_tool_prefix}ar; ac_word=$2
13753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13755 if test "${ac_cv_prog_AR+set}" = set; then
13756 echo $ECHO_N "(cached) $ECHO_C" >&6
13758 if test -n "$AR"; then
13759 ac_cv_prog_AR="$AR" # Let the user override the test.
13761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13762 for as_dir in $PATH
13765 test -z "$as_dir" && as_dir=.
13766 for ac_exec_ext in '' $ac_executable_extensions; do
13767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13768 ac_cv_prog_AR="${ac_tool_prefix}ar"
13769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13779 if test -n "$AR"; then
13780 { echo "$as_me:$LINENO: result: $AR" >&5
13781 echo "${ECHO_T}$AR" >&6; }
13783 { echo "$as_me:$LINENO: result: no" >&5
13784 echo "${ECHO_T}no" >&6; }
13789 if test -z "$ac_cv_prog_AR"; then
13791 # Extract the first word of "ar", so it can be a program name with args.
13792 set dummy ar; ac_word=$2
13793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13795 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13798 if test -n "$ac_ct_AR"; then
13799 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13802 for as_dir in $PATH
13805 test -z "$as_dir" && as_dir=.
13806 for ac_exec_ext in '' $ac_executable_extensions; do
13807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13808 ac_cv_prog_ac_ct_AR="ar"
13809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13818 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13819 if test -n "$ac_ct_AR"; then
13820 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13821 echo "${ECHO_T}$ac_ct_AR" >&6; }
13823 { echo "$as_me:$LINENO: result: no" >&5
13824 echo "${ECHO_T}no" >&6; }
13827 if test "x$ac_ct_AR" = x; then
13830 case $cross_compiling:$ac_tool_warned in
13832 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13833 whose name does not start with the host triplet. If you think this
13834 configuration is useful to you, please write to autoconf@gnu.org." >&5
13835 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13836 whose name does not start with the host triplet. If you think this
13837 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13838 ac_tool_warned=yes ;;
13843 AR="$ac_cv_prog_AR"
13846 if test -n "$ac_tool_prefix"; then
13847 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13848 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13851 if test "${ac_cv_prog_RANLIB+set}" = set; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13854 if test -n "$RANLIB"; then
13855 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13858 for as_dir in $PATH
13861 test -z "$as_dir" && as_dir=.
13862 for ac_exec_ext in '' $ac_executable_extensions; do
13863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13864 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13874 RANLIB=$ac_cv_prog_RANLIB
13875 if test -n "$RANLIB"; then
13876 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13877 echo "${ECHO_T}$RANLIB" >&6; }
13879 { echo "$as_me:$LINENO: result: no" >&5
13880 echo "${ECHO_T}no" >&6; }
13885 if test -z "$ac_cv_prog_RANLIB"; then
13886 ac_ct_RANLIB=$RANLIB
13887 # Extract the first word of "ranlib", so it can be a program name with args.
13888 set dummy ranlib; ac_word=$2
13889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13891 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13892 echo $ECHO_N "(cached) $ECHO_C" >&6
13894 if test -n "$ac_ct_RANLIB"; then
13895 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13898 for as_dir in $PATH
13901 test -z "$as_dir" && as_dir=.
13902 for ac_exec_ext in '' $ac_executable_extensions; do
13903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13904 ac_cv_prog_ac_ct_RANLIB="ranlib"
13905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13914 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13915 if test -n "$ac_ct_RANLIB"; then
13916 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13917 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13919 { echo "$as_me:$LINENO: result: no" >&5
13920 echo "${ECHO_T}no" >&6; }
13923 if test "x$ac_ct_RANLIB" = x; then
13926 case $cross_compiling:$ac_tool_warned in
13928 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13929 whose name does not start with the host triplet. If you think this
13930 configuration is useful to you, please write to autoconf@gnu.org." >&5
13931 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13932 whose name does not start with the host triplet. If you think this
13933 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13934 ac_tool_warned=yes ;;
13936 RANLIB=$ac_ct_RANLIB
13939 RANLIB="$ac_cv_prog_RANLIB"
13942 if test -n "$ac_tool_prefix"; then
13943 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13944 set dummy ${ac_tool_prefix}strip; ac_word=$2
13945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13947 if test "${ac_cv_prog_STRIP+set}" = set; then
13948 echo $ECHO_N "(cached) $ECHO_C" >&6
13950 if test -n "$STRIP"; then
13951 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13954 for as_dir in $PATH
13957 test -z "$as_dir" && as_dir=.
13958 for ac_exec_ext in '' $ac_executable_extensions; do
13959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13960 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13970 STRIP=$ac_cv_prog_STRIP
13971 if test -n "$STRIP"; then
13972 { echo "$as_me:$LINENO: result: $STRIP" >&5
13973 echo "${ECHO_T}$STRIP" >&6; }
13975 { echo "$as_me:$LINENO: result: no" >&5
13976 echo "${ECHO_T}no" >&6; }
13981 if test -z "$ac_cv_prog_STRIP"; then
13983 # Extract the first word of "strip", so it can be a program name with args.
13984 set dummy strip; ac_word=$2
13985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13987 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13990 if test -n "$ac_ct_STRIP"; then
13991 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13994 for as_dir in $PATH
13997 test -z "$as_dir" && as_dir=.
13998 for ac_exec_ext in '' $ac_executable_extensions; do
13999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14000 ac_cv_prog_ac_ct_STRIP="strip"
14001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14010 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14011 if test -n "$ac_ct_STRIP"; then
14012 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14013 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14015 { echo "$as_me:$LINENO: result: no" >&5
14016 echo "${ECHO_T}no" >&6; }
14019 if test "x$ac_ct_STRIP" = x; then
14022 case $cross_compiling:$ac_tool_warned in
14024 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14025 whose name does not start with the host triplet. If you think this
14026 configuration is useful to you, please write to autoconf@gnu.org." >&5
14027 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14028 whose name does not start with the host triplet. If you think this
14029 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14030 ac_tool_warned=yes ;;
14035 STRIP="$ac_cv_prog_STRIP"
14040 old_CFLAGS="$CFLAGS"
14042 # Set sane defaults for various variables
14043 test -z "$AR" && AR=ar
14044 test -z "$AR_FLAGS" && AR_FLAGS=cru
14045 test -z "$AS" && AS=as
14046 test -z "$CC" && CC=cc
14047 test -z "$LTCC" && LTCC=$CC
14048 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14049 test -z "$DLLTOOL" && DLLTOOL=dlltool
14050 test -z "$LD" && LD=ld
14051 test -z "$LN_S" && LN_S="ln -s"
14052 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14053 test -z "$NM" && NM=nm
14054 test -z "$SED" && SED=sed
14055 test -z "$OBJDUMP" && OBJDUMP=objdump
14056 test -z "$RANLIB" && RANLIB=:
14057 test -z "$STRIP" && STRIP=:
14058 test -z "$ac_objext" && ac_objext=o
14060 # Determine commands to create old-style static archives.
14061 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14062 old_postinstall_cmds='chmod 644 $oldlib'
14063 old_postuninstall_cmds=
14065 if test -n "$RANLIB"; then
14068 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14071 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14074 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14077 for cc_temp in $compiler""; do
14079 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14080 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14085 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14088 # Only perform the check for file, if the check method requires it
14089 case $deplibs_check_method in
14091 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14092 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14093 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14094 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14095 echo $ECHO_N "(cached) $ECHO_C" >&6
14099 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14102 lt_save_MAGIC_CMD="$MAGIC_CMD"
14103 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14104 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14105 for ac_dir in $ac_dummy; do
14107 test -z "$ac_dir" && ac_dir=.
14108 if test -f $ac_dir/${ac_tool_prefix}file; then
14109 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14110 if test -n "$file_magic_test_file"; then
14111 case $deplibs_check_method in
14113 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14114 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14115 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14116 $EGREP "$file_magic_regex" > /dev/null; then
14121 *** Warning: the command libtool uses to detect shared libraries,
14122 *** $file_magic_cmd, produces output that libtool cannot recognize.
14123 *** The result is that libtool may fail to recognize shared libraries
14124 *** as such. This will affect the creation of libtool libraries that
14125 *** depend on shared libraries, but programs linked with such libtool
14126 *** libraries will work regardless of this problem. Nevertheless, you
14127 *** may want to report the problem to your system manager and/or to
14128 *** bug-libtool@gnu.org
14138 MAGIC_CMD="$lt_save_MAGIC_CMD"
14143 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14144 if test -n "$MAGIC_CMD"; then
14145 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14146 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14148 { echo "$as_me:$LINENO: result: no" >&5
14149 echo "${ECHO_T}no" >&6; }
14152 if test -z "$lt_cv_path_MAGIC_CMD"; then
14153 if test -n "$ac_tool_prefix"; then
14154 { echo "$as_me:$LINENO: checking for file" >&5
14155 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14156 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14161 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14164 lt_save_MAGIC_CMD="$MAGIC_CMD"
14165 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14166 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14167 for ac_dir in $ac_dummy; do
14169 test -z "$ac_dir" && ac_dir=.
14170 if test -f $ac_dir/file; then
14171 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14172 if test -n "$file_magic_test_file"; then
14173 case $deplibs_check_method in
14175 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14176 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14177 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14178 $EGREP "$file_magic_regex" > /dev/null; then
14183 *** Warning: the command libtool uses to detect shared libraries,
14184 *** $file_magic_cmd, produces output that libtool cannot recognize.
14185 *** The result is that libtool may fail to recognize shared libraries
14186 *** as such. This will affect the creation of libtool libraries that
14187 *** depend on shared libraries, but programs linked with such libtool
14188 *** libraries will work regardless of this problem. Nevertheless, you
14189 *** may want to report the problem to your system manager and/or to
14190 *** bug-libtool@gnu.org
14200 MAGIC_CMD="$lt_save_MAGIC_CMD"
14205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14206 if test -n "$MAGIC_CMD"; then
14207 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14208 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14210 { echo "$as_me:$LINENO: result: no" >&5
14211 echo "${ECHO_T}no" >&6; }
14224 enable_win32_dll=no
14226 # Check whether --enable-libtool-lock was given.
14227 if test "${enable_libtool_lock+set}" = set; then
14228 enableval=$enable_libtool_lock;
14231 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14234 # Check whether --with-pic was given.
14235 if test "${with_pic+set}" = set; then
14236 withval=$with_pic; pic_mode="$withval"
14241 test -z "$pic_mode" && pic_mode=default
14243 # Use C for the default configuration in the libtool script
14247 ac_cpp='$CPP $CPPFLAGS'
14248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14253 # Source file extension for C test sources.
14256 # Object file extension for compiled C test sources.
14260 # Code to be used in simple compile tests
14261 lt_simple_compile_test_code="int some_variable = 0;\n"
14263 # Code to be used in simple link tests
14264 lt_simple_link_test_code='int main(){return(0);}\n'
14267 # If no C compiler was specified, use CC.
14270 # If no C compiler flags were specified, use CFLAGS.
14271 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14273 # Allow CC to be a program name with arguments.
14277 # save warnings/boilerplate of simple test code
14278 ac_outfile=conftest.$ac_objext
14279 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14280 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14281 _lt_compiler_boilerplate=`cat conftest.err`
14284 ac_outfile=conftest.$ac_objext
14285 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14286 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14287 _lt_linker_boilerplate=`cat conftest.err`
14292 lt_prog_compiler_no_builtin_flag=
14294 if test "$GCC" = yes; then
14295 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14298 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14299 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14300 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14303 lt_cv_prog_compiler_rtti_exceptions=no
14304 ac_outfile=conftest.$ac_objext
14305 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14306 lt_compiler_flag="-fno-rtti -fno-exceptions"
14307 # Insert the option either (1) after the last *FLAGS variable, or
14308 # (2) before a word containing "conftest.", or (3) at the end.
14309 # Note that $ac_compile itself does not contain backslashes and begins
14310 # with a dollar sign (not a hyphen), so the echo should work correctly.
14311 # The option is referenced via a variable to avoid confusing sed.
14312 lt_compile=`echo "$ac_compile" | $SED \
14313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14315 -e 's:$: $lt_compiler_flag:'`
14316 (eval echo "\"\$as_me:14316: $lt_compile\"" >&5)
14317 (eval "$lt_compile" 2>conftest.err)
14319 cat conftest.err >&5
14320 echo "$as_me:14320: \$? = $ac_status" >&5
14321 if (exit $ac_status) && test -s "$ac_outfile"; then
14322 # The compiler can only warn and ignore the option if not recognized
14323 # So say no if there are warnings other than the usual output.
14324 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14326 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14327 lt_cv_prog_compiler_rtti_exceptions=yes
14333 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14334 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14336 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14337 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14344 lt_prog_compiler_wl=
14345 lt_prog_compiler_pic=
14346 lt_prog_compiler_static=
14348 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14349 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14351 if test "$GCC" = yes; then
14352 lt_prog_compiler_wl='-Wl,'
14353 lt_prog_compiler_static='-static'
14357 # All AIX code is PIC.
14358 if test "$host_cpu" = ia64; then
14359 # AIX 5 now supports IA64 processor
14360 lt_prog_compiler_static='-Bstatic'
14365 # FIXME: we need at least 68020 code to build shared libraries, but
14366 # adding the `-m68020' flag to GCC prevents building anything better,
14368 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14371 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14372 # PIC is the default for these OSes.
14375 mingw* | pw32* | os2*)
14376 # This hack is so that the source file can tell whether it is being
14377 # built for inclusion in a dll (and should export symbols for example).
14378 lt_prog_compiler_pic='-DDLL_EXPORT'
14381 darwin* | rhapsody*)
14382 # PIC is the default on this platform
14383 # Common symbols not allowed in MH_DYLIB files
14384 lt_prog_compiler_pic='-fno-common'
14388 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14389 # Instead, we relocate shared libraries at runtime.
14393 # Just because we use GCC doesn't mean we suddenly get shared libraries
14394 # on systems that don't support them.
14395 lt_prog_compiler_can_build_shared=no
14400 if test -d /usr/nec; then
14401 lt_prog_compiler_pic=-Kconform_pic
14406 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14407 # not for PA HP-UX.
14413 lt_prog_compiler_pic='-fPIC'
14419 lt_prog_compiler_pic='-fPIC'
14423 # PORTME Check for flag to pass linker flags through the system compiler.
14426 lt_prog_compiler_wl='-Wl,'
14427 if test "$host_cpu" = ia64; then
14428 # AIX 5 now supports IA64 processor
14429 lt_prog_compiler_static='-Bstatic'
14431 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14435 # PIC is the default on this platform
14436 # Common symbols not allowed in MH_DYLIB files
14437 case $cc_basename in
14439 lt_prog_compiler_pic='-qnocommon'
14440 lt_prog_compiler_wl='-Wl,'
14445 mingw* | pw32* | os2*)
14446 # This hack is so that the source file can tell whether it is being
14447 # built for inclusion in a dll (and should export symbols for example).
14448 lt_prog_compiler_pic='-DDLL_EXPORT'
14451 hpux9* | hpux10* | hpux11*)
14452 lt_prog_compiler_wl='-Wl,'
14453 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14454 # not for PA HP-UX.
14460 lt_prog_compiler_pic='+Z'
14463 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14464 lt_prog_compiler_static='${wl}-a ${wl}archive'
14467 irix5* | irix6* | nonstopux*)
14468 lt_prog_compiler_wl='-Wl,'
14469 # PIC (with -KPIC) is the default.
14470 lt_prog_compiler_static='-non_shared'
14474 lt_prog_compiler_pic='-KPIC'
14475 lt_prog_compiler_static='-Bstatic'
14479 case $cc_basename in
14481 lt_prog_compiler_wl='-Wl,'
14482 lt_prog_compiler_pic='-KPIC'
14483 lt_prog_compiler_static='-static'
14485 pgcc* | pgf77* | pgf90* | pgf95*)
14486 # Portland Group compilers (*not* the Pentium gcc compiler,
14487 # which looks to be a dead project)
14488 lt_prog_compiler_wl='-Wl,'
14489 lt_prog_compiler_pic='-fpic'
14490 lt_prog_compiler_static='-Bstatic'
14493 lt_prog_compiler_wl='-Wl,'
14494 # All Alpha code is PIC.
14495 lt_prog_compiler_static='-non_shared'
14500 osf3* | osf4* | osf5*)
14501 lt_prog_compiler_wl='-Wl,'
14502 # All OSF/1 code is PIC.
14503 lt_prog_compiler_static='-non_shared'
14507 lt_prog_compiler_pic='-KPIC'
14508 lt_prog_compiler_static='-Bstatic'
14509 case $cc_basename in
14510 f77* | f90* | f95*)
14511 lt_prog_compiler_wl='-Qoption ld ';;
14513 lt_prog_compiler_wl='-Wl,';;
14518 lt_prog_compiler_wl='-Qoption ld '
14519 lt_prog_compiler_pic='-PIC'
14520 lt_prog_compiler_static='-Bstatic'
14523 sysv4 | sysv4.2uw2* | sysv4.3*)
14524 lt_prog_compiler_wl='-Wl,'
14525 lt_prog_compiler_pic='-KPIC'
14526 lt_prog_compiler_static='-Bstatic'
14530 if test -d /usr/nec ;then
14531 lt_prog_compiler_pic='-Kconform_pic'
14532 lt_prog_compiler_static='-Bstatic'
14536 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14537 lt_prog_compiler_wl='-Wl,'
14538 lt_prog_compiler_pic='-KPIC'
14539 lt_prog_compiler_static='-Bstatic'
14543 lt_prog_compiler_wl='-Wl,'
14544 lt_prog_compiler_can_build_shared=no
14548 lt_prog_compiler_pic='-pic'
14549 lt_prog_compiler_static='-Bstatic'
14553 lt_prog_compiler_can_build_shared=no
14558 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14559 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14562 # Check to make sure the PIC flag actually works.
14564 if test -n "$lt_prog_compiler_pic"; then
14566 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14567 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14568 if test "${lt_prog_compiler_pic_works+set}" = set; then
14569 echo $ECHO_N "(cached) $ECHO_C" >&6
14571 lt_prog_compiler_pic_works=no
14572 ac_outfile=conftest.$ac_objext
14573 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14574 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14575 # Insert the option either (1) after the last *FLAGS variable, or
14576 # (2) before a word containing "conftest.", or (3) at the end.
14577 # Note that $ac_compile itself does not contain backslashes and begins
14578 # with a dollar sign (not a hyphen), so the echo should work correctly.
14579 # The option is referenced via a variable to avoid confusing sed.
14580 lt_compile=`echo "$ac_compile" | $SED \
14581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14583 -e 's:$: $lt_compiler_flag:'`
14584 (eval echo "\"\$as_me:14584: $lt_compile\"" >&5)
14585 (eval "$lt_compile" 2>conftest.err)
14587 cat conftest.err >&5
14588 echo "$as_me:14588: \$? = $ac_status" >&5
14589 if (exit $ac_status) && test -s "$ac_outfile"; then
14590 # The compiler can only warn and ignore the option if not recognized
14591 # So say no if there are warnings other than the usual output.
14592 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14594 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14595 lt_prog_compiler_pic_works=yes
14601 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14602 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14604 if test x"$lt_prog_compiler_pic_works" = xyes; then
14605 case $lt_prog_compiler_pic in
14607 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14610 lt_prog_compiler_pic=
14611 lt_prog_compiler_can_build_shared=no
14616 # For platforms which do not support PIC, -DPIC is meaningless:
14618 lt_prog_compiler_pic=
14621 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14626 # Check to make sure the static flag actually works.
14628 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14629 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14630 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14631 if test "${lt_prog_compiler_static_works+set}" = set; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
14634 lt_prog_compiler_static_works=no
14635 save_LDFLAGS="$LDFLAGS"
14636 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14637 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14638 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14639 # The linker can only warn and ignore the option if not recognized
14640 # So say no if there are warnings
14641 if test -s conftest.err; then
14642 # Append any errors to the config.log.
14643 cat conftest.err 1>&5
14644 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14646 if diff conftest.exp conftest.er2 >/dev/null; then
14647 lt_prog_compiler_static_works=yes
14650 lt_prog_compiler_static_works=yes
14654 LDFLAGS="$save_LDFLAGS"
14657 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14658 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14660 if test x"$lt_prog_compiler_static_works" = xyes; then
14663 lt_prog_compiler_static=
14667 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14668 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14669 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14670 echo $ECHO_N "(cached) $ECHO_C" >&6
14672 lt_cv_prog_compiler_c_o=no
14673 $rm -r conftest 2>/dev/null
14677 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14679 lt_compiler_flag="-o out/conftest2.$ac_objext"
14680 # Insert the option either (1) after the last *FLAGS variable, or
14681 # (2) before a word containing "conftest.", or (3) at the end.
14682 # Note that $ac_compile itself does not contain backslashes and begins
14683 # with a dollar sign (not a hyphen), so the echo should work correctly.
14684 lt_compile=`echo "$ac_compile" | $SED \
14685 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14687 -e 's:$: $lt_compiler_flag:'`
14688 (eval echo "\"\$as_me:14688: $lt_compile\"" >&5)
14689 (eval "$lt_compile" 2>out/conftest.err)
14691 cat out/conftest.err >&5
14692 echo "$as_me:14692: \$? = $ac_status" >&5
14693 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14695 # The compiler can only warn and ignore the option if not recognized
14696 # So say no if there are warnings
14697 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14698 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14699 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14700 lt_cv_prog_compiler_c_o=yes
14705 # SGI C++ compiler will create directory out/ii_files/ for
14706 # template instantiation
14707 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14708 $rm out/* && rmdir out
14714 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14715 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14718 hard_links="nottested"
14719 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14720 # do not overwrite the value of need_locks provided by the user
14721 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14722 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14725 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14727 ln conftest.a conftest.b 2>&5 || hard_links=no
14728 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14729 { echo "$as_me:$LINENO: result: $hard_links" >&5
14730 echo "${ECHO_T}$hard_links" >&6; }
14731 if test "$hard_links" = no; then
14732 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14733 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14740 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14741 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14744 allow_undefined_flag=
14745 enable_shared_with_static_runtimes=no
14747 archive_expsym_cmds=
14748 old_archive_From_new_cmds=
14749 old_archive_from_expsyms_cmds=
14750 export_dynamic_flag_spec=
14751 whole_archive_flag_spec=
14752 thread_safe_flag_spec=
14753 hardcode_libdir_flag_spec=
14754 hardcode_libdir_flag_spec_ld=
14755 hardcode_libdir_separator=
14757 hardcode_minus_L=no
14758 hardcode_shlibpath_var=unsupported
14759 link_all_deplibs=unknown
14760 hardcode_automatic=no
14762 module_expsym_cmds=
14763 always_export_symbols=no
14764 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14765 # include_expsyms should be a list of space-separated symbols to be *always*
14766 # included in the symbol list
14768 # exclude_expsyms can be an extended regexp of symbols to exclude
14769 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14770 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14771 # as well as any symbol that contains `d'.
14772 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14773 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14774 # platforms (ab)use it in PIC code, but their linkers get confused if
14775 # the symbol is explicitly referenced. Since portable code cannot
14776 # rely on this symbol name, it's probably fine to never include it in
14777 # preloaded symbol tables.
14778 extract_expsyms_cmds=
14779 # Just being paranoid about ensuring that cc_basename is set.
14780 for cc_temp in $compiler""; do
14782 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14783 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14788 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14791 cygwin* | mingw* | pw32*)
14792 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14793 # When not using gcc, we currently assume that we are using
14794 # Microsoft Visual C++.
14795 if test "$GCC" != yes; then
14800 # we just hope/assume this is gcc and not c89 (= MSVC++)
14809 if test "$with_gnu_ld" = yes; then
14810 # If archive_cmds runs LD, not CC, wlarc should be empty
14813 # Set some defaults for GNU ld with shared library support. These
14814 # are reset later if shared libraries are not supported. Putting them
14815 # here allows them to be overridden if necessary.
14816 runpath_var=LD_RUN_PATH
14817 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14818 export_dynamic_flag_spec='${wl}--export-dynamic'
14819 # ancient GNU ld didn't support --whole-archive et. al.
14820 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14821 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14823 whole_archive_flag_spec=
14825 supports_anon_versioning=no
14826 case `$LD -v 2>/dev/null` in
14827 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14828 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14829 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14830 *\ 2.11.*) ;; # other 2.11 versions
14831 *) supports_anon_versioning=yes ;;
14834 # See if GNU ld supports shared libraries.
14836 aix3* | aix4* | aix5*)
14837 # On AIX/PPC, the GNU linker is very broken
14838 if test "$host_cpu" != ia64; then
14842 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14843 *** to be unable to reliably create shared libraries on AIX.
14844 *** Therefore, libtool is disabling shared libraries support. If you
14845 *** really care for shared libraries, you may want to modify your PATH
14846 *** so that a non-GNU linker is found, and then restart.
14853 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)'
14854 hardcode_libdir_flag_spec='-L$libdir'
14855 hardcode_minus_L=yes
14857 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14858 # that the semantics of dynamic libraries on AmigaOS, at least up
14859 # to version 4, is to share data among multiple programs linked
14860 # with the same dynamic library. Since this doesn't match the
14861 # behavior of shared libraries on other platforms, we can't use
14867 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14868 allow_undefined_flag=unsupported
14869 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14870 # support --undefined. This deserves some investigation. FIXME
14871 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14877 cygwin* | mingw* | pw32*)
14878 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14879 # as there is no search path for DLLs.
14880 hardcode_libdir_flag_spec='-L$libdir'
14881 allow_undefined_flag=unsupported
14882 always_export_symbols=no
14883 enable_shared_with_static_runtimes=yes
14884 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14886 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14888 # If the export-symbols file already is a .def file (1st line
14889 # is EXPORTS), use it as is; otherwise, prepend...
14890 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14891 cp $export_symbols $output_objdir/$soname.def;
14893 echo EXPORTS > $output_objdir/$soname.def;
14894 cat $export_symbols >> $output_objdir/$soname.def;
14896 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14904 hardcode_shlibpath_var=no
14905 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14906 export_dynamic_flag_spec='${wl}-E'
14907 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14908 # Instead, shared libraries are loaded at an image base (0x10000000 by
14909 # default) and relocated if they conflict, which is a slow very memory
14910 # consuming and fragmenting process. To avoid this, we pick a random,
14911 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14912 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14913 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14914 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'
14918 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14920 case $cc_basename,$host_cpu in
14921 pgcc*) # Portland Group C compiler
14922 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'
14923 tmp_addflag=' $pic_flag'
14925 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14926 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'
14927 tmp_addflag=' $pic_flag -Mnomain' ;;
14928 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14929 tmp_addflag=' -i_dynamic' ;;
14930 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14931 tmp_addflag=' -i_dynamic -nofor_main' ;;
14932 ifc* | ifort*) # Intel Fortran compiler
14933 tmp_addflag=' -nofor_main' ;;
14935 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14937 if test $supports_anon_versioning = yes; then
14938 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14939 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14940 $echo "local: *; };" >> $output_objdir/$libname.ver~
14941 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14949 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14950 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14954 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14959 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14963 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14964 *** create shared libraries on Solaris systems. Therefore, libtool
14965 *** is disabling shared libraries support. We urge you to upgrade GNU
14966 *** binutils to release 2.9.1 or newer. Another option is to modify
14967 *** your PATH or compiler configuration so that the native linker is
14968 *** used, and then restart.
14971 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14973 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14979 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14980 case `$LD -v 2>&1` in
14981 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14985 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14986 *** reliably create shared libraries on SCO systems. Therefore, libtool
14987 *** is disabling shared libraries support. We urge you to upgrade GNU
14988 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14989 *** your PATH or compiler configuration so that the native linker is
14990 *** used, and then restart.
14995 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14996 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14998 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15007 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15009 hardcode_direct=yes
15010 hardcode_shlibpath_var=no
15014 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15023 if test "$ld_shlibs" = no; then
15025 hardcode_libdir_flag_spec=
15026 export_dynamic_flag_spec=
15027 whole_archive_flag_spec=
15030 # PORTME fill in a description of your system's linker (not GNU ld)
15033 allow_undefined_flag=unsupported
15034 always_export_symbols=yes
15035 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'
15036 # Note: this linker hardcodes the directories in LIBPATH if there
15037 # are no directories specified by -L.
15038 hardcode_minus_L=yes
15039 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15040 # Neither direct hardcoding nor static linking is supported with a
15042 hardcode_direct=unsupported
15047 if test "$host_cpu" = ia64; then
15048 # On IA64, the linker does run time linking by default, so we don't
15049 # have to do anything special.
15050 aix_use_runtimelinking=no
15051 exp_sym_flag='-Bexport'
15054 # If we're using GNU nm, then we don't want the "-C" option.
15055 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15056 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15057 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'
15059 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'
15061 aix_use_runtimelinking=no
15063 # Test if we are trying to use run time linking or normal
15064 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15065 # need to do runtime linking.
15066 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15067 for ld_flag in $LDFLAGS; do
15068 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15069 aix_use_runtimelinking=yes
15076 exp_sym_flag='-bexport'
15077 no_entry_flag='-bnoentry'
15080 # When large executables or shared objects are built, AIX ld can
15081 # have problems creating the table of contents. If linking a library
15082 # or program results in "error TOC overflow" add -mminimal-toc to
15083 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15084 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15087 hardcode_direct=yes
15088 hardcode_libdir_separator=':'
15089 link_all_deplibs=yes
15091 if test "$GCC" = yes; then
15092 case $host_os in aix4.[012]|aix4.[012].*)
15093 # We only want to do this on AIX 4.2 and lower, the check
15094 # below for broken collect2 doesn't work under 4.3+
15095 collect2name=`${CC} -print-prog-name=collect2`
15096 if test -f "$collect2name" && \
15097 strings "$collect2name" | grep resolve_lib_name >/dev/null
15099 # We have reworked collect2
15100 hardcode_direct=yes
15102 # We have old collect2
15103 hardcode_direct=unsupported
15104 # It fails to find uninstalled libraries when the uninstalled
15105 # path is not listed in the libpath. Setting hardcode_minus_L
15106 # to unsupported forces relinking
15107 hardcode_minus_L=yes
15108 hardcode_libdir_flag_spec='-L$libdir'
15109 hardcode_libdir_separator=
15113 shared_flag='-shared'
15114 if test "$aix_use_runtimelinking" = yes; then
15115 shared_flag="$shared_flag "'${wl}-G'
15119 if test "$host_cpu" = ia64; then
15120 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15121 # chokes on -Wl,-G. The following line is correct:
15124 if test "$aix_use_runtimelinking" = yes; then
15125 shared_flag='${wl}-G'
15127 shared_flag='${wl}-bM:SRE'
15132 # It seems that -bexpall does not export symbols beginning with
15133 # underscore (_), so it is better to generate a list of symbols to export.
15134 always_export_symbols=yes
15135 if test "$aix_use_runtimelinking" = yes; then
15136 # Warning - without using the other runtime loading flags (-brtl),
15137 # -berok will link without error, but may produce a broken library.
15138 allow_undefined_flag='-berok'
15139 # Determine the default libpath from the value encoded in an empty executable.
15140 cat >conftest.$ac_ext <<_ACEOF
15143 cat confdefs.h >>conftest.$ac_ext
15144 cat >>conftest.$ac_ext <<_ACEOF
15145 /* end confdefs.h. */
15155 rm -f conftest.$ac_objext conftest$ac_exeext
15156 if { (ac_try="$ac_link"
15157 case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_link") 2>conftest.er1
15164 grep -v '^ *+' conftest.er1 >conftest.err
15166 cat conftest.err >&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } &&
15169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15170 { (case "(($ac_try" in
15171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172 *) ac_try_echo=$ac_try;;
15174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15175 (eval "$ac_try") 2>&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }; } &&
15179 { ac_try='test -s conftest$ac_exeext'
15180 { (case "(($ac_try" in
15181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15182 *) ac_try_echo=$ac_try;;
15184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15185 (eval "$ac_try") 2>&5
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }; then
15190 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15192 # Check for a 64-bit object if we didn't find anything.
15193 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; }
15196 echo "$as_me: failed program was:" >&5
15197 sed 's/^/| /' conftest.$ac_ext >&5
15202 rm -f core conftest.err conftest.$ac_objext \
15203 conftest$ac_exeext conftest.$ac_ext
15204 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15206 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15207 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"
15209 if test "$host_cpu" = ia64; then
15210 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15211 allow_undefined_flag="-z nodefs"
15212 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"
15214 # Determine the default libpath from the value encoded in an empty executable.
15215 cat >conftest.$ac_ext <<_ACEOF
15218 cat confdefs.h >>conftest.$ac_ext
15219 cat >>conftest.$ac_ext <<_ACEOF
15220 /* end confdefs.h. */
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (ac_try="$ac_link"
15232 case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_link") 2>conftest.er1
15239 grep -v '^ *+' conftest.er1 >conftest.err
15241 cat conftest.err >&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } &&
15244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15245 { (case "(($ac_try" in
15246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247 *) ac_try_echo=$ac_try;;
15249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250 (eval "$ac_try") 2>&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); }; } &&
15254 { ac_try='test -s conftest$ac_exeext'
15255 { (case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_try") 2>&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; }; then
15265 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15267 # Check for a 64-bit object if we didn't find anything.
15268 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; }
15271 echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15277 rm -f core conftest.err conftest.$ac_objext \
15278 conftest$ac_exeext conftest.$ac_ext
15279 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15281 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15282 # Warning - without using the other run time loading flags,
15283 # -berok will link without error, but may produce a broken library.
15284 no_undefined_flag=' ${wl}-bernotok'
15285 allow_undefined_flag=' ${wl}-berok'
15286 # Exported symbols can be pulled into shared objects from archives
15287 whole_archive_flag_spec='$convenience'
15288 archive_cmds_need_lc=yes
15289 # This is similar to how AIX traditionally builds its shared libraries.
15290 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'
15296 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)'
15297 hardcode_libdir_flag_spec='-L$libdir'
15298 hardcode_minus_L=yes
15299 # see comment about different semantics on the GNU ld section
15304 export_dynamic_flag_spec=-rdynamic
15307 cygwin* | mingw* | pw32*)
15308 # When not using gcc, we currently assume that we are using
15309 # Microsoft Visual C++.
15310 # hardcode_libdir_flag_spec is actually meaningless, as there is
15311 # no search path for DLLs.
15312 hardcode_libdir_flag_spec=' '
15313 allow_undefined_flag=unsupported
15314 # Tell ltmain to make .lib files, not .a files.
15316 # Tell ltmain to make .dll files, not .so files.
15318 # FIXME: Setting linknames here is a bad hack.
15319 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15320 # The linker will automatically build a .lib file if we build a DLL.
15321 old_archive_From_new_cmds='true'
15322 # FIXME: Should let the user specify the lib program.
15323 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15324 fix_srcfile_path='`cygpath -w "$srcfile"`'
15325 enable_shared_with_static_runtimes=yes
15328 darwin* | rhapsody*)
15330 rhapsody* | darwin1.[012])
15331 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15334 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15335 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15337 case ${MACOSX_DEPLOYMENT_TARGET} in
15339 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15342 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15348 archive_cmds_need_lc=no
15350 hardcode_automatic=yes
15351 hardcode_shlibpath_var=unsupported
15352 whole_archive_flag_spec=''
15353 link_all_deplibs=yes
15354 if test "$GCC" = yes ; then
15355 output_verbose_link_cmd='echo'
15356 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15357 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15358 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15359 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}'
15360 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}'
15362 case $cc_basename in
15364 output_verbose_link_cmd='echo'
15365 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15366 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15367 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15368 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}'
15369 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}'
15379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15380 hardcode_libdir_flag_spec='-L$libdir'
15381 hardcode_shlibpath_var=no
15388 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15389 # support. Future versions do this automatically, but an explicit c++rt0.o
15390 # does not break anything, and helps significantly (at the cost of a little
15393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15394 hardcode_libdir_flag_spec='-R$libdir'
15395 hardcode_direct=yes
15396 hardcode_shlibpath_var=no
15399 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15402 hardcode_direct=yes
15403 hardcode_minus_L=yes
15404 hardcode_shlibpath_var=no
15407 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15408 freebsd* | kfreebsd*-gnu | dragonfly*)
15409 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15410 hardcode_libdir_flag_spec='-R$libdir'
15411 hardcode_direct=yes
15412 hardcode_shlibpath_var=no
15416 if test "$GCC" = yes; then
15417 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'
15419 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'
15421 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15422 hardcode_libdir_separator=:
15423 hardcode_direct=yes
15425 # hardcode_minus_L: Not really in the search PATH,
15426 # but as the default location of the library.
15427 hardcode_minus_L=yes
15428 export_dynamic_flag_spec='${wl}-E'
15432 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15433 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15435 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15437 if test "$with_gnu_ld" = no; then
15438 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15439 hardcode_libdir_separator=:
15441 hardcode_direct=yes
15442 export_dynamic_flag_spec='${wl}-E'
15444 # hardcode_minus_L: Not really in the search PATH,
15445 # but as the default location of the library.
15446 hardcode_minus_L=yes
15451 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15454 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15457 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15460 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15466 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15469 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15472 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15476 if test "$with_gnu_ld" = no; then
15477 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15478 hardcode_libdir_separator=:
15482 hardcode_libdir_flag_spec_ld='+b $libdir'
15484 hardcode_shlibpath_var=no
15487 hardcode_direct=yes
15488 export_dynamic_flag_spec='${wl}-E'
15490 # hardcode_minus_L: Not really in the search PATH,
15491 # but as the default location of the library.
15492 hardcode_minus_L=yes
15498 irix5* | irix6* | nonstopux*)
15499 if test "$GCC" = yes; then
15500 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'
15502 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'
15503 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15505 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15506 hardcode_libdir_separator=:
15507 link_all_deplibs=yes
15511 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15512 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15514 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15516 hardcode_libdir_flag_spec='-R$libdir'
15517 hardcode_direct=yes
15518 hardcode_shlibpath_var=no
15522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15523 hardcode_direct=yes
15524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15525 hardcode_libdir_separator=:
15526 hardcode_shlibpath_var=no
15530 hardcode_direct=yes
15531 hardcode_shlibpath_var=no
15532 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15533 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15534 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15535 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15536 export_dynamic_flag_spec='${wl}-E'
15539 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15540 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15541 hardcode_libdir_flag_spec='-R$libdir'
15544 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15545 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15552 hardcode_libdir_flag_spec='-L$libdir'
15553 hardcode_minus_L=yes
15554 allow_undefined_flag=unsupported
15555 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'
15556 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15560 if test "$GCC" = yes; then
15561 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15562 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'
15564 allow_undefined_flag=' -expect_unresolved \*'
15565 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'
15567 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15568 hardcode_libdir_separator=:
15571 osf4* | osf5*) # as osf3* with the addition of -msym flag
15572 if test "$GCC" = yes; then
15573 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15574 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'
15575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15577 allow_undefined_flag=' -expect_unresolved \*'
15578 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'
15579 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15580 $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'
15582 # Both c and cxx compiler support -rpath directly
15583 hardcode_libdir_flag_spec='-rpath $libdir'
15585 hardcode_libdir_separator=:
15589 no_undefined_flag=' -z text'
15590 if test "$GCC" = yes; then
15592 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15593 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15594 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15597 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15598 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15599 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15601 hardcode_libdir_flag_spec='-R$libdir'
15602 hardcode_shlibpath_var=no
15604 solaris2.[0-5] | solaris2.[0-5].*) ;;
15606 # The compiler driver will combine linker options so we
15607 # cannot just pass the convience library names through
15608 # without $wl, iff we do not link with $LD.
15609 # Luckily, gcc supports the same syntax we need for Sun Studio.
15610 # Supported since Solaris 2.6 (maybe 2.5.1?)
15613 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15615 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' ;;
15618 link_all_deplibs=yes
15622 if test "x$host_vendor" = xsequent; then
15623 # Use $CC to link under sequent, because it throws in some extra .o
15624 # files that make .init and .fini sections work.
15625 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15627 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15629 hardcode_libdir_flag_spec='-L$libdir'
15630 hardcode_direct=yes
15631 hardcode_minus_L=yes
15632 hardcode_shlibpath_var=no
15636 case $host_vendor in
15638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15639 hardcode_direct=yes # is this really true???
15642 ## LD is ld it makes a PLAMLIB
15643 ## CC just makes a GrossModule.
15644 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15645 reload_cmds='$CC -r -o $output$reload_objs'
15649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15650 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15653 runpath_var='LD_RUN_PATH'
15654 hardcode_shlibpath_var=no
15658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15659 hardcode_shlibpath_var=no
15660 export_dynamic_flag_spec='-Bexport'
15664 if test -d /usr/nec; then
15665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15666 hardcode_shlibpath_var=no
15667 runpath_var=LD_RUN_PATH
15668 hardcode_runpath_var=yes
15673 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15674 no_undefined_flag='${wl}-z,text'
15675 archive_cmds_need_lc=no
15676 hardcode_shlibpath_var=no
15677 runpath_var='LD_RUN_PATH'
15679 if test "$GCC" = yes; then
15680 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15681 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15683 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15684 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15688 sysv5* | sco3.2v5* | sco5v6*)
15689 # Note: We can NOT use -z defs as we might desire, because we do not
15690 # link with -lc, and that would cause any symbols used from libc to
15691 # always be unresolved, which means just about no library would
15692 # ever link correctly. If we're not using GNU ld we use -z text
15693 # though, which does catch some bad symbols but isn't as heavy-handed
15695 no_undefined_flag='${wl}-z,text'
15696 allow_undefined_flag='${wl}-z,nodefs'
15697 archive_cmds_need_lc=no
15698 hardcode_shlibpath_var=no
15699 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15700 hardcode_libdir_separator=':'
15701 link_all_deplibs=yes
15702 export_dynamic_flag_spec='${wl}-Bexport'
15703 runpath_var='LD_RUN_PATH'
15705 if test "$GCC" = yes; then
15706 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15707 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15709 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15710 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15716 hardcode_libdir_flag_spec='-L$libdir'
15717 hardcode_shlibpath_var=no
15726 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15727 echo "${ECHO_T}$ld_shlibs" >&6; }
15728 test "$ld_shlibs" = no && can_build_shared=no
15731 # Do we need to explicitly link libc?
15733 case "x$archive_cmds_need_lc" in
15735 # Assume -lc should be added
15736 archive_cmds_need_lc=yes
15738 if test "$enable_shared" = yes && test "$GCC" = yes; then
15739 case $archive_cmds in
15741 # FIXME: we may have to deal with multi-command sequences.
15744 # Test whether the compiler implicitly links with -lc since on some
15745 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15746 # to ld, don't add -lc before -lgcc.
15747 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15748 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15750 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15753 (eval $ac_compile) 2>&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); } 2>conftest.err; then
15759 libobjs=conftest.$ac_objext
15761 wl=$lt_prog_compiler_wl
15762 pic_flag=$lt_prog_compiler_pic
15768 lt_save_allow_undefined_flag=$allow_undefined_flag
15769 allow_undefined_flag=
15770 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15771 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); }
15776 archive_cmds_need_lc=no
15778 archive_cmds_need_lc=yes
15780 allow_undefined_flag=$lt_save_allow_undefined_flag
15782 cat conftest.err 1>&5
15785 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15786 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15793 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15794 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15795 library_names_spec=
15796 libname_spec='lib$name'
15800 postuninstall_cmds=
15804 shlibpath_overrides_runpath=unknown
15806 dynamic_linker="$host_os ld.so"
15807 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15808 if test "$GCC" = yes; then
15809 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15810 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15811 # if the path contains ";" then we assume it to be the separator
15812 # otherwise default to the standard path separator (i.e. ":") - it is
15813 # assumed that no part of a normal pathname contains ";" but that should
15814 # okay in the real world where ";" in dirpaths is itself problematic.
15815 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15817 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15820 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15822 need_lib_prefix=unknown
15823 hardcode_into_libs=no
15825 # when you set need_version to no, make sure it does not cause -set_version
15826 # flags to be left without arguments
15827 need_version=unknown
15832 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15833 shlibpath_var=LIBPATH
15835 # AIX 3 has no versioning support, so we append a major version to the name.
15836 soname_spec='${libname}${release}${shared_ext}$major'
15843 hardcode_into_libs=yes
15844 if test "$host_cpu" = ia64; then
15845 # AIX 5 supports IA64
15846 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15847 shlibpath_var=LD_LIBRARY_PATH
15849 # With GCC up to 2.95.x, collect2 would create an import file
15850 # for dependence libraries. The import file would start with
15851 # the line `#! .'. This would cause the generated library to
15852 # depend on `.', always an invalid library. This was fixed in
15853 # development snapshots of GCC prior to 3.0.
15855 aix4 | aix4.[01] | aix4.[01].*)
15856 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15858 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15861 can_build_shared=no
15865 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15866 # soname into executable. Probably we can add versioning support to
15867 # collect2, so additional links can be useful in future.
15868 if test "$aix_use_runtimelinking" = yes; then
15869 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15870 # instead of lib<name>.a to let people know that these are not
15871 # typical AIX shared libraries.
15872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15874 # We preserve .a as extension for shared libraries through AIX4.2
15875 # and later when we are not doing run time linking.
15876 library_names_spec='${libname}${release}.a $libname.a'
15877 soname_spec='${libname}${release}${shared_ext}$major'
15879 shlibpath_var=LIBPATH
15884 library_names_spec='$libname.ixlibrary $libname.a'
15885 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15886 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'
15890 library_names_spec='${libname}${shared_ext}'
15891 dynamic_linker="$host_os ld.so"
15892 shlibpath_var=LIBRARY_PATH
15898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15899 soname_spec='${libname}${release}${shared_ext}$major'
15900 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15901 shlibpath_var=LD_LIBRARY_PATH
15902 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15903 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15904 # the default ld.so.conf also contains /usr/contrib/lib and
15905 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15906 # libtool to hard-code these into programs
15909 cygwin* | mingw* | pw32*)
15910 version_type=windows
15915 case $GCC,$host_os in
15916 yes,cygwin* | yes,mingw* | yes,pw32*)
15917 library_names_spec='$libname.dll.a'
15918 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15919 postinstall_cmds='base_file=`basename \${file}`~
15920 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15921 dldir=$destdir/`dirname \$dlpath`~
15922 test -d \$dldir || mkdir -p \$dldir~
15923 $install_prog $dir/$dlname \$dldir/$dlname~
15924 chmod a+x \$dldir/$dlname'
15925 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15926 dlpath=$dir/\$dldll~
15928 shlibpath_overrides_runpath=yes
15932 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15933 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15934 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15937 # MinGW DLLs use traditional 'lib' prefix
15938 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15939 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15940 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15941 # It is most probably a Windows format PATH printed by
15942 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15943 # path with ; separators, and with drive letters. We can handle the
15944 # drive letters (cygwin fileutils understands them), so leave them,
15945 # especially as we might pass files found there to a mingw objdump,
15946 # which wouldn't understand a cygwinified path. Ahh.
15947 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15949 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15953 # pw32 DLLs use 'pw' prefix rather than 'lib'
15954 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15960 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15963 dynamic_linker='Win32 ld.exe'
15964 # FIXME: first we should search . and the directory the executable is in
15968 darwin* | rhapsody*)
15969 dynamic_linker="$host_os dyld"
15970 version_type=darwin
15973 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15974 soname_spec='${libname}${release}${major}$shared_ext'
15975 shlibpath_overrides_runpath=yes
15976 shlibpath_var=DYLD_LIBRARY_PATH
15977 shrext_cmds='.dylib'
15978 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15979 if test "$GCC" = yes; then
15980 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"`
15982 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15984 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15992 soname_spec='${libname}${release}${shared_ext}$major'
15993 shlibpath_var=LD_LIBRARY_PATH
16004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16005 soname_spec='${libname}${release}${shared_ext}$major'
16006 shlibpath_var=LD_LIBRARY_PATH
16007 shlibpath_overrides_runpath=no
16008 hardcode_into_libs=yes
16009 dynamic_linker='GNU ld.so'
16012 freebsd* | dragonfly*)
16013 # DragonFly does not have aout. When/if they implement a new
16014 # versioning mechanism, adjust this.
16015 if test -x /usr/bin/objformat; then
16016 objformat=`/usr/bin/objformat`
16019 freebsd[123]*) objformat=aout ;;
16020 *) objformat=elf ;;
16023 version_type=freebsd-$objformat
16024 case $version_type in
16026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16031 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16035 shlibpath_var=LD_LIBRARY_PATH
16038 shlibpath_overrides_runpath=yes
16040 freebsd3.[01]* | freebsdelf3.[01]*)
16041 shlibpath_overrides_runpath=yes
16042 hardcode_into_libs=yes
16044 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16045 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16046 shlibpath_overrides_runpath=no
16047 hardcode_into_libs=yes
16049 freebsd*) # from 4.6 on
16050 shlibpath_overrides_runpath=yes
16051 hardcode_into_libs=yes
16060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16061 soname_spec='${libname}${release}${shared_ext}$major'
16062 shlibpath_var=LD_LIBRARY_PATH
16063 hardcode_into_libs=yes
16066 hpux9* | hpux10* | hpux11*)
16067 # Give a soname corresponding to the major version so that dld.sl refuses to
16068 # link against other versions.
16075 hardcode_into_libs=yes
16076 dynamic_linker="$host_os dld.so"
16077 shlibpath_var=LD_LIBRARY_PATH
16078 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16080 soname_spec='${libname}${release}${shared_ext}$major'
16081 if test "X$HPUX_IA64_MODE" = X32; then
16082 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16084 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16086 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16090 hardcode_into_libs=yes
16091 dynamic_linker="$host_os dld.sl"
16092 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16093 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095 soname_spec='${libname}${release}${shared_ext}$major'
16096 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16097 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16101 dynamic_linker="$host_os dld.sl"
16102 shlibpath_var=SHLIB_PATH
16103 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16105 soname_spec='${libname}${release}${shared_ext}$major'
16108 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16109 postinstall_cmds='chmod 555 $lib'
16116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16117 soname_spec='${libname}${release}${shared_ext}$major'
16118 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16119 shlibpath_var=LD_LIBRARY_PATH
16120 shlibpath_overrides_runpath=no
16121 hardcode_into_libs=yes
16124 irix5* | irix6* | nonstopux*)
16126 nonstopux*) version_type=nonstopux ;;
16128 if test "$lt_cv_prog_gnu_ld" = yes; then
16136 soname_spec='${libname}${release}${shared_ext}$major'
16137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16139 irix5* | nonstopux*)
16140 libsuff= shlibsuff=
16143 case $LD in # libtool.m4 will add one of these switches to LD
16144 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16145 libsuff= shlibsuff= libmagic=32-bit;;
16146 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16147 libsuff=32 shlibsuff=N32 libmagic=N32;;
16148 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16149 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16150 *) libsuff= shlibsuff= libmagic=never-match;;
16154 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16155 shlibpath_overrides_runpath=no
16156 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16157 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16158 hardcode_into_libs=yes
16161 # No shared lib support for Linux oldld, aout, or coff.
16162 linux*oldld* | linux*aout* | linux*coff*)
16166 # This must be Linux ELF.
16171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16172 soname_spec='${libname}${release}${shared_ext}$major'
16173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16174 shlibpath_var=LD_LIBRARY_PATH
16175 shlibpath_overrides_runpath=no
16176 # This implies no fast_install, which is unacceptable.
16177 # Some rework will be needed to allow for fast_install
16178 # before this can be enabled.
16179 hardcode_into_libs=yes
16181 # Append ld.so.conf contents to the search path
16182 if test -f /etc/ld.so.conf; then
16183 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' ' '`
16184 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16187 # We used to test for /lib/ld.so.1 and disable shared libraries on
16188 # powerpc, because MkLinux only supported shared libraries with the
16189 # GNU dynamic linker. Since this was broken with cross compilers,
16190 # most powerpc-linux boxes support dynamic linking these days and
16191 # people can always --disable-shared, the test was removed, and we
16192 # assume the GNU/Linux dynamic linker is in use.
16193 dynamic_linker='GNU/Linux ld.so'
16200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16201 soname_spec='${libname}${release}${shared_ext}$major'
16202 shlibpath_var=LD_LIBRARY_PATH
16203 shlibpath_overrides_runpath=no
16204 hardcode_into_libs=yes
16205 dynamic_linker='GNU ld.so'
16212 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16214 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16215 dynamic_linker='NetBSD (a.out) ld.so'
16217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16218 soname_spec='${libname}${release}${shared_ext}$major'
16219 dynamic_linker='NetBSD ld.elf_so'
16221 shlibpath_var=LD_LIBRARY_PATH
16222 shlibpath_overrides_runpath=yes
16223 hardcode_into_libs=yes
16228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16229 shlibpath_var=LD_LIBRARY_PATH
16230 shlibpath_overrides_runpath=yes
16237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16238 soname_spec='${libname}${release}${shared_ext}$major'
16239 shlibpath_var=LD_LIBRARY_PATH
16240 shlibpath_overrides_runpath=yes
16245 sys_lib_dlsearch_path_spec="/usr/lib"
16247 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16249 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16250 *) need_version=no ;;
16252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16254 shlibpath_var=LD_LIBRARY_PATH
16255 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16257 openbsd2.[89] | openbsd2.[89].*)
16258 shlibpath_overrides_runpath=no
16261 shlibpath_overrides_runpath=yes
16265 shlibpath_overrides_runpath=yes
16270 libname_spec='$name'
16273 library_names_spec='$libname${shared_ext} $libname.a'
16274 dynamic_linker='OS/2 ld.exe'
16275 shlibpath_var=LIBPATH
16278 osf3* | osf4* | osf5*)
16282 soname_spec='${libname}${release}${shared_ext}$major'
16283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16284 shlibpath_var=LD_LIBRARY_PATH
16285 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16286 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16294 soname_spec='${libname}${release}${shared_ext}$major'
16295 shlibpath_var=LD_LIBRARY_PATH
16296 shlibpath_overrides_runpath=yes
16297 hardcode_into_libs=yes
16298 # ldd complains unless libraries are executable
16299 postinstall_cmds='chmod +x $lib'
16304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16305 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16306 shlibpath_var=LD_LIBRARY_PATH
16307 shlibpath_overrides_runpath=yes
16308 if test "$with_gnu_ld" = yes; then
16316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16317 soname_spec='${libname}${release}${shared_ext}$major'
16318 shlibpath_var=LD_LIBRARY_PATH
16319 case $host_vendor in
16321 shlibpath_overrides_runpath=no
16323 export_dynamic_flag_spec='${wl}-Blargedynsym'
16324 runpath_var=LD_RUN_PATH
16332 shlibpath_overrides_runpath=no
16333 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16339 if test -d /usr/nec ;then
16341 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16342 soname_spec='$libname${shared_ext}.$major'
16343 shlibpath_var=LD_LIBRARY_PATH
16347 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16348 version_type=freebsd-elf
16351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16352 soname_spec='${libname}${release}${shared_ext}$major'
16353 shlibpath_var=LD_LIBRARY_PATH
16354 hardcode_into_libs=yes
16355 if test "$with_gnu_ld" = yes; then
16356 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16357 shlibpath_overrides_runpath=no
16359 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16360 shlibpath_overrides_runpath=yes
16363 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16367 sys_lib_dlsearch_path_spec='/usr/lib'
16372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16373 soname_spec='${libname}${release}${shared_ext}$major'
16374 shlibpath_var=LD_LIBRARY_PATH
16381 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16382 echo "${ECHO_T}$dynamic_linker" >&6; }
16383 test "$dynamic_linker" = no && can_build_shared=no
16385 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16386 if test "$GCC" = yes; then
16387 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16390 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16391 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16393 if test -n "$hardcode_libdir_flag_spec" || \
16394 test -n "$runpath_var" || \
16395 test "X$hardcode_automatic" = "Xyes" ; then
16397 # We can hardcode non-existant directories.
16398 if test "$hardcode_direct" != no &&
16399 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16400 # have to relink, otherwise we might link with an installed library
16401 # when we should be linking with a yet-to-be-installed one
16402 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16403 test "$hardcode_minus_L" != no; then
16404 # Linking always hardcodes the temporary library directory.
16405 hardcode_action=relink
16407 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16408 hardcode_action=immediate
16411 # We cannot hardcode anything, or else we can only hardcode existing
16413 hardcode_action=unsupported
16415 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16416 echo "${ECHO_T}$hardcode_action" >&6; }
16418 if test "$hardcode_action" = relink; then
16419 # Fast installation is not supported
16420 enable_fast_install=no
16421 elif test "$shlibpath_overrides_runpath" = yes ||
16422 test "$enable_shared" = no; then
16423 # Fast installation is not necessary
16424 enable_fast_install=needless
16429 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16430 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16431 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16432 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16433 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16434 { echo "$as_me:$LINENO: result: yes" >&5
16435 echo "${ECHO_T}yes" >&6; }
16437 # FIXME - insert some real tests, host_os isn't really good enough
16440 if test -n "$STRIP" ; then
16441 striplib="$STRIP -x"
16442 { echo "$as_me:$LINENO: result: yes" >&5
16443 echo "${ECHO_T}yes" >&6; }
16445 { echo "$as_me:$LINENO: result: no" >&5
16446 echo "${ECHO_T}no" >&6; }
16450 { echo "$as_me:$LINENO: result: no" >&5
16451 echo "${ECHO_T}no" >&6; }
16456 if test "x$enable_dlopen" != xyes; then
16457 enable_dlopen=unknown
16458 enable_dlopen_self=unknown
16459 enable_dlopen_self_static=unknown
16466 lt_cv_dlopen="load_add_on"
16468 lt_cv_dlopen_self=yes
16472 lt_cv_dlopen="LoadLibrary"
16477 lt_cv_dlopen="dlopen"
16482 # if libdl is installed we need to link against it
16483 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16484 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16485 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16486 echo $ECHO_N "(cached) $ECHO_C" >&6
16488 ac_check_lib_save_LIBS=$LIBS
16490 cat >conftest.$ac_ext <<_ACEOF
16493 cat confdefs.h >>conftest.$ac_ext
16494 cat >>conftest.$ac_ext <<_ACEOF
16495 /* end confdefs.h. */
16497 /* Override any GCC internal prototype to avoid an error.
16498 Use char because int might match the return type of a GCC
16499 builtin and then its argument prototype would still apply. */
16512 rm -f conftest.$ac_objext conftest$ac_exeext
16513 if { (ac_try="$ac_link"
16514 case "(($ac_try" in
16515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16516 *) ac_try_echo=$ac_try;;
16518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16519 (eval "$ac_link") 2>conftest.er1
16521 grep -v '^ *+' conftest.er1 >conftest.err
16523 cat conftest.err >&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } &&
16526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16527 { (case "(($ac_try" in
16528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529 *) ac_try_echo=$ac_try;;
16531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532 (eval "$ac_try") 2>&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; } &&
16536 { ac_try='test -s conftest$ac_exeext'
16537 { (case "(($ac_try" in
16538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16539 *) ac_try_echo=$ac_try;;
16541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16542 (eval "$ac_try") 2>&5
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); }; }; then
16546 ac_cv_lib_dl_dlopen=yes
16548 echo "$as_me: failed program was:" >&5
16549 sed 's/^/| /' conftest.$ac_ext >&5
16551 ac_cv_lib_dl_dlopen=no
16554 rm -f core conftest.err conftest.$ac_objext \
16555 conftest$ac_exeext conftest.$ac_ext
16556 LIBS=$ac_check_lib_save_LIBS
16558 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16559 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16560 if test $ac_cv_lib_dl_dlopen = yes; then
16561 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16564 lt_cv_dlopen="dyld"
16566 lt_cv_dlopen_self=yes
16573 { echo "$as_me:$LINENO: checking for shl_load" >&5
16574 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16575 if test "${ac_cv_func_shl_load+set}" = set; then
16576 echo $ECHO_N "(cached) $ECHO_C" >&6
16578 cat >conftest.$ac_ext <<_ACEOF
16581 cat confdefs.h >>conftest.$ac_ext
16582 cat >>conftest.$ac_ext <<_ACEOF
16583 /* end confdefs.h. */
16584 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16586 #define shl_load innocuous_shl_load
16588 /* System header to define __stub macros and hopefully few prototypes,
16589 which can conflict with char shl_load (); below.
16590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16591 <limits.h> exists even on freestanding compilers. */
16594 # include <limits.h>
16596 # include <assert.h>
16601 /* Override any GCC internal prototype to avoid an error.
16602 Use char because int might match the return type of a GCC
16603 builtin and then its argument prototype would still apply. */
16608 /* The GNU C library defines this for functions which it implements
16609 to always fail with ENOSYS. Some functions are actually named
16610 something starting with __ and the normal name is an alias. */
16611 #if defined __stub_shl_load || defined __stub___shl_load
16618 return shl_load ();
16623 rm -f conftest.$ac_objext conftest$ac_exeext
16624 if { (ac_try="$ac_link"
16625 case "(($ac_try" in
16626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16627 *) ac_try_echo=$ac_try;;
16629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16630 (eval "$ac_link") 2>conftest.er1
16632 grep -v '^ *+' conftest.er1 >conftest.err
16634 cat conftest.err >&5
16635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 (exit $ac_status); } &&
16637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16638 { (case "(($ac_try" in
16639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16640 *) ac_try_echo=$ac_try;;
16642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16643 (eval "$ac_try") 2>&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); }; } &&
16647 { ac_try='test -s conftest$ac_exeext'
16648 { (case "(($ac_try" in
16649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650 *) ac_try_echo=$ac_try;;
16652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653 (eval "$ac_try") 2>&5
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; }; then
16657 ac_cv_func_shl_load=yes
16659 echo "$as_me: failed program was:" >&5
16660 sed 's/^/| /' conftest.$ac_ext >&5
16662 ac_cv_func_shl_load=no
16665 rm -f core conftest.err conftest.$ac_objext \
16666 conftest$ac_exeext conftest.$ac_ext
16668 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16669 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16670 if test $ac_cv_func_shl_load = yes; then
16671 lt_cv_dlopen="shl_load"
16673 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16674 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16675 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16676 echo $ECHO_N "(cached) $ECHO_C" >&6
16678 ac_check_lib_save_LIBS=$LIBS
16680 cat >conftest.$ac_ext <<_ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h. */
16687 /* Override any GCC internal prototype to avoid an error.
16688 Use char because int might match the return type of a GCC
16689 builtin and then its argument prototype would still apply. */
16697 return shl_load ();
16702 rm -f conftest.$ac_objext conftest$ac_exeext
16703 if { (ac_try="$ac_link"
16704 case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_link") 2>conftest.er1
16711 grep -v '^ *+' conftest.er1 >conftest.err
16713 cat conftest.err >&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } &&
16716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16717 { (case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_try") 2>&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } &&
16726 { ac_try='test -s conftest$ac_exeext'
16727 { (case "(($ac_try" in
16728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729 *) ac_try_echo=$ac_try;;
16731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732 (eval "$ac_try") 2>&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; }; then
16736 ac_cv_lib_dld_shl_load=yes
16738 echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.$ac_ext >&5
16741 ac_cv_lib_dld_shl_load=no
16744 rm -f core conftest.err conftest.$ac_objext \
16745 conftest$ac_exeext conftest.$ac_ext
16746 LIBS=$ac_check_lib_save_LIBS
16748 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16749 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16750 if test $ac_cv_lib_dld_shl_load = yes; then
16751 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16753 { echo "$as_me:$LINENO: checking for dlopen" >&5
16754 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16755 if test "${ac_cv_func_dlopen+set}" = set; then
16756 echo $ECHO_N "(cached) $ECHO_C" >&6
16758 cat >conftest.$ac_ext <<_ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16764 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16766 #define dlopen innocuous_dlopen
16768 /* System header to define __stub macros and hopefully few prototypes,
16769 which can conflict with char dlopen (); below.
16770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16771 <limits.h> exists even on freestanding compilers. */
16774 # include <limits.h>
16776 # include <assert.h>
16781 /* Override any GCC internal prototype to avoid an error.
16782 Use char because int might match the return type of a GCC
16783 builtin and then its argument prototype would still apply. */
16788 /* The GNU C library defines this for functions which it implements
16789 to always fail with ENOSYS. Some functions are actually named
16790 something starting with __ and the normal name is an alias. */
16791 #if defined __stub_dlopen || defined __stub___dlopen
16803 rm -f conftest.$ac_objext conftest$ac_exeext
16804 if { (ac_try="$ac_link"
16805 case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810 (eval "$ac_link") 2>conftest.er1
16812 grep -v '^ *+' conftest.er1 >conftest.err
16814 cat conftest.err >&5
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); } &&
16817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16818 { (case "(($ac_try" in
16819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820 *) ac_try_echo=$ac_try;;
16822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823 (eval "$ac_try") 2>&5
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); }; } &&
16827 { ac_try='test -s conftest$ac_exeext'
16828 { (case "(($ac_try" in
16829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830 *) ac_try_echo=$ac_try;;
16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833 (eval "$ac_try") 2>&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
16837 ac_cv_func_dlopen=yes
16839 echo "$as_me: failed program was:" >&5
16840 sed 's/^/| /' conftest.$ac_ext >&5
16842 ac_cv_func_dlopen=no
16845 rm -f core conftest.err conftest.$ac_objext \
16846 conftest$ac_exeext conftest.$ac_ext
16848 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16849 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16850 if test $ac_cv_func_dlopen = yes; then
16851 lt_cv_dlopen="dlopen"
16853 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16854 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16855 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16856 echo $ECHO_N "(cached) $ECHO_C" >&6
16858 ac_check_lib_save_LIBS=$LIBS
16860 cat >conftest.$ac_ext <<_ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h. */
16867 /* Override any GCC internal prototype to avoid an error.
16868 Use char because int might match the return type of a GCC
16869 builtin and then its argument prototype would still apply. */
16882 rm -f conftest.$ac_objext conftest$ac_exeext
16883 if { (ac_try="$ac_link"
16884 case "(($ac_try" in
16885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886 *) ac_try_echo=$ac_try;;
16888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889 (eval "$ac_link") 2>conftest.er1
16891 grep -v '^ *+' conftest.er1 >conftest.err
16893 cat conftest.err >&5
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); } &&
16896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16897 { (case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902 (eval "$ac_try") 2>&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }; } &&
16906 { ac_try='test -s conftest$ac_exeext'
16907 { (case "(($ac_try" in
16908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909 *) ac_try_echo=$ac_try;;
16911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912 (eval "$ac_try") 2>&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; }; then
16916 ac_cv_lib_dl_dlopen=yes
16918 echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16921 ac_cv_lib_dl_dlopen=no
16924 rm -f core conftest.err conftest.$ac_objext \
16925 conftest$ac_exeext conftest.$ac_ext
16926 LIBS=$ac_check_lib_save_LIBS
16928 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16929 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16930 if test $ac_cv_lib_dl_dlopen = yes; then
16931 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16933 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16934 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16935 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16936 echo $ECHO_N "(cached) $ECHO_C" >&6
16938 ac_check_lib_save_LIBS=$LIBS
16939 LIBS="-lsvld $LIBS"
16940 cat >conftest.$ac_ext <<_ACEOF
16943 cat confdefs.h >>conftest.$ac_ext
16944 cat >>conftest.$ac_ext <<_ACEOF
16945 /* end confdefs.h. */
16947 /* Override any GCC internal prototype to avoid an error.
16948 Use char because int might match the return type of a GCC
16949 builtin and then its argument prototype would still apply. */
16962 rm -f conftest.$ac_objext conftest$ac_exeext
16963 if { (ac_try="$ac_link"
16964 case "(($ac_try" in
16965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966 *) ac_try_echo=$ac_try;;
16968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16969 (eval "$ac_link") 2>conftest.er1
16971 grep -v '^ *+' conftest.er1 >conftest.err
16973 cat conftest.err >&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); } &&
16976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16977 { (case "(($ac_try" in
16978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979 *) ac_try_echo=$ac_try;;
16981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16982 (eval "$ac_try") 2>&5
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; } &&
16986 { ac_try='test -s conftest$ac_exeext'
16987 { (case "(($ac_try" in
16988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16989 *) ac_try_echo=$ac_try;;
16991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16992 (eval "$ac_try") 2>&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); }; }; then
16996 ac_cv_lib_svld_dlopen=yes
16998 echo "$as_me: failed program was:" >&5
16999 sed 's/^/| /' conftest.$ac_ext >&5
17001 ac_cv_lib_svld_dlopen=no
17004 rm -f core conftest.err conftest.$ac_objext \
17005 conftest$ac_exeext conftest.$ac_ext
17006 LIBS=$ac_check_lib_save_LIBS
17008 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17009 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17010 if test $ac_cv_lib_svld_dlopen = yes; then
17011 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17013 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17014 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17015 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17016 echo $ECHO_N "(cached) $ECHO_C" >&6
17018 ac_check_lib_save_LIBS=$LIBS
17020 cat >conftest.$ac_ext <<_ACEOF
17023 cat confdefs.h >>conftest.$ac_ext
17024 cat >>conftest.$ac_ext <<_ACEOF
17025 /* end confdefs.h. */
17027 /* Override any GCC internal prototype to avoid an error.
17028 Use char because int might match the return type of a GCC
17029 builtin and then its argument prototype would still apply. */
17037 return dld_link ();
17042 rm -f conftest.$ac_objext conftest$ac_exeext
17043 if { (ac_try="$ac_link"
17044 case "(($ac_try" in
17045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046 *) ac_try_echo=$ac_try;;
17048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17049 (eval "$ac_link") 2>conftest.er1
17051 grep -v '^ *+' conftest.er1 >conftest.err
17053 cat conftest.err >&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } &&
17056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17057 { (case "(($ac_try" in
17058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059 *) ac_try_echo=$ac_try;;
17061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062 (eval "$ac_try") 2>&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; } &&
17066 { ac_try='test -s conftest$ac_exeext'
17067 { (case "(($ac_try" in
17068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17069 *) ac_try_echo=$ac_try;;
17071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17072 (eval "$ac_try") 2>&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); }; }; then
17076 ac_cv_lib_dld_dld_link=yes
17078 echo "$as_me: failed program was:" >&5
17079 sed 's/^/| /' conftest.$ac_ext >&5
17081 ac_cv_lib_dld_dld_link=no
17084 rm -f core conftest.err conftest.$ac_objext \
17085 conftest$ac_exeext conftest.$ac_ext
17086 LIBS=$ac_check_lib_save_LIBS
17088 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17089 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17090 if test $ac_cv_lib_dld_dld_link = yes; then
17091 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17112 if test "x$lt_cv_dlopen" != xno; then
17118 case $lt_cv_dlopen in
17120 save_CPPFLAGS="$CPPFLAGS"
17121 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17123 save_LDFLAGS="$LDFLAGS"
17124 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17127 LIBS="$lt_cv_dlopen_libs $LIBS"
17129 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17130 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17131 if test "${lt_cv_dlopen_self+set}" = set; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17134 if test "$cross_compiling" = yes; then :
17135 lt_cv_dlopen_self=cross
17137 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17138 lt_status=$lt_dlunknown
17139 cat > conftest.$ac_ext <<EOF
17140 #line 17140 "configure"
17141 #include "confdefs.h"
17150 # define LT_DLGLOBAL RTLD_GLOBAL
17153 # define LT_DLGLOBAL DL_GLOBAL
17155 # define LT_DLGLOBAL 0
17159 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17160 find out it does not work in some platform. */
17161 #ifndef LT_DLLAZY_OR_NOW
17163 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17166 # define LT_DLLAZY_OR_NOW DL_LAZY
17169 # define LT_DLLAZY_OR_NOW RTLD_NOW
17172 # define LT_DLLAZY_OR_NOW DL_NOW
17174 # define LT_DLLAZY_OR_NOW 0
17182 extern "C" void exit (int);
17185 void fnord() { int i=42;}
17188 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17189 int status = $lt_dlunknown;
17193 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17194 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17195 /* dlclose (self); */
17203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17204 (eval $ac_link) 2>&5
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17208 (./conftest; exit; ) >&5 2>/dev/null
17210 case x$lt_status in
17211 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17212 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17213 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17216 # compilation failed
17217 lt_cv_dlopen_self=no
17224 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17225 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17227 if test "x$lt_cv_dlopen_self" = xyes; then
17228 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17229 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17230 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17231 if test "${lt_cv_dlopen_self_static+set}" = set; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17234 if test "$cross_compiling" = yes; then :
17235 lt_cv_dlopen_self_static=cross
17237 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17238 lt_status=$lt_dlunknown
17239 cat > conftest.$ac_ext <<EOF
17240 #line 17240 "configure"
17241 #include "confdefs.h"
17250 # define LT_DLGLOBAL RTLD_GLOBAL
17253 # define LT_DLGLOBAL DL_GLOBAL
17255 # define LT_DLGLOBAL 0
17259 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17260 find out it does not work in some platform. */
17261 #ifndef LT_DLLAZY_OR_NOW
17263 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17266 # define LT_DLLAZY_OR_NOW DL_LAZY
17269 # define LT_DLLAZY_OR_NOW RTLD_NOW
17272 # define LT_DLLAZY_OR_NOW DL_NOW
17274 # define LT_DLLAZY_OR_NOW 0
17282 extern "C" void exit (int);
17285 void fnord() { int i=42;}
17288 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17289 int status = $lt_dlunknown;
17293 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17294 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17295 /* dlclose (self); */
17303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17304 (eval $ac_link) 2>&5
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17308 (./conftest; exit; ) >&5 2>/dev/null
17310 case x$lt_status in
17311 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17312 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17313 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17316 # compilation failed
17317 lt_cv_dlopen_self_static=no
17324 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17325 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17328 CPPFLAGS="$save_CPPFLAGS"
17329 LDFLAGS="$save_LDFLAGS"
17334 case $lt_cv_dlopen_self in
17335 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17336 *) enable_dlopen_self=unknown ;;
17339 case $lt_cv_dlopen_self_static in
17340 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17341 *) enable_dlopen_self_static=unknown ;;
17346 # Report which library types will actually be built
17347 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17348 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17349 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17350 echo "${ECHO_T}$can_build_shared" >&6; }
17352 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17353 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17354 test "$can_build_shared" = "no" && enable_shared=no
17356 # On AIX, shared libraries and static libraries use the same namespace, and
17357 # are all built from PIC.
17360 test "$enable_shared" = yes && enable_static=no
17361 if test -n "$RANLIB"; then
17362 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17363 postinstall_cmds='$RANLIB $lib'
17368 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17369 test "$enable_shared" = yes && enable_static=no
17373 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17374 echo "${ECHO_T}$enable_shared" >&6; }
17376 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17377 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17378 # Make sure either enable_shared or enable_static is yes.
17379 test "$enable_shared" = yes || enable_static=yes
17380 { echo "$as_me:$LINENO: result: $enable_static" >&5
17381 echo "${ECHO_T}$enable_static" >&6; }
17383 # The else clause should only fire when bootstrapping the
17384 # libtool distribution, otherwise you forgot to ship ltmain.sh
17385 # with your package, and you will get complaints that there are
17386 # no rules to generate ltmain.sh.
17387 if test -f "$ltmain"; then
17388 # See if we are running on zsh, and set the options which allow our commands through
17389 # without removal of \ escapes.
17390 if test -n "${ZSH_VERSION+set}" ; then
17391 setopt NO_GLOB_SUBST
17393 # Now quote all the things that may contain metacharacters while being
17394 # careful not to overquote the AC_SUBSTed values. We take copies of the
17395 # variables and quote the copies for generation of the libtool script.
17396 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17398 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17399 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17400 deplibs_check_method reload_flag reload_cmds need_locks \
17401 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17402 lt_cv_sys_global_symbol_to_c_name_address \
17403 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17404 old_postinstall_cmds old_postuninstall_cmds \
17408 lt_prog_compiler_wl \
17409 lt_prog_compiler_pic \
17410 lt_prog_compiler_static \
17411 lt_prog_compiler_no_builtin_flag \
17412 export_dynamic_flag_spec \
17413 thread_safe_flag_spec \
17414 whole_archive_flag_spec \
17415 enable_shared_with_static_runtimes \
17417 old_archive_from_new_cmds \
17422 compiler_lib_search_path \
17424 archive_expsym_cmds \
17426 postuninstall_cmds \
17427 old_archive_from_expsyms_cmds \
17428 allow_undefined_flag \
17429 no_undefined_flag \
17430 export_symbols_cmds \
17431 hardcode_libdir_flag_spec \
17432 hardcode_libdir_flag_spec_ld \
17433 hardcode_libdir_separator \
17434 hardcode_automatic \
17436 module_expsym_cmds \
17437 lt_cv_prog_compiler_c_o \
17439 include_expsyms; do
17442 old_archive_cmds | \
17443 old_archive_from_new_cmds | \
17445 archive_expsym_cmds | \
17447 module_expsym_cmds | \
17448 old_archive_from_expsyms_cmds | \
17449 export_symbols_cmds | \
17450 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17451 postinstall_cmds | postuninstall_cmds | \
17452 old_postinstall_cmds | old_postuninstall_cmds | \
17453 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17454 # Double-quote double-evaled strings.
17455 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17458 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17464 *'\$0 --fallback-echo"')
17465 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17469 cfgfile="${ofile}T"
17470 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17472 { echo "$as_me:$LINENO: creating $ofile" >&5
17473 echo "$as_me: creating $ofile" >&6;}
17475 cat <<__EOF__ >> "$cfgfile"
17478 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17479 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17480 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17482 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17483 # Free Software Foundation, Inc.
17485 # This file is part of GNU Libtool:
17486 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17488 # This program is free software; you can redistribute it and/or modify
17489 # it under the terms of the GNU General Public License as published by
17490 # the Free Software Foundation; either version 2 of the License, or
17491 # (at your option) any later version.
17493 # This program is distributed in the hope that it will be useful, but
17494 # WITHOUT ANY WARRANTY; without even the implied warranty of
17495 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17496 # General Public License for more details.
17498 # You should have received a copy of the GNU General Public License
17499 # along with this program; if not, write to the Free Software
17500 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17502 # As a special exception to the GNU General Public License, if you
17503 # distribute this file as part of a program that contains a
17504 # configuration script generated by Autoconf, you may include it under
17505 # the same distribution terms that you use for the rest of that program.
17507 # A sed program that does not truncate output.
17510 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17511 Xsed="$SED -e 1s/^X//"
17513 # The HP-UX ksh and POSIX shell print the target directory to stdout
17514 # if CDPATH is set.
17515 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17517 # The names of the tagged configurations supported by this script.
17520 # ### BEGIN LIBTOOL CONFIG
17522 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17524 # Shell to use when invoking shell scripts.
17527 # Whether or not to build shared libraries.
17528 build_libtool_libs=$enable_shared
17530 # Whether or not to build static libraries.
17531 build_old_libs=$enable_static
17533 # Whether or not to add -lc for building shared libraries.
17534 build_libtool_need_lc=$archive_cmds_need_lc
17536 # Whether or not to disallow shared libs when runtime libs are static
17537 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17539 # Whether or not to optimize for fast installation.
17540 fast_install=$enable_fast_install
17543 host_alias=$host_alias
17547 # The build system.
17548 build_alias=$build_alias
17552 # An echo program that does not interpret backslashes.
17557 AR_FLAGS=$lt_AR_FLAGS
17562 # LTCC compiler flags.
17563 LTCFLAGS=$lt_LTCFLAGS
17565 # A language-specific compiler.
17568 # Is the compiler the GNU C compiler?
17574 # The linker used to build libraries.
17577 # Whether we need hard or soft links.
17580 # A BSD-compatible nm program.
17583 # A symbol stripping program
17586 # Used to examine libraries when file_magic_cmd begins "file"
17587 MAGIC_CMD=$MAGIC_CMD
17589 # Used on cygwin: DLL creation program.
17592 # Used on cygwin: object dumper.
17595 # Used on cygwin: assembler.
17598 # The name of the directory that contains temporary libtool files.
17601 # How to create reloadable object files.
17602 reload_flag=$lt_reload_flag
17603 reload_cmds=$lt_reload_cmds
17605 # How to pass a linker flag through the compiler.
17606 wl=$lt_lt_prog_compiler_wl
17608 # Object file suffix (normally "o").
17609 objext="$ac_objext"
17611 # Old archive suffix (normally "a").
17614 # Shared library suffix (normally ".so").
17615 shrext_cmds='$shrext_cmds'
17617 # Executable file suffix (normally "").
17620 # Additional compiler flags for building library objects.
17621 pic_flag=$lt_lt_prog_compiler_pic
17624 # What is the maximum length of a command?
17625 max_cmd_len=$lt_cv_sys_max_cmd_len
17627 # Does compiler simultaneously support -c and -o options?
17628 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17630 # Must we lock files when doing compilation?
17631 need_locks=$lt_need_locks
17633 # Do we need the lib prefix for modules?
17634 need_lib_prefix=$need_lib_prefix
17636 # Do we need a version for libraries?
17637 need_version=$need_version
17639 # Whether dlopen is supported.
17640 dlopen_support=$enable_dlopen
17642 # Whether dlopen of programs is supported.
17643 dlopen_self=$enable_dlopen_self
17645 # Whether dlopen of statically linked programs is supported.
17646 dlopen_self_static=$enable_dlopen_self_static
17648 # Compiler flag to prevent dynamic linking.
17649 link_static_flag=$lt_lt_prog_compiler_static
17651 # Compiler flag to turn off builtin functions.
17652 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17654 # Compiler flag to allow reflexive dlopens.
17655 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17657 # Compiler flag to generate shared objects directly from archives.
17658 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17660 # Compiler flag to generate thread-safe objects.
17661 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17663 # Library versioning type.
17664 version_type=$version_type
17666 # Format of library name prefix.
17667 libname_spec=$lt_libname_spec
17669 # List of archive names. First name is the real one, the rest are links.
17670 # The last name is the one that the linker finds with -lNAME.
17671 library_names_spec=$lt_library_names_spec
17673 # The coded name of the library, if different from the real name.
17674 soname_spec=$lt_soname_spec
17676 # Commands used to build and install an old-style archive.
17678 old_archive_cmds=$lt_old_archive_cmds
17679 old_postinstall_cmds=$lt_old_postinstall_cmds
17680 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17682 # Create an old-style archive from a shared archive.
17683 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17685 # Create a temporary old-style archive to link instead of a shared archive.
17686 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17688 # Commands used to build and install a shared archive.
17689 archive_cmds=$lt_archive_cmds
17690 archive_expsym_cmds=$lt_archive_expsym_cmds
17691 postinstall_cmds=$lt_postinstall_cmds
17692 postuninstall_cmds=$lt_postuninstall_cmds
17694 # Commands used to build a loadable module (assumed same as above if empty)
17695 module_cmds=$lt_module_cmds
17696 module_expsym_cmds=$lt_module_expsym_cmds
17698 # Commands to strip libraries.
17699 old_striplib=$lt_old_striplib
17700 striplib=$lt_striplib
17702 # Dependencies to place before the objects being linked to create a
17704 predep_objects=$lt_predep_objects
17706 # Dependencies to place after the objects being linked to create a
17708 postdep_objects=$lt_postdep_objects
17710 # Dependencies to place before the objects being linked to create a
17712 predeps=$lt_predeps
17714 # Dependencies to place after the objects being linked to create a
17716 postdeps=$lt_postdeps
17718 # The library search path used internally by the compiler when linking
17719 # a shared library.
17720 compiler_lib_search_path=$lt_compiler_lib_search_path
17722 # Method to check whether dependent libraries are shared objects.
17723 deplibs_check_method=$lt_deplibs_check_method
17725 # Command to use when deplibs_check_method == file_magic.
17726 file_magic_cmd=$lt_file_magic_cmd
17728 # Flag that allows shared libraries with undefined symbols to be built.
17729 allow_undefined_flag=$lt_allow_undefined_flag
17731 # Flag that forces no undefined symbols.
17732 no_undefined_flag=$lt_no_undefined_flag
17734 # Commands used to finish a libtool library installation in a directory.
17735 finish_cmds=$lt_finish_cmds
17737 # Same as above, but a single script fragment to be evaled but not shown.
17738 finish_eval=$lt_finish_eval
17740 # Take the output of nm and produce a listing of raw symbols and C names.
17741 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17743 # Transform the output of nm in a proper C declaration
17744 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17746 # Transform the output of nm in a C name address pair
17747 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17749 # This is the shared library runtime path variable.
17750 runpath_var=$runpath_var
17752 # This is the shared library path variable.
17753 shlibpath_var=$shlibpath_var
17755 # Is shlibpath searched before the hard-coded library search path?
17756 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17758 # How to hardcode a shared library path into an executable.
17759 hardcode_action=$hardcode_action
17761 # Whether we should hardcode library paths into libraries.
17762 hardcode_into_libs=$hardcode_into_libs
17764 # Flag to hardcode \$libdir into a binary during linking.
17765 # This must work even if \$libdir does not exist.
17766 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17768 # If ld is used when linking, flag to hardcode \$libdir into
17769 # a binary during linking. This must work even if \$libdir does
17771 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17773 # Whether we need a single -rpath flag with a separated argument.
17774 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17776 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17777 # resulting binary.
17778 hardcode_direct=$hardcode_direct
17780 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17781 # resulting binary.
17782 hardcode_minus_L=$hardcode_minus_L
17784 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17785 # the resulting binary.
17786 hardcode_shlibpath_var=$hardcode_shlibpath_var
17788 # Set to yes if building a shared library automatically hardcodes DIR into the library
17789 # and all subsequent libraries and executables linked against it.
17790 hardcode_automatic=$hardcode_automatic
17792 # Variables whose values should be saved in libtool wrapper scripts and
17793 # restored at relink time.
17794 variables_saved_for_relink="$variables_saved_for_relink"
17796 # Whether libtool must link a program against all its dependency libraries.
17797 link_all_deplibs=$link_all_deplibs
17799 # Compile-time system search path for libraries
17800 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17802 # Run-time system search path for libraries
17803 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17805 # Fix the shell variable \$srcfile for the compiler.
17806 fix_srcfile_path="$fix_srcfile_path"
17808 # Set to yes if exported symbols are required.
17809 always_export_symbols=$always_export_symbols
17811 # The commands to list exported symbols.
17812 export_symbols_cmds=$lt_export_symbols_cmds
17814 # The commands to extract the exported symbol list from a shared archive.
17815 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17817 # Symbols that should not be listed in the preloaded symbols.
17818 exclude_expsyms=$lt_exclude_expsyms
17820 # Symbols that must always be exported.
17821 include_expsyms=$lt_include_expsyms
17823 # ### END LIBTOOL CONFIG
17830 cat <<\EOF >> "$cfgfile"
17832 # AIX sometimes has problems with the GCC collect2 program. For some
17833 # reason, if we set the COLLECT_NAMES environment variable, the problems
17834 # vanish in a puff of smoke.
17835 if test "X${COLLECT_NAMES+set}" != Xset; then
17837 export COLLECT_NAMES
17843 # We use sed instead of cat because bash on DJGPP gets confused if
17844 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17845 # text mode, it properly converts lines to CR/LF. This bash problem
17846 # is reportedly fixed, but why not run on old versions too?
17847 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17849 mv -f "$cfgfile" "$ofile" || \
17850 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17854 # If there is no Makefile yet, we rely on a make rule to execute
17855 # `config.status --recheck' to rerun these tests and create the
17856 # libtool script then.
17857 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17858 if test -f "$ltmain_in"; then
17859 test -f Makefile && make "$ltmain"
17865 ac_cpp='$CPP $CPPFLAGS'
17866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17873 # Check whether --with-tags was given.
17874 if test "${with_tags+set}" = set; then
17875 withval=$with_tags; tagnames="$withval"
17879 if test -f "$ltmain" && test -n "$tagnames"; then
17880 if test ! -f "${ofile}"; then
17881 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17882 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17885 if test -z "$LTCC"; then
17886 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17887 if test -z "$LTCC"; then
17888 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17889 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17891 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17892 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17895 if test -z "$LTCFLAGS"; then
17896 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17899 # Extract list of available tagged configurations in $ofile.
17900 # Note that this assumes the entire list is on one line.
17901 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17903 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17904 for tagname in $tagnames; do
17906 # Check whether tagname contains only valid characters
17907 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17909 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17910 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17911 { (exit 1); exit 1; }; }
17915 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17917 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17918 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17919 { (exit 1); exit 1; }; }
17922 # Update the list of available tags.
17923 if test -n "$tagname"; then
17924 echo appending configuration tag \"$tagname\" to $ofile
17928 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17929 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17930 (test "X$CXX" != "Xg++"))) ; then
17932 ac_cpp='$CXXCPP $CPPFLAGS'
17933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17940 archive_cmds_need_lc_CXX=no
17941 allow_undefined_flag_CXX=
17942 always_export_symbols_CXX=no
17943 archive_expsym_cmds_CXX=
17944 export_dynamic_flag_spec_CXX=
17945 hardcode_direct_CXX=no
17946 hardcode_libdir_flag_spec_CXX=
17947 hardcode_libdir_flag_spec_ld_CXX=
17948 hardcode_libdir_separator_CXX=
17949 hardcode_minus_L_CXX=no
17950 hardcode_shlibpath_var_CXX=unsupported
17951 hardcode_automatic_CXX=no
17953 module_expsym_cmds_CXX=
17954 link_all_deplibs_CXX=unknown
17955 old_archive_cmds_CXX=$old_archive_cmds
17956 no_undefined_flag_CXX=
17957 whole_archive_flag_spec_CXX=
17958 enable_shared_with_static_runtimes_CXX=no
17960 # Dependencies to place before and after the object being linked:
17961 predep_objects_CXX=
17962 postdep_objects_CXX=
17965 compiler_lib_search_path_CXX=
17967 # Source file extension for C++ test sources.
17970 # Object file extension for compiled C++ test sources.
17974 # Code to be used in simple compile tests
17975 lt_simple_compile_test_code="int some_variable = 0;\n"
17977 # Code to be used in simple link tests
17978 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17980 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17982 # If no C compiler was specified, use CC.
17985 # If no C compiler flags were specified, use CFLAGS.
17986 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17988 # Allow CC to be a program name with arguments.
17992 # save warnings/boilerplate of simple test code
17993 ac_outfile=conftest.$ac_objext
17994 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17995 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17996 _lt_compiler_boilerplate=`cat conftest.err`
17999 ac_outfile=conftest.$ac_objext
18000 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18001 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18002 _lt_linker_boilerplate=`cat conftest.err`
18006 # Allow CC to be a program name with arguments.
18011 lt_save_with_gnu_ld=$with_gnu_ld
18012 lt_save_path_LD=$lt_cv_path_LD
18013 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18014 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18016 $as_unset lt_cv_prog_gnu_ld
18018 if test -n "${lt_cv_path_LDCXX+set}"; then
18019 lt_cv_path_LD=$lt_cv_path_LDCXX
18021 $as_unset lt_cv_path_LD
18023 test -z "${LDCXX+set}" || LD=$LDCXX
18027 for cc_temp in $compiler""; do
18029 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18030 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18035 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18038 # We don't want -fno-exception wen compiling C++ code, so set the
18039 # no_builtin_flag separately
18040 if test "$GXX" = yes; then
18041 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18043 lt_prog_compiler_no_builtin_flag_CXX=
18046 if test "$GXX" = yes; then
18047 # Set up default GNU C++ configuration
18050 # Check whether --with-gnu-ld was given.
18051 if test "${with_gnu_ld+set}" = set; then
18052 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18058 if test "$GCC" = yes; then
18059 # Check if gcc -print-prog-name=ld gives a path.
18060 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18061 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18064 # gcc leaves a trailing carriage return which upsets mingw
18065 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18067 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18070 # Accept absolute paths.
18072 re_direlt='/[^/][^/]*/\.\./'
18073 # Canonicalize the pathname of ld
18074 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18075 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18076 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18078 test -z "$LD" && LD="$ac_prog"
18081 # If it fails, then pretend we aren't using GCC.
18085 # If it is relative, then search for the first ld in PATH.
18086 with_gnu_ld=unknown
18089 elif test "$with_gnu_ld" = yes; then
18090 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18091 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18093 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18094 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18096 if test "${lt_cv_path_LD+set}" = set; then
18097 echo $ECHO_N "(cached) $ECHO_C" >&6
18099 if test -z "$LD"; then
18100 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18101 for ac_dir in $PATH; do
18103 test -z "$ac_dir" && ac_dir=.
18104 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18105 lt_cv_path_LD="$ac_dir/$ac_prog"
18106 # Check to see if the program is GNU ld. I'd rather use --version,
18107 # but apparently some variants of GNU ld only accept -v.
18108 # Break only if it was the GNU/non-GNU ld that we prefer.
18109 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18110 *GNU* | *'with BFD'*)
18111 test "$with_gnu_ld" != no && break
18114 test "$with_gnu_ld" != yes && break
18121 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18125 LD="$lt_cv_path_LD"
18126 if test -n "$LD"; then
18127 { echo "$as_me:$LINENO: result: $LD" >&5
18128 echo "${ECHO_T}$LD" >&6; }
18130 { echo "$as_me:$LINENO: result: no" >&5
18131 echo "${ECHO_T}no" >&6; }
18133 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18134 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18135 { (exit 1); exit 1; }; }
18136 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18137 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18138 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18139 echo $ECHO_N "(cached) $ECHO_C" >&6
18141 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18142 case `$LD -v 2>&1 </dev/null` in
18143 *GNU* | *'with BFD'*)
18144 lt_cv_prog_gnu_ld=yes
18147 lt_cv_prog_gnu_ld=no
18151 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18152 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18153 with_gnu_ld=$lt_cv_prog_gnu_ld
18157 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18158 # archiving commands below assume that GNU ld is being used.
18159 if test "$with_gnu_ld" = yes; then
18160 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18161 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'
18163 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18164 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18166 # If archive_cmds runs LD, not CC, wlarc should be empty
18167 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18168 # investigate it a little bit more. (MM)
18171 # ancient GNU ld didn't support --whole-archive et. al.
18172 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18173 grep 'no-whole-archive' > /dev/null; then
18174 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18176 whole_archive_flag_spec_CXX=
18182 # A generic and very simple default shared library creation
18183 # command for GNU C++ for the case where it uses the native
18184 # linker, instead of GNU ld. If possible, this setting should
18185 # overridden to take advantage of the native linker features on
18186 # the platform it is being used on.
18187 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18190 # Commands to make compiler produce verbose output that lists
18191 # what "hidden" libraries, object files and flags are used when
18192 # linking a shared library.
18193 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18201 # PORTME: fill in a description of your system's C++ link characteristics
18202 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18203 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18207 # FIXME: insert proper C++ library support
18211 if test "$host_cpu" = ia64; then
18212 # On IA64, the linker does run time linking by default, so we don't
18213 # have to do anything special.
18214 aix_use_runtimelinking=no
18215 exp_sym_flag='-Bexport'
18218 aix_use_runtimelinking=no
18220 # Test if we are trying to use run time linking or normal
18221 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18222 # need to do runtime linking.
18223 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18224 for ld_flag in $LDFLAGS; do
18227 aix_use_runtimelinking=yes
18235 exp_sym_flag='-bexport'
18236 no_entry_flag='-bnoentry'
18239 # When large executables or shared objects are built, AIX ld can
18240 # have problems creating the table of contents. If linking a library
18241 # or program results in "error TOC overflow" add -mminimal-toc to
18242 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18243 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18245 archive_cmds_CXX=''
18246 hardcode_direct_CXX=yes
18247 hardcode_libdir_separator_CXX=':'
18248 link_all_deplibs_CXX=yes
18250 if test "$GXX" = yes; then
18251 case $host_os in aix4.[012]|aix4.[012].*)
18252 # We only want to do this on AIX 4.2 and lower, the check
18253 # below for broken collect2 doesn't work under 4.3+
18254 collect2name=`${CC} -print-prog-name=collect2`
18255 if test -f "$collect2name" && \
18256 strings "$collect2name" | grep resolve_lib_name >/dev/null
18258 # We have reworked collect2
18259 hardcode_direct_CXX=yes
18261 # We have old collect2
18262 hardcode_direct_CXX=unsupported
18263 # It fails to find uninstalled libraries when the uninstalled
18264 # path is not listed in the libpath. Setting hardcode_minus_L
18265 # to unsupported forces relinking
18266 hardcode_minus_L_CXX=yes
18267 hardcode_libdir_flag_spec_CXX='-L$libdir'
18268 hardcode_libdir_separator_CXX=
18272 shared_flag='-shared'
18273 if test "$aix_use_runtimelinking" = yes; then
18274 shared_flag="$shared_flag "'${wl}-G'
18278 if test "$host_cpu" = ia64; then
18279 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18280 # chokes on -Wl,-G. The following line is correct:
18283 if test "$aix_use_runtimelinking" = yes; then
18284 shared_flag='${wl}-G'
18286 shared_flag='${wl}-bM:SRE'
18291 # It seems that -bexpall does not export symbols beginning with
18292 # underscore (_), so it is better to generate a list of symbols to export.
18293 always_export_symbols_CXX=yes
18294 if test "$aix_use_runtimelinking" = yes; then
18295 # Warning - without using the other runtime loading flags (-brtl),
18296 # -berok will link without error, but may produce a broken library.
18297 allow_undefined_flag_CXX='-berok'
18298 # Determine the default libpath from the value encoded in an empty executable.
18299 cat >conftest.$ac_ext <<_ACEOF
18302 cat confdefs.h >>conftest.$ac_ext
18303 cat >>conftest.$ac_ext <<_ACEOF
18304 /* end confdefs.h. */
18314 rm -f conftest.$ac_objext conftest$ac_exeext
18315 if { (ac_try="$ac_link"
18316 case "(($ac_try" in
18317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18318 *) ac_try_echo=$ac_try;;
18320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18321 (eval "$ac_link") 2>conftest.er1
18323 grep -v '^ *+' conftest.er1 >conftest.err
18325 cat conftest.err >&5
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); } &&
18328 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18329 { (case "(($ac_try" in
18330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18331 *) ac_try_echo=$ac_try;;
18333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18334 (eval "$ac_try") 2>&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; } &&
18338 { ac_try='test -s conftest$ac_exeext'
18339 { (case "(($ac_try" in
18340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18341 *) ac_try_echo=$ac_try;;
18343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18344 (eval "$ac_try") 2>&5
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); }; }; then
18349 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18351 # Check for a 64-bit object if we didn't find anything.
18352 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; }
18355 echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18361 rm -f core conftest.err conftest.$ac_objext \
18362 conftest$ac_exeext conftest.$ac_ext
18363 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18365 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18367 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"
18369 if test "$host_cpu" = ia64; then
18370 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18371 allow_undefined_flag_CXX="-z nodefs"
18372 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"
18374 # Determine the default libpath from the value encoded in an empty executable.
18375 cat >conftest.$ac_ext <<_ACEOF
18378 cat confdefs.h >>conftest.$ac_ext
18379 cat >>conftest.$ac_ext <<_ACEOF
18380 /* end confdefs.h. */
18390 rm -f conftest.$ac_objext conftest$ac_exeext
18391 if { (ac_try="$ac_link"
18392 case "(($ac_try" in
18393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18394 *) ac_try_echo=$ac_try;;
18396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18397 (eval "$ac_link") 2>conftest.er1
18399 grep -v '^ *+' conftest.er1 >conftest.err
18401 cat conftest.err >&5
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); } &&
18404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18405 { (case "(($ac_try" in
18406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18407 *) ac_try_echo=$ac_try;;
18409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18410 (eval "$ac_try") 2>&5
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; } &&
18414 { ac_try='test -s conftest$ac_exeext'
18415 { (case "(($ac_try" in
18416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18417 *) ac_try_echo=$ac_try;;
18419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420 (eval "$ac_try") 2>&5
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); }; }; then
18425 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18427 # Check for a 64-bit object if we didn't find anything.
18428 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; }
18431 echo "$as_me: failed program was:" >&5
18432 sed 's/^/| /' conftest.$ac_ext >&5
18437 rm -f core conftest.err conftest.$ac_objext \
18438 conftest$ac_exeext conftest.$ac_ext
18439 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18441 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18442 # Warning - without using the other run time loading flags,
18443 # -berok will link without error, but may produce a broken library.
18444 no_undefined_flag_CXX=' ${wl}-bernotok'
18445 allow_undefined_flag_CXX=' ${wl}-berok'
18446 # Exported symbols can be pulled into shared objects from archives
18447 whole_archive_flag_spec_CXX='$convenience'
18448 archive_cmds_need_lc_CXX=yes
18449 # This is similar to how AIX traditionally builds its shared libraries.
18450 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'
18456 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18457 allow_undefined_flag_CXX=unsupported
18458 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18459 # support --undefined. This deserves some investigation. FIXME
18460 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18467 case $cc_basename in
18469 # FIXME: insert proper C++ library support
18475 cygwin* | mingw* | pw32*)
18476 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18477 # as there is no search path for DLLs.
18478 hardcode_libdir_flag_spec_CXX='-L$libdir'
18479 allow_undefined_flag_CXX=unsupported
18480 always_export_symbols_CXX=no
18481 enable_shared_with_static_runtimes_CXX=yes
18483 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18484 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'
18485 # If the export-symbols file already is a .def file (1st line
18486 # is EXPORTS), use it as is; otherwise, prepend...
18487 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18488 cp $export_symbols $output_objdir/$soname.def;
18490 echo EXPORTS > $output_objdir/$soname.def;
18491 cat $export_symbols >> $output_objdir/$soname.def;
18493 $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'
18498 darwin* | rhapsody*)
18500 rhapsody* | darwin1.[012])
18501 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18504 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18505 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18507 case ${MACOSX_DEPLOYMENT_TARGET} in
18509 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18512 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18518 archive_cmds_need_lc_CXX=no
18519 hardcode_direct_CXX=no
18520 hardcode_automatic_CXX=yes
18521 hardcode_shlibpath_var_CXX=unsupported
18522 whole_archive_flag_spec_CXX=''
18523 link_all_deplibs_CXX=yes
18525 if test "$GXX" = yes ; then
18526 lt_int_apple_cc_single_mod=no
18527 output_verbose_link_cmd='echo'
18528 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18529 lt_int_apple_cc_single_mod=yes
18531 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18532 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18534 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'
18536 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18537 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18538 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18539 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}'
18541 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}'
18543 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}'
18545 case $cc_basename in
18547 output_verbose_link_cmd='echo'
18548 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'
18549 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18550 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18551 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}'
18552 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}'
18562 case $cc_basename in
18564 # FIXME: insert proper C++ library support
18568 # Green Hills C++ Compiler
18569 # FIXME: insert proper C++ library support
18573 # FIXME: insert proper C++ library support
18579 # C++ shared libraries reported to be fairly broken before switch to ELF
18583 archive_cmds_need_lc_CXX=no
18585 freebsd* | kfreebsd*-gnu | dragonfly*)
18586 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18593 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18594 hardcode_libdir_separator_CXX=:
18595 export_dynamic_flag_spec_CXX='${wl}-E'
18596 hardcode_direct_CXX=yes
18597 hardcode_minus_L_CXX=yes # Not in the search PATH,
18598 # but as the default
18599 # location of the library.
18601 case $cc_basename in
18603 # FIXME: insert proper C++ library support
18607 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'
18608 # Commands to make compiler produce verbose output that lists
18609 # what "hidden" libraries, object files and flags are used when
18610 # linking a shared library.
18612 # There doesn't appear to be a way to prevent this compiler from
18613 # explicitly linking system object files so we need to strip them
18614 # from the output so that they don't get included in the library
18616 output_verbose_link_cmd='templist=`($CC -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'
18619 if test "$GXX" = yes; then
18620 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'
18622 # FIXME: insert proper C++ library support
18629 if test $with_gnu_ld = no; then
18630 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18631 hardcode_libdir_separator_CXX=:
18635 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18638 export_dynamic_flag_spec_CXX='${wl}-E'
18644 hardcode_direct_CXX=no
18645 hardcode_shlibpath_var_CXX=no
18648 hardcode_direct_CXX=yes
18649 hardcode_minus_L_CXX=yes # Not in the search PATH,
18650 # but as the default
18651 # location of the library.
18655 case $cc_basename in
18657 # FIXME: insert proper C++ library support
18663 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18666 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18669 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18672 # Commands to make compiler produce verbose output that lists
18673 # what "hidden" libraries, object files and flags are used when
18674 # linking a shared library.
18676 # There doesn't appear to be a way to prevent this compiler from
18677 # explicitly linking system object files so we need to strip them
18678 # from the output so that they don't get included in the library
18680 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'
18683 if test "$GXX" = yes; then
18684 if test $with_gnu_ld = no; then
18687 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18690 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18693 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'
18698 # FIXME: insert proper C++ library support
18705 hardcode_direct_CXX=no
18706 hardcode_shlibpath_var_CXX=no
18707 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18708 export_dynamic_flag_spec_CXX='${wl}-E'
18709 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18710 # Instead, shared libraries are loaded at an image base (0x10000000 by
18711 # default) and relocated if they conflict, which is a slow very memory
18712 # consuming and fragmenting process. To avoid this, we pick a random,
18713 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18714 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18715 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'
18716 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'
18719 case $cc_basename in
18722 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'
18724 # Archives containing C++ object files must be created using
18725 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18726 # necessary to make sure instantiated templates are included
18728 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18731 if test "$GXX" = yes; then
18732 if test "$with_gnu_ld" = no; then
18733 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'
18735 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'
18738 link_all_deplibs_CXX=yes
18741 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18742 hardcode_libdir_separator_CXX=:
18745 case $cc_basename in
18747 # Kuck and Associates, Inc. (KAI) C++ Compiler
18749 # KCC will only create a shared library if the output file
18750 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18751 # to its proper name (with version) after linking.
18752 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'
18753 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'
18754 # Commands to make compiler produce verbose output that lists
18755 # what "hidden" libraries, object files and flags are used when
18756 # linking a shared library.
18758 # There doesn't appear to be a way to prevent this compiler from
18759 # explicitly linking system object files so we need to strip them
18760 # from the output so that they don't get included in the library
18762 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'
18764 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18765 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18767 # Archives containing C++ object files must be created using
18768 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18769 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18774 # version 8.0 and above of icpc choke on multiply defined symbols
18775 # if we add $predep_objects and $postdep_objects, however 7.1 and
18776 # earlier do not add the objects themselves.
18777 case `$CC -V 2>&1` in
18779 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18780 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'
18782 *) # Version 8.0 or newer
18785 ia64*) tmp_idyn=' -i_dynamic';;
18787 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18788 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'
18791 archive_cmds_need_lc_CXX=no
18792 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18793 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18794 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18797 # Portland Group C++ compiler
18798 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18799 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'
18801 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18802 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18803 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'
18807 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18808 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'
18810 runpath_var=LD_RUN_PATH
18811 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18812 hardcode_libdir_separator_CXX=:
18814 # Commands to make compiler produce verbose output that lists
18815 # what "hidden" libraries, object files and flags are used when
18816 # linking a shared library.
18818 # There doesn't appear to be a way to prevent this compiler from
18819 # explicitly linking system object files so we need to strip them
18820 # from the output so that they don't get included in the library
18822 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'
18827 # FIXME: insert proper C++ library support
18831 # FIXME: insert proper C++ library support
18835 case $cc_basename in
18837 # FIXME: insert proper C++ library support
18841 # FIXME: insert proper C++ library support
18847 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18848 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18850 hardcode_libdir_flag_spec_CXX='-R$libdir'
18851 hardcode_direct_CXX=yes
18852 hardcode_shlibpath_var_CXX=no
18854 # Workaround some broken pre-1.5 toolchains
18855 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18858 # C++ shared libraries are fairly broken
18862 hardcode_direct_CXX=yes
18863 hardcode_shlibpath_var_CXX=no
18864 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18865 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18866 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18867 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18868 export_dynamic_flag_spec_CXX='${wl}-E'
18869 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18871 output_verbose_link_cmd='echo'
18874 case $cc_basename in
18876 # Kuck and Associates, Inc. (KAI) C++ Compiler
18878 # KCC will only create a shared library if the output file
18879 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18880 # to its proper name (with version) after linking.
18881 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'
18883 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18884 hardcode_libdir_separator_CXX=:
18886 # Archives containing C++ object files must be created using
18887 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18888 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18892 # Rational C++ 2.4.1
18893 # FIXME: insert proper C++ library support
18897 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18898 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'
18900 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18901 hardcode_libdir_separator_CXX=:
18903 # Commands to make compiler produce verbose output that lists
18904 # what "hidden" libraries, object files and flags are used when
18905 # linking a shared library.
18907 # There doesn't appear to be a way to prevent this compiler from
18908 # explicitly linking system object files so we need to strip them
18909 # from the output so that they don't get included in the library
18911 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'
18914 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18915 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18916 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'
18918 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18919 hardcode_libdir_separator_CXX=:
18921 # Commands to make compiler produce verbose output that lists
18922 # what "hidden" libraries, object files and flags are used when
18923 # linking a shared library.
18924 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18927 # FIXME: insert proper C++ library support
18934 case $cc_basename in
18936 # Kuck and Associates, Inc. (KAI) C++ Compiler
18938 # KCC will only create a shared library if the output file
18939 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18940 # to its proper name (with version) after linking.
18941 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'
18943 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18944 hardcode_libdir_separator_CXX=:
18946 # Archives containing C++ object files must be created using
18947 # the KAI C++ compiler.
18948 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18951 # Rational C++ 2.4.1
18952 # FIXME: insert proper C++ library support
18956 allow_undefined_flag_CXX=' -expect_unresolved \*'
18957 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'
18958 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18959 echo "-hidden">> $lib.exp~
18960 $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~
18963 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18964 hardcode_libdir_separator_CXX=:
18966 # Commands to make compiler produce verbose output that lists
18967 # what "hidden" libraries, object files and flags are used when
18968 # linking a shared library.
18970 # There doesn't appear to be a way to prevent this compiler from
18971 # explicitly linking system object files so we need to strip them
18972 # from the output so that they don't get included in the library
18974 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'
18977 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18978 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18979 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'
18981 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18982 hardcode_libdir_separator_CXX=:
18984 # Commands to make compiler produce verbose output that lists
18985 # what "hidden" libraries, object files and flags are used when
18986 # linking a shared library.
18987 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18990 # FIXME: insert proper C++ library support
18997 # FIXME: insert proper C++ library support
19001 case $cc_basename in
19004 # FIXME: insert proper C++ library support
19009 # FIXME: insert proper C++ library support
19013 # FIXME: insert proper C++ library support
19019 case $cc_basename in
19021 # Sun C++ 4.2, 5.x and Centerline C++
19022 archive_cmds_need_lc_CXX=yes
19023 no_undefined_flag_CXX=' -zdefs'
19024 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19025 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19026 $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'
19028 hardcode_libdir_flag_spec_CXX='-R$libdir'
19029 hardcode_shlibpath_var_CXX=no
19031 solaris2.[0-5] | solaris2.[0-5].*) ;;
19033 # The C++ compiler is used as linker so we must use $wl
19034 # flag to pass the commands to the underlying system
19035 # linker. We must also pass each convience library through
19036 # to the system linker between allextract/defaultextract.
19037 # The C++ compiler will combine linker options so we
19038 # cannot just pass the convience library names through
19040 # Supported since Solaris 2.6 (maybe 2.5.1?)
19041 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'
19044 link_all_deplibs_CXX=yes
19046 output_verbose_link_cmd='echo'
19048 # Archives containing C++ object files must be created using
19049 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19050 # necessary to make sure instantiated templates are included
19052 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19055 # Green Hills C++ Compiler
19056 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19058 # The C++ compiler must be used to create the archive.
19059 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19062 # GNU C++ compiler with Solaris linker
19063 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19064 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19065 if $CC --version | grep -v '^2\.7' > /dev/null; then
19066 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19067 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19068 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19070 # Commands to make compiler produce verbose output that lists
19071 # what "hidden" libraries, object files and flags are used when
19072 # linking a shared library.
19073 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19075 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19077 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19078 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19079 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19081 # Commands to make compiler produce verbose output that lists
19082 # what "hidden" libraries, object files and flags are used when
19083 # linking a shared library.
19084 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19087 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19092 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19093 no_undefined_flag_CXX='${wl}-z,text'
19094 archive_cmds_need_lc_CXX=no
19095 hardcode_shlibpath_var_CXX=no
19096 runpath_var='LD_RUN_PATH'
19098 case $cc_basename in
19100 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19101 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19104 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19105 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19109 sysv5* | sco3.2v5* | sco5v6*)
19110 # Note: We can NOT use -z defs as we might desire, because we do not
19111 # link with -lc, and that would cause any symbols used from libc to
19112 # always be unresolved, which means just about no library would
19113 # ever link correctly. If we're not using GNU ld we use -z text
19114 # though, which does catch some bad symbols but isn't as heavy-handed
19116 # For security reasons, it is highly recommended that you always
19117 # use absolute paths for naming shared libraries, and exclude the
19118 # DT_RUNPATH tag from executables and libraries. But doing so
19119 # requires that you compile everything twice, which is a pain.
19120 # So that behaviour is only enabled if SCOABSPATH is set to a
19121 # non-empty value in the environment. Most likely only useful for
19122 # creating official distributions of packages.
19123 # This is a hack until libtool officially supports absolute path
19124 # names for shared libraries.
19125 no_undefined_flag_CXX='${wl}-z,text'
19126 allow_undefined_flag_CXX='${wl}-z,nodefs'
19127 archive_cmds_need_lc_CXX=no
19128 hardcode_shlibpath_var_CXX=no
19129 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19130 hardcode_libdir_separator_CXX=':'
19131 link_all_deplibs_CXX=yes
19132 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19133 runpath_var='LD_RUN_PATH'
19135 case $cc_basename in
19137 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19138 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19141 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19142 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19147 case $cc_basename in
19149 # NonStop-UX NCC 3.20
19150 # FIXME: insert proper C++ library support
19154 # FIXME: insert proper C++ library support
19160 # FIXME: insert proper C++ library support
19164 # FIXME: insert proper C++ library support
19168 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19169 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19170 test "$ld_shlibs_CXX" = no && can_build_shared=no
19176 cat > conftest.$ac_ext <<EOF
19180 Foo (void) { a = 0; }
19186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19187 (eval $ac_compile) 2>&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; then
19191 # Parse the compiler output and extract the necessary
19192 # objects, libraries and library flags.
19194 # Sentinel used to keep track of whether or not we are before
19195 # the conftest object file.
19196 pre_test_object_deps_done=no
19198 # The `*' in the case matches for architectures that use `case' in
19199 # $output_verbose_cmd can trigger glob expansion during the loop
19200 # eval without this substitution.
19201 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19203 for p in `eval $output_verbose_link_cmd`; do
19207 # Some compilers place space between "-{L,R}" and the path.
19208 # Remove the space.
19209 if test $p = "-L" \
19210 || test $p = "-R"; then
19217 if test "$pre_test_object_deps_done" = no; then
19220 # Internal compiler library paths should come after those
19221 # provided the user. The postdeps already come after the
19222 # user supplied libs so there is no need to process them.
19223 if test -z "$compiler_lib_search_path_CXX"; then
19224 compiler_lib_search_path_CXX="${prev}${p}"
19226 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19229 # The "-l" case would never come before the object being
19230 # linked, so don't bother handling this case.
19233 if test -z "$postdeps_CXX"; then
19234 postdeps_CXX="${prev}${p}"
19236 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19242 # This assumes that the test object file only shows up
19243 # once in the compiler output.
19244 if test "$p" = "conftest.$objext"; then
19245 pre_test_object_deps_done=yes
19249 if test "$pre_test_object_deps_done" = no; then
19250 if test -z "$predep_objects_CXX"; then
19251 predep_objects_CXX="$p"
19253 predep_objects_CXX="$predep_objects_CXX $p"
19256 if test -z "$postdep_objects_CXX"; then
19257 postdep_objects_CXX="$p"
19259 postdep_objects_CXX="$postdep_objects_CXX $p"
19264 *) ;; # Ignore the rest.
19272 echo "libtool.m4: error: problem compiling CXX test program"
19275 $rm -f confest.$objext
19277 # PORTME: override above test on systems where it is broken
19280 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19281 # hack all around it, let's just trust "g++" to DTRT.
19282 predep_objects_CXX=
19283 postdep_objects_CXX=
19288 case $cc_basename in
19290 # Adding this requires a known-good setup of shared libraries for
19291 # Sun compiler versions before 5.6, else PIC objects from an old
19292 # archive will be linked into the output, leading to subtle bugs.
19293 postdeps_CXX='-lCstd -lCrun'
19300 case " $postdeps_CXX " in
19301 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19304 lt_prog_compiler_wl_CXX=
19305 lt_prog_compiler_pic_CXX=
19306 lt_prog_compiler_static_CXX=
19308 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19309 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19311 # C++ specific cases for pic, static, wl, etc.
19312 if test "$GXX" = yes; then
19313 lt_prog_compiler_wl_CXX='-Wl,'
19314 lt_prog_compiler_static_CXX='-static'
19318 # All AIX code is PIC.
19319 if test "$host_cpu" = ia64; then
19320 # AIX 5 now supports IA64 processor
19321 lt_prog_compiler_static_CXX='-Bstatic'
19325 # FIXME: we need at least 68020 code to build shared libraries, but
19326 # adding the `-m68020' flag to GCC prevents building anything better,
19328 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19330 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19331 # PIC is the default for these OSes.
19333 mingw* | os2* | pw32*)
19334 # This hack is so that the source file can tell whether it is being
19335 # built for inclusion in a dll (and should export symbols for example).
19336 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19338 darwin* | rhapsody*)
19339 # PIC is the default on this platform
19340 # Common symbols not allowed in MH_DYLIB files
19341 lt_prog_compiler_pic_CXX='-fno-common'
19344 # DJGPP does not support shared libraries at all
19345 lt_prog_compiler_pic_CXX=
19348 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19349 # Instead, we relocate shared libraries at runtime.
19352 if test -d /usr/nec; then
19353 lt_prog_compiler_pic_CXX=-Kconform_pic
19357 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19358 # not for PA HP-UX.
19363 lt_prog_compiler_pic_CXX='-fPIC'
19368 lt_prog_compiler_pic_CXX='-fPIC'
19374 # All AIX code is PIC.
19375 if test "$host_cpu" = ia64; then
19376 # AIX 5 now supports IA64 processor
19377 lt_prog_compiler_static_CXX='-Bstatic'
19379 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19383 case $cc_basename in
19385 # Green Hills C++ Compiler
19386 # _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"
19391 # PIC is the default on this platform
19392 # Common symbols not allowed in MH_DYLIB files
19393 case $cc_basename in
19395 lt_prog_compiler_pic_CXX='-qnocommon'
19396 lt_prog_compiler_wl_CXX='-Wl,'
19401 case $cc_basename in
19403 lt_prog_compiler_pic_CXX='-KPIC'
19406 # Green Hills C++ Compiler
19407 lt_prog_compiler_pic_CXX='-pic'
19413 freebsd* | kfreebsd*-gnu | dragonfly*)
19414 # FreeBSD uses GNU C++
19416 hpux9* | hpux10* | hpux11*)
19417 case $cc_basename in
19419 lt_prog_compiler_wl_CXX='-Wl,'
19420 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19421 if test "$host_cpu" != ia64; then
19422 lt_prog_compiler_pic_CXX='+Z'
19426 lt_prog_compiler_wl_CXX='-Wl,'
19427 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19433 lt_prog_compiler_pic_CXX='+Z'
19442 # This is c89, which is MS Visual C++ (no shared libs)
19443 # Anyone wants to do a port?
19445 irix5* | irix6* | nonstopux*)
19446 case $cc_basename in
19448 lt_prog_compiler_wl_CXX='-Wl,'
19449 lt_prog_compiler_static_CXX='-non_shared'
19450 # CC pic flag -KPIC is the default.
19457 case $cc_basename in
19460 lt_prog_compiler_wl_CXX='--backend -Wl,'
19461 lt_prog_compiler_pic_CXX='-fPIC'
19465 lt_prog_compiler_wl_CXX='-Wl,'
19466 lt_prog_compiler_pic_CXX='-KPIC'
19467 lt_prog_compiler_static_CXX='-static'
19470 # Portland Group C++ compiler.
19471 lt_prog_compiler_wl_CXX='-Wl,'
19472 lt_prog_compiler_pic_CXX='-fpic'
19473 lt_prog_compiler_static_CXX='-Bstatic'
19477 # Make sure the PIC flag is empty. It appears that all Alpha
19478 # Linux and Compaq Tru64 Unix objects are PIC.
19479 lt_prog_compiler_pic_CXX=
19480 lt_prog_compiler_static_CXX='-non_shared'
19491 case $cc_basename in
19493 lt_prog_compiler_pic_CXX='-W c,exportall'
19501 osf3* | osf4* | osf5*)
19502 case $cc_basename in
19504 lt_prog_compiler_wl_CXX='--backend -Wl,'
19507 # Rational C++ 2.4.1
19508 lt_prog_compiler_pic_CXX='-pic'
19511 # Digital/Compaq C++
19512 lt_prog_compiler_wl_CXX='-Wl,'
19513 # Make sure the PIC flag is empty. It appears that all Alpha
19514 # Linux and Compaq Tru64 Unix objects are PIC.
19515 lt_prog_compiler_pic_CXX=
19516 lt_prog_compiler_static_CXX='-non_shared'
19525 case $cc_basename in
19527 # Sun C++ 4.2, 5.x and Centerline C++
19528 lt_prog_compiler_pic_CXX='-KPIC'
19529 lt_prog_compiler_static_CXX='-Bstatic'
19530 lt_prog_compiler_wl_CXX='-Qoption ld '
19533 # Green Hills C++ Compiler
19534 lt_prog_compiler_pic_CXX='-PIC'
19541 case $cc_basename in
19544 lt_prog_compiler_pic_CXX='-pic'
19545 lt_prog_compiler_static_CXX='-Bstatic'
19549 lt_prog_compiler_pic_CXX='-pic'
19556 case $cc_basename in
19558 # NonStop-UX NCC 3.20
19559 lt_prog_compiler_pic_CXX='-KPIC'
19565 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19566 case $cc_basename in
19568 lt_prog_compiler_wl_CXX='-Wl,'
19569 lt_prog_compiler_pic_CXX='-KPIC'
19570 lt_prog_compiler_static_CXX='-Bstatic'
19577 lt_prog_compiler_can_build_shared_CXX=no
19582 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19583 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19586 # Check to make sure the PIC flag actually works.
19588 if test -n "$lt_prog_compiler_pic_CXX"; then
19590 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19591 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19592 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19593 echo $ECHO_N "(cached) $ECHO_C" >&6
19595 lt_prog_compiler_pic_works_CXX=no
19596 ac_outfile=conftest.$ac_objext
19597 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19598 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19599 # Insert the option either (1) after the last *FLAGS variable, or
19600 # (2) before a word containing "conftest.", or (3) at the end.
19601 # Note that $ac_compile itself does not contain backslashes and begins
19602 # with a dollar sign (not a hyphen), so the echo should work correctly.
19603 # The option is referenced via a variable to avoid confusing sed.
19604 lt_compile=`echo "$ac_compile" | $SED \
19605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19607 -e 's:$: $lt_compiler_flag:'`
19608 (eval echo "\"\$as_me:19608: $lt_compile\"" >&5)
19609 (eval "$lt_compile" 2>conftest.err)
19611 cat conftest.err >&5
19612 echo "$as_me:19612: \$? = $ac_status" >&5
19613 if (exit $ac_status) && test -s "$ac_outfile"; then
19614 # The compiler can only warn and ignore the option if not recognized
19615 # So say no if there are warnings other than the usual output.
19616 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19617 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19618 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19619 lt_prog_compiler_pic_works_CXX=yes
19625 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19626 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19628 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19629 case $lt_prog_compiler_pic_CXX in
19631 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19634 lt_prog_compiler_pic_CXX=
19635 lt_prog_compiler_can_build_shared_CXX=no
19640 # For platforms which do not support PIC, -DPIC is meaningless:
19642 lt_prog_compiler_pic_CXX=
19645 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19650 # Check to make sure the static flag actually works.
19652 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19653 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19654 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19655 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19658 lt_prog_compiler_static_works_CXX=no
19659 save_LDFLAGS="$LDFLAGS"
19660 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19661 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19662 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19663 # The linker can only warn and ignore the option if not recognized
19664 # So say no if there are warnings
19665 if test -s conftest.err; then
19666 # Append any errors to the config.log.
19667 cat conftest.err 1>&5
19668 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19670 if diff conftest.exp conftest.er2 >/dev/null; then
19671 lt_prog_compiler_static_works_CXX=yes
19674 lt_prog_compiler_static_works_CXX=yes
19678 LDFLAGS="$save_LDFLAGS"
19681 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19682 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19684 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19687 lt_prog_compiler_static_CXX=
19691 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19692 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19693 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19694 echo $ECHO_N "(cached) $ECHO_C" >&6
19696 lt_cv_prog_compiler_c_o_CXX=no
19697 $rm -r conftest 2>/dev/null
19701 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19703 lt_compiler_flag="-o out/conftest2.$ac_objext"
19704 # Insert the option either (1) after the last *FLAGS variable, or
19705 # (2) before a word containing "conftest.", or (3) at the end.
19706 # Note that $ac_compile itself does not contain backslashes and begins
19707 # with a dollar sign (not a hyphen), so the echo should work correctly.
19708 lt_compile=`echo "$ac_compile" | $SED \
19709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19711 -e 's:$: $lt_compiler_flag:'`
19712 (eval echo "\"\$as_me:19712: $lt_compile\"" >&5)
19713 (eval "$lt_compile" 2>out/conftest.err)
19715 cat out/conftest.err >&5
19716 echo "$as_me:19716: \$? = $ac_status" >&5
19717 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19719 # The compiler can only warn and ignore the option if not recognized
19720 # So say no if there are warnings
19721 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19722 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19723 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19724 lt_cv_prog_compiler_c_o_CXX=yes
19729 # SGI C++ compiler will create directory out/ii_files/ for
19730 # template instantiation
19731 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19732 $rm out/* && rmdir out
19738 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19739 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19742 hard_links="nottested"
19743 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19744 # do not overwrite the value of need_locks provided by the user
19745 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19746 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19749 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19751 ln conftest.a conftest.b 2>&5 || hard_links=no
19752 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19753 { echo "$as_me:$LINENO: result: $hard_links" >&5
19754 echo "${ECHO_T}$hard_links" >&6; }
19755 if test "$hard_links" = no; then
19756 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19757 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19764 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19765 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19767 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19770 # If we're using GNU nm, then we don't want the "-C" option.
19771 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19772 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19773 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'
19775 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'
19779 export_symbols_cmds_CXX="$ltdll_cmds"
19782 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'
19785 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19789 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19790 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19791 test "$ld_shlibs_CXX" = no && can_build_shared=no
19794 # Do we need to explicitly link libc?
19796 case "x$archive_cmds_need_lc_CXX" in
19798 # Assume -lc should be added
19799 archive_cmds_need_lc_CXX=yes
19801 if test "$enable_shared" = yes && test "$GCC" = yes; then
19802 case $archive_cmds_CXX in
19804 # FIXME: we may have to deal with multi-command sequences.
19807 # Test whether the compiler implicitly links with -lc since on some
19808 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19809 # to ld, don't add -lc before -lgcc.
19810 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19811 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19813 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19816 (eval $ac_compile) 2>&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); } 2>conftest.err; then
19822 libobjs=conftest.$ac_objext
19824 wl=$lt_prog_compiler_wl_CXX
19825 pic_flag=$lt_prog_compiler_pic_CXX
19831 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19832 allow_undefined_flag_CXX=
19833 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19834 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }
19839 archive_cmds_need_lc_CXX=no
19841 archive_cmds_need_lc_CXX=yes
19843 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19845 cat conftest.err 1>&5
19848 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19849 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19856 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19857 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19858 library_names_spec=
19859 libname_spec='lib$name'
19863 postuninstall_cmds=
19867 shlibpath_overrides_runpath=unknown
19869 dynamic_linker="$host_os ld.so"
19870 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19871 if test "$GCC" = yes; then
19872 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19873 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19874 # if the path contains ";" then we assume it to be the separator
19875 # otherwise default to the standard path separator (i.e. ":") - it is
19876 # assumed that no part of a normal pathname contains ";" but that should
19877 # okay in the real world where ";" in dirpaths is itself problematic.
19878 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19880 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19883 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19885 need_lib_prefix=unknown
19886 hardcode_into_libs=no
19888 # when you set need_version to no, make sure it does not cause -set_version
19889 # flags to be left without arguments
19890 need_version=unknown
19895 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19896 shlibpath_var=LIBPATH
19898 # AIX 3 has no versioning support, so we append a major version to the name.
19899 soname_spec='${libname}${release}${shared_ext}$major'
19906 hardcode_into_libs=yes
19907 if test "$host_cpu" = ia64; then
19908 # AIX 5 supports IA64
19909 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19910 shlibpath_var=LD_LIBRARY_PATH
19912 # With GCC up to 2.95.x, collect2 would create an import file
19913 # for dependence libraries. The import file would start with
19914 # the line `#! .'. This would cause the generated library to
19915 # depend on `.', always an invalid library. This was fixed in
19916 # development snapshots of GCC prior to 3.0.
19918 aix4 | aix4.[01] | aix4.[01].*)
19919 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19921 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19924 can_build_shared=no
19928 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19929 # soname into executable. Probably we can add versioning support to
19930 # collect2, so additional links can be useful in future.
19931 if test "$aix_use_runtimelinking" = yes; then
19932 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19933 # instead of lib<name>.a to let people know that these are not
19934 # typical AIX shared libraries.
19935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19937 # We preserve .a as extension for shared libraries through AIX4.2
19938 # and later when we are not doing run time linking.
19939 library_names_spec='${libname}${release}.a $libname.a'
19940 soname_spec='${libname}${release}${shared_ext}$major'
19942 shlibpath_var=LIBPATH
19947 library_names_spec='$libname.ixlibrary $libname.a'
19948 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19949 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'
19953 library_names_spec='${libname}${shared_ext}'
19954 dynamic_linker="$host_os ld.so"
19955 shlibpath_var=LIBRARY_PATH
19961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19962 soname_spec='${libname}${release}${shared_ext}$major'
19963 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19964 shlibpath_var=LD_LIBRARY_PATH
19965 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19966 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19967 # the default ld.so.conf also contains /usr/contrib/lib and
19968 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19969 # libtool to hard-code these into programs
19972 cygwin* | mingw* | pw32*)
19973 version_type=windows
19978 case $GCC,$host_os in
19979 yes,cygwin* | yes,mingw* | yes,pw32*)
19980 library_names_spec='$libname.dll.a'
19981 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19982 postinstall_cmds='base_file=`basename \${file}`~
19983 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19984 dldir=$destdir/`dirname \$dlpath`~
19985 test -d \$dldir || mkdir -p \$dldir~
19986 $install_prog $dir/$dlname \$dldir/$dlname~
19987 chmod a+x \$dldir/$dlname'
19988 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19989 dlpath=$dir/\$dldll~
19991 shlibpath_overrides_runpath=yes
19995 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19996 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19997 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20000 # MinGW DLLs use traditional 'lib' prefix
20001 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20002 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20003 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20004 # It is most probably a Windows format PATH printed by
20005 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20006 # path with ; separators, and with drive letters. We can handle the
20007 # drive letters (cygwin fileutils understands them), so leave them,
20008 # especially as we might pass files found there to a mingw objdump,
20009 # which wouldn't understand a cygwinified path. Ahh.
20010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20012 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20016 # pw32 DLLs use 'pw' prefix rather than 'lib'
20017 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20023 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20026 dynamic_linker='Win32 ld.exe'
20027 # FIXME: first we should search . and the directory the executable is in
20031 darwin* | rhapsody*)
20032 dynamic_linker="$host_os dyld"
20033 version_type=darwin
20036 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20037 soname_spec='${libname}${release}${major}$shared_ext'
20038 shlibpath_overrides_runpath=yes
20039 shlibpath_var=DYLD_LIBRARY_PATH
20040 shrext_cmds='.dylib'
20041 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20042 if test "$GCC" = yes; then
20043 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"`
20045 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20047 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20055 soname_spec='${libname}${release}${shared_ext}$major'
20056 shlibpath_var=LD_LIBRARY_PATH
20067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20068 soname_spec='${libname}${release}${shared_ext}$major'
20069 shlibpath_var=LD_LIBRARY_PATH
20070 shlibpath_overrides_runpath=no
20071 hardcode_into_libs=yes
20072 dynamic_linker='GNU ld.so'
20075 freebsd* | dragonfly*)
20076 # DragonFly does not have aout. When/if they implement a new
20077 # versioning mechanism, adjust this.
20078 if test -x /usr/bin/objformat; then
20079 objformat=`/usr/bin/objformat`
20082 freebsd[123]*) objformat=aout ;;
20083 *) objformat=elf ;;
20086 version_type=freebsd-$objformat
20087 case $version_type in
20089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20094 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20098 shlibpath_var=LD_LIBRARY_PATH
20101 shlibpath_overrides_runpath=yes
20103 freebsd3.[01]* | freebsdelf3.[01]*)
20104 shlibpath_overrides_runpath=yes
20105 hardcode_into_libs=yes
20107 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20108 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20109 shlibpath_overrides_runpath=no
20110 hardcode_into_libs=yes
20112 freebsd*) # from 4.6 on
20113 shlibpath_overrides_runpath=yes
20114 hardcode_into_libs=yes
20123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20124 soname_spec='${libname}${release}${shared_ext}$major'
20125 shlibpath_var=LD_LIBRARY_PATH
20126 hardcode_into_libs=yes
20129 hpux9* | hpux10* | hpux11*)
20130 # Give a soname corresponding to the major version so that dld.sl refuses to
20131 # link against other versions.
20138 hardcode_into_libs=yes
20139 dynamic_linker="$host_os dld.so"
20140 shlibpath_var=LD_LIBRARY_PATH
20141 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20143 soname_spec='${libname}${release}${shared_ext}$major'
20144 if test "X$HPUX_IA64_MODE" = X32; then
20145 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20147 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20149 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20153 hardcode_into_libs=yes
20154 dynamic_linker="$host_os dld.sl"
20155 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20156 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20158 soname_spec='${libname}${release}${shared_ext}$major'
20159 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20160 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20164 dynamic_linker="$host_os dld.sl"
20165 shlibpath_var=SHLIB_PATH
20166 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20168 soname_spec='${libname}${release}${shared_ext}$major'
20171 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20172 postinstall_cmds='chmod 555 $lib'
20179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20180 soname_spec='${libname}${release}${shared_ext}$major'
20181 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20182 shlibpath_var=LD_LIBRARY_PATH
20183 shlibpath_overrides_runpath=no
20184 hardcode_into_libs=yes
20187 irix5* | irix6* | nonstopux*)
20189 nonstopux*) version_type=nonstopux ;;
20191 if test "$lt_cv_prog_gnu_ld" = yes; then
20199 soname_spec='${libname}${release}${shared_ext}$major'
20200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20202 irix5* | nonstopux*)
20203 libsuff= shlibsuff=
20206 case $LD in # libtool.m4 will add one of these switches to LD
20207 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20208 libsuff= shlibsuff= libmagic=32-bit;;
20209 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20210 libsuff=32 shlibsuff=N32 libmagic=N32;;
20211 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20212 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20213 *) libsuff= shlibsuff= libmagic=never-match;;
20217 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20218 shlibpath_overrides_runpath=no
20219 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20220 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20221 hardcode_into_libs=yes
20224 # No shared lib support for Linux oldld, aout, or coff.
20225 linux*oldld* | linux*aout* | linux*coff*)
20229 # This must be Linux ELF.
20234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20235 soname_spec='${libname}${release}${shared_ext}$major'
20236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20237 shlibpath_var=LD_LIBRARY_PATH
20238 shlibpath_overrides_runpath=no
20239 # This implies no fast_install, which is unacceptable.
20240 # Some rework will be needed to allow for fast_install
20241 # before this can be enabled.
20242 hardcode_into_libs=yes
20244 # Append ld.so.conf contents to the search path
20245 if test -f /etc/ld.so.conf; then
20246 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' ' '`
20247 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20250 # We used to test for /lib/ld.so.1 and disable shared libraries on
20251 # powerpc, because MkLinux only supported shared libraries with the
20252 # GNU dynamic linker. Since this was broken with cross compilers,
20253 # most powerpc-linux boxes support dynamic linking these days and
20254 # people can always --disable-shared, the test was removed, and we
20255 # assume the GNU/Linux dynamic linker is in use.
20256 dynamic_linker='GNU/Linux ld.so'
20263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20264 soname_spec='${libname}${release}${shared_ext}$major'
20265 shlibpath_var=LD_LIBRARY_PATH
20266 shlibpath_overrides_runpath=no
20267 hardcode_into_libs=yes
20268 dynamic_linker='GNU ld.so'
20275 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20278 dynamic_linker='NetBSD (a.out) ld.so'
20280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20281 soname_spec='${libname}${release}${shared_ext}$major'
20282 dynamic_linker='NetBSD ld.elf_so'
20284 shlibpath_var=LD_LIBRARY_PATH
20285 shlibpath_overrides_runpath=yes
20286 hardcode_into_libs=yes
20291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20292 shlibpath_var=LD_LIBRARY_PATH
20293 shlibpath_overrides_runpath=yes
20300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20301 soname_spec='${libname}${release}${shared_ext}$major'
20302 shlibpath_var=LD_LIBRARY_PATH
20303 shlibpath_overrides_runpath=yes
20308 sys_lib_dlsearch_path_spec="/usr/lib"
20310 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20312 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20313 *) need_version=no ;;
20315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20317 shlibpath_var=LD_LIBRARY_PATH
20318 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20320 openbsd2.[89] | openbsd2.[89].*)
20321 shlibpath_overrides_runpath=no
20324 shlibpath_overrides_runpath=yes
20328 shlibpath_overrides_runpath=yes
20333 libname_spec='$name'
20336 library_names_spec='$libname${shared_ext} $libname.a'
20337 dynamic_linker='OS/2 ld.exe'
20338 shlibpath_var=LIBPATH
20341 osf3* | osf4* | osf5*)
20345 soname_spec='${libname}${release}${shared_ext}$major'
20346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20347 shlibpath_var=LD_LIBRARY_PATH
20348 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20349 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20357 soname_spec='${libname}${release}${shared_ext}$major'
20358 shlibpath_var=LD_LIBRARY_PATH
20359 shlibpath_overrides_runpath=yes
20360 hardcode_into_libs=yes
20361 # ldd complains unless libraries are executable
20362 postinstall_cmds='chmod +x $lib'
20367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20368 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20369 shlibpath_var=LD_LIBRARY_PATH
20370 shlibpath_overrides_runpath=yes
20371 if test "$with_gnu_ld" = yes; then
20379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20380 soname_spec='${libname}${release}${shared_ext}$major'
20381 shlibpath_var=LD_LIBRARY_PATH
20382 case $host_vendor in
20384 shlibpath_overrides_runpath=no
20386 export_dynamic_flag_spec='${wl}-Blargedynsym'
20387 runpath_var=LD_RUN_PATH
20395 shlibpath_overrides_runpath=no
20396 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20402 if test -d /usr/nec ;then
20404 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20405 soname_spec='$libname${shared_ext}.$major'
20406 shlibpath_var=LD_LIBRARY_PATH
20410 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20411 version_type=freebsd-elf
20414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20415 soname_spec='${libname}${release}${shared_ext}$major'
20416 shlibpath_var=LD_LIBRARY_PATH
20417 hardcode_into_libs=yes
20418 if test "$with_gnu_ld" = yes; then
20419 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20420 shlibpath_overrides_runpath=no
20422 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20423 shlibpath_overrides_runpath=yes
20426 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20430 sys_lib_dlsearch_path_spec='/usr/lib'
20435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20436 soname_spec='${libname}${release}${shared_ext}$major'
20437 shlibpath_var=LD_LIBRARY_PATH
20444 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20445 echo "${ECHO_T}$dynamic_linker" >&6; }
20446 test "$dynamic_linker" = no && can_build_shared=no
20448 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20449 if test "$GCC" = yes; then
20450 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20453 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20454 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20455 hardcode_action_CXX=
20456 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20457 test -n "$runpath_var_CXX" || \
20458 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20460 # We can hardcode non-existant directories.
20461 if test "$hardcode_direct_CXX" != no &&
20462 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20463 # have to relink, otherwise we might link with an installed library
20464 # when we should be linking with a yet-to-be-installed one
20465 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20466 test "$hardcode_minus_L_CXX" != no; then
20467 # Linking always hardcodes the temporary library directory.
20468 hardcode_action_CXX=relink
20470 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20471 hardcode_action_CXX=immediate
20474 # We cannot hardcode anything, or else we can only hardcode existing
20476 hardcode_action_CXX=unsupported
20478 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20479 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20481 if test "$hardcode_action_CXX" = relink; then
20482 # Fast installation is not supported
20483 enable_fast_install=no
20484 elif test "$shlibpath_overrides_runpath" = yes ||
20485 test "$enable_shared" = no; then
20486 # Fast installation is not necessary
20487 enable_fast_install=needless
20491 # The else clause should only fire when bootstrapping the
20492 # libtool distribution, otherwise you forgot to ship ltmain.sh
20493 # with your package, and you will get complaints that there are
20494 # no rules to generate ltmain.sh.
20495 if test -f "$ltmain"; then
20496 # See if we are running on zsh, and set the options which allow our commands through
20497 # without removal of \ escapes.
20498 if test -n "${ZSH_VERSION+set}" ; then
20499 setopt NO_GLOB_SUBST
20501 # Now quote all the things that may contain metacharacters while being
20502 # careful not to overquote the AC_SUBSTed values. We take copies of the
20503 # variables and quote the copies for generation of the libtool script.
20504 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20506 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20507 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20508 deplibs_check_method reload_flag reload_cmds need_locks \
20509 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20510 lt_cv_sys_global_symbol_to_c_name_address \
20511 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20512 old_postinstall_cmds old_postuninstall_cmds \
20516 lt_prog_compiler_wl_CXX \
20517 lt_prog_compiler_pic_CXX \
20518 lt_prog_compiler_static_CXX \
20519 lt_prog_compiler_no_builtin_flag_CXX \
20520 export_dynamic_flag_spec_CXX \
20521 thread_safe_flag_spec_CXX \
20522 whole_archive_flag_spec_CXX \
20523 enable_shared_with_static_runtimes_CXX \
20524 old_archive_cmds_CXX \
20525 old_archive_from_new_cmds_CXX \
20526 predep_objects_CXX \
20527 postdep_objects_CXX \
20530 compiler_lib_search_path_CXX \
20532 archive_expsym_cmds_CXX \
20533 postinstall_cmds_CXX \
20534 postuninstall_cmds_CXX \
20535 old_archive_from_expsyms_cmds_CXX \
20536 allow_undefined_flag_CXX \
20537 no_undefined_flag_CXX \
20538 export_symbols_cmds_CXX \
20539 hardcode_libdir_flag_spec_CXX \
20540 hardcode_libdir_flag_spec_ld_CXX \
20541 hardcode_libdir_separator_CXX \
20542 hardcode_automatic_CXX \
20544 module_expsym_cmds_CXX \
20545 lt_cv_prog_compiler_c_o_CXX \
20546 exclude_expsyms_CXX \
20547 include_expsyms_CXX; do
20550 old_archive_cmds_CXX | \
20551 old_archive_from_new_cmds_CXX | \
20552 archive_cmds_CXX | \
20553 archive_expsym_cmds_CXX | \
20554 module_cmds_CXX | \
20555 module_expsym_cmds_CXX | \
20556 old_archive_from_expsyms_cmds_CXX | \
20557 export_symbols_cmds_CXX | \
20558 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20559 postinstall_cmds | postuninstall_cmds | \
20560 old_postinstall_cmds | old_postuninstall_cmds | \
20561 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20562 # Double-quote double-evaled strings.
20563 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20566 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20572 *'\$0 --fallback-echo"')
20573 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20579 cat <<__EOF__ >> "$cfgfile"
20580 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20582 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20584 # Shell to use when invoking shell scripts.
20587 # Whether or not to build shared libraries.
20588 build_libtool_libs=$enable_shared
20590 # Whether or not to build static libraries.
20591 build_old_libs=$enable_static
20593 # Whether or not to add -lc for building shared libraries.
20594 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20596 # Whether or not to disallow shared libs when runtime libs are static
20597 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20599 # Whether or not to optimize for fast installation.
20600 fast_install=$enable_fast_install
20603 host_alias=$host_alias
20607 # The build system.
20608 build_alias=$build_alias
20612 # An echo program that does not interpret backslashes.
20617 AR_FLAGS=$lt_AR_FLAGS
20622 # LTCC compiler flags.
20623 LTCFLAGS=$lt_LTCFLAGS
20625 # A language-specific compiler.
20626 CC=$lt_compiler_CXX
20628 # Is the compiler the GNU C compiler?
20634 # The linker used to build libraries.
20637 # Whether we need hard or soft links.
20640 # A BSD-compatible nm program.
20643 # A symbol stripping program
20646 # Used to examine libraries when file_magic_cmd begins "file"
20647 MAGIC_CMD=$MAGIC_CMD
20649 # Used on cygwin: DLL creation program.
20652 # Used on cygwin: object dumper.
20655 # Used on cygwin: assembler.
20658 # The name of the directory that contains temporary libtool files.
20661 # How to create reloadable object files.
20662 reload_flag=$lt_reload_flag
20663 reload_cmds=$lt_reload_cmds
20665 # How to pass a linker flag through the compiler.
20666 wl=$lt_lt_prog_compiler_wl_CXX
20668 # Object file suffix (normally "o").
20669 objext="$ac_objext"
20671 # Old archive suffix (normally "a").
20674 # Shared library suffix (normally ".so").
20675 shrext_cmds='$shrext_cmds'
20677 # Executable file suffix (normally "").
20680 # Additional compiler flags for building library objects.
20681 pic_flag=$lt_lt_prog_compiler_pic_CXX
20684 # What is the maximum length of a command?
20685 max_cmd_len=$lt_cv_sys_max_cmd_len
20687 # Does compiler simultaneously support -c and -o options?
20688 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20690 # Must we lock files when doing compilation?
20691 need_locks=$lt_need_locks
20693 # Do we need the lib prefix for modules?
20694 need_lib_prefix=$need_lib_prefix
20696 # Do we need a version for libraries?
20697 need_version=$need_version
20699 # Whether dlopen is supported.
20700 dlopen_support=$enable_dlopen
20702 # Whether dlopen of programs is supported.
20703 dlopen_self=$enable_dlopen_self
20705 # Whether dlopen of statically linked programs is supported.
20706 dlopen_self_static=$enable_dlopen_self_static
20708 # Compiler flag to prevent dynamic linking.
20709 link_static_flag=$lt_lt_prog_compiler_static_CXX
20711 # Compiler flag to turn off builtin functions.
20712 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20714 # Compiler flag to allow reflexive dlopens.
20715 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20717 # Compiler flag to generate shared objects directly from archives.
20718 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20720 # Compiler flag to generate thread-safe objects.
20721 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20723 # Library versioning type.
20724 version_type=$version_type
20726 # Format of library name prefix.
20727 libname_spec=$lt_libname_spec
20729 # List of archive names. First name is the real one, the rest are links.
20730 # The last name is the one that the linker finds with -lNAME.
20731 library_names_spec=$lt_library_names_spec
20733 # The coded name of the library, if different from the real name.
20734 soname_spec=$lt_soname_spec
20736 # Commands used to build and install an old-style archive.
20738 old_archive_cmds=$lt_old_archive_cmds_CXX
20739 old_postinstall_cmds=$lt_old_postinstall_cmds
20740 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20742 # Create an old-style archive from a shared archive.
20743 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20745 # Create a temporary old-style archive to link instead of a shared archive.
20746 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20748 # Commands used to build and install a shared archive.
20749 archive_cmds=$lt_archive_cmds_CXX
20750 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20751 postinstall_cmds=$lt_postinstall_cmds
20752 postuninstall_cmds=$lt_postuninstall_cmds
20754 # Commands used to build a loadable module (assumed same as above if empty)
20755 module_cmds=$lt_module_cmds_CXX
20756 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20758 # Commands to strip libraries.
20759 old_striplib=$lt_old_striplib
20760 striplib=$lt_striplib
20762 # Dependencies to place before the objects being linked to create a
20764 predep_objects=$lt_predep_objects_CXX
20766 # Dependencies to place after the objects being linked to create a
20768 postdep_objects=$lt_postdep_objects_CXX
20770 # Dependencies to place before the objects being linked to create a
20772 predeps=$lt_predeps_CXX
20774 # Dependencies to place after the objects being linked to create a
20776 postdeps=$lt_postdeps_CXX
20778 # The library search path used internally by the compiler when linking
20779 # a shared library.
20780 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20782 # Method to check whether dependent libraries are shared objects.
20783 deplibs_check_method=$lt_deplibs_check_method
20785 # Command to use when deplibs_check_method == file_magic.
20786 file_magic_cmd=$lt_file_magic_cmd
20788 # Flag that allows shared libraries with undefined symbols to be built.
20789 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20791 # Flag that forces no undefined symbols.
20792 no_undefined_flag=$lt_no_undefined_flag_CXX
20794 # Commands used to finish a libtool library installation in a directory.
20795 finish_cmds=$lt_finish_cmds
20797 # Same as above, but a single script fragment to be evaled but not shown.
20798 finish_eval=$lt_finish_eval
20800 # Take the output of nm and produce a listing of raw symbols and C names.
20801 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20803 # Transform the output of nm in a proper C declaration
20804 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20806 # Transform the output of nm in a C name address pair
20807 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20809 # This is the shared library runtime path variable.
20810 runpath_var=$runpath_var
20812 # This is the shared library path variable.
20813 shlibpath_var=$shlibpath_var
20815 # Is shlibpath searched before the hard-coded library search path?
20816 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20818 # How to hardcode a shared library path into an executable.
20819 hardcode_action=$hardcode_action_CXX
20821 # Whether we should hardcode library paths into libraries.
20822 hardcode_into_libs=$hardcode_into_libs
20824 # Flag to hardcode \$libdir into a binary during linking.
20825 # This must work even if \$libdir does not exist.
20826 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20828 # If ld is used when linking, flag to hardcode \$libdir into
20829 # a binary during linking. This must work even if \$libdir does
20831 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20833 # Whether we need a single -rpath flag with a separated argument.
20834 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20836 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20837 # resulting binary.
20838 hardcode_direct=$hardcode_direct_CXX
20840 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20841 # resulting binary.
20842 hardcode_minus_L=$hardcode_minus_L_CXX
20844 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20845 # the resulting binary.
20846 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20848 # Set to yes if building a shared library automatically hardcodes DIR into the library
20849 # and all subsequent libraries and executables linked against it.
20850 hardcode_automatic=$hardcode_automatic_CXX
20852 # Variables whose values should be saved in libtool wrapper scripts and
20853 # restored at relink time.
20854 variables_saved_for_relink="$variables_saved_for_relink"
20856 # Whether libtool must link a program against all its dependency libraries.
20857 link_all_deplibs=$link_all_deplibs_CXX
20859 # Compile-time system search path for libraries
20860 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20862 # Run-time system search path for libraries
20863 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20865 # Fix the shell variable \$srcfile for the compiler.
20866 fix_srcfile_path="$fix_srcfile_path_CXX"
20868 # Set to yes if exported symbols are required.
20869 always_export_symbols=$always_export_symbols_CXX
20871 # The commands to list exported symbols.
20872 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20874 # The commands to extract the exported symbol list from a shared archive.
20875 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20877 # Symbols that should not be listed in the preloaded symbols.
20878 exclude_expsyms=$lt_exclude_expsyms_CXX
20880 # Symbols that must always be exported.
20881 include_expsyms=$lt_include_expsyms_CXX
20883 # ### END LIBTOOL TAG CONFIG: $tagname
20889 # If there is no Makefile yet, we rely on a make rule to execute
20890 # `config.status --recheck' to rerun these tests and create the
20891 # libtool script then.
20892 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20893 if test -f "$ltmain_in"; then
20894 test -f Makefile && make "$ltmain"
20900 ac_cpp='$CPP $CPPFLAGS'
20901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20909 with_gnu_ldcxx=$with_gnu_ld
20910 with_gnu_ld=$lt_save_with_gnu_ld
20911 lt_cv_path_LDCXX=$lt_cv_path_LD
20912 lt_cv_path_LD=$lt_save_path_LD
20913 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20914 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20922 if test -n "$F77" && test "X$F77" != "Xno"; then
20925 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20926 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20927 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20930 archive_cmds_need_lc_F77=no
20931 allow_undefined_flag_F77=
20932 always_export_symbols_F77=no
20933 archive_expsym_cmds_F77=
20934 export_dynamic_flag_spec_F77=
20935 hardcode_direct_F77=no
20936 hardcode_libdir_flag_spec_F77=
20937 hardcode_libdir_flag_spec_ld_F77=
20938 hardcode_libdir_separator_F77=
20939 hardcode_minus_L_F77=no
20940 hardcode_automatic_F77=no
20942 module_expsym_cmds_F77=
20943 link_all_deplibs_F77=unknown
20944 old_archive_cmds_F77=$old_archive_cmds
20945 no_undefined_flag_F77=
20946 whole_archive_flag_spec_F77=
20947 enable_shared_with_static_runtimes_F77=no
20949 # Source file extension for f77 test sources.
20952 # Object file extension for compiled f77 test sources.
20956 # Code to be used in simple compile tests
20957 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20959 # Code to be used in simple link tests
20960 lt_simple_link_test_code=" program t\n end\n"
20962 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20964 # If no C compiler was specified, use CC.
20967 # If no C compiler flags were specified, use CFLAGS.
20968 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20970 # Allow CC to be a program name with arguments.
20974 # save warnings/boilerplate of simple test code
20975 ac_outfile=conftest.$ac_objext
20976 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20977 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20978 _lt_compiler_boilerplate=`cat conftest.err`
20981 ac_outfile=conftest.$ac_objext
20982 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20983 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20984 _lt_linker_boilerplate=`cat conftest.err`
20988 # Allow CC to be a program name with arguments.
20993 for cc_temp in $compiler""; do
20995 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20996 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21001 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21004 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21005 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21006 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21007 echo "${ECHO_T}$can_build_shared" >&6; }
21009 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21010 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21011 test "$can_build_shared" = "no" && enable_shared=no
21013 # On AIX, shared libraries and static libraries use the same namespace, and
21014 # are all built from PIC.
21017 test "$enable_shared" = yes && enable_static=no
21018 if test -n "$RANLIB"; then
21019 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21020 postinstall_cmds='$RANLIB $lib'
21024 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21025 test "$enable_shared" = yes && enable_static=no
21029 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21030 echo "${ECHO_T}$enable_shared" >&6; }
21032 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21033 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21034 # Make sure either enable_shared or enable_static is yes.
21035 test "$enable_shared" = yes || enable_static=yes
21036 { echo "$as_me:$LINENO: result: $enable_static" >&5
21037 echo "${ECHO_T}$enable_static" >&6; }
21042 lt_prog_compiler_wl_F77=
21043 lt_prog_compiler_pic_F77=
21044 lt_prog_compiler_static_F77=
21046 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21047 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21049 if test "$GCC" = yes; then
21050 lt_prog_compiler_wl_F77='-Wl,'
21051 lt_prog_compiler_static_F77='-static'
21055 # All AIX code is PIC.
21056 if test "$host_cpu" = ia64; then
21057 # AIX 5 now supports IA64 processor
21058 lt_prog_compiler_static_F77='-Bstatic'
21063 # FIXME: we need at least 68020 code to build shared libraries, but
21064 # adding the `-m68020' flag to GCC prevents building anything better,
21066 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21069 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21070 # PIC is the default for these OSes.
21073 mingw* | pw32* | os2*)
21074 # This hack is so that the source file can tell whether it is being
21075 # built for inclusion in a dll (and should export symbols for example).
21076 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21079 darwin* | rhapsody*)
21080 # PIC is the default on this platform
21081 # Common symbols not allowed in MH_DYLIB files
21082 lt_prog_compiler_pic_F77='-fno-common'
21086 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21087 # Instead, we relocate shared libraries at runtime.
21091 # Just because we use GCC doesn't mean we suddenly get shared libraries
21092 # on systems that don't support them.
21093 lt_prog_compiler_can_build_shared_F77=no
21098 if test -d /usr/nec; then
21099 lt_prog_compiler_pic_F77=-Kconform_pic
21104 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21105 # not for PA HP-UX.
21111 lt_prog_compiler_pic_F77='-fPIC'
21117 lt_prog_compiler_pic_F77='-fPIC'
21121 # PORTME Check for flag to pass linker flags through the system compiler.
21124 lt_prog_compiler_wl_F77='-Wl,'
21125 if test "$host_cpu" = ia64; then
21126 # AIX 5 now supports IA64 processor
21127 lt_prog_compiler_static_F77='-Bstatic'
21129 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21133 # PIC is the default on this platform
21134 # Common symbols not allowed in MH_DYLIB files
21135 case $cc_basename in
21137 lt_prog_compiler_pic_F77='-qnocommon'
21138 lt_prog_compiler_wl_F77='-Wl,'
21143 mingw* | pw32* | os2*)
21144 # This hack is so that the source file can tell whether it is being
21145 # built for inclusion in a dll (and should export symbols for example).
21146 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21149 hpux9* | hpux10* | hpux11*)
21150 lt_prog_compiler_wl_F77='-Wl,'
21151 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21152 # not for PA HP-UX.
21158 lt_prog_compiler_pic_F77='+Z'
21161 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21162 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21165 irix5* | irix6* | nonstopux*)
21166 lt_prog_compiler_wl_F77='-Wl,'
21167 # PIC (with -KPIC) is the default.
21168 lt_prog_compiler_static_F77='-non_shared'
21172 lt_prog_compiler_pic_F77='-KPIC'
21173 lt_prog_compiler_static_F77='-Bstatic'
21177 case $cc_basename in
21179 lt_prog_compiler_wl_F77='-Wl,'
21180 lt_prog_compiler_pic_F77='-KPIC'
21181 lt_prog_compiler_static_F77='-static'
21183 pgcc* | pgf77* | pgf90* | pgf95*)
21184 # Portland Group compilers (*not* the Pentium gcc compiler,
21185 # which looks to be a dead project)
21186 lt_prog_compiler_wl_F77='-Wl,'
21187 lt_prog_compiler_pic_F77='-fpic'
21188 lt_prog_compiler_static_F77='-Bstatic'
21191 lt_prog_compiler_wl_F77='-Wl,'
21192 # All Alpha code is PIC.
21193 lt_prog_compiler_static_F77='-non_shared'
21198 osf3* | osf4* | osf5*)
21199 lt_prog_compiler_wl_F77='-Wl,'
21200 # All OSF/1 code is PIC.
21201 lt_prog_compiler_static_F77='-non_shared'
21205 lt_prog_compiler_pic_F77='-KPIC'
21206 lt_prog_compiler_static_F77='-Bstatic'
21207 case $cc_basename in
21208 f77* | f90* | f95*)
21209 lt_prog_compiler_wl_F77='-Qoption ld ';;
21211 lt_prog_compiler_wl_F77='-Wl,';;
21216 lt_prog_compiler_wl_F77='-Qoption ld '
21217 lt_prog_compiler_pic_F77='-PIC'
21218 lt_prog_compiler_static_F77='-Bstatic'
21221 sysv4 | sysv4.2uw2* | sysv4.3*)
21222 lt_prog_compiler_wl_F77='-Wl,'
21223 lt_prog_compiler_pic_F77='-KPIC'
21224 lt_prog_compiler_static_F77='-Bstatic'
21228 if test -d /usr/nec ;then
21229 lt_prog_compiler_pic_F77='-Kconform_pic'
21230 lt_prog_compiler_static_F77='-Bstatic'
21234 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21235 lt_prog_compiler_wl_F77='-Wl,'
21236 lt_prog_compiler_pic_F77='-KPIC'
21237 lt_prog_compiler_static_F77='-Bstatic'
21241 lt_prog_compiler_wl_F77='-Wl,'
21242 lt_prog_compiler_can_build_shared_F77=no
21246 lt_prog_compiler_pic_F77='-pic'
21247 lt_prog_compiler_static_F77='-Bstatic'
21251 lt_prog_compiler_can_build_shared_F77=no
21256 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21257 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21260 # Check to make sure the PIC flag actually works.
21262 if test -n "$lt_prog_compiler_pic_F77"; then
21264 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21265 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21266 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21267 echo $ECHO_N "(cached) $ECHO_C" >&6
21269 lt_prog_compiler_pic_works_F77=no
21270 ac_outfile=conftest.$ac_objext
21271 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21272 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21273 # Insert the option either (1) after the last *FLAGS variable, or
21274 # (2) before a word containing "conftest.", or (3) at the end.
21275 # Note that $ac_compile itself does not contain backslashes and begins
21276 # with a dollar sign (not a hyphen), so the echo should work correctly.
21277 # The option is referenced via a variable to avoid confusing sed.
21278 lt_compile=`echo "$ac_compile" | $SED \
21279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21281 -e 's:$: $lt_compiler_flag:'`
21282 (eval echo "\"\$as_me:21282: $lt_compile\"" >&5)
21283 (eval "$lt_compile" 2>conftest.err)
21285 cat conftest.err >&5
21286 echo "$as_me:21286: \$? = $ac_status" >&5
21287 if (exit $ac_status) && test -s "$ac_outfile"; then
21288 # The compiler can only warn and ignore the option if not recognized
21289 # So say no if there are warnings other than the usual output.
21290 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21291 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21292 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21293 lt_prog_compiler_pic_works_F77=yes
21299 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21300 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21302 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21303 case $lt_prog_compiler_pic_F77 in
21305 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21308 lt_prog_compiler_pic_F77=
21309 lt_prog_compiler_can_build_shared_F77=no
21314 # For platforms which do not support PIC, -DPIC is meaningless:
21316 lt_prog_compiler_pic_F77=
21319 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21324 # Check to make sure the static flag actually works.
21326 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21327 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21328 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21329 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21330 echo $ECHO_N "(cached) $ECHO_C" >&6
21332 lt_prog_compiler_static_works_F77=no
21333 save_LDFLAGS="$LDFLAGS"
21334 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21335 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21336 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21337 # The linker can only warn and ignore the option if not recognized
21338 # So say no if there are warnings
21339 if test -s conftest.err; then
21340 # Append any errors to the config.log.
21341 cat conftest.err 1>&5
21342 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21343 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21344 if diff conftest.exp conftest.er2 >/dev/null; then
21345 lt_prog_compiler_static_works_F77=yes
21348 lt_prog_compiler_static_works_F77=yes
21352 LDFLAGS="$save_LDFLAGS"
21355 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21356 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21358 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21361 lt_prog_compiler_static_F77=
21365 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21366 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21367 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21368 echo $ECHO_N "(cached) $ECHO_C" >&6
21370 lt_cv_prog_compiler_c_o_F77=no
21371 $rm -r conftest 2>/dev/null
21375 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21377 lt_compiler_flag="-o out/conftest2.$ac_objext"
21378 # Insert the option either (1) after the last *FLAGS variable, or
21379 # (2) before a word containing "conftest.", or (3) at the end.
21380 # Note that $ac_compile itself does not contain backslashes and begins
21381 # with a dollar sign (not a hyphen), so the echo should work correctly.
21382 lt_compile=`echo "$ac_compile" | $SED \
21383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21385 -e 's:$: $lt_compiler_flag:'`
21386 (eval echo "\"\$as_me:21386: $lt_compile\"" >&5)
21387 (eval "$lt_compile" 2>out/conftest.err)
21389 cat out/conftest.err >&5
21390 echo "$as_me:21390: \$? = $ac_status" >&5
21391 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21393 # The compiler can only warn and ignore the option if not recognized
21394 # So say no if there are warnings
21395 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21396 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21397 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21398 lt_cv_prog_compiler_c_o_F77=yes
21403 # SGI C++ compiler will create directory out/ii_files/ for
21404 # template instantiation
21405 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21406 $rm out/* && rmdir out
21412 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21413 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21416 hard_links="nottested"
21417 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21418 # do not overwrite the value of need_locks provided by the user
21419 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21420 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21423 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21425 ln conftest.a conftest.b 2>&5 || hard_links=no
21426 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21427 { echo "$as_me:$LINENO: result: $hard_links" >&5
21428 echo "${ECHO_T}$hard_links" >&6; }
21429 if test "$hard_links" = no; then
21430 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21431 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21438 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21439 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21442 allow_undefined_flag_F77=
21443 enable_shared_with_static_runtimes_F77=no
21445 archive_expsym_cmds_F77=
21446 old_archive_From_new_cmds_F77=
21447 old_archive_from_expsyms_cmds_F77=
21448 export_dynamic_flag_spec_F77=
21449 whole_archive_flag_spec_F77=
21450 thread_safe_flag_spec_F77=
21451 hardcode_libdir_flag_spec_F77=
21452 hardcode_libdir_flag_spec_ld_F77=
21453 hardcode_libdir_separator_F77=
21454 hardcode_direct_F77=no
21455 hardcode_minus_L_F77=no
21456 hardcode_shlibpath_var_F77=unsupported
21457 link_all_deplibs_F77=unknown
21458 hardcode_automatic_F77=no
21460 module_expsym_cmds_F77=
21461 always_export_symbols_F77=no
21462 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21463 # include_expsyms should be a list of space-separated symbols to be *always*
21464 # included in the symbol list
21465 include_expsyms_F77=
21466 # exclude_expsyms can be an extended regexp of symbols to exclude
21467 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21468 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21469 # as well as any symbol that contains `d'.
21470 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21471 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21472 # platforms (ab)use it in PIC code, but their linkers get confused if
21473 # the symbol is explicitly referenced. Since portable code cannot
21474 # rely on this symbol name, it's probably fine to never include it in
21475 # preloaded symbol tables.
21476 extract_expsyms_cmds=
21477 # Just being paranoid about ensuring that cc_basename is set.
21478 for cc_temp in $compiler""; do
21480 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21481 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21486 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21489 cygwin* | mingw* | pw32*)
21490 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21491 # When not using gcc, we currently assume that we are using
21492 # Microsoft Visual C++.
21493 if test "$GCC" != yes; then
21498 # we just hope/assume this is gcc and not c89 (= MSVC++)
21507 if test "$with_gnu_ld" = yes; then
21508 # If archive_cmds runs LD, not CC, wlarc should be empty
21511 # Set some defaults for GNU ld with shared library support. These
21512 # are reset later if shared libraries are not supported. Putting them
21513 # here allows them to be overridden if necessary.
21514 runpath_var=LD_RUN_PATH
21515 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21516 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21517 # ancient GNU ld didn't support --whole-archive et. al.
21518 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21519 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21521 whole_archive_flag_spec_F77=
21523 supports_anon_versioning=no
21524 case `$LD -v 2>/dev/null` in
21525 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21526 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21527 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21528 *\ 2.11.*) ;; # other 2.11 versions
21529 *) supports_anon_versioning=yes ;;
21532 # See if GNU ld supports shared libraries.
21534 aix3* | aix4* | aix5*)
21535 # On AIX/PPC, the GNU linker is very broken
21536 if test "$host_cpu" != ia64; then
21540 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21541 *** to be unable to reliably create shared libraries on AIX.
21542 *** Therefore, libtool is disabling shared libraries support. If you
21543 *** really care for shared libraries, you may want to modify your PATH
21544 *** so that a non-GNU linker is found, and then restart.
21551 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)'
21552 hardcode_libdir_flag_spec_F77='-L$libdir'
21553 hardcode_minus_L_F77=yes
21555 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21556 # that the semantics of dynamic libraries on AmigaOS, at least up
21557 # to version 4, is to share data among multiple programs linked
21558 # with the same dynamic library. Since this doesn't match the
21559 # behavior of shared libraries on other platforms, we can't use
21565 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21566 allow_undefined_flag_F77=unsupported
21567 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21568 # support --undefined. This deserves some investigation. FIXME
21569 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21575 cygwin* | mingw* | pw32*)
21576 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21577 # as there is no search path for DLLs.
21578 hardcode_libdir_flag_spec_F77='-L$libdir'
21579 allow_undefined_flag_F77=unsupported
21580 always_export_symbols_F77=no
21581 enable_shared_with_static_runtimes_F77=yes
21582 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21584 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21585 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21586 # If the export-symbols file already is a .def file (1st line
21587 # is EXPORTS), use it as is; otherwise, prepend...
21588 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21589 cp $export_symbols $output_objdir/$soname.def;
21591 echo EXPORTS > $output_objdir/$soname.def;
21592 cat $export_symbols >> $output_objdir/$soname.def;
21594 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21601 hardcode_direct_F77=no
21602 hardcode_shlibpath_var_F77=no
21603 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21604 export_dynamic_flag_spec_F77='${wl}-E'
21605 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21606 # Instead, shared libraries are loaded at an image base (0x10000000 by
21607 # default) and relocated if they conflict, which is a slow very memory
21608 # consuming and fragmenting process. To avoid this, we pick a random,
21609 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21610 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21611 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'
21612 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'
21616 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21618 case $cc_basename,$host_cpu in
21619 pgcc*) # Portland Group C compiler
21620 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'
21621 tmp_addflag=' $pic_flag'
21623 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21624 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'
21625 tmp_addflag=' $pic_flag -Mnomain' ;;
21626 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21627 tmp_addflag=' -i_dynamic' ;;
21628 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21629 tmp_addflag=' -i_dynamic -nofor_main' ;;
21630 ifc* | ifort*) # Intel Fortran compiler
21631 tmp_addflag=' -nofor_main' ;;
21633 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21635 if test $supports_anon_versioning = yes; then
21636 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21637 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21638 $echo "local: *; };" >> $output_objdir/$libname.ver~
21639 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21647 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21648 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21651 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21652 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21657 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21661 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21662 *** create shared libraries on Solaris systems. Therefore, libtool
21663 *** is disabling shared libraries support. We urge you to upgrade GNU
21664 *** binutils to release 2.9.1 or newer. Another option is to modify
21665 *** your PATH or compiler configuration so that the native linker is
21666 *** used, and then restart.
21669 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21670 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21671 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21678 case `$LD -v 2>&1` in
21679 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21683 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21684 *** reliably create shared libraries on SCO systems. Therefore, libtool
21685 *** is disabling shared libraries support. We urge you to upgrade GNU
21686 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21687 *** your PATH or compiler configuration so that the native linker is
21688 *** used, and then restart.
21693 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21694 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21695 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21696 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21705 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21707 hardcode_direct_F77=yes
21708 hardcode_shlibpath_var_F77=no
21712 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21713 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21714 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21721 if test "$ld_shlibs_F77" = no; then
21723 hardcode_libdir_flag_spec_F77=
21724 export_dynamic_flag_spec_F77=
21725 whole_archive_flag_spec_F77=
21728 # PORTME fill in a description of your system's linker (not GNU ld)
21731 allow_undefined_flag_F77=unsupported
21732 always_export_symbols_F77=yes
21733 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'
21734 # Note: this linker hardcodes the directories in LIBPATH if there
21735 # are no directories specified by -L.
21736 hardcode_minus_L_F77=yes
21737 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21738 # Neither direct hardcoding nor static linking is supported with a
21740 hardcode_direct_F77=unsupported
21745 if test "$host_cpu" = ia64; then
21746 # On IA64, the linker does run time linking by default, so we don't
21747 # have to do anything special.
21748 aix_use_runtimelinking=no
21749 exp_sym_flag='-Bexport'
21752 # If we're using GNU nm, then we don't want the "-C" option.
21753 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21754 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21755 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'
21757 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'
21759 aix_use_runtimelinking=no
21761 # Test if we are trying to use run time linking or normal
21762 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21763 # need to do runtime linking.
21764 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21765 for ld_flag in $LDFLAGS; do
21766 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21767 aix_use_runtimelinking=yes
21774 exp_sym_flag='-bexport'
21775 no_entry_flag='-bnoentry'
21778 # When large executables or shared objects are built, AIX ld can
21779 # have problems creating the table of contents. If linking a library
21780 # or program results in "error TOC overflow" add -mminimal-toc to
21781 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21782 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21784 archive_cmds_F77=''
21785 hardcode_direct_F77=yes
21786 hardcode_libdir_separator_F77=':'
21787 link_all_deplibs_F77=yes
21789 if test "$GCC" = yes; then
21790 case $host_os in aix4.[012]|aix4.[012].*)
21791 # We only want to do this on AIX 4.2 and lower, the check
21792 # below for broken collect2 doesn't work under 4.3+
21793 collect2name=`${CC} -print-prog-name=collect2`
21794 if test -f "$collect2name" && \
21795 strings "$collect2name" | grep resolve_lib_name >/dev/null
21797 # We have reworked collect2
21798 hardcode_direct_F77=yes
21800 # We have old collect2
21801 hardcode_direct_F77=unsupported
21802 # It fails to find uninstalled libraries when the uninstalled
21803 # path is not listed in the libpath. Setting hardcode_minus_L
21804 # to unsupported forces relinking
21805 hardcode_minus_L_F77=yes
21806 hardcode_libdir_flag_spec_F77='-L$libdir'
21807 hardcode_libdir_separator_F77=
21811 shared_flag='-shared'
21812 if test "$aix_use_runtimelinking" = yes; then
21813 shared_flag="$shared_flag "'${wl}-G'
21817 if test "$host_cpu" = ia64; then
21818 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21819 # chokes on -Wl,-G. The following line is correct:
21822 if test "$aix_use_runtimelinking" = yes; then
21823 shared_flag='${wl}-G'
21825 shared_flag='${wl}-bM:SRE'
21830 # It seems that -bexpall does not export symbols beginning with
21831 # underscore (_), so it is better to generate a list of symbols to export.
21832 always_export_symbols_F77=yes
21833 if test "$aix_use_runtimelinking" = yes; then
21834 # Warning - without using the other runtime loading flags (-brtl),
21835 # -berok will link without error, but may produce a broken library.
21836 allow_undefined_flag_F77='-berok'
21837 # Determine the default libpath from the value encoded in an empty executable.
21838 cat >conftest.$ac_ext <<_ACEOF
21843 rm -f conftest.$ac_objext conftest$ac_exeext
21844 if { (ac_try="$ac_link"
21845 case "(($ac_try" in
21846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21847 *) ac_try_echo=$ac_try;;
21849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21850 (eval "$ac_link") 2>conftest.er1
21852 grep -v '^ *+' conftest.er1 >conftest.err
21854 cat conftest.err >&5
21855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); } &&
21857 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21858 { (case "(($ac_try" in
21859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21860 *) ac_try_echo=$ac_try;;
21862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21863 (eval "$ac_try") 2>&5
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); }; } &&
21867 { ac_try='test -s conftest$ac_exeext'
21868 { (case "(($ac_try" in
21869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21870 *) ac_try_echo=$ac_try;;
21872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21873 (eval "$ac_try") 2>&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); }; }; then
21878 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21880 # Check for a 64-bit object if we didn't find anything.
21881 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; }
21884 echo "$as_me: failed program was:" >&5
21885 sed 's/^/| /' conftest.$ac_ext >&5
21890 rm -f core conftest.err conftest.$ac_objext \
21891 conftest$ac_exeext conftest.$ac_ext
21892 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21894 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21895 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"
21897 if test "$host_cpu" = ia64; then
21898 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21899 allow_undefined_flag_F77="-z nodefs"
21900 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"
21902 # Determine the default libpath from the value encoded in an empty executable.
21903 cat >conftest.$ac_ext <<_ACEOF
21908 rm -f conftest.$ac_objext conftest$ac_exeext
21909 if { (ac_try="$ac_link"
21910 case "(($ac_try" in
21911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21912 *) ac_try_echo=$ac_try;;
21914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21915 (eval "$ac_link") 2>conftest.er1
21917 grep -v '^ *+' conftest.er1 >conftest.err
21919 cat conftest.err >&5
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); } &&
21922 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21923 { (case "(($ac_try" in
21924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21925 *) ac_try_echo=$ac_try;;
21927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21928 (eval "$ac_try") 2>&5
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); }; } &&
21932 { ac_try='test -s conftest$ac_exeext'
21933 { (case "(($ac_try" in
21934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935 *) ac_try_echo=$ac_try;;
21937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938 (eval "$ac_try") 2>&5
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); }; }; then
21943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21945 # Check for a 64-bit object if we didn't find anything.
21946 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; }
21949 echo "$as_me: failed program was:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21955 rm -f core conftest.err conftest.$ac_objext \
21956 conftest$ac_exeext conftest.$ac_ext
21957 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21959 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21960 # Warning - without using the other run time loading flags,
21961 # -berok will link without error, but may produce a broken library.
21962 no_undefined_flag_F77=' ${wl}-bernotok'
21963 allow_undefined_flag_F77=' ${wl}-berok'
21964 # Exported symbols can be pulled into shared objects from archives
21965 whole_archive_flag_spec_F77='$convenience'
21966 archive_cmds_need_lc_F77=yes
21967 # This is similar to how AIX traditionally builds its shared libraries.
21968 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'
21974 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)'
21975 hardcode_libdir_flag_spec_F77='-L$libdir'
21976 hardcode_minus_L_F77=yes
21977 # see comment about different semantics on the GNU ld section
21982 export_dynamic_flag_spec_F77=-rdynamic
21985 cygwin* | mingw* | pw32*)
21986 # When not using gcc, we currently assume that we are using
21987 # Microsoft Visual C++.
21988 # hardcode_libdir_flag_spec is actually meaningless, as there is
21989 # no search path for DLLs.
21990 hardcode_libdir_flag_spec_F77=' '
21991 allow_undefined_flag_F77=unsupported
21992 # Tell ltmain to make .lib files, not .a files.
21994 # Tell ltmain to make .dll files, not .so files.
21996 # FIXME: Setting linknames here is a bad hack.
21997 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21998 # The linker will automatically build a .lib file if we build a DLL.
21999 old_archive_From_new_cmds_F77='true'
22000 # FIXME: Should let the user specify the lib program.
22001 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22002 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22003 enable_shared_with_static_runtimes_F77=yes
22006 darwin* | rhapsody*)
22008 rhapsody* | darwin1.[012])
22009 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22012 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22013 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22015 case ${MACOSX_DEPLOYMENT_TARGET} in
22017 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22020 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22026 archive_cmds_need_lc_F77=no
22027 hardcode_direct_F77=no
22028 hardcode_automatic_F77=yes
22029 hardcode_shlibpath_var_F77=unsupported
22030 whole_archive_flag_spec_F77=''
22031 link_all_deplibs_F77=yes
22032 if test "$GCC" = yes ; then
22033 output_verbose_link_cmd='echo'
22034 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22035 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22036 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22037 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}'
22038 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}'
22040 case $cc_basename in
22042 output_verbose_link_cmd='echo'
22043 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22044 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22045 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22046 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}'
22047 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}'
22057 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22058 hardcode_libdir_flag_spec_F77='-L$libdir'
22059 hardcode_shlibpath_var_F77=no
22066 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22067 # support. Future versions do this automatically, but an explicit c++rt0.o
22068 # does not break anything, and helps significantly (at the cost of a little
22071 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22072 hardcode_libdir_flag_spec_F77='-R$libdir'
22073 hardcode_direct_F77=yes
22074 hardcode_shlibpath_var_F77=no
22077 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22079 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22080 hardcode_direct_F77=yes
22081 hardcode_minus_L_F77=yes
22082 hardcode_shlibpath_var_F77=no
22085 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22086 freebsd* | kfreebsd*-gnu | dragonfly*)
22087 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22088 hardcode_libdir_flag_spec_F77='-R$libdir'
22089 hardcode_direct_F77=yes
22090 hardcode_shlibpath_var_F77=no
22094 if test "$GCC" = yes; then
22095 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'
22097 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'
22099 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22100 hardcode_libdir_separator_F77=:
22101 hardcode_direct_F77=yes
22103 # hardcode_minus_L: Not really in the search PATH,
22104 # but as the default location of the library.
22105 hardcode_minus_L_F77=yes
22106 export_dynamic_flag_spec_F77='${wl}-E'
22110 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22111 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22113 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22115 if test "$with_gnu_ld" = no; then
22116 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22117 hardcode_libdir_separator_F77=:
22119 hardcode_direct_F77=yes
22120 export_dynamic_flag_spec_F77='${wl}-E'
22122 # hardcode_minus_L: Not really in the search PATH,
22123 # but as the default location of the library.
22124 hardcode_minus_L_F77=yes
22129 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22132 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22135 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22138 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22144 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22147 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22150 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22154 if test "$with_gnu_ld" = no; then
22155 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22156 hardcode_libdir_separator_F77=:
22160 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22161 hardcode_direct_F77=no
22162 hardcode_shlibpath_var_F77=no
22165 hardcode_direct_F77=yes
22166 export_dynamic_flag_spec_F77='${wl}-E'
22168 # hardcode_minus_L: Not really in the search PATH,
22169 # but as the default location of the library.
22170 hardcode_minus_L_F77=yes
22176 irix5* | irix6* | nonstopux*)
22177 if test "$GCC" = yes; then
22178 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'
22180 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'
22181 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22183 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22184 hardcode_libdir_separator_F77=:
22185 link_all_deplibs_F77=yes
22189 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22190 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22192 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22194 hardcode_libdir_flag_spec_F77='-R$libdir'
22195 hardcode_direct_F77=yes
22196 hardcode_shlibpath_var_F77=no
22200 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22201 hardcode_direct_F77=yes
22202 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22203 hardcode_libdir_separator_F77=:
22204 hardcode_shlibpath_var_F77=no
22208 hardcode_direct_F77=yes
22209 hardcode_shlibpath_var_F77=no
22210 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22211 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22212 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22213 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22214 export_dynamic_flag_spec_F77='${wl}-E'
22217 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22218 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22219 hardcode_libdir_flag_spec_F77='-R$libdir'
22222 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22223 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22230 hardcode_libdir_flag_spec_F77='-L$libdir'
22231 hardcode_minus_L_F77=yes
22232 allow_undefined_flag_F77=unsupported
22233 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'
22234 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22238 if test "$GCC" = yes; then
22239 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22240 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'
22242 allow_undefined_flag_F77=' -expect_unresolved \*'
22243 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'
22245 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22246 hardcode_libdir_separator_F77=:
22249 osf4* | osf5*) # as osf3* with the addition of -msym flag
22250 if test "$GCC" = yes; then
22251 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22252 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'
22253 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22255 allow_undefined_flag_F77=' -expect_unresolved \*'
22256 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'
22257 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~
22258 $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'
22260 # Both c and cxx compiler support -rpath directly
22261 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22263 hardcode_libdir_separator_F77=:
22267 no_undefined_flag_F77=' -z text'
22268 if test "$GCC" = yes; then
22270 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22271 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22272 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22275 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22276 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22277 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22279 hardcode_libdir_flag_spec_F77='-R$libdir'
22280 hardcode_shlibpath_var_F77=no
22282 solaris2.[0-5] | solaris2.[0-5].*) ;;
22284 # The compiler driver will combine linker options so we
22285 # cannot just pass the convience library names through
22286 # without $wl, iff we do not link with $LD.
22287 # Luckily, gcc supports the same syntax we need for Sun Studio.
22288 # Supported since Solaris 2.6 (maybe 2.5.1?)
22291 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22293 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' ;;
22296 link_all_deplibs_F77=yes
22300 if test "x$host_vendor" = xsequent; then
22301 # Use $CC to link under sequent, because it throws in some extra .o
22302 # files that make .init and .fini sections work.
22303 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22305 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22307 hardcode_libdir_flag_spec_F77='-L$libdir'
22308 hardcode_direct_F77=yes
22309 hardcode_minus_L_F77=yes
22310 hardcode_shlibpath_var_F77=no
22314 case $host_vendor in
22316 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22317 hardcode_direct_F77=yes # is this really true???
22320 ## LD is ld it makes a PLAMLIB
22321 ## CC just makes a GrossModule.
22322 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22323 reload_cmds_F77='$CC -r -o $output$reload_objs'
22324 hardcode_direct_F77=no
22327 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22328 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22331 runpath_var='LD_RUN_PATH'
22332 hardcode_shlibpath_var_F77=no
22336 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22337 hardcode_shlibpath_var_F77=no
22338 export_dynamic_flag_spec_F77='-Bexport'
22342 if test -d /usr/nec; then
22343 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22344 hardcode_shlibpath_var_F77=no
22345 runpath_var=LD_RUN_PATH
22346 hardcode_runpath_var=yes
22351 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22352 no_undefined_flag_F77='${wl}-z,text'
22353 archive_cmds_need_lc_F77=no
22354 hardcode_shlibpath_var_F77=no
22355 runpath_var='LD_RUN_PATH'
22357 if test "$GCC" = yes; then
22358 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22359 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22361 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22362 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22366 sysv5* | sco3.2v5* | sco5v6*)
22367 # Note: We can NOT use -z defs as we might desire, because we do not
22368 # link with -lc, and that would cause any symbols used from libc to
22369 # always be unresolved, which means just about no library would
22370 # ever link correctly. If we're not using GNU ld we use -z text
22371 # though, which does catch some bad symbols but isn't as heavy-handed
22373 no_undefined_flag_F77='${wl}-z,text'
22374 allow_undefined_flag_F77='${wl}-z,nodefs'
22375 archive_cmds_need_lc_F77=no
22376 hardcode_shlibpath_var_F77=no
22377 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22378 hardcode_libdir_separator_F77=':'
22379 link_all_deplibs_F77=yes
22380 export_dynamic_flag_spec_F77='${wl}-Bexport'
22381 runpath_var='LD_RUN_PATH'
22383 if test "$GCC" = yes; then
22384 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22385 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22387 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22388 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22393 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22394 hardcode_libdir_flag_spec_F77='-L$libdir'
22395 hardcode_shlibpath_var_F77=no
22404 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22405 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22406 test "$ld_shlibs_F77" = no && can_build_shared=no
22409 # Do we need to explicitly link libc?
22411 case "x$archive_cmds_need_lc_F77" in
22413 # Assume -lc should be added
22414 archive_cmds_need_lc_F77=yes
22416 if test "$enable_shared" = yes && test "$GCC" = yes; then
22417 case $archive_cmds_F77 in
22419 # FIXME: we may have to deal with multi-command sequences.
22422 # Test whether the compiler implicitly links with -lc since on some
22423 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22424 # to ld, don't add -lc before -lgcc.
22425 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22426 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22428 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22431 (eval $ac_compile) 2>&5
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); } 2>conftest.err; then
22437 libobjs=conftest.$ac_objext
22439 wl=$lt_prog_compiler_wl_F77
22440 pic_flag=$lt_prog_compiler_pic_F77
22446 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22447 allow_undefined_flag_F77=
22448 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22449 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); }
22454 archive_cmds_need_lc_F77=no
22456 archive_cmds_need_lc_F77=yes
22458 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22460 cat conftest.err 1>&5
22463 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22464 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22471 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22472 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22473 library_names_spec=
22474 libname_spec='lib$name'
22478 postuninstall_cmds=
22482 shlibpath_overrides_runpath=unknown
22484 dynamic_linker="$host_os ld.so"
22485 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22486 if test "$GCC" = yes; then
22487 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22488 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22489 # if the path contains ";" then we assume it to be the separator
22490 # otherwise default to the standard path separator (i.e. ":") - it is
22491 # assumed that no part of a normal pathname contains ";" but that should
22492 # okay in the real world where ";" in dirpaths is itself problematic.
22493 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22495 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22498 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22500 need_lib_prefix=unknown
22501 hardcode_into_libs=no
22503 # when you set need_version to no, make sure it does not cause -set_version
22504 # flags to be left without arguments
22505 need_version=unknown
22510 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22511 shlibpath_var=LIBPATH
22513 # AIX 3 has no versioning support, so we append a major version to the name.
22514 soname_spec='${libname}${release}${shared_ext}$major'
22521 hardcode_into_libs=yes
22522 if test "$host_cpu" = ia64; then
22523 # AIX 5 supports IA64
22524 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22525 shlibpath_var=LD_LIBRARY_PATH
22527 # With GCC up to 2.95.x, collect2 would create an import file
22528 # for dependence libraries. The import file would start with
22529 # the line `#! .'. This would cause the generated library to
22530 # depend on `.', always an invalid library. This was fixed in
22531 # development snapshots of GCC prior to 3.0.
22533 aix4 | aix4.[01] | aix4.[01].*)
22534 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22536 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22539 can_build_shared=no
22543 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22544 # soname into executable. Probably we can add versioning support to
22545 # collect2, so additional links can be useful in future.
22546 if test "$aix_use_runtimelinking" = yes; then
22547 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22548 # instead of lib<name>.a to let people know that these are not
22549 # typical AIX shared libraries.
22550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22552 # We preserve .a as extension for shared libraries through AIX4.2
22553 # and later when we are not doing run time linking.
22554 library_names_spec='${libname}${release}.a $libname.a'
22555 soname_spec='${libname}${release}${shared_ext}$major'
22557 shlibpath_var=LIBPATH
22562 library_names_spec='$libname.ixlibrary $libname.a'
22563 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22564 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'
22568 library_names_spec='${libname}${shared_ext}'
22569 dynamic_linker="$host_os ld.so"
22570 shlibpath_var=LIBRARY_PATH
22576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22577 soname_spec='${libname}${release}${shared_ext}$major'
22578 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22579 shlibpath_var=LD_LIBRARY_PATH
22580 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22581 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22582 # the default ld.so.conf also contains /usr/contrib/lib and
22583 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22584 # libtool to hard-code these into programs
22587 cygwin* | mingw* | pw32*)
22588 version_type=windows
22593 case $GCC,$host_os in
22594 yes,cygwin* | yes,mingw* | yes,pw32*)
22595 library_names_spec='$libname.dll.a'
22596 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22597 postinstall_cmds='base_file=`basename \${file}`~
22598 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22599 dldir=$destdir/`dirname \$dlpath`~
22600 test -d \$dldir || mkdir -p \$dldir~
22601 $install_prog $dir/$dlname \$dldir/$dlname~
22602 chmod a+x \$dldir/$dlname'
22603 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22604 dlpath=$dir/\$dldll~
22606 shlibpath_overrides_runpath=yes
22610 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22611 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22612 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22615 # MinGW DLLs use traditional 'lib' prefix
22616 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22617 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22618 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22619 # It is most probably a Windows format PATH printed by
22620 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22621 # path with ; separators, and with drive letters. We can handle the
22622 # drive letters (cygwin fileutils understands them), so leave them,
22623 # especially as we might pass files found there to a mingw objdump,
22624 # which wouldn't understand a cygwinified path. Ahh.
22625 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22627 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22631 # pw32 DLLs use 'pw' prefix rather than 'lib'
22632 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22638 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22641 dynamic_linker='Win32 ld.exe'
22642 # FIXME: first we should search . and the directory the executable is in
22646 darwin* | rhapsody*)
22647 dynamic_linker="$host_os dyld"
22648 version_type=darwin
22651 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22652 soname_spec='${libname}${release}${major}$shared_ext'
22653 shlibpath_overrides_runpath=yes
22654 shlibpath_var=DYLD_LIBRARY_PATH
22655 shrext_cmds='.dylib'
22656 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22657 if test "$GCC" = yes; then
22658 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"`
22660 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22662 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22670 soname_spec='${libname}${release}${shared_ext}$major'
22671 shlibpath_var=LD_LIBRARY_PATH
22682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22683 soname_spec='${libname}${release}${shared_ext}$major'
22684 shlibpath_var=LD_LIBRARY_PATH
22685 shlibpath_overrides_runpath=no
22686 hardcode_into_libs=yes
22687 dynamic_linker='GNU ld.so'
22690 freebsd* | dragonfly*)
22691 # DragonFly does not have aout. When/if they implement a new
22692 # versioning mechanism, adjust this.
22693 if test -x /usr/bin/objformat; then
22694 objformat=`/usr/bin/objformat`
22697 freebsd[123]*) objformat=aout ;;
22698 *) objformat=elf ;;
22701 version_type=freebsd-$objformat
22702 case $version_type in
22704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22709 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22713 shlibpath_var=LD_LIBRARY_PATH
22716 shlibpath_overrides_runpath=yes
22718 freebsd3.[01]* | freebsdelf3.[01]*)
22719 shlibpath_overrides_runpath=yes
22720 hardcode_into_libs=yes
22722 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22723 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22724 shlibpath_overrides_runpath=no
22725 hardcode_into_libs=yes
22727 freebsd*) # from 4.6 on
22728 shlibpath_overrides_runpath=yes
22729 hardcode_into_libs=yes
22738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22739 soname_spec='${libname}${release}${shared_ext}$major'
22740 shlibpath_var=LD_LIBRARY_PATH
22741 hardcode_into_libs=yes
22744 hpux9* | hpux10* | hpux11*)
22745 # Give a soname corresponding to the major version so that dld.sl refuses to
22746 # link against other versions.
22753 hardcode_into_libs=yes
22754 dynamic_linker="$host_os dld.so"
22755 shlibpath_var=LD_LIBRARY_PATH
22756 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22758 soname_spec='${libname}${release}${shared_ext}$major'
22759 if test "X$HPUX_IA64_MODE" = X32; then
22760 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22762 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22764 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22768 hardcode_into_libs=yes
22769 dynamic_linker="$host_os dld.sl"
22770 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22773 soname_spec='${libname}${release}${shared_ext}$major'
22774 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22775 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22779 dynamic_linker="$host_os dld.sl"
22780 shlibpath_var=SHLIB_PATH
22781 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22783 soname_spec='${libname}${release}${shared_ext}$major'
22786 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22787 postinstall_cmds='chmod 555 $lib'
22794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22795 soname_spec='${libname}${release}${shared_ext}$major'
22796 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22797 shlibpath_var=LD_LIBRARY_PATH
22798 shlibpath_overrides_runpath=no
22799 hardcode_into_libs=yes
22802 irix5* | irix6* | nonstopux*)
22804 nonstopux*) version_type=nonstopux ;;
22806 if test "$lt_cv_prog_gnu_ld" = yes; then
22814 soname_spec='${libname}${release}${shared_ext}$major'
22815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22817 irix5* | nonstopux*)
22818 libsuff= shlibsuff=
22821 case $LD in # libtool.m4 will add one of these switches to LD
22822 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22823 libsuff= shlibsuff= libmagic=32-bit;;
22824 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22825 libsuff=32 shlibsuff=N32 libmagic=N32;;
22826 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22827 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22828 *) libsuff= shlibsuff= libmagic=never-match;;
22832 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22833 shlibpath_overrides_runpath=no
22834 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22835 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22836 hardcode_into_libs=yes
22839 # No shared lib support for Linux oldld, aout, or coff.
22840 linux*oldld* | linux*aout* | linux*coff*)
22844 # This must be Linux ELF.
22849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22850 soname_spec='${libname}${release}${shared_ext}$major'
22851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22852 shlibpath_var=LD_LIBRARY_PATH
22853 shlibpath_overrides_runpath=no
22854 # This implies no fast_install, which is unacceptable.
22855 # Some rework will be needed to allow for fast_install
22856 # before this can be enabled.
22857 hardcode_into_libs=yes
22859 # Append ld.so.conf contents to the search path
22860 if test -f /etc/ld.so.conf; then
22861 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' ' '`
22862 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22865 # We used to test for /lib/ld.so.1 and disable shared libraries on
22866 # powerpc, because MkLinux only supported shared libraries with the
22867 # GNU dynamic linker. Since this was broken with cross compilers,
22868 # most powerpc-linux boxes support dynamic linking these days and
22869 # people can always --disable-shared, the test was removed, and we
22870 # assume the GNU/Linux dynamic linker is in use.
22871 dynamic_linker='GNU/Linux ld.so'
22878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22879 soname_spec='${libname}${release}${shared_ext}$major'
22880 shlibpath_var=LD_LIBRARY_PATH
22881 shlibpath_overrides_runpath=no
22882 hardcode_into_libs=yes
22883 dynamic_linker='GNU ld.so'
22890 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22893 dynamic_linker='NetBSD (a.out) ld.so'
22895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22896 soname_spec='${libname}${release}${shared_ext}$major'
22897 dynamic_linker='NetBSD ld.elf_so'
22899 shlibpath_var=LD_LIBRARY_PATH
22900 shlibpath_overrides_runpath=yes
22901 hardcode_into_libs=yes
22906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22907 shlibpath_var=LD_LIBRARY_PATH
22908 shlibpath_overrides_runpath=yes
22915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22916 soname_spec='${libname}${release}${shared_ext}$major'
22917 shlibpath_var=LD_LIBRARY_PATH
22918 shlibpath_overrides_runpath=yes
22923 sys_lib_dlsearch_path_spec="/usr/lib"
22925 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22927 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22928 *) need_version=no ;;
22930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22931 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22932 shlibpath_var=LD_LIBRARY_PATH
22933 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22935 openbsd2.[89] | openbsd2.[89].*)
22936 shlibpath_overrides_runpath=no
22939 shlibpath_overrides_runpath=yes
22943 shlibpath_overrides_runpath=yes
22948 libname_spec='$name'
22951 library_names_spec='$libname${shared_ext} $libname.a'
22952 dynamic_linker='OS/2 ld.exe'
22953 shlibpath_var=LIBPATH
22956 osf3* | osf4* | osf5*)
22960 soname_spec='${libname}${release}${shared_ext}$major'
22961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22962 shlibpath_var=LD_LIBRARY_PATH
22963 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22964 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22972 soname_spec='${libname}${release}${shared_ext}$major'
22973 shlibpath_var=LD_LIBRARY_PATH
22974 shlibpath_overrides_runpath=yes
22975 hardcode_into_libs=yes
22976 # ldd complains unless libraries are executable
22977 postinstall_cmds='chmod +x $lib'
22982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22983 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22984 shlibpath_var=LD_LIBRARY_PATH
22985 shlibpath_overrides_runpath=yes
22986 if test "$with_gnu_ld" = yes; then
22994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22995 soname_spec='${libname}${release}${shared_ext}$major'
22996 shlibpath_var=LD_LIBRARY_PATH
22997 case $host_vendor in
22999 shlibpath_overrides_runpath=no
23001 export_dynamic_flag_spec='${wl}-Blargedynsym'
23002 runpath_var=LD_RUN_PATH
23010 shlibpath_overrides_runpath=no
23011 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23017 if test -d /usr/nec ;then
23019 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23020 soname_spec='$libname${shared_ext}.$major'
23021 shlibpath_var=LD_LIBRARY_PATH
23025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23026 version_type=freebsd-elf
23029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23030 soname_spec='${libname}${release}${shared_ext}$major'
23031 shlibpath_var=LD_LIBRARY_PATH
23032 hardcode_into_libs=yes
23033 if test "$with_gnu_ld" = yes; then
23034 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23035 shlibpath_overrides_runpath=no
23037 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23038 shlibpath_overrides_runpath=yes
23041 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23045 sys_lib_dlsearch_path_spec='/usr/lib'
23050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23051 soname_spec='${libname}${release}${shared_ext}$major'
23052 shlibpath_var=LD_LIBRARY_PATH
23059 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23060 echo "${ECHO_T}$dynamic_linker" >&6; }
23061 test "$dynamic_linker" = no && can_build_shared=no
23063 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23064 if test "$GCC" = yes; then
23065 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23068 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23069 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23070 hardcode_action_F77=
23071 if test -n "$hardcode_libdir_flag_spec_F77" || \
23072 test -n "$runpath_var_F77" || \
23073 test "X$hardcode_automatic_F77" = "Xyes" ; then
23075 # We can hardcode non-existant directories.
23076 if test "$hardcode_direct_F77" != no &&
23077 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23078 # have to relink, otherwise we might link with an installed library
23079 # when we should be linking with a yet-to-be-installed one
23080 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23081 test "$hardcode_minus_L_F77" != no; then
23082 # Linking always hardcodes the temporary library directory.
23083 hardcode_action_F77=relink
23085 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23086 hardcode_action_F77=immediate
23089 # We cannot hardcode anything, or else we can only hardcode existing
23091 hardcode_action_F77=unsupported
23093 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23094 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23096 if test "$hardcode_action_F77" = relink; then
23097 # Fast installation is not supported
23098 enable_fast_install=no
23099 elif test "$shlibpath_overrides_runpath" = yes ||
23100 test "$enable_shared" = no; then
23101 # Fast installation is not necessary
23102 enable_fast_install=needless
23106 # The else clause should only fire when bootstrapping the
23107 # libtool distribution, otherwise you forgot to ship ltmain.sh
23108 # with your package, and you will get complaints that there are
23109 # no rules to generate ltmain.sh.
23110 if test -f "$ltmain"; then
23111 # See if we are running on zsh, and set the options which allow our commands through
23112 # without removal of \ escapes.
23113 if test -n "${ZSH_VERSION+set}" ; then
23114 setopt NO_GLOB_SUBST
23116 # Now quote all the things that may contain metacharacters while being
23117 # careful not to overquote the AC_SUBSTed values. We take copies of the
23118 # variables and quote the copies for generation of the libtool script.
23119 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23121 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23122 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23123 deplibs_check_method reload_flag reload_cmds need_locks \
23124 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23125 lt_cv_sys_global_symbol_to_c_name_address \
23126 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23127 old_postinstall_cmds old_postuninstall_cmds \
23131 lt_prog_compiler_wl_F77 \
23132 lt_prog_compiler_pic_F77 \
23133 lt_prog_compiler_static_F77 \
23134 lt_prog_compiler_no_builtin_flag_F77 \
23135 export_dynamic_flag_spec_F77 \
23136 thread_safe_flag_spec_F77 \
23137 whole_archive_flag_spec_F77 \
23138 enable_shared_with_static_runtimes_F77 \
23139 old_archive_cmds_F77 \
23140 old_archive_from_new_cmds_F77 \
23141 predep_objects_F77 \
23142 postdep_objects_F77 \
23145 compiler_lib_search_path_F77 \
23147 archive_expsym_cmds_F77 \
23148 postinstall_cmds_F77 \
23149 postuninstall_cmds_F77 \
23150 old_archive_from_expsyms_cmds_F77 \
23151 allow_undefined_flag_F77 \
23152 no_undefined_flag_F77 \
23153 export_symbols_cmds_F77 \
23154 hardcode_libdir_flag_spec_F77 \
23155 hardcode_libdir_flag_spec_ld_F77 \
23156 hardcode_libdir_separator_F77 \
23157 hardcode_automatic_F77 \
23159 module_expsym_cmds_F77 \
23160 lt_cv_prog_compiler_c_o_F77 \
23161 exclude_expsyms_F77 \
23162 include_expsyms_F77; do
23165 old_archive_cmds_F77 | \
23166 old_archive_from_new_cmds_F77 | \
23167 archive_cmds_F77 | \
23168 archive_expsym_cmds_F77 | \
23169 module_cmds_F77 | \
23170 module_expsym_cmds_F77 | \
23171 old_archive_from_expsyms_cmds_F77 | \
23172 export_symbols_cmds_F77 | \
23173 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23174 postinstall_cmds | postuninstall_cmds | \
23175 old_postinstall_cmds | old_postuninstall_cmds | \
23176 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23177 # Double-quote double-evaled strings.
23178 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23181 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23187 *'\$0 --fallback-echo"')
23188 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23194 cat <<__EOF__ >> "$cfgfile"
23195 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23197 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23199 # Shell to use when invoking shell scripts.
23202 # Whether or not to build shared libraries.
23203 build_libtool_libs=$enable_shared
23205 # Whether or not to build static libraries.
23206 build_old_libs=$enable_static
23208 # Whether or not to add -lc for building shared libraries.
23209 build_libtool_need_lc=$archive_cmds_need_lc_F77
23211 # Whether or not to disallow shared libs when runtime libs are static
23212 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23214 # Whether or not to optimize for fast installation.
23215 fast_install=$enable_fast_install
23218 host_alias=$host_alias
23222 # The build system.
23223 build_alias=$build_alias
23227 # An echo program that does not interpret backslashes.
23232 AR_FLAGS=$lt_AR_FLAGS
23237 # LTCC compiler flags.
23238 LTCFLAGS=$lt_LTCFLAGS
23240 # A language-specific compiler.
23241 CC=$lt_compiler_F77
23243 # Is the compiler the GNU C compiler?
23249 # The linker used to build libraries.
23252 # Whether we need hard or soft links.
23255 # A BSD-compatible nm program.
23258 # A symbol stripping program
23261 # Used to examine libraries when file_magic_cmd begins "file"
23262 MAGIC_CMD=$MAGIC_CMD
23264 # Used on cygwin: DLL creation program.
23267 # Used on cygwin: object dumper.
23270 # Used on cygwin: assembler.
23273 # The name of the directory that contains temporary libtool files.
23276 # How to create reloadable object files.
23277 reload_flag=$lt_reload_flag
23278 reload_cmds=$lt_reload_cmds
23280 # How to pass a linker flag through the compiler.
23281 wl=$lt_lt_prog_compiler_wl_F77
23283 # Object file suffix (normally "o").
23284 objext="$ac_objext"
23286 # Old archive suffix (normally "a").
23289 # Shared library suffix (normally ".so").
23290 shrext_cmds='$shrext_cmds'
23292 # Executable file suffix (normally "").
23295 # Additional compiler flags for building library objects.
23296 pic_flag=$lt_lt_prog_compiler_pic_F77
23299 # What is the maximum length of a command?
23300 max_cmd_len=$lt_cv_sys_max_cmd_len
23302 # Does compiler simultaneously support -c and -o options?
23303 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23305 # Must we lock files when doing compilation?
23306 need_locks=$lt_need_locks
23308 # Do we need the lib prefix for modules?
23309 need_lib_prefix=$need_lib_prefix
23311 # Do we need a version for libraries?
23312 need_version=$need_version
23314 # Whether dlopen is supported.
23315 dlopen_support=$enable_dlopen
23317 # Whether dlopen of programs is supported.
23318 dlopen_self=$enable_dlopen_self
23320 # Whether dlopen of statically linked programs is supported.
23321 dlopen_self_static=$enable_dlopen_self_static
23323 # Compiler flag to prevent dynamic linking.
23324 link_static_flag=$lt_lt_prog_compiler_static_F77
23326 # Compiler flag to turn off builtin functions.
23327 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23329 # Compiler flag to allow reflexive dlopens.
23330 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23332 # Compiler flag to generate shared objects directly from archives.
23333 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23335 # Compiler flag to generate thread-safe objects.
23336 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23338 # Library versioning type.
23339 version_type=$version_type
23341 # Format of library name prefix.
23342 libname_spec=$lt_libname_spec
23344 # List of archive names. First name is the real one, the rest are links.
23345 # The last name is the one that the linker finds with -lNAME.
23346 library_names_spec=$lt_library_names_spec
23348 # The coded name of the library, if different from the real name.
23349 soname_spec=$lt_soname_spec
23351 # Commands used to build and install an old-style archive.
23353 old_archive_cmds=$lt_old_archive_cmds_F77
23354 old_postinstall_cmds=$lt_old_postinstall_cmds
23355 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23357 # Create an old-style archive from a shared archive.
23358 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23360 # Create a temporary old-style archive to link instead of a shared archive.
23361 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23363 # Commands used to build and install a shared archive.
23364 archive_cmds=$lt_archive_cmds_F77
23365 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23366 postinstall_cmds=$lt_postinstall_cmds
23367 postuninstall_cmds=$lt_postuninstall_cmds
23369 # Commands used to build a loadable module (assumed same as above if empty)
23370 module_cmds=$lt_module_cmds_F77
23371 module_expsym_cmds=$lt_module_expsym_cmds_F77
23373 # Commands to strip libraries.
23374 old_striplib=$lt_old_striplib
23375 striplib=$lt_striplib
23377 # Dependencies to place before the objects being linked to create a
23379 predep_objects=$lt_predep_objects_F77
23381 # Dependencies to place after the objects being linked to create a
23383 postdep_objects=$lt_postdep_objects_F77
23385 # Dependencies to place before the objects being linked to create a
23387 predeps=$lt_predeps_F77
23389 # Dependencies to place after the objects being linked to create a
23391 postdeps=$lt_postdeps_F77
23393 # The library search path used internally by the compiler when linking
23394 # a shared library.
23395 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23397 # Method to check whether dependent libraries are shared objects.
23398 deplibs_check_method=$lt_deplibs_check_method
23400 # Command to use when deplibs_check_method == file_magic.
23401 file_magic_cmd=$lt_file_magic_cmd
23403 # Flag that allows shared libraries with undefined symbols to be built.
23404 allow_undefined_flag=$lt_allow_undefined_flag_F77
23406 # Flag that forces no undefined symbols.
23407 no_undefined_flag=$lt_no_undefined_flag_F77
23409 # Commands used to finish a libtool library installation in a directory.
23410 finish_cmds=$lt_finish_cmds
23412 # Same as above, but a single script fragment to be evaled but not shown.
23413 finish_eval=$lt_finish_eval
23415 # Take the output of nm and produce a listing of raw symbols and C names.
23416 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23418 # Transform the output of nm in a proper C declaration
23419 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23421 # Transform the output of nm in a C name address pair
23422 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23424 # This is the shared library runtime path variable.
23425 runpath_var=$runpath_var
23427 # This is the shared library path variable.
23428 shlibpath_var=$shlibpath_var
23430 # Is shlibpath searched before the hard-coded library search path?
23431 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23433 # How to hardcode a shared library path into an executable.
23434 hardcode_action=$hardcode_action_F77
23436 # Whether we should hardcode library paths into libraries.
23437 hardcode_into_libs=$hardcode_into_libs
23439 # Flag to hardcode \$libdir into a binary during linking.
23440 # This must work even if \$libdir does not exist.
23441 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23443 # If ld is used when linking, flag to hardcode \$libdir into
23444 # a binary during linking. This must work even if \$libdir does
23446 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23448 # Whether we need a single -rpath flag with a separated argument.
23449 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23451 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23452 # resulting binary.
23453 hardcode_direct=$hardcode_direct_F77
23455 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23456 # resulting binary.
23457 hardcode_minus_L=$hardcode_minus_L_F77
23459 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23460 # the resulting binary.
23461 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23463 # Set to yes if building a shared library automatically hardcodes DIR into the library
23464 # and all subsequent libraries and executables linked against it.
23465 hardcode_automatic=$hardcode_automatic_F77
23467 # Variables whose values should be saved in libtool wrapper scripts and
23468 # restored at relink time.
23469 variables_saved_for_relink="$variables_saved_for_relink"
23471 # Whether libtool must link a program against all its dependency libraries.
23472 link_all_deplibs=$link_all_deplibs_F77
23474 # Compile-time system search path for libraries
23475 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23477 # Run-time system search path for libraries
23478 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23480 # Fix the shell variable \$srcfile for the compiler.
23481 fix_srcfile_path="$fix_srcfile_path_F77"
23483 # Set to yes if exported symbols are required.
23484 always_export_symbols=$always_export_symbols_F77
23486 # The commands to list exported symbols.
23487 export_symbols_cmds=$lt_export_symbols_cmds_F77
23489 # The commands to extract the exported symbol list from a shared archive.
23490 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23492 # Symbols that should not be listed in the preloaded symbols.
23493 exclude_expsyms=$lt_exclude_expsyms_F77
23495 # Symbols that must always be exported.
23496 include_expsyms=$lt_include_expsyms_F77
23498 # ### END LIBTOOL TAG CONFIG: $tagname
23504 # If there is no Makefile yet, we rely on a make rule to execute
23505 # `config.status --recheck' to rerun these tests and create the
23506 # libtool script then.
23507 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23508 if test -f "$ltmain_in"; then
23509 test -f Makefile && make "$ltmain"
23515 ac_cpp='$CPP $CPPFLAGS'
23516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23528 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23530 ac_cpp='$CPP $CPPFLAGS'
23531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23536 # Source file extension for Java test sources.
23539 # Object file extension for compiled Java test sources.
23543 # Code to be used in simple compile tests
23544 lt_simple_compile_test_code="class foo {}\n"
23546 # Code to be used in simple link tests
23547 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23549 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23551 # If no C compiler was specified, use CC.
23554 # If no C compiler flags were specified, use CFLAGS.
23555 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23557 # Allow CC to be a program name with arguments.
23561 # save warnings/boilerplate of simple test code
23562 ac_outfile=conftest.$ac_objext
23563 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23564 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23565 _lt_compiler_boilerplate=`cat conftest.err`
23568 ac_outfile=conftest.$ac_objext
23569 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23570 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23571 _lt_linker_boilerplate=`cat conftest.err`
23575 # Allow CC to be a program name with arguments.
23580 for cc_temp in $compiler""; do
23582 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23583 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23588 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23591 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23592 archive_cmds_need_lc_GCJ=no
23594 old_archive_cmds_GCJ=$old_archive_cmds
23597 lt_prog_compiler_no_builtin_flag_GCJ=
23599 if test "$GCC" = yes; then
23600 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23603 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23604 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23605 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23606 echo $ECHO_N "(cached) $ECHO_C" >&6
23608 lt_cv_prog_compiler_rtti_exceptions=no
23609 ac_outfile=conftest.$ac_objext
23610 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23611 lt_compiler_flag="-fno-rtti -fno-exceptions"
23612 # Insert the option either (1) after the last *FLAGS variable, or
23613 # (2) before a word containing "conftest.", or (3) at the end.
23614 # Note that $ac_compile itself does not contain backslashes and begins
23615 # with a dollar sign (not a hyphen), so the echo should work correctly.
23616 # The option is referenced via a variable to avoid confusing sed.
23617 lt_compile=`echo "$ac_compile" | $SED \
23618 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23619 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23620 -e 's:$: $lt_compiler_flag:'`
23621 (eval echo "\"\$as_me:23621: $lt_compile\"" >&5)
23622 (eval "$lt_compile" 2>conftest.err)
23624 cat conftest.err >&5
23625 echo "$as_me:23625: \$? = $ac_status" >&5
23626 if (exit $ac_status) && test -s "$ac_outfile"; then
23627 # The compiler can only warn and ignore the option if not recognized
23628 # So say no if there are warnings other than the usual output.
23629 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23630 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23631 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23632 lt_cv_prog_compiler_rtti_exceptions=yes
23638 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23639 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23641 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23642 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23649 lt_prog_compiler_wl_GCJ=
23650 lt_prog_compiler_pic_GCJ=
23651 lt_prog_compiler_static_GCJ=
23653 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23654 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23656 if test "$GCC" = yes; then
23657 lt_prog_compiler_wl_GCJ='-Wl,'
23658 lt_prog_compiler_static_GCJ='-static'
23662 # All AIX code is PIC.
23663 if test "$host_cpu" = ia64; then
23664 # AIX 5 now supports IA64 processor
23665 lt_prog_compiler_static_GCJ='-Bstatic'
23670 # FIXME: we need at least 68020 code to build shared libraries, but
23671 # adding the `-m68020' flag to GCC prevents building anything better,
23673 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23676 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23677 # PIC is the default for these OSes.
23680 mingw* | pw32* | os2*)
23681 # This hack is so that the source file can tell whether it is being
23682 # built for inclusion in a dll (and should export symbols for example).
23683 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23686 darwin* | rhapsody*)
23687 # PIC is the default on this platform
23688 # Common symbols not allowed in MH_DYLIB files
23689 lt_prog_compiler_pic_GCJ='-fno-common'
23693 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23694 # Instead, we relocate shared libraries at runtime.
23698 # Just because we use GCC doesn't mean we suddenly get shared libraries
23699 # on systems that don't support them.
23700 lt_prog_compiler_can_build_shared_GCJ=no
23705 if test -d /usr/nec; then
23706 lt_prog_compiler_pic_GCJ=-Kconform_pic
23711 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23712 # not for PA HP-UX.
23718 lt_prog_compiler_pic_GCJ='-fPIC'
23724 lt_prog_compiler_pic_GCJ='-fPIC'
23728 # PORTME Check for flag to pass linker flags through the system compiler.
23731 lt_prog_compiler_wl_GCJ='-Wl,'
23732 if test "$host_cpu" = ia64; then
23733 # AIX 5 now supports IA64 processor
23734 lt_prog_compiler_static_GCJ='-Bstatic'
23736 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23740 # PIC is the default on this platform
23741 # Common symbols not allowed in MH_DYLIB files
23742 case $cc_basename in
23744 lt_prog_compiler_pic_GCJ='-qnocommon'
23745 lt_prog_compiler_wl_GCJ='-Wl,'
23750 mingw* | pw32* | os2*)
23751 # This hack is so that the source file can tell whether it is being
23752 # built for inclusion in a dll (and should export symbols for example).
23753 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23756 hpux9* | hpux10* | hpux11*)
23757 lt_prog_compiler_wl_GCJ='-Wl,'
23758 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23759 # not for PA HP-UX.
23765 lt_prog_compiler_pic_GCJ='+Z'
23768 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23769 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23772 irix5* | irix6* | nonstopux*)
23773 lt_prog_compiler_wl_GCJ='-Wl,'
23774 # PIC (with -KPIC) is the default.
23775 lt_prog_compiler_static_GCJ='-non_shared'
23779 lt_prog_compiler_pic_GCJ='-KPIC'
23780 lt_prog_compiler_static_GCJ='-Bstatic'
23784 case $cc_basename in
23786 lt_prog_compiler_wl_GCJ='-Wl,'
23787 lt_prog_compiler_pic_GCJ='-KPIC'
23788 lt_prog_compiler_static_GCJ='-static'
23790 pgcc* | pgf77* | pgf90* | pgf95*)
23791 # Portland Group compilers (*not* the Pentium gcc compiler,
23792 # which looks to be a dead project)
23793 lt_prog_compiler_wl_GCJ='-Wl,'
23794 lt_prog_compiler_pic_GCJ='-fpic'
23795 lt_prog_compiler_static_GCJ='-Bstatic'
23798 lt_prog_compiler_wl_GCJ='-Wl,'
23799 # All Alpha code is PIC.
23800 lt_prog_compiler_static_GCJ='-non_shared'
23805 osf3* | osf4* | osf5*)
23806 lt_prog_compiler_wl_GCJ='-Wl,'
23807 # All OSF/1 code is PIC.
23808 lt_prog_compiler_static_GCJ='-non_shared'
23812 lt_prog_compiler_pic_GCJ='-KPIC'
23813 lt_prog_compiler_static_GCJ='-Bstatic'
23814 case $cc_basename in
23815 f77* | f90* | f95*)
23816 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23818 lt_prog_compiler_wl_GCJ='-Wl,';;
23823 lt_prog_compiler_wl_GCJ='-Qoption ld '
23824 lt_prog_compiler_pic_GCJ='-PIC'
23825 lt_prog_compiler_static_GCJ='-Bstatic'
23828 sysv4 | sysv4.2uw2* | sysv4.3*)
23829 lt_prog_compiler_wl_GCJ='-Wl,'
23830 lt_prog_compiler_pic_GCJ='-KPIC'
23831 lt_prog_compiler_static_GCJ='-Bstatic'
23835 if test -d /usr/nec ;then
23836 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23837 lt_prog_compiler_static_GCJ='-Bstatic'
23841 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23842 lt_prog_compiler_wl_GCJ='-Wl,'
23843 lt_prog_compiler_pic_GCJ='-KPIC'
23844 lt_prog_compiler_static_GCJ='-Bstatic'
23848 lt_prog_compiler_wl_GCJ='-Wl,'
23849 lt_prog_compiler_can_build_shared_GCJ=no
23853 lt_prog_compiler_pic_GCJ='-pic'
23854 lt_prog_compiler_static_GCJ='-Bstatic'
23858 lt_prog_compiler_can_build_shared_GCJ=no
23863 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23864 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23867 # Check to make sure the PIC flag actually works.
23869 if test -n "$lt_prog_compiler_pic_GCJ"; then
23871 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23872 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23873 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23874 echo $ECHO_N "(cached) $ECHO_C" >&6
23876 lt_prog_compiler_pic_works_GCJ=no
23877 ac_outfile=conftest.$ac_objext
23878 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23879 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23880 # Insert the option either (1) after the last *FLAGS variable, or
23881 # (2) before a word containing "conftest.", or (3) at the end.
23882 # Note that $ac_compile itself does not contain backslashes and begins
23883 # with a dollar sign (not a hyphen), so the echo should work correctly.
23884 # The option is referenced via a variable to avoid confusing sed.
23885 lt_compile=`echo "$ac_compile" | $SED \
23886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23888 -e 's:$: $lt_compiler_flag:'`
23889 (eval echo "\"\$as_me:23889: $lt_compile\"" >&5)
23890 (eval "$lt_compile" 2>conftest.err)
23892 cat conftest.err >&5
23893 echo "$as_me:23893: \$? = $ac_status" >&5
23894 if (exit $ac_status) && test -s "$ac_outfile"; then
23895 # The compiler can only warn and ignore the option if not recognized
23896 # So say no if there are warnings other than the usual output.
23897 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23899 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23900 lt_prog_compiler_pic_works_GCJ=yes
23906 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23907 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23909 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23910 case $lt_prog_compiler_pic_GCJ in
23912 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23915 lt_prog_compiler_pic_GCJ=
23916 lt_prog_compiler_can_build_shared_GCJ=no
23921 # For platforms which do not support PIC, -DPIC is meaningless:
23923 lt_prog_compiler_pic_GCJ=
23926 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23931 # Check to make sure the static flag actually works.
23933 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23934 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23935 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23936 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23937 echo $ECHO_N "(cached) $ECHO_C" >&6
23939 lt_prog_compiler_static_works_GCJ=no
23940 save_LDFLAGS="$LDFLAGS"
23941 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23942 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23943 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23944 # The linker can only warn and ignore the option if not recognized
23945 # So say no if there are warnings
23946 if test -s conftest.err; then
23947 # Append any errors to the config.log.
23948 cat conftest.err 1>&5
23949 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23951 if diff conftest.exp conftest.er2 >/dev/null; then
23952 lt_prog_compiler_static_works_GCJ=yes
23955 lt_prog_compiler_static_works_GCJ=yes
23959 LDFLAGS="$save_LDFLAGS"
23962 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23963 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23965 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23968 lt_prog_compiler_static_GCJ=
23972 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23973 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23974 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23975 echo $ECHO_N "(cached) $ECHO_C" >&6
23977 lt_cv_prog_compiler_c_o_GCJ=no
23978 $rm -r conftest 2>/dev/null
23982 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23984 lt_compiler_flag="-o out/conftest2.$ac_objext"
23985 # Insert the option either (1) after the last *FLAGS variable, or
23986 # (2) before a word containing "conftest.", or (3) at the end.
23987 # Note that $ac_compile itself does not contain backslashes and begins
23988 # with a dollar sign (not a hyphen), so the echo should work correctly.
23989 lt_compile=`echo "$ac_compile" | $SED \
23990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23992 -e 's:$: $lt_compiler_flag:'`
23993 (eval echo "\"\$as_me:23993: $lt_compile\"" >&5)
23994 (eval "$lt_compile" 2>out/conftest.err)
23996 cat out/conftest.err >&5
23997 echo "$as_me:23997: \$? = $ac_status" >&5
23998 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24000 # The compiler can only warn and ignore the option if not recognized
24001 # So say no if there are warnings
24002 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24003 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24004 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24005 lt_cv_prog_compiler_c_o_GCJ=yes
24010 # SGI C++ compiler will create directory out/ii_files/ for
24011 # template instantiation
24012 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24013 $rm out/* && rmdir out
24019 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24020 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24023 hard_links="nottested"
24024 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24025 # do not overwrite the value of need_locks provided by the user
24026 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24027 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24030 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24032 ln conftest.a conftest.b 2>&5 || hard_links=no
24033 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24034 { echo "$as_me:$LINENO: result: $hard_links" >&5
24035 echo "${ECHO_T}$hard_links" >&6; }
24036 if test "$hard_links" = no; then
24037 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24038 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24045 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24046 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24049 allow_undefined_flag_GCJ=
24050 enable_shared_with_static_runtimes_GCJ=no
24052 archive_expsym_cmds_GCJ=
24053 old_archive_From_new_cmds_GCJ=
24054 old_archive_from_expsyms_cmds_GCJ=
24055 export_dynamic_flag_spec_GCJ=
24056 whole_archive_flag_spec_GCJ=
24057 thread_safe_flag_spec_GCJ=
24058 hardcode_libdir_flag_spec_GCJ=
24059 hardcode_libdir_flag_spec_ld_GCJ=
24060 hardcode_libdir_separator_GCJ=
24061 hardcode_direct_GCJ=no
24062 hardcode_minus_L_GCJ=no
24063 hardcode_shlibpath_var_GCJ=unsupported
24064 link_all_deplibs_GCJ=unknown
24065 hardcode_automatic_GCJ=no
24067 module_expsym_cmds_GCJ=
24068 always_export_symbols_GCJ=no
24069 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24070 # include_expsyms should be a list of space-separated symbols to be *always*
24071 # included in the symbol list
24072 include_expsyms_GCJ=
24073 # exclude_expsyms can be an extended regexp of symbols to exclude
24074 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24075 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24076 # as well as any symbol that contains `d'.
24077 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24078 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24079 # platforms (ab)use it in PIC code, but their linkers get confused if
24080 # the symbol is explicitly referenced. Since portable code cannot
24081 # rely on this symbol name, it's probably fine to never include it in
24082 # preloaded symbol tables.
24083 extract_expsyms_cmds=
24084 # Just being paranoid about ensuring that cc_basename is set.
24085 for cc_temp in $compiler""; do
24087 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24088 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24096 cygwin* | mingw* | pw32*)
24097 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24098 # When not using gcc, we currently assume that we are using
24099 # Microsoft Visual C++.
24100 if test "$GCC" != yes; then
24105 # we just hope/assume this is gcc and not c89 (= MSVC++)
24114 if test "$with_gnu_ld" = yes; then
24115 # If archive_cmds runs LD, not CC, wlarc should be empty
24118 # Set some defaults for GNU ld with shared library support. These
24119 # are reset later if shared libraries are not supported. Putting them
24120 # here allows them to be overridden if necessary.
24121 runpath_var=LD_RUN_PATH
24122 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24123 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24124 # ancient GNU ld didn't support --whole-archive et. al.
24125 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24126 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24128 whole_archive_flag_spec_GCJ=
24130 supports_anon_versioning=no
24131 case `$LD -v 2>/dev/null` in
24132 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24133 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24134 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24135 *\ 2.11.*) ;; # other 2.11 versions
24136 *) supports_anon_versioning=yes ;;
24139 # See if GNU ld supports shared libraries.
24141 aix3* | aix4* | aix5*)
24142 # On AIX/PPC, the GNU linker is very broken
24143 if test "$host_cpu" != ia64; then
24147 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24148 *** to be unable to reliably create shared libraries on AIX.
24149 *** Therefore, libtool is disabling shared libraries support. If you
24150 *** really care for shared libraries, you may want to modify your PATH
24151 *** so that a non-GNU linker is found, and then restart.
24158 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)'
24159 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24160 hardcode_minus_L_GCJ=yes
24162 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24163 # that the semantics of dynamic libraries on AmigaOS, at least up
24164 # to version 4, is to share data among multiple programs linked
24165 # with the same dynamic library. Since this doesn't match the
24166 # behavior of shared libraries on other platforms, we can't use
24172 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24173 allow_undefined_flag_GCJ=unsupported
24174 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24175 # support --undefined. This deserves some investigation. FIXME
24176 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24182 cygwin* | mingw* | pw32*)
24183 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24184 # as there is no search path for DLLs.
24185 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24186 allow_undefined_flag_GCJ=unsupported
24187 always_export_symbols_GCJ=no
24188 enable_shared_with_static_runtimes_GCJ=yes
24189 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24191 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24192 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24193 # If the export-symbols file already is a .def file (1st line
24194 # is EXPORTS), use it as is; otherwise, prepend...
24195 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24196 cp $export_symbols $output_objdir/$soname.def;
24198 echo EXPORTS > $output_objdir/$soname.def;
24199 cat $export_symbols >> $output_objdir/$soname.def;
24201 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24208 hardcode_direct_GCJ=no
24209 hardcode_shlibpath_var_GCJ=no
24210 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24211 export_dynamic_flag_spec_GCJ='${wl}-E'
24212 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24213 # Instead, shared libraries are loaded at an image base (0x10000000 by
24214 # default) and relocated if they conflict, which is a slow very memory
24215 # consuming and fragmenting process. To avoid this, we pick a random,
24216 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24217 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24218 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'
24219 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'
24223 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24225 case $cc_basename,$host_cpu in
24226 pgcc*) # Portland Group C compiler
24227 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'
24228 tmp_addflag=' $pic_flag'
24230 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24231 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'
24232 tmp_addflag=' $pic_flag -Mnomain' ;;
24233 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24234 tmp_addflag=' -i_dynamic' ;;
24235 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24236 tmp_addflag=' -i_dynamic -nofor_main' ;;
24237 ifc* | ifort*) # Intel Fortran compiler
24238 tmp_addflag=' -nofor_main' ;;
24240 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24242 if test $supports_anon_versioning = yes; then
24243 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24244 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24245 $echo "local: *; };" >> $output_objdir/$libname.ver~
24246 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24254 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24255 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24258 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24259 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24264 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24268 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24269 *** create shared libraries on Solaris systems. Therefore, libtool
24270 *** is disabling shared libraries support. We urge you to upgrade GNU
24271 *** binutils to release 2.9.1 or newer. Another option is to modify
24272 *** your PATH or compiler configuration so that the native linker is
24273 *** used, and then restart.
24276 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24277 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24278 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24284 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24285 case `$LD -v 2>&1` in
24286 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24290 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24291 *** reliably create shared libraries on SCO systems. Therefore, libtool
24292 *** is disabling shared libraries support. We urge you to upgrade GNU
24293 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24294 *** your PATH or compiler configuration so that the native linker is
24295 *** used, and then restart.
24300 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24301 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24302 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24303 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24312 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24314 hardcode_direct_GCJ=yes
24315 hardcode_shlibpath_var_GCJ=no
24319 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24320 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24321 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24328 if test "$ld_shlibs_GCJ" = no; then
24330 hardcode_libdir_flag_spec_GCJ=
24331 export_dynamic_flag_spec_GCJ=
24332 whole_archive_flag_spec_GCJ=
24335 # PORTME fill in a description of your system's linker (not GNU ld)
24338 allow_undefined_flag_GCJ=unsupported
24339 always_export_symbols_GCJ=yes
24340 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'
24341 # Note: this linker hardcodes the directories in LIBPATH if there
24342 # are no directories specified by -L.
24343 hardcode_minus_L_GCJ=yes
24344 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24345 # Neither direct hardcoding nor static linking is supported with a
24347 hardcode_direct_GCJ=unsupported
24352 if test "$host_cpu" = ia64; then
24353 # On IA64, the linker does run time linking by default, so we don't
24354 # have to do anything special.
24355 aix_use_runtimelinking=no
24356 exp_sym_flag='-Bexport'
24359 # If we're using GNU nm, then we don't want the "-C" option.
24360 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24361 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24362 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'
24364 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'
24366 aix_use_runtimelinking=no
24368 # Test if we are trying to use run time linking or normal
24369 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24370 # need to do runtime linking.
24371 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24372 for ld_flag in $LDFLAGS; do
24373 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24374 aix_use_runtimelinking=yes
24381 exp_sym_flag='-bexport'
24382 no_entry_flag='-bnoentry'
24385 # When large executables or shared objects are built, AIX ld can
24386 # have problems creating the table of contents. If linking a library
24387 # or program results in "error TOC overflow" add -mminimal-toc to
24388 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24389 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24391 archive_cmds_GCJ=''
24392 hardcode_direct_GCJ=yes
24393 hardcode_libdir_separator_GCJ=':'
24394 link_all_deplibs_GCJ=yes
24396 if test "$GCC" = yes; then
24397 case $host_os in aix4.[012]|aix4.[012].*)
24398 # We only want to do this on AIX 4.2 and lower, the check
24399 # below for broken collect2 doesn't work under 4.3+
24400 collect2name=`${CC} -print-prog-name=collect2`
24401 if test -f "$collect2name" && \
24402 strings "$collect2name" | grep resolve_lib_name >/dev/null
24404 # We have reworked collect2
24405 hardcode_direct_GCJ=yes
24407 # We have old collect2
24408 hardcode_direct_GCJ=unsupported
24409 # It fails to find uninstalled libraries when the uninstalled
24410 # path is not listed in the libpath. Setting hardcode_minus_L
24411 # to unsupported forces relinking
24412 hardcode_minus_L_GCJ=yes
24413 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24414 hardcode_libdir_separator_GCJ=
24418 shared_flag='-shared'
24419 if test "$aix_use_runtimelinking" = yes; then
24420 shared_flag="$shared_flag "'${wl}-G'
24424 if test "$host_cpu" = ia64; then
24425 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24426 # chokes on -Wl,-G. The following line is correct:
24429 if test "$aix_use_runtimelinking" = yes; then
24430 shared_flag='${wl}-G'
24432 shared_flag='${wl}-bM:SRE'
24437 # It seems that -bexpall does not export symbols beginning with
24438 # underscore (_), so it is better to generate a list of symbols to export.
24439 always_export_symbols_GCJ=yes
24440 if test "$aix_use_runtimelinking" = yes; then
24441 # Warning - without using the other runtime loading flags (-brtl),
24442 # -berok will link without error, but may produce a broken library.
24443 allow_undefined_flag_GCJ='-berok'
24444 # Determine the default libpath from the value encoded in an empty executable.
24445 cat >conftest.$ac_ext <<_ACEOF
24448 cat confdefs.h >>conftest.$ac_ext
24449 cat >>conftest.$ac_ext <<_ACEOF
24450 /* end confdefs.h. */
24460 rm -f conftest.$ac_objext conftest$ac_exeext
24461 if { (ac_try="$ac_link"
24462 case "(($ac_try" in
24463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24464 *) ac_try_echo=$ac_try;;
24466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24467 (eval "$ac_link") 2>conftest.er1
24469 grep -v '^ *+' conftest.er1 >conftest.err
24471 cat conftest.err >&5
24472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473 (exit $ac_status); } &&
24474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24475 { (case "(($ac_try" in
24476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24477 *) ac_try_echo=$ac_try;;
24479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24480 (eval "$ac_try") 2>&5
24482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483 (exit $ac_status); }; } &&
24484 { ac_try='test -s conftest$ac_exeext'
24485 { (case "(($ac_try" in
24486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24487 *) ac_try_echo=$ac_try;;
24489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24490 (eval "$ac_try") 2>&5
24492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493 (exit $ac_status); }; }; then
24495 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24497 # Check for a 64-bit object if we didn't find anything.
24498 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; }
24501 echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24507 rm -f core conftest.err conftest.$ac_objext \
24508 conftest$ac_exeext conftest.$ac_ext
24509 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24511 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24512 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"
24514 if test "$host_cpu" = ia64; then
24515 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24516 allow_undefined_flag_GCJ="-z nodefs"
24517 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"
24519 # Determine the default libpath from the value encoded in an empty executable.
24520 cat >conftest.$ac_ext <<_ACEOF
24523 cat confdefs.h >>conftest.$ac_ext
24524 cat >>conftest.$ac_ext <<_ACEOF
24525 /* end confdefs.h. */
24535 rm -f conftest.$ac_objext conftest$ac_exeext
24536 if { (ac_try="$ac_link"
24537 case "(($ac_try" in
24538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24539 *) ac_try_echo=$ac_try;;
24541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24542 (eval "$ac_link") 2>conftest.er1
24544 grep -v '^ *+' conftest.er1 >conftest.err
24546 cat conftest.err >&5
24547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548 (exit $ac_status); } &&
24549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24550 { (case "(($ac_try" in
24551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24552 *) ac_try_echo=$ac_try;;
24554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24555 (eval "$ac_try") 2>&5
24557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); }; } &&
24559 { ac_try='test -s conftest$ac_exeext'
24560 { (case "(($ac_try" in
24561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24562 *) ac_try_echo=$ac_try;;
24564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24565 (eval "$ac_try") 2>&5
24567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568 (exit $ac_status); }; }; then
24570 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24572 # Check for a 64-bit object if we didn't find anything.
24573 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; }
24576 echo "$as_me: failed program was:" >&5
24577 sed 's/^/| /' conftest.$ac_ext >&5
24582 rm -f core conftest.err conftest.$ac_objext \
24583 conftest$ac_exeext conftest.$ac_ext
24584 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24586 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24587 # Warning - without using the other run time loading flags,
24588 # -berok will link without error, but may produce a broken library.
24589 no_undefined_flag_GCJ=' ${wl}-bernotok'
24590 allow_undefined_flag_GCJ=' ${wl}-berok'
24591 # Exported symbols can be pulled into shared objects from archives
24592 whole_archive_flag_spec_GCJ='$convenience'
24593 archive_cmds_need_lc_GCJ=yes
24594 # This is similar to how AIX traditionally builds its shared libraries.
24595 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'
24601 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)'
24602 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24603 hardcode_minus_L_GCJ=yes
24604 # see comment about different semantics on the GNU ld section
24609 export_dynamic_flag_spec_GCJ=-rdynamic
24612 cygwin* | mingw* | pw32*)
24613 # When not using gcc, we currently assume that we are using
24614 # Microsoft Visual C++.
24615 # hardcode_libdir_flag_spec is actually meaningless, as there is
24616 # no search path for DLLs.
24617 hardcode_libdir_flag_spec_GCJ=' '
24618 allow_undefined_flag_GCJ=unsupported
24619 # Tell ltmain to make .lib files, not .a files.
24621 # Tell ltmain to make .dll files, not .so files.
24623 # FIXME: Setting linknames here is a bad hack.
24624 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24625 # The linker will automatically build a .lib file if we build a DLL.
24626 old_archive_From_new_cmds_GCJ='true'
24627 # FIXME: Should let the user specify the lib program.
24628 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24629 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24630 enable_shared_with_static_runtimes_GCJ=yes
24633 darwin* | rhapsody*)
24635 rhapsody* | darwin1.[012])
24636 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24639 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24640 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24642 case ${MACOSX_DEPLOYMENT_TARGET} in
24644 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24647 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24653 archive_cmds_need_lc_GCJ=no
24654 hardcode_direct_GCJ=no
24655 hardcode_automatic_GCJ=yes
24656 hardcode_shlibpath_var_GCJ=unsupported
24657 whole_archive_flag_spec_GCJ=''
24658 link_all_deplibs_GCJ=yes
24659 if test "$GCC" = yes ; then
24660 output_verbose_link_cmd='echo'
24661 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24662 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24663 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24664 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}'
24665 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}'
24667 case $cc_basename in
24669 output_verbose_link_cmd='echo'
24670 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24671 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24672 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24673 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}'
24674 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}'
24684 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24685 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24686 hardcode_shlibpath_var_GCJ=no
24693 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24694 # support. Future versions do this automatically, but an explicit c++rt0.o
24695 # does not break anything, and helps significantly (at the cost of a little
24698 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24699 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24700 hardcode_direct_GCJ=yes
24701 hardcode_shlibpath_var_GCJ=no
24704 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24706 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24707 hardcode_direct_GCJ=yes
24708 hardcode_minus_L_GCJ=yes
24709 hardcode_shlibpath_var_GCJ=no
24712 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24713 freebsd* | kfreebsd*-gnu | dragonfly*)
24714 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24715 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24716 hardcode_direct_GCJ=yes
24717 hardcode_shlibpath_var_GCJ=no
24721 if test "$GCC" = yes; then
24722 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'
24724 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'
24726 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24727 hardcode_libdir_separator_GCJ=:
24728 hardcode_direct_GCJ=yes
24730 # hardcode_minus_L: Not really in the search PATH,
24731 # but as the default location of the library.
24732 hardcode_minus_L_GCJ=yes
24733 export_dynamic_flag_spec_GCJ='${wl}-E'
24737 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24738 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24740 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24742 if test "$with_gnu_ld" = no; then
24743 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24744 hardcode_libdir_separator_GCJ=:
24746 hardcode_direct_GCJ=yes
24747 export_dynamic_flag_spec_GCJ='${wl}-E'
24749 # hardcode_minus_L: Not really in the search PATH,
24750 # but as the default location of the library.
24751 hardcode_minus_L_GCJ=yes
24756 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24759 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24762 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24765 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24771 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24774 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24777 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24781 if test "$with_gnu_ld" = no; then
24782 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24783 hardcode_libdir_separator_GCJ=:
24787 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24788 hardcode_direct_GCJ=no
24789 hardcode_shlibpath_var_GCJ=no
24792 hardcode_direct_GCJ=yes
24793 export_dynamic_flag_spec_GCJ='${wl}-E'
24795 # hardcode_minus_L: Not really in the search PATH,
24796 # but as the default location of the library.
24797 hardcode_minus_L_GCJ=yes
24803 irix5* | irix6* | nonstopux*)
24804 if test "$GCC" = yes; then
24805 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'
24807 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'
24808 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24810 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24811 hardcode_libdir_separator_GCJ=:
24812 link_all_deplibs_GCJ=yes
24816 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24817 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24819 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24821 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24822 hardcode_direct_GCJ=yes
24823 hardcode_shlibpath_var_GCJ=no
24827 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24828 hardcode_direct_GCJ=yes
24829 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24830 hardcode_libdir_separator_GCJ=:
24831 hardcode_shlibpath_var_GCJ=no
24835 hardcode_direct_GCJ=yes
24836 hardcode_shlibpath_var_GCJ=no
24837 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24838 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24839 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24840 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24841 export_dynamic_flag_spec_GCJ='${wl}-E'
24844 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24845 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24846 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24849 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24850 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24857 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24858 hardcode_minus_L_GCJ=yes
24859 allow_undefined_flag_GCJ=unsupported
24860 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'
24861 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24865 if test "$GCC" = yes; then
24866 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24867 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'
24869 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24870 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'
24872 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24873 hardcode_libdir_separator_GCJ=:
24876 osf4* | osf5*) # as osf3* with the addition of -msym flag
24877 if test "$GCC" = yes; then
24878 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24879 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'
24880 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24882 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24883 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'
24884 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~
24885 $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'
24887 # Both c and cxx compiler support -rpath directly
24888 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24890 hardcode_libdir_separator_GCJ=:
24894 no_undefined_flag_GCJ=' -z text'
24895 if test "$GCC" = yes; then
24897 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24898 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24899 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24902 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24903 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24904 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24906 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24907 hardcode_shlibpath_var_GCJ=no
24909 solaris2.[0-5] | solaris2.[0-5].*) ;;
24911 # The compiler driver will combine linker options so we
24912 # cannot just pass the convience library names through
24913 # without $wl, iff we do not link with $LD.
24914 # Luckily, gcc supports the same syntax we need for Sun Studio.
24915 # Supported since Solaris 2.6 (maybe 2.5.1?)
24918 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24920 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' ;;
24923 link_all_deplibs_GCJ=yes
24927 if test "x$host_vendor" = xsequent; then
24928 # Use $CC to link under sequent, because it throws in some extra .o
24929 # files that make .init and .fini sections work.
24930 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24932 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24934 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24935 hardcode_direct_GCJ=yes
24936 hardcode_minus_L_GCJ=yes
24937 hardcode_shlibpath_var_GCJ=no
24941 case $host_vendor in
24943 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24944 hardcode_direct_GCJ=yes # is this really true???
24947 ## LD is ld it makes a PLAMLIB
24948 ## CC just makes a GrossModule.
24949 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24950 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24951 hardcode_direct_GCJ=no
24954 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24955 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24958 runpath_var='LD_RUN_PATH'
24959 hardcode_shlibpath_var_GCJ=no
24963 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24964 hardcode_shlibpath_var_GCJ=no
24965 export_dynamic_flag_spec_GCJ='-Bexport'
24969 if test -d /usr/nec; then
24970 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24971 hardcode_shlibpath_var_GCJ=no
24972 runpath_var=LD_RUN_PATH
24973 hardcode_runpath_var=yes
24978 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24979 no_undefined_flag_GCJ='${wl}-z,text'
24980 archive_cmds_need_lc_GCJ=no
24981 hardcode_shlibpath_var_GCJ=no
24982 runpath_var='LD_RUN_PATH'
24984 if test "$GCC" = yes; then
24985 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24986 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24988 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24989 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24993 sysv5* | sco3.2v5* | sco5v6*)
24994 # Note: We can NOT use -z defs as we might desire, because we do not
24995 # link with -lc, and that would cause any symbols used from libc to
24996 # always be unresolved, which means just about no library would
24997 # ever link correctly. If we're not using GNU ld we use -z text
24998 # though, which does catch some bad symbols but isn't as heavy-handed
25000 no_undefined_flag_GCJ='${wl}-z,text'
25001 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25002 archive_cmds_need_lc_GCJ=no
25003 hardcode_shlibpath_var_GCJ=no
25004 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25005 hardcode_libdir_separator_GCJ=':'
25006 link_all_deplibs_GCJ=yes
25007 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25008 runpath_var='LD_RUN_PATH'
25010 if test "$GCC" = yes; then
25011 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25012 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25014 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25015 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25020 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25021 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25022 hardcode_shlibpath_var_GCJ=no
25031 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25032 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25033 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25036 # Do we need to explicitly link libc?
25038 case "x$archive_cmds_need_lc_GCJ" in
25040 # Assume -lc should be added
25041 archive_cmds_need_lc_GCJ=yes
25043 if test "$enable_shared" = yes && test "$GCC" = yes; then
25044 case $archive_cmds_GCJ in
25046 # FIXME: we may have to deal with multi-command sequences.
25049 # Test whether the compiler implicitly links with -lc since on some
25050 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25051 # to ld, don't add -lc before -lgcc.
25052 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25053 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25055 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25058 (eval $ac_compile) 2>&5
25060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061 (exit $ac_status); } 2>conftest.err; then
25064 libobjs=conftest.$ac_objext
25066 wl=$lt_prog_compiler_wl_GCJ
25067 pic_flag=$lt_prog_compiler_pic_GCJ
25073 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25074 allow_undefined_flag_GCJ=
25075 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25076 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079 (exit $ac_status); }
25081 archive_cmds_need_lc_GCJ=no
25083 archive_cmds_need_lc_GCJ=yes
25085 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25087 cat conftest.err 1>&5
25090 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25091 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25098 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25099 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25100 library_names_spec=
25101 libname_spec='lib$name'
25105 postuninstall_cmds=
25109 shlibpath_overrides_runpath=unknown
25111 dynamic_linker="$host_os ld.so"
25112 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25113 if test "$GCC" = yes; then
25114 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25115 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25116 # if the path contains ";" then we assume it to be the separator
25117 # otherwise default to the standard path separator (i.e. ":") - it is
25118 # assumed that no part of a normal pathname contains ";" but that should
25119 # okay in the real world where ";" in dirpaths is itself problematic.
25120 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25122 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25125 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25127 need_lib_prefix=unknown
25128 hardcode_into_libs=no
25130 # when you set need_version to no, make sure it does not cause -set_version
25131 # flags to be left without arguments
25132 need_version=unknown
25137 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25138 shlibpath_var=LIBPATH
25140 # AIX 3 has no versioning support, so we append a major version to the name.
25141 soname_spec='${libname}${release}${shared_ext}$major'
25148 hardcode_into_libs=yes
25149 if test "$host_cpu" = ia64; then
25150 # AIX 5 supports IA64
25151 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25152 shlibpath_var=LD_LIBRARY_PATH
25154 # With GCC up to 2.95.x, collect2 would create an import file
25155 # for dependence libraries. The import file would start with
25156 # the line `#! .'. This would cause the generated library to
25157 # depend on `.', always an invalid library. This was fixed in
25158 # development snapshots of GCC prior to 3.0.
25160 aix4 | aix4.[01] | aix4.[01].*)
25161 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25163 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25166 can_build_shared=no
25170 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25171 # soname into executable. Probably we can add versioning support to
25172 # collect2, so additional links can be useful in future.
25173 if test "$aix_use_runtimelinking" = yes; then
25174 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25175 # instead of lib<name>.a to let people know that these are not
25176 # typical AIX shared libraries.
25177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25179 # We preserve .a as extension for shared libraries through AIX4.2
25180 # and later when we are not doing run time linking.
25181 library_names_spec='${libname}${release}.a $libname.a'
25182 soname_spec='${libname}${release}${shared_ext}$major'
25184 shlibpath_var=LIBPATH
25189 library_names_spec='$libname.ixlibrary $libname.a'
25190 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25191 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'
25195 library_names_spec='${libname}${shared_ext}'
25196 dynamic_linker="$host_os ld.so"
25197 shlibpath_var=LIBRARY_PATH
25203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25204 soname_spec='${libname}${release}${shared_ext}$major'
25205 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25206 shlibpath_var=LD_LIBRARY_PATH
25207 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25208 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25209 # the default ld.so.conf also contains /usr/contrib/lib and
25210 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25211 # libtool to hard-code these into programs
25214 cygwin* | mingw* | pw32*)
25215 version_type=windows
25220 case $GCC,$host_os in
25221 yes,cygwin* | yes,mingw* | yes,pw32*)
25222 library_names_spec='$libname.dll.a'
25223 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25224 postinstall_cmds='base_file=`basename \${file}`~
25225 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25226 dldir=$destdir/`dirname \$dlpath`~
25227 test -d \$dldir || mkdir -p \$dldir~
25228 $install_prog $dir/$dlname \$dldir/$dlname~
25229 chmod a+x \$dldir/$dlname'
25230 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25231 dlpath=$dir/\$dldll~
25233 shlibpath_overrides_runpath=yes
25237 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25238 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25239 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25242 # MinGW DLLs use traditional 'lib' prefix
25243 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25244 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25245 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25246 # It is most probably a Windows format PATH printed by
25247 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25248 # path with ; separators, and with drive letters. We can handle the
25249 # drive letters (cygwin fileutils understands them), so leave them,
25250 # especially as we might pass files found there to a mingw objdump,
25251 # which wouldn't understand a cygwinified path. Ahh.
25252 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25254 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25258 # pw32 DLLs use 'pw' prefix rather than 'lib'
25259 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25265 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25268 dynamic_linker='Win32 ld.exe'
25269 # FIXME: first we should search . and the directory the executable is in
25273 darwin* | rhapsody*)
25274 dynamic_linker="$host_os dyld"
25275 version_type=darwin
25278 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25279 soname_spec='${libname}${release}${major}$shared_ext'
25280 shlibpath_overrides_runpath=yes
25281 shlibpath_var=DYLD_LIBRARY_PATH
25282 shrext_cmds='.dylib'
25283 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25284 if test "$GCC" = yes; then
25285 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"`
25287 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25289 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25297 soname_spec='${libname}${release}${shared_ext}$major'
25298 shlibpath_var=LD_LIBRARY_PATH
25309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25310 soname_spec='${libname}${release}${shared_ext}$major'
25311 shlibpath_var=LD_LIBRARY_PATH
25312 shlibpath_overrides_runpath=no
25313 hardcode_into_libs=yes
25314 dynamic_linker='GNU ld.so'
25317 freebsd* | dragonfly*)
25318 # DragonFly does not have aout. When/if they implement a new
25319 # versioning mechanism, adjust this.
25320 if test -x /usr/bin/objformat; then
25321 objformat=`/usr/bin/objformat`
25324 freebsd[123]*) objformat=aout ;;
25325 *) objformat=elf ;;
25328 version_type=freebsd-$objformat
25329 case $version_type in
25331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25336 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25340 shlibpath_var=LD_LIBRARY_PATH
25343 shlibpath_overrides_runpath=yes
25345 freebsd3.[01]* | freebsdelf3.[01]*)
25346 shlibpath_overrides_runpath=yes
25347 hardcode_into_libs=yes
25349 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25350 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25351 shlibpath_overrides_runpath=no
25352 hardcode_into_libs=yes
25354 freebsd*) # from 4.6 on
25355 shlibpath_overrides_runpath=yes
25356 hardcode_into_libs=yes
25365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25366 soname_spec='${libname}${release}${shared_ext}$major'
25367 shlibpath_var=LD_LIBRARY_PATH
25368 hardcode_into_libs=yes
25371 hpux9* | hpux10* | hpux11*)
25372 # Give a soname corresponding to the major version so that dld.sl refuses to
25373 # link against other versions.
25380 hardcode_into_libs=yes
25381 dynamic_linker="$host_os dld.so"
25382 shlibpath_var=LD_LIBRARY_PATH
25383 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25385 soname_spec='${libname}${release}${shared_ext}$major'
25386 if test "X$HPUX_IA64_MODE" = X32; then
25387 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25389 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25391 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25395 hardcode_into_libs=yes
25396 dynamic_linker="$host_os dld.sl"
25397 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25398 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25400 soname_spec='${libname}${release}${shared_ext}$major'
25401 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25402 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25406 dynamic_linker="$host_os dld.sl"
25407 shlibpath_var=SHLIB_PATH
25408 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25410 soname_spec='${libname}${release}${shared_ext}$major'
25413 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25414 postinstall_cmds='chmod 555 $lib'
25421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25422 soname_spec='${libname}${release}${shared_ext}$major'
25423 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25424 shlibpath_var=LD_LIBRARY_PATH
25425 shlibpath_overrides_runpath=no
25426 hardcode_into_libs=yes
25429 irix5* | irix6* | nonstopux*)
25431 nonstopux*) version_type=nonstopux ;;
25433 if test "$lt_cv_prog_gnu_ld" = yes; then
25441 soname_spec='${libname}${release}${shared_ext}$major'
25442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25444 irix5* | nonstopux*)
25445 libsuff= shlibsuff=
25448 case $LD in # libtool.m4 will add one of these switches to LD
25449 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25450 libsuff= shlibsuff= libmagic=32-bit;;
25451 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25452 libsuff=32 shlibsuff=N32 libmagic=N32;;
25453 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25454 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25455 *) libsuff= shlibsuff= libmagic=never-match;;
25459 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25460 shlibpath_overrides_runpath=no
25461 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25462 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25463 hardcode_into_libs=yes
25466 # No shared lib support for Linux oldld, aout, or coff.
25467 linux*oldld* | linux*aout* | linux*coff*)
25471 # This must be Linux ELF.
25476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25477 soname_spec='${libname}${release}${shared_ext}$major'
25478 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25479 shlibpath_var=LD_LIBRARY_PATH
25480 shlibpath_overrides_runpath=no
25481 # This implies no fast_install, which is unacceptable.
25482 # Some rework will be needed to allow for fast_install
25483 # before this can be enabled.
25484 hardcode_into_libs=yes
25486 # Append ld.so.conf contents to the search path
25487 if test -f /etc/ld.so.conf; then
25488 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' ' '`
25489 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25492 # We used to test for /lib/ld.so.1 and disable shared libraries on
25493 # powerpc, because MkLinux only supported shared libraries with the
25494 # GNU dynamic linker. Since this was broken with cross compilers,
25495 # most powerpc-linux boxes support dynamic linking these days and
25496 # people can always --disable-shared, the test was removed, and we
25497 # assume the GNU/Linux dynamic linker is in use.
25498 dynamic_linker='GNU/Linux ld.so'
25505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25506 soname_spec='${libname}${release}${shared_ext}$major'
25507 shlibpath_var=LD_LIBRARY_PATH
25508 shlibpath_overrides_runpath=no
25509 hardcode_into_libs=yes
25510 dynamic_linker='GNU ld.so'
25517 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25520 dynamic_linker='NetBSD (a.out) ld.so'
25522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25523 soname_spec='${libname}${release}${shared_ext}$major'
25524 dynamic_linker='NetBSD ld.elf_so'
25526 shlibpath_var=LD_LIBRARY_PATH
25527 shlibpath_overrides_runpath=yes
25528 hardcode_into_libs=yes
25533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25534 shlibpath_var=LD_LIBRARY_PATH
25535 shlibpath_overrides_runpath=yes
25542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25543 soname_spec='${libname}${release}${shared_ext}$major'
25544 shlibpath_var=LD_LIBRARY_PATH
25545 shlibpath_overrides_runpath=yes
25550 sys_lib_dlsearch_path_spec="/usr/lib"
25552 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25554 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25555 *) need_version=no ;;
25557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25559 shlibpath_var=LD_LIBRARY_PATH
25560 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25562 openbsd2.[89] | openbsd2.[89].*)
25563 shlibpath_overrides_runpath=no
25566 shlibpath_overrides_runpath=yes
25570 shlibpath_overrides_runpath=yes
25575 libname_spec='$name'
25578 library_names_spec='$libname${shared_ext} $libname.a'
25579 dynamic_linker='OS/2 ld.exe'
25580 shlibpath_var=LIBPATH
25583 osf3* | osf4* | osf5*)
25587 soname_spec='${libname}${release}${shared_ext}$major'
25588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25589 shlibpath_var=LD_LIBRARY_PATH
25590 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25591 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25599 soname_spec='${libname}${release}${shared_ext}$major'
25600 shlibpath_var=LD_LIBRARY_PATH
25601 shlibpath_overrides_runpath=yes
25602 hardcode_into_libs=yes
25603 # ldd complains unless libraries are executable
25604 postinstall_cmds='chmod +x $lib'
25609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25610 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25611 shlibpath_var=LD_LIBRARY_PATH
25612 shlibpath_overrides_runpath=yes
25613 if test "$with_gnu_ld" = yes; then
25621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25622 soname_spec='${libname}${release}${shared_ext}$major'
25623 shlibpath_var=LD_LIBRARY_PATH
25624 case $host_vendor in
25626 shlibpath_overrides_runpath=no
25628 export_dynamic_flag_spec='${wl}-Blargedynsym'
25629 runpath_var=LD_RUN_PATH
25637 shlibpath_overrides_runpath=no
25638 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25644 if test -d /usr/nec ;then
25646 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25647 soname_spec='$libname${shared_ext}.$major'
25648 shlibpath_var=LD_LIBRARY_PATH
25652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25653 version_type=freebsd-elf
25656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25657 soname_spec='${libname}${release}${shared_ext}$major'
25658 shlibpath_var=LD_LIBRARY_PATH
25659 hardcode_into_libs=yes
25660 if test "$with_gnu_ld" = yes; then
25661 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25662 shlibpath_overrides_runpath=no
25664 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25665 shlibpath_overrides_runpath=yes
25668 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25672 sys_lib_dlsearch_path_spec='/usr/lib'
25677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25678 soname_spec='${libname}${release}${shared_ext}$major'
25679 shlibpath_var=LD_LIBRARY_PATH
25686 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25687 echo "${ECHO_T}$dynamic_linker" >&6; }
25688 test "$dynamic_linker" = no && can_build_shared=no
25690 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25691 if test "$GCC" = yes; then
25692 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25695 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25696 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25697 hardcode_action_GCJ=
25698 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25699 test -n "$runpath_var_GCJ" || \
25700 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25702 # We can hardcode non-existant directories.
25703 if test "$hardcode_direct_GCJ" != no &&
25704 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25705 # have to relink, otherwise we might link with an installed library
25706 # when we should be linking with a yet-to-be-installed one
25707 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25708 test "$hardcode_minus_L_GCJ" != no; then
25709 # Linking always hardcodes the temporary library directory.
25710 hardcode_action_GCJ=relink
25712 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25713 hardcode_action_GCJ=immediate
25716 # We cannot hardcode anything, or else we can only hardcode existing
25718 hardcode_action_GCJ=unsupported
25720 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25721 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25723 if test "$hardcode_action_GCJ" = relink; then
25724 # Fast installation is not supported
25725 enable_fast_install=no
25726 elif test "$shlibpath_overrides_runpath" = yes ||
25727 test "$enable_shared" = no; then
25728 # Fast installation is not necessary
25729 enable_fast_install=needless
25733 # The else clause should only fire when bootstrapping the
25734 # libtool distribution, otherwise you forgot to ship ltmain.sh
25735 # with your package, and you will get complaints that there are
25736 # no rules to generate ltmain.sh.
25737 if test -f "$ltmain"; then
25738 # See if we are running on zsh, and set the options which allow our commands through
25739 # without removal of \ escapes.
25740 if test -n "${ZSH_VERSION+set}" ; then
25741 setopt NO_GLOB_SUBST
25743 # Now quote all the things that may contain metacharacters while being
25744 # careful not to overquote the AC_SUBSTed values. We take copies of the
25745 # variables and quote the copies for generation of the libtool script.
25746 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25748 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25749 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25750 deplibs_check_method reload_flag reload_cmds need_locks \
25751 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25752 lt_cv_sys_global_symbol_to_c_name_address \
25753 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25754 old_postinstall_cmds old_postuninstall_cmds \
25758 lt_prog_compiler_wl_GCJ \
25759 lt_prog_compiler_pic_GCJ \
25760 lt_prog_compiler_static_GCJ \
25761 lt_prog_compiler_no_builtin_flag_GCJ \
25762 export_dynamic_flag_spec_GCJ \
25763 thread_safe_flag_spec_GCJ \
25764 whole_archive_flag_spec_GCJ \
25765 enable_shared_with_static_runtimes_GCJ \
25766 old_archive_cmds_GCJ \
25767 old_archive_from_new_cmds_GCJ \
25768 predep_objects_GCJ \
25769 postdep_objects_GCJ \
25772 compiler_lib_search_path_GCJ \
25774 archive_expsym_cmds_GCJ \
25775 postinstall_cmds_GCJ \
25776 postuninstall_cmds_GCJ \
25777 old_archive_from_expsyms_cmds_GCJ \
25778 allow_undefined_flag_GCJ \
25779 no_undefined_flag_GCJ \
25780 export_symbols_cmds_GCJ \
25781 hardcode_libdir_flag_spec_GCJ \
25782 hardcode_libdir_flag_spec_ld_GCJ \
25783 hardcode_libdir_separator_GCJ \
25784 hardcode_automatic_GCJ \
25786 module_expsym_cmds_GCJ \
25787 lt_cv_prog_compiler_c_o_GCJ \
25788 exclude_expsyms_GCJ \
25789 include_expsyms_GCJ; do
25792 old_archive_cmds_GCJ | \
25793 old_archive_from_new_cmds_GCJ | \
25794 archive_cmds_GCJ | \
25795 archive_expsym_cmds_GCJ | \
25796 module_cmds_GCJ | \
25797 module_expsym_cmds_GCJ | \
25798 old_archive_from_expsyms_cmds_GCJ | \
25799 export_symbols_cmds_GCJ | \
25800 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25801 postinstall_cmds | postuninstall_cmds | \
25802 old_postinstall_cmds | old_postuninstall_cmds | \
25803 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25804 # Double-quote double-evaled strings.
25805 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25808 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25814 *'\$0 --fallback-echo"')
25815 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25821 cat <<__EOF__ >> "$cfgfile"
25822 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25824 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25826 # Shell to use when invoking shell scripts.
25829 # Whether or not to build shared libraries.
25830 build_libtool_libs=$enable_shared
25832 # Whether or not to build static libraries.
25833 build_old_libs=$enable_static
25835 # Whether or not to add -lc for building shared libraries.
25836 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25838 # Whether or not to disallow shared libs when runtime libs are static
25839 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25841 # Whether or not to optimize for fast installation.
25842 fast_install=$enable_fast_install
25845 host_alias=$host_alias
25849 # The build system.
25850 build_alias=$build_alias
25854 # An echo program that does not interpret backslashes.
25859 AR_FLAGS=$lt_AR_FLAGS
25864 # LTCC compiler flags.
25865 LTCFLAGS=$lt_LTCFLAGS
25867 # A language-specific compiler.
25868 CC=$lt_compiler_GCJ
25870 # Is the compiler the GNU C compiler?
25876 # The linker used to build libraries.
25879 # Whether we need hard or soft links.
25882 # A BSD-compatible nm program.
25885 # A symbol stripping program
25888 # Used to examine libraries when file_magic_cmd begins "file"
25889 MAGIC_CMD=$MAGIC_CMD
25891 # Used on cygwin: DLL creation program.
25894 # Used on cygwin: object dumper.
25897 # Used on cygwin: assembler.
25900 # The name of the directory that contains temporary libtool files.
25903 # How to create reloadable object files.
25904 reload_flag=$lt_reload_flag
25905 reload_cmds=$lt_reload_cmds
25907 # How to pass a linker flag through the compiler.
25908 wl=$lt_lt_prog_compiler_wl_GCJ
25910 # Object file suffix (normally "o").
25911 objext="$ac_objext"
25913 # Old archive suffix (normally "a").
25916 # Shared library suffix (normally ".so").
25917 shrext_cmds='$shrext_cmds'
25919 # Executable file suffix (normally "").
25922 # Additional compiler flags for building library objects.
25923 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25926 # What is the maximum length of a command?
25927 max_cmd_len=$lt_cv_sys_max_cmd_len
25929 # Does compiler simultaneously support -c and -o options?
25930 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25932 # Must we lock files when doing compilation?
25933 need_locks=$lt_need_locks
25935 # Do we need the lib prefix for modules?
25936 need_lib_prefix=$need_lib_prefix
25938 # Do we need a version for libraries?
25939 need_version=$need_version
25941 # Whether dlopen is supported.
25942 dlopen_support=$enable_dlopen
25944 # Whether dlopen of programs is supported.
25945 dlopen_self=$enable_dlopen_self
25947 # Whether dlopen of statically linked programs is supported.
25948 dlopen_self_static=$enable_dlopen_self_static
25950 # Compiler flag to prevent dynamic linking.
25951 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25953 # Compiler flag to turn off builtin functions.
25954 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25956 # Compiler flag to allow reflexive dlopens.
25957 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25959 # Compiler flag to generate shared objects directly from archives.
25960 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25962 # Compiler flag to generate thread-safe objects.
25963 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25965 # Library versioning type.
25966 version_type=$version_type
25968 # Format of library name prefix.
25969 libname_spec=$lt_libname_spec
25971 # List of archive names. First name is the real one, the rest are links.
25972 # The last name is the one that the linker finds with -lNAME.
25973 library_names_spec=$lt_library_names_spec
25975 # The coded name of the library, if different from the real name.
25976 soname_spec=$lt_soname_spec
25978 # Commands used to build and install an old-style archive.
25980 old_archive_cmds=$lt_old_archive_cmds_GCJ
25981 old_postinstall_cmds=$lt_old_postinstall_cmds
25982 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25984 # Create an old-style archive from a shared archive.
25985 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25987 # Create a temporary old-style archive to link instead of a shared archive.
25988 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25990 # Commands used to build and install a shared archive.
25991 archive_cmds=$lt_archive_cmds_GCJ
25992 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25993 postinstall_cmds=$lt_postinstall_cmds
25994 postuninstall_cmds=$lt_postuninstall_cmds
25996 # Commands used to build a loadable module (assumed same as above if empty)
25997 module_cmds=$lt_module_cmds_GCJ
25998 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26000 # Commands to strip libraries.
26001 old_striplib=$lt_old_striplib
26002 striplib=$lt_striplib
26004 # Dependencies to place before the objects being linked to create a
26006 predep_objects=$lt_predep_objects_GCJ
26008 # Dependencies to place after the objects being linked to create a
26010 postdep_objects=$lt_postdep_objects_GCJ
26012 # Dependencies to place before the objects being linked to create a
26014 predeps=$lt_predeps_GCJ
26016 # Dependencies to place after the objects being linked to create a
26018 postdeps=$lt_postdeps_GCJ
26020 # The library search path used internally by the compiler when linking
26021 # a shared library.
26022 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26024 # Method to check whether dependent libraries are shared objects.
26025 deplibs_check_method=$lt_deplibs_check_method
26027 # Command to use when deplibs_check_method == file_magic.
26028 file_magic_cmd=$lt_file_magic_cmd
26030 # Flag that allows shared libraries with undefined symbols to be built.
26031 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26033 # Flag that forces no undefined symbols.
26034 no_undefined_flag=$lt_no_undefined_flag_GCJ
26036 # Commands used to finish a libtool library installation in a directory.
26037 finish_cmds=$lt_finish_cmds
26039 # Same as above, but a single script fragment to be evaled but not shown.
26040 finish_eval=$lt_finish_eval
26042 # Take the output of nm and produce a listing of raw symbols and C names.
26043 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26045 # Transform the output of nm in a proper C declaration
26046 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26048 # Transform the output of nm in a C name address pair
26049 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26051 # This is the shared library runtime path variable.
26052 runpath_var=$runpath_var
26054 # This is the shared library path variable.
26055 shlibpath_var=$shlibpath_var
26057 # Is shlibpath searched before the hard-coded library search path?
26058 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26060 # How to hardcode a shared library path into an executable.
26061 hardcode_action=$hardcode_action_GCJ
26063 # Whether we should hardcode library paths into libraries.
26064 hardcode_into_libs=$hardcode_into_libs
26066 # Flag to hardcode \$libdir into a binary during linking.
26067 # This must work even if \$libdir does not exist.
26068 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26070 # If ld is used when linking, flag to hardcode \$libdir into
26071 # a binary during linking. This must work even if \$libdir does
26073 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26075 # Whether we need a single -rpath flag with a separated argument.
26076 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26078 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26079 # resulting binary.
26080 hardcode_direct=$hardcode_direct_GCJ
26082 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26083 # resulting binary.
26084 hardcode_minus_L=$hardcode_minus_L_GCJ
26086 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26087 # the resulting binary.
26088 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26090 # Set to yes if building a shared library automatically hardcodes DIR into the library
26091 # and all subsequent libraries and executables linked against it.
26092 hardcode_automatic=$hardcode_automatic_GCJ
26094 # Variables whose values should be saved in libtool wrapper scripts and
26095 # restored at relink time.
26096 variables_saved_for_relink="$variables_saved_for_relink"
26098 # Whether libtool must link a program against all its dependency libraries.
26099 link_all_deplibs=$link_all_deplibs_GCJ
26101 # Compile-time system search path for libraries
26102 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26104 # Run-time system search path for libraries
26105 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26107 # Fix the shell variable \$srcfile for the compiler.
26108 fix_srcfile_path="$fix_srcfile_path_GCJ"
26110 # Set to yes if exported symbols are required.
26111 always_export_symbols=$always_export_symbols_GCJ
26113 # The commands to list exported symbols.
26114 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26116 # The commands to extract the exported symbol list from a shared archive.
26117 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26119 # Symbols that should not be listed in the preloaded symbols.
26120 exclude_expsyms=$lt_exclude_expsyms_GCJ
26122 # Symbols that must always be exported.
26123 include_expsyms=$lt_include_expsyms_GCJ
26125 # ### END LIBTOOL TAG CONFIG: $tagname
26131 # If there is no Makefile yet, we rely on a make rule to execute
26132 # `config.status --recheck' to rerun these tests and create the
26133 # libtool script then.
26134 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26135 if test -f "$ltmain_in"; then
26136 test -f Makefile && make "$ltmain"
26142 ac_cpp='$CPP $CPPFLAGS'
26143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26156 ac_cpp='$CPP $CPPFLAGS'
26157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26162 # Source file extension for RC test sources.
26165 # Object file extension for compiled RC test sources.
26169 # Code to be used in simple compile tests
26170 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26172 # Code to be used in simple link tests
26173 lt_simple_link_test_code="$lt_simple_compile_test_code"
26175 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26177 # If no C compiler was specified, use CC.
26180 # If no C compiler flags were specified, use CFLAGS.
26181 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26183 # Allow CC to be a program name with arguments.
26187 # save warnings/boilerplate of simple test code
26188 ac_outfile=conftest.$ac_objext
26189 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26190 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26191 _lt_compiler_boilerplate=`cat conftest.err`
26194 ac_outfile=conftest.$ac_objext
26195 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26196 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26197 _lt_linker_boilerplate=`cat conftest.err`
26201 # Allow CC to be a program name with arguments.
26206 for cc_temp in $compiler""; do
26208 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26209 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26214 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26216 lt_cv_prog_compiler_c_o_RC=yes
26218 # The else clause should only fire when bootstrapping the
26219 # libtool distribution, otherwise you forgot to ship ltmain.sh
26220 # with your package, and you will get complaints that there are
26221 # no rules to generate ltmain.sh.
26222 if test -f "$ltmain"; then
26223 # See if we are running on zsh, and set the options which allow our commands through
26224 # without removal of \ escapes.
26225 if test -n "${ZSH_VERSION+set}" ; then
26226 setopt NO_GLOB_SUBST
26228 # Now quote all the things that may contain metacharacters while being
26229 # careful not to overquote the AC_SUBSTed values. We take copies of the
26230 # variables and quote the copies for generation of the libtool script.
26231 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26233 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26234 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26235 deplibs_check_method reload_flag reload_cmds need_locks \
26236 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26237 lt_cv_sys_global_symbol_to_c_name_address \
26238 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26239 old_postinstall_cmds old_postuninstall_cmds \
26243 lt_prog_compiler_wl_RC \
26244 lt_prog_compiler_pic_RC \
26245 lt_prog_compiler_static_RC \
26246 lt_prog_compiler_no_builtin_flag_RC \
26247 export_dynamic_flag_spec_RC \
26248 thread_safe_flag_spec_RC \
26249 whole_archive_flag_spec_RC \
26250 enable_shared_with_static_runtimes_RC \
26251 old_archive_cmds_RC \
26252 old_archive_from_new_cmds_RC \
26253 predep_objects_RC \
26254 postdep_objects_RC \
26257 compiler_lib_search_path_RC \
26259 archive_expsym_cmds_RC \
26260 postinstall_cmds_RC \
26261 postuninstall_cmds_RC \
26262 old_archive_from_expsyms_cmds_RC \
26263 allow_undefined_flag_RC \
26264 no_undefined_flag_RC \
26265 export_symbols_cmds_RC \
26266 hardcode_libdir_flag_spec_RC \
26267 hardcode_libdir_flag_spec_ld_RC \
26268 hardcode_libdir_separator_RC \
26269 hardcode_automatic_RC \
26271 module_expsym_cmds_RC \
26272 lt_cv_prog_compiler_c_o_RC \
26273 exclude_expsyms_RC \
26274 include_expsyms_RC; do
26277 old_archive_cmds_RC | \
26278 old_archive_from_new_cmds_RC | \
26279 archive_cmds_RC | \
26280 archive_expsym_cmds_RC | \
26282 module_expsym_cmds_RC | \
26283 old_archive_from_expsyms_cmds_RC | \
26284 export_symbols_cmds_RC | \
26285 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26286 postinstall_cmds | postuninstall_cmds | \
26287 old_postinstall_cmds | old_postuninstall_cmds | \
26288 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26289 # Double-quote double-evaled strings.
26290 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26293 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26299 *'\$0 --fallback-echo"')
26300 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26306 cat <<__EOF__ >> "$cfgfile"
26307 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26309 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26311 # Shell to use when invoking shell scripts.
26314 # Whether or not to build shared libraries.
26315 build_libtool_libs=$enable_shared
26317 # Whether or not to build static libraries.
26318 build_old_libs=$enable_static
26320 # Whether or not to add -lc for building shared libraries.
26321 build_libtool_need_lc=$archive_cmds_need_lc_RC
26323 # Whether or not to disallow shared libs when runtime libs are static
26324 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26326 # Whether or not to optimize for fast installation.
26327 fast_install=$enable_fast_install
26330 host_alias=$host_alias
26334 # The build system.
26335 build_alias=$build_alias
26339 # An echo program that does not interpret backslashes.
26344 AR_FLAGS=$lt_AR_FLAGS
26349 # LTCC compiler flags.
26350 LTCFLAGS=$lt_LTCFLAGS
26352 # A language-specific compiler.
26355 # Is the compiler the GNU C compiler?
26361 # The linker used to build libraries.
26364 # Whether we need hard or soft links.
26367 # A BSD-compatible nm program.
26370 # A symbol stripping program
26373 # Used to examine libraries when file_magic_cmd begins "file"
26374 MAGIC_CMD=$MAGIC_CMD
26376 # Used on cygwin: DLL creation program.
26379 # Used on cygwin: object dumper.
26382 # Used on cygwin: assembler.
26385 # The name of the directory that contains temporary libtool files.
26388 # How to create reloadable object files.
26389 reload_flag=$lt_reload_flag
26390 reload_cmds=$lt_reload_cmds
26392 # How to pass a linker flag through the compiler.
26393 wl=$lt_lt_prog_compiler_wl_RC
26395 # Object file suffix (normally "o").
26396 objext="$ac_objext"
26398 # Old archive suffix (normally "a").
26401 # Shared library suffix (normally ".so").
26402 shrext_cmds='$shrext_cmds'
26404 # Executable file suffix (normally "").
26407 # Additional compiler flags for building library objects.
26408 pic_flag=$lt_lt_prog_compiler_pic_RC
26411 # What is the maximum length of a command?
26412 max_cmd_len=$lt_cv_sys_max_cmd_len
26414 # Does compiler simultaneously support -c and -o options?
26415 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26417 # Must we lock files when doing compilation?
26418 need_locks=$lt_need_locks
26420 # Do we need the lib prefix for modules?
26421 need_lib_prefix=$need_lib_prefix
26423 # Do we need a version for libraries?
26424 need_version=$need_version
26426 # Whether dlopen is supported.
26427 dlopen_support=$enable_dlopen
26429 # Whether dlopen of programs is supported.
26430 dlopen_self=$enable_dlopen_self
26432 # Whether dlopen of statically linked programs is supported.
26433 dlopen_self_static=$enable_dlopen_self_static
26435 # Compiler flag to prevent dynamic linking.
26436 link_static_flag=$lt_lt_prog_compiler_static_RC
26438 # Compiler flag to turn off builtin functions.
26439 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26441 # Compiler flag to allow reflexive dlopens.
26442 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26444 # Compiler flag to generate shared objects directly from archives.
26445 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26447 # Compiler flag to generate thread-safe objects.
26448 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26450 # Library versioning type.
26451 version_type=$version_type
26453 # Format of library name prefix.
26454 libname_spec=$lt_libname_spec
26456 # List of archive names. First name is the real one, the rest are links.
26457 # The last name is the one that the linker finds with -lNAME.
26458 library_names_spec=$lt_library_names_spec
26460 # The coded name of the library, if different from the real name.
26461 soname_spec=$lt_soname_spec
26463 # Commands used to build and install an old-style archive.
26465 old_archive_cmds=$lt_old_archive_cmds_RC
26466 old_postinstall_cmds=$lt_old_postinstall_cmds
26467 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26469 # Create an old-style archive from a shared archive.
26470 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26472 # Create a temporary old-style archive to link instead of a shared archive.
26473 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26475 # Commands used to build and install a shared archive.
26476 archive_cmds=$lt_archive_cmds_RC
26477 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26478 postinstall_cmds=$lt_postinstall_cmds
26479 postuninstall_cmds=$lt_postuninstall_cmds
26481 # Commands used to build a loadable module (assumed same as above if empty)
26482 module_cmds=$lt_module_cmds_RC
26483 module_expsym_cmds=$lt_module_expsym_cmds_RC
26485 # Commands to strip libraries.
26486 old_striplib=$lt_old_striplib
26487 striplib=$lt_striplib
26489 # Dependencies to place before the objects being linked to create a
26491 predep_objects=$lt_predep_objects_RC
26493 # Dependencies to place after the objects being linked to create a
26495 postdep_objects=$lt_postdep_objects_RC
26497 # Dependencies to place before the objects being linked to create a
26499 predeps=$lt_predeps_RC
26501 # Dependencies to place after the objects being linked to create a
26503 postdeps=$lt_postdeps_RC
26505 # The library search path used internally by the compiler when linking
26506 # a shared library.
26507 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26509 # Method to check whether dependent libraries are shared objects.
26510 deplibs_check_method=$lt_deplibs_check_method
26512 # Command to use when deplibs_check_method == file_magic.
26513 file_magic_cmd=$lt_file_magic_cmd
26515 # Flag that allows shared libraries with undefined symbols to be built.
26516 allow_undefined_flag=$lt_allow_undefined_flag_RC
26518 # Flag that forces no undefined symbols.
26519 no_undefined_flag=$lt_no_undefined_flag_RC
26521 # Commands used to finish a libtool library installation in a directory.
26522 finish_cmds=$lt_finish_cmds
26524 # Same as above, but a single script fragment to be evaled but not shown.
26525 finish_eval=$lt_finish_eval
26527 # Take the output of nm and produce a listing of raw symbols and C names.
26528 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26530 # Transform the output of nm in a proper C declaration
26531 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26533 # Transform the output of nm in a C name address pair
26534 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26536 # This is the shared library runtime path variable.
26537 runpath_var=$runpath_var
26539 # This is the shared library path variable.
26540 shlibpath_var=$shlibpath_var
26542 # Is shlibpath searched before the hard-coded library search path?
26543 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26545 # How to hardcode a shared library path into an executable.
26546 hardcode_action=$hardcode_action_RC
26548 # Whether we should hardcode library paths into libraries.
26549 hardcode_into_libs=$hardcode_into_libs
26551 # Flag to hardcode \$libdir into a binary during linking.
26552 # This must work even if \$libdir does not exist.
26553 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26555 # If ld is used when linking, flag to hardcode \$libdir into
26556 # a binary during linking. This must work even if \$libdir does
26558 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26560 # Whether we need a single -rpath flag with a separated argument.
26561 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26563 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26564 # resulting binary.
26565 hardcode_direct=$hardcode_direct_RC
26567 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26568 # resulting binary.
26569 hardcode_minus_L=$hardcode_minus_L_RC
26571 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26572 # the resulting binary.
26573 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26575 # Set to yes if building a shared library automatically hardcodes DIR into the library
26576 # and all subsequent libraries and executables linked against it.
26577 hardcode_automatic=$hardcode_automatic_RC
26579 # Variables whose values should be saved in libtool wrapper scripts and
26580 # restored at relink time.
26581 variables_saved_for_relink="$variables_saved_for_relink"
26583 # Whether libtool must link a program against all its dependency libraries.
26584 link_all_deplibs=$link_all_deplibs_RC
26586 # Compile-time system search path for libraries
26587 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26589 # Run-time system search path for libraries
26590 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26592 # Fix the shell variable \$srcfile for the compiler.
26593 fix_srcfile_path="$fix_srcfile_path_RC"
26595 # Set to yes if exported symbols are required.
26596 always_export_symbols=$always_export_symbols_RC
26598 # The commands to list exported symbols.
26599 export_symbols_cmds=$lt_export_symbols_cmds_RC
26601 # The commands to extract the exported symbol list from a shared archive.
26602 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26604 # Symbols that should not be listed in the preloaded symbols.
26605 exclude_expsyms=$lt_exclude_expsyms_RC
26607 # Symbols that must always be exported.
26608 include_expsyms=$lt_include_expsyms_RC
26610 # ### END LIBTOOL TAG CONFIG: $tagname
26616 # If there is no Makefile yet, we rely on a make rule to execute
26617 # `config.status --recheck' to rerun these tests and create the
26618 # libtool script then.
26619 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26620 if test -f "$ltmain_in"; then
26621 test -f Makefile && make "$ltmain"
26627 ac_cpp='$CPP $CPPFLAGS'
26628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26637 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26638 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26639 { (exit 1); exit 1; }; }
26643 # Append the new tag name to the list of available tags.
26644 if test -n "$tagname" ; then
26645 available_tags="$available_tags $tagname"
26651 # Now substitute the updated list of available tags.
26652 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26653 mv "${ofile}T" "$ofile"
26657 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26658 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26659 { (exit 1); exit 1; }; }
26665 # This can be used to rebuild libtool when needed
26666 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26668 # Always use our own libtool.
26669 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26671 # Prevent multiple expansion
26693 if test "$lt_cv_dlopen_self" = "yes" ; then
26695 cat >>confdefs.h <<\_ACEOF
26696 #define CAN_DLOPEN_SELF 1
26701 if test "$WITH_LLVMGCCDIR" = "default" ; then
26702 LLVMGCC="llvm-gcc${EXEEXT}"
26703 LLVMGXX="llvm-g++${EXEEXT}"
26704 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26705 set dummy $LLVMGCC; ac_word=$2
26706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26708 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26709 echo $ECHO_N "(cached) $ECHO_C" >&6
26713 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26717 for as_dir in $PATH
26720 test -z "$as_dir" && as_dir=.
26721 for ac_exec_ext in '' $ac_executable_extensions; do
26722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26723 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26734 LLVMGCC=$ac_cv_path_LLVMGCC
26735 if test -n "$LLVMGCC"; then
26736 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26737 echo "${ECHO_T}$LLVMGCC" >&6; }
26739 { echo "$as_me:$LINENO: result: no" >&5
26740 echo "${ECHO_T}no" >&6; }
26744 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26745 set dummy $LLVMGXX; ac_word=$2
26746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26748 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26749 echo $ECHO_N "(cached) $ECHO_C" >&6
26753 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26757 for as_dir in $PATH
26760 test -z "$as_dir" && as_dir=.
26761 for ac_exec_ext in '' $ac_executable_extensions; do
26762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26763 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26774 LLVMGXX=$ac_cv_path_LLVMGXX
26775 if test -n "$LLVMGXX"; then
26776 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26777 echo "${ECHO_T}$LLVMGXX" >&6; }
26779 { echo "$as_me:$LINENO: result: no" >&5
26780 echo "${ECHO_T}no" >&6; }
26785 if test -z "$LLVMGCC"; then
26786 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26788 if test -z "$LLVMGXX"; then
26789 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26797 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26798 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26811 if test "$GCC" != "yes" && test "$ICC" != "yes"
26813 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26814 echo "$as_me: error: gcc|icc required but not found" >&2;}
26815 { (exit 1); exit 1; }; }
26818 if test "$GXX" != "yes" && test "$IXX" != "yes"
26820 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26821 echo "$as_me: error: g++|icc required but not found" >&2;}
26822 { (exit 1); exit 1; }; }
26825 if test "$GCC" = "yes"
26827 cat >conftest.$ac_ext <<_ACEOF
26828 #if !defined(__GNUC__) || __GNUC__ < 3
26829 #error Unsupported GCC version
26833 rm -f conftest.$ac_objext
26834 if { (ac_try="$ac_compile"
26835 case "(($ac_try" in
26836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26837 *) ac_try_echo=$ac_try;;
26839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26840 (eval "$ac_compile") 2>conftest.er1
26842 grep -v '^ *+' conftest.er1 >conftest.err
26844 cat conftest.err >&5
26845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846 (exit $ac_status); } &&
26847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26848 { (case "(($ac_try" in
26849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26850 *) ac_try_echo=$ac_try;;
26852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26853 (eval "$ac_try") 2>&5
26855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); }; } &&
26857 { ac_try='test -s conftest.$ac_objext'
26858 { (case "(($ac_try" in
26859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26860 *) ac_try_echo=$ac_try;;
26862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26863 (eval "$ac_try") 2>&5
26865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26866 (exit $ac_status); }; }; then
26869 echo "$as_me: failed program was:" >&5
26870 sed 's/^/| /' conftest.$ac_ext >&5
26872 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26873 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26874 { (exit 1); exit 1; }; }
26877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26880 if test -z "$llvm_cv_gnu_make_command"
26882 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26883 echo "$as_me: error: GNU Make required but not found" >&2;}
26884 { (exit 1); exit 1; }; }
26887 { echo "$as_me:$LINENO: result: ok" >&5
26888 echo "${ECHO_T}ok" >&6; }
26892 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26893 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26894 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26895 echo $ECHO_N "(cached) $ECHO_C" >&6
26897 ac_check_lib_save_LIBS=$LIBS
26899 cat >conftest.$ac_ext <<_ACEOF
26902 cat confdefs.h >>conftest.$ac_ext
26903 cat >>conftest.$ac_ext <<_ACEOF
26904 /* end confdefs.h. */
26906 /* Override any GCC internal prototype to avoid an error.
26907 Use char because int might match the return type of a GCC
26908 builtin and then its argument prototype would still apply. */
26916 return elf_begin ();
26921 rm -f conftest.$ac_objext conftest$ac_exeext
26922 if { (ac_try="$ac_link"
26923 case "(($ac_try" in
26924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925 *) ac_try_echo=$ac_try;;
26927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928 (eval "$ac_link") 2>conftest.er1
26930 grep -v '^ *+' conftest.er1 >conftest.err
26932 cat conftest.err >&5
26933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 (exit $ac_status); } &&
26935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26936 { (case "(($ac_try" in
26937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26938 *) ac_try_echo=$ac_try;;
26940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26941 (eval "$ac_try") 2>&5
26943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944 (exit $ac_status); }; } &&
26945 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
26955 ac_cv_lib_elf_elf_begin=yes
26957 echo "$as_me: failed program was:" >&5
26958 sed 's/^/| /' conftest.$ac_ext >&5
26960 ac_cv_lib_elf_elf_begin=no
26963 rm -f core conftest.err conftest.$ac_objext \
26964 conftest$ac_exeext conftest.$ac_ext
26965 LIBS=$ac_check_lib_save_LIBS
26967 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26968 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26969 if test $ac_cv_lib_elf_elf_begin = yes; then
26970 cat >>confdefs.h <<_ACEOF
26971 #define HAVE_LIBELF 1
26979 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26980 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26981 if test "${ac_cv_lib_m_sin+set}" = set; then
26982 echo $ECHO_N "(cached) $ECHO_C" >&6
26984 ac_check_lib_save_LIBS=$LIBS
26986 cat >conftest.$ac_ext <<_ACEOF
26989 cat confdefs.h >>conftest.$ac_ext
26990 cat >>conftest.$ac_ext <<_ACEOF
26991 /* end confdefs.h. */
26993 /* Override any GCC internal prototype to avoid an error.
26994 Use char because int might match the return type of a GCC
26995 builtin and then its argument prototype would still apply. */
27008 rm -f conftest.$ac_objext conftest$ac_exeext
27009 if { (ac_try="$ac_link"
27010 case "(($ac_try" in
27011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27012 *) ac_try_echo=$ac_try;;
27014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27015 (eval "$ac_link") 2>conftest.er1
27017 grep -v '^ *+' conftest.er1 >conftest.err
27019 cat conftest.err >&5
27020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27021 (exit $ac_status); } &&
27022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27023 { (case "(($ac_try" in
27024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025 *) ac_try_echo=$ac_try;;
27027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27028 (eval "$ac_try") 2>&5
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); }; } &&
27032 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27042 ac_cv_lib_m_sin=yes
27044 echo "$as_me: failed program was:" >&5
27045 sed 's/^/| /' conftest.$ac_ext >&5
27050 rm -f core conftest.err conftest.$ac_objext \
27051 conftest$ac_exeext conftest.$ac_ext
27052 LIBS=$ac_check_lib_save_LIBS
27054 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27055 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27056 if test $ac_cv_lib_m_sin = yes; then
27057 cat >>confdefs.h <<_ACEOF
27058 #define HAVE_LIBM 1
27065 if test "$llvm_cv_os_type" = "MingW" ; then
27067 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27068 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27069 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27070 echo $ECHO_N "(cached) $ECHO_C" >&6
27072 ac_check_lib_save_LIBS=$LIBS
27073 LIBS="-limagehlp $LIBS"
27074 cat >conftest.$ac_ext <<_ACEOF
27077 cat confdefs.h >>conftest.$ac_ext
27078 cat >>conftest.$ac_ext <<_ACEOF
27079 /* end confdefs.h. */
27090 rm -f conftest.$ac_objext conftest$ac_exeext
27091 if { (ac_try="$ac_link"
27092 case "(($ac_try" in
27093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27094 *) ac_try_echo=$ac_try;;
27096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27097 (eval "$ac_link") 2>conftest.er1
27099 grep -v '^ *+' conftest.er1 >conftest.err
27101 cat conftest.err >&5
27102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103 (exit $ac_status); } &&
27104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27105 { (case "(($ac_try" in
27106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27107 *) ac_try_echo=$ac_try;;
27109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110 (eval "$ac_try") 2>&5
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); }; } &&
27114 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27124 ac_cv_lib_imagehlp_main=yes
27126 echo "$as_me: failed program was:" >&5
27127 sed 's/^/| /' conftest.$ac_ext >&5
27129 ac_cv_lib_imagehlp_main=no
27132 rm -f core conftest.err conftest.$ac_objext \
27133 conftest$ac_exeext conftest.$ac_ext
27134 LIBS=$ac_check_lib_save_LIBS
27136 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27137 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27138 if test $ac_cv_lib_imagehlp_main = yes; then
27139 cat >>confdefs.h <<_ACEOF
27140 #define HAVE_LIBIMAGEHLP 1
27143 LIBS="-limagehlp $LIBS"
27148 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27149 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27150 if test "${ac_cv_lib_psapi_main+set}" = set; then
27151 echo $ECHO_N "(cached) $ECHO_C" >&6
27153 ac_check_lib_save_LIBS=$LIBS
27154 LIBS="-lpsapi $LIBS"
27155 cat >conftest.$ac_ext <<_ACEOF
27158 cat confdefs.h >>conftest.$ac_ext
27159 cat >>conftest.$ac_ext <<_ACEOF
27160 /* end confdefs.h. */
27171 rm -f conftest.$ac_objext conftest$ac_exeext
27172 if { (ac_try="$ac_link"
27173 case "(($ac_try" in
27174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27175 *) ac_try_echo=$ac_try;;
27177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27178 (eval "$ac_link") 2>conftest.er1
27180 grep -v '^ *+' conftest.er1 >conftest.err
27182 cat conftest.err >&5
27183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184 (exit $ac_status); } &&
27185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27186 { (case "(($ac_try" in
27187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27188 *) ac_try_echo=$ac_try;;
27190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27191 (eval "$ac_try") 2>&5
27193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194 (exit $ac_status); }; } &&
27195 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27205 ac_cv_lib_psapi_main=yes
27207 echo "$as_me: failed program was:" >&5
27208 sed 's/^/| /' conftest.$ac_ext >&5
27210 ac_cv_lib_psapi_main=no
27213 rm -f core conftest.err conftest.$ac_objext \
27214 conftest$ac_exeext conftest.$ac_ext
27215 LIBS=$ac_check_lib_save_LIBS
27217 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27218 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27219 if test $ac_cv_lib_psapi_main = yes; then
27220 cat >>confdefs.h <<_ACEOF
27221 #define HAVE_LIBPSAPI 1
27224 LIBS="-lpsapi $LIBS"
27230 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27231 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27232 if test "${ac_cv_search_dlopen+set}" = set; then
27233 echo $ECHO_N "(cached) $ECHO_C" >&6
27235 ac_func_search_save_LIBS=$LIBS
27236 cat >conftest.$ac_ext <<_ACEOF
27239 cat confdefs.h >>conftest.$ac_ext
27240 cat >>conftest.$ac_ext <<_ACEOF
27241 /* end confdefs.h. */
27243 /* Override any GCC internal prototype to avoid an error.
27244 Use char because int might match the return type of a GCC
27245 builtin and then its argument prototype would still apply. */
27258 for ac_lib in '' dl; do
27259 if test -z "$ac_lib"; then
27260 ac_res="none required"
27263 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27265 rm -f conftest.$ac_objext conftest$ac_exeext
27266 if { (ac_try="$ac_link"
27267 case "(($ac_try" in
27268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27269 *) ac_try_echo=$ac_try;;
27271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27272 (eval "$ac_link") 2>conftest.er1
27274 grep -v '^ *+' conftest.er1 >conftest.err
27276 cat conftest.err >&5
27277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278 (exit $ac_status); } &&
27279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27280 { (case "(($ac_try" in
27281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27282 *) ac_try_echo=$ac_try;;
27284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27285 (eval "$ac_try") 2>&5
27287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288 (exit $ac_status); }; } &&
27289 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27299 ac_cv_search_dlopen=$ac_res
27301 echo "$as_me: failed program was:" >&5
27302 sed 's/^/| /' conftest.$ac_ext >&5
27307 rm -f core conftest.err conftest.$ac_objext \
27309 if test "${ac_cv_search_dlopen+set}" = set; then
27313 if test "${ac_cv_search_dlopen+set}" = set; then
27316 ac_cv_search_dlopen=no
27318 rm conftest.$ac_ext
27319 LIBS=$ac_func_search_save_LIBS
27321 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27322 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27323 ac_res=$ac_cv_search_dlopen
27324 if test "$ac_res" != no; then
27325 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27327 cat >>confdefs.h <<\_ACEOF
27328 #define HAVE_DLOPEN 1
27332 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27333 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27337 { echo "$as_me:$LINENO: checking for ffi_call in -lffi" >&5
27338 echo $ECHO_N "checking for ffi_call in -lffi... $ECHO_C" >&6; }
27339 if test "${ac_cv_lib_ffi_ffi_call+set}" = set; then
27340 echo $ECHO_N "(cached) $ECHO_C" >&6
27342 ac_check_lib_save_LIBS=$LIBS
27344 cat >conftest.$ac_ext <<_ACEOF
27347 cat confdefs.h >>conftest.$ac_ext
27348 cat >>conftest.$ac_ext <<_ACEOF
27349 /* end confdefs.h. */
27351 /* Override any GCC internal prototype to avoid an error.
27352 Use char because int might match the return type of a GCC
27353 builtin and then its argument prototype would still apply. */
27361 return ffi_call ();
27366 rm -f conftest.$ac_objext conftest$ac_exeext
27367 if { (ac_try="$ac_link"
27368 case "(($ac_try" in
27369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27370 *) ac_try_echo=$ac_try;;
27372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27373 (eval "$ac_link") 2>conftest.er1
27375 grep -v '^ *+' conftest.er1 >conftest.err
27377 cat conftest.err >&5
27378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379 (exit $ac_status); } &&
27380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27381 { (case "(($ac_try" in
27382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27383 *) ac_try_echo=$ac_try;;
27385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27386 (eval "$ac_try") 2>&5
27388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389 (exit $ac_status); }; } &&
27390 { ac_try='test -s conftest$ac_exeext'
27391 { (case "(($ac_try" in
27392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27393 *) ac_try_echo=$ac_try;;
27395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27396 (eval "$ac_try") 2>&5
27398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399 (exit $ac_status); }; }; then
27400 ac_cv_lib_ffi_ffi_call=yes
27402 echo "$as_me: failed program was:" >&5
27403 sed 's/^/| /' conftest.$ac_ext >&5
27405 ac_cv_lib_ffi_ffi_call=no
27408 rm -f core conftest.err conftest.$ac_objext \
27409 conftest$ac_exeext conftest.$ac_ext
27410 LIBS=$ac_check_lib_save_LIBS
27412 { echo "$as_me:$LINENO: result: $ac_cv_lib_ffi_ffi_call" >&5
27413 echo "${ECHO_T}$ac_cv_lib_ffi_ffi_call" >&6; }
27414 if test $ac_cv_lib_ffi_ffi_call = yes; then
27417 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27418 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27422 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27423 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27424 if test "${ac_cv_search_mallinfo+set}" = set; then
27425 echo $ECHO_N "(cached) $ECHO_C" >&6
27427 ac_func_search_save_LIBS=$LIBS
27428 cat >conftest.$ac_ext <<_ACEOF
27431 cat confdefs.h >>conftest.$ac_ext
27432 cat >>conftest.$ac_ext <<_ACEOF
27433 /* end confdefs.h. */
27435 /* Override any GCC internal prototype to avoid an error.
27436 Use char because int might match the return type of a GCC
27437 builtin and then its argument prototype would still apply. */
27445 return mallinfo ();
27450 for ac_lib in '' malloc; do
27451 if test -z "$ac_lib"; then
27452 ac_res="none required"
27455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27457 rm -f conftest.$ac_objext conftest$ac_exeext
27458 if { (ac_try="$ac_link"
27459 case "(($ac_try" in
27460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27461 *) ac_try_echo=$ac_try;;
27463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27464 (eval "$ac_link") 2>conftest.er1
27466 grep -v '^ *+' conftest.er1 >conftest.err
27468 cat conftest.err >&5
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); } &&
27471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27472 { (case "(($ac_try" in
27473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27474 *) ac_try_echo=$ac_try;;
27476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27477 (eval "$ac_try") 2>&5
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); }; } &&
27481 { ac_try='test -s conftest$ac_exeext'
27482 { (case "(($ac_try" in
27483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27484 *) ac_try_echo=$ac_try;;
27486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27487 (eval "$ac_try") 2>&5
27489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490 (exit $ac_status); }; }; then
27491 ac_cv_search_mallinfo=$ac_res
27493 echo "$as_me: failed program was:" >&5
27494 sed 's/^/| /' conftest.$ac_ext >&5
27499 rm -f core conftest.err conftest.$ac_objext \
27501 if test "${ac_cv_search_mallinfo+set}" = set; then
27505 if test "${ac_cv_search_mallinfo+set}" = set; then
27508 ac_cv_search_mallinfo=no
27510 rm conftest.$ac_ext
27511 LIBS=$ac_func_search_save_LIBS
27513 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27514 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27515 ac_res=$ac_cv_search_mallinfo
27516 if test "$ac_res" != no; then
27517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27519 cat >>confdefs.h <<\_ACEOF
27520 #define HAVE_MALLINFO 1
27526 if test "$ENABLE_THREADS" -eq 1 ; then
27528 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27529 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27530 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27531 echo $ECHO_N "(cached) $ECHO_C" >&6
27533 ac_check_lib_save_LIBS=$LIBS
27534 LIBS="-lpthread $LIBS"
27535 cat >conftest.$ac_ext <<_ACEOF
27538 cat confdefs.h >>conftest.$ac_ext
27539 cat >>conftest.$ac_ext <<_ACEOF
27540 /* end confdefs.h. */
27542 /* Override any GCC internal prototype to avoid an error.
27543 Use char because int might match the return type of a GCC
27544 builtin and then its argument prototype would still apply. */
27548 char pthread_mutex_init ();
27552 return pthread_mutex_init ();
27557 rm -f conftest.$ac_objext conftest$ac_exeext
27558 if { (ac_try="$ac_link"
27559 case "(($ac_try" in
27560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27561 *) ac_try_echo=$ac_try;;
27563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27564 (eval "$ac_link") 2>conftest.er1
27566 grep -v '^ *+' conftest.er1 >conftest.err
27568 cat conftest.err >&5
27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570 (exit $ac_status); } &&
27571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27572 { (case "(($ac_try" in
27573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27574 *) ac_try_echo=$ac_try;;
27576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27577 (eval "$ac_try") 2>&5
27579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580 (exit $ac_status); }; } &&
27581 { ac_try='test -s conftest$ac_exeext'
27582 { (case "(($ac_try" in
27583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27584 *) ac_try_echo=$ac_try;;
27586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27587 (eval "$ac_try") 2>&5
27589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590 (exit $ac_status); }; }; then
27591 ac_cv_lib_pthread_pthread_mutex_init=yes
27593 echo "$as_me: failed program was:" >&5
27594 sed 's/^/| /' conftest.$ac_ext >&5
27596 ac_cv_lib_pthread_pthread_mutex_init=no
27599 rm -f core conftest.err conftest.$ac_objext \
27600 conftest$ac_exeext conftest.$ac_ext
27601 LIBS=$ac_check_lib_save_LIBS
27603 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27604 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27605 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27606 cat >>confdefs.h <<_ACEOF
27607 #define HAVE_LIBPTHREAD 1
27610 LIBS="-lpthread $LIBS"
27614 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27615 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27616 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27617 echo $ECHO_N "(cached) $ECHO_C" >&6
27619 ac_func_search_save_LIBS=$LIBS
27620 cat >conftest.$ac_ext <<_ACEOF
27623 cat confdefs.h >>conftest.$ac_ext
27624 cat >>conftest.$ac_ext <<_ACEOF
27625 /* end confdefs.h. */
27627 /* Override any GCC internal prototype to avoid an error.
27628 Use char because int might match the return type of a GCC
27629 builtin and then its argument prototype would still apply. */
27633 char pthread_mutex_lock ();
27637 return pthread_mutex_lock ();
27642 for ac_lib in '' pthread; do
27643 if test -z "$ac_lib"; then
27644 ac_res="none required"
27647 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27649 rm -f conftest.$ac_objext conftest$ac_exeext
27650 if { (ac_try="$ac_link"
27651 case "(($ac_try" in
27652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27653 *) ac_try_echo=$ac_try;;
27655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27656 (eval "$ac_link") 2>conftest.er1
27658 grep -v '^ *+' conftest.er1 >conftest.err
27660 cat conftest.err >&5
27661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662 (exit $ac_status); } &&
27663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27664 { (case "(($ac_try" in
27665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27666 *) ac_try_echo=$ac_try;;
27668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27669 (eval "$ac_try") 2>&5
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); }; } &&
27673 { ac_try='test -s conftest$ac_exeext'
27674 { (case "(($ac_try" in
27675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27676 *) ac_try_echo=$ac_try;;
27678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27679 (eval "$ac_try") 2>&5
27681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27682 (exit $ac_status); }; }; then
27683 ac_cv_search_pthread_mutex_lock=$ac_res
27685 echo "$as_me: failed program was:" >&5
27686 sed 's/^/| /' conftest.$ac_ext >&5
27691 rm -f core conftest.err conftest.$ac_objext \
27693 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27697 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27700 ac_cv_search_pthread_mutex_lock=no
27702 rm conftest.$ac_ext
27703 LIBS=$ac_func_search_save_LIBS
27705 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27706 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27707 ac_res=$ac_cv_search_pthread_mutex_lock
27708 if test "$ac_res" != no; then
27709 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27711 cat >>confdefs.h <<\_ACEOF
27712 #define HAVE_PTHREAD_MUTEX_LOCK 1
27720 # Check whether --with-udis86 was given.
27721 if test "${with_udis86+set}" = set; then
27722 withval=$with_udis86;
27727 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27730 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27731 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27732 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27733 echo $ECHO_N "(cached) $ECHO_C" >&6
27735 ac_check_lib_save_LIBS=$LIBS
27736 LIBS="-ludis86 $LIBS"
27737 cat >conftest.$ac_ext <<_ACEOF
27740 cat confdefs.h >>conftest.$ac_ext
27741 cat >>conftest.$ac_ext <<_ACEOF
27742 /* end confdefs.h. */
27744 /* Override any GCC internal prototype to avoid an error.
27745 Use char because int might match the return type of a GCC
27746 builtin and then its argument prototype would still apply. */
27759 rm -f conftest.$ac_objext conftest$ac_exeext
27760 if { (ac_try="$ac_link"
27761 case "(($ac_try" in
27762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27763 *) ac_try_echo=$ac_try;;
27765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27766 (eval "$ac_link") 2>conftest.er1
27768 grep -v '^ *+' conftest.er1 >conftest.err
27770 cat conftest.err >&5
27771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772 (exit $ac_status); } &&
27773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27774 { (case "(($ac_try" in
27775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27776 *) ac_try_echo=$ac_try;;
27778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27779 (eval "$ac_try") 2>&5
27781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782 (exit $ac_status); }; } &&
27783 { ac_try='test -s conftest$ac_exeext'
27784 { (case "(($ac_try" in
27785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27786 *) ac_try_echo=$ac_try;;
27788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27789 (eval "$ac_try") 2>&5
27791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792 (exit $ac_status); }; }; then
27793 ac_cv_lib_udis86_ud_init=yes
27795 echo "$as_me: failed program was:" >&5
27796 sed 's/^/| /' conftest.$ac_ext >&5
27798 ac_cv_lib_udis86_ud_init=no
27801 rm -f core conftest.err conftest.$ac_objext \
27802 conftest$ac_exeext conftest.$ac_ext
27803 LIBS=$ac_check_lib_save_LIBS
27805 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27806 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27807 if test $ac_cv_lib_udis86_ud_init = yes; then
27808 cat >>confdefs.h <<_ACEOF
27809 #define HAVE_LIBUDIS86 1
27812 LIBS="-ludis86 $LIBS"
27816 echo "Error! You need to have libudis86 around."
27828 cat >>confdefs.h <<_ACEOF
27829 #define USE_UDIS86 $USE_UDIS86
27839 ac_header_dirent=no
27840 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27841 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27842 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27843 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27845 echo $ECHO_N "(cached) $ECHO_C" >&6
27847 cat >conftest.$ac_ext <<_ACEOF
27850 cat confdefs.h >>conftest.$ac_ext
27851 cat >>conftest.$ac_ext <<_ACEOF
27852 /* end confdefs.h. */
27853 #include <sys/types.h>
27865 rm -f conftest.$ac_objext
27866 if { (ac_try="$ac_compile"
27867 case "(($ac_try" in
27868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27869 *) ac_try_echo=$ac_try;;
27871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27872 (eval "$ac_compile") 2>conftest.er1
27874 grep -v '^ *+' conftest.er1 >conftest.err
27876 cat conftest.err >&5
27877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878 (exit $ac_status); } &&
27879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27880 { (case "(($ac_try" in
27881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27882 *) ac_try_echo=$ac_try;;
27884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27885 (eval "$ac_try") 2>&5
27887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888 (exit $ac_status); }; } &&
27889 { ac_try='test -s conftest.$ac_objext'
27890 { (case "(($ac_try" in
27891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27892 *) ac_try_echo=$ac_try;;
27894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27895 (eval "$ac_try") 2>&5
27897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898 (exit $ac_status); }; }; then
27899 eval "$as_ac_Header=yes"
27901 echo "$as_me: failed program was:" >&5
27902 sed 's/^/| /' conftest.$ac_ext >&5
27904 eval "$as_ac_Header=no"
27907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27909 ac_res=`eval echo '${'$as_ac_Header'}'`
27910 { echo "$as_me:$LINENO: result: $ac_res" >&5
27911 echo "${ECHO_T}$ac_res" >&6; }
27912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27913 cat >>confdefs.h <<_ACEOF
27914 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27917 ac_header_dirent=$ac_hdr; break
27921 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27922 if test $ac_header_dirent = dirent.h; then
27923 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27924 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27925 if test "${ac_cv_search_opendir+set}" = set; then
27926 echo $ECHO_N "(cached) $ECHO_C" >&6
27928 ac_func_search_save_LIBS=$LIBS
27929 cat >conftest.$ac_ext <<_ACEOF
27932 cat confdefs.h >>conftest.$ac_ext
27933 cat >>conftest.$ac_ext <<_ACEOF
27934 /* end confdefs.h. */
27936 /* Override any GCC internal prototype to avoid an error.
27937 Use char because int might match the return type of a GCC
27938 builtin and then its argument prototype would still apply. */
27951 for ac_lib in '' dir; do
27952 if test -z "$ac_lib"; then
27953 ac_res="none required"
27956 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27958 rm -f conftest.$ac_objext conftest$ac_exeext
27959 if { (ac_try="$ac_link"
27960 case "(($ac_try" in
27961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27962 *) ac_try_echo=$ac_try;;
27964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27965 (eval "$ac_link") 2>conftest.er1
27967 grep -v '^ *+' conftest.er1 >conftest.err
27969 cat conftest.err >&5
27970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971 (exit $ac_status); } &&
27972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27973 { (case "(($ac_try" in
27974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27975 *) ac_try_echo=$ac_try;;
27977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27978 (eval "$ac_try") 2>&5
27980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981 (exit $ac_status); }; } &&
27982 { ac_try='test -s conftest$ac_exeext'
27983 { (case "(($ac_try" in
27984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27985 *) ac_try_echo=$ac_try;;
27987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27988 (eval "$ac_try") 2>&5
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); }; }; then
27992 ac_cv_search_opendir=$ac_res
27994 echo "$as_me: failed program was:" >&5
27995 sed 's/^/| /' conftest.$ac_ext >&5
28000 rm -f core conftest.err conftest.$ac_objext \
28002 if test "${ac_cv_search_opendir+set}" = set; then
28006 if test "${ac_cv_search_opendir+set}" = set; then
28009 ac_cv_search_opendir=no
28011 rm conftest.$ac_ext
28012 LIBS=$ac_func_search_save_LIBS
28014 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28015 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28016 ac_res=$ac_cv_search_opendir
28017 if test "$ac_res" != no; then
28018 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28023 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28024 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28025 if test "${ac_cv_search_opendir+set}" = set; then
28026 echo $ECHO_N "(cached) $ECHO_C" >&6
28028 ac_func_search_save_LIBS=$LIBS
28029 cat >conftest.$ac_ext <<_ACEOF
28032 cat confdefs.h >>conftest.$ac_ext
28033 cat >>conftest.$ac_ext <<_ACEOF
28034 /* end confdefs.h. */
28036 /* Override any GCC internal prototype to avoid an error.
28037 Use char because int might match the return type of a GCC
28038 builtin and then its argument prototype would still apply. */
28051 for ac_lib in '' x; do
28052 if test -z "$ac_lib"; then
28053 ac_res="none required"
28056 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28058 rm -f conftest.$ac_objext conftest$ac_exeext
28059 if { (ac_try="$ac_link"
28060 case "(($ac_try" in
28061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28062 *) ac_try_echo=$ac_try;;
28064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28065 (eval "$ac_link") 2>conftest.er1
28067 grep -v '^ *+' conftest.er1 >conftest.err
28069 cat conftest.err >&5
28070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28071 (exit $ac_status); } &&
28072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28073 { (case "(($ac_try" in
28074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28075 *) ac_try_echo=$ac_try;;
28077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28078 (eval "$ac_try") 2>&5
28080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081 (exit $ac_status); }; } &&
28082 { ac_try='test -s conftest$ac_exeext'
28083 { (case "(($ac_try" in
28084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085 *) ac_try_echo=$ac_try;;
28087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088 (eval "$ac_try") 2>&5
28090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091 (exit $ac_status); }; }; then
28092 ac_cv_search_opendir=$ac_res
28094 echo "$as_me: failed program was:" >&5
28095 sed 's/^/| /' conftest.$ac_ext >&5
28100 rm -f core conftest.err conftest.$ac_objext \
28102 if test "${ac_cv_search_opendir+set}" = set; then
28106 if test "${ac_cv_search_opendir+set}" = set; then
28109 ac_cv_search_opendir=no
28111 rm conftest.$ac_ext
28112 LIBS=$ac_func_search_save_LIBS
28114 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28115 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28116 ac_res=$ac_cv_search_opendir
28117 if test "$ac_res" != no; then
28118 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28124 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28125 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28126 if test "${ac_cv_header_mmap_anon+set}" = set; then
28127 echo $ECHO_N "(cached) $ECHO_C" >&6
28130 ac_cpp='$CPP $CPPFLAGS'
28131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28135 cat >conftest.$ac_ext <<_ACEOF
28138 cat confdefs.h >>conftest.$ac_ext
28139 cat >>conftest.$ac_ext <<_ACEOF
28140 /* end confdefs.h. */
28141 #include <sys/mman.h>
28142 #include <unistd.h>
28147 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28152 rm -f conftest.$ac_objext
28153 if { (ac_try="$ac_compile"
28154 case "(($ac_try" in
28155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28156 *) ac_try_echo=$ac_try;;
28158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28159 (eval "$ac_compile") 2>conftest.er1
28161 grep -v '^ *+' conftest.er1 >conftest.err
28163 cat conftest.err >&5
28164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28165 (exit $ac_status); } &&
28166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28167 { (case "(($ac_try" in
28168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28169 *) ac_try_echo=$ac_try;;
28171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28172 (eval "$ac_try") 2>&5
28174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28175 (exit $ac_status); }; } &&
28176 { ac_try='test -s conftest.$ac_objext'
28177 { (case "(($ac_try" in
28178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28179 *) ac_try_echo=$ac_try;;
28181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28182 (eval "$ac_try") 2>&5
28184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28185 (exit $ac_status); }; }; then
28186 ac_cv_header_mmap_anon=yes
28188 echo "$as_me: failed program was:" >&5
28189 sed 's/^/| /' conftest.$ac_ext >&5
28191 ac_cv_header_mmap_anon=no
28194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28196 ac_cpp='$CPP $CPPFLAGS'
28197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28203 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28204 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28205 if test "$ac_cv_header_mmap_anon" = yes; then
28207 cat >>confdefs.h <<\_ACEOF
28208 #define HAVE_MMAP_ANONYMOUS 1
28213 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28214 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28215 if test "${ac_cv_header_stat_broken+set}" = set; then
28216 echo $ECHO_N "(cached) $ECHO_C" >&6
28218 cat >conftest.$ac_ext <<_ACEOF
28221 cat confdefs.h >>conftest.$ac_ext
28222 cat >>conftest.$ac_ext <<_ACEOF
28223 /* end confdefs.h. */
28224 #include <sys/types.h>
28225 #include <sys/stat.h>
28227 #if defined S_ISBLK && defined S_IFDIR
28228 # if S_ISBLK (S_IFDIR)
28233 #if defined S_ISBLK && defined S_IFCHR
28234 # if S_ISBLK (S_IFCHR)
28239 #if defined S_ISLNK && defined S_IFREG
28240 # if S_ISLNK (S_IFREG)
28245 #if defined S_ISSOCK && defined S_IFREG
28246 # if S_ISSOCK (S_IFREG)
28252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28253 $EGREP "You lose" >/dev/null 2>&1; then
28254 ac_cv_header_stat_broken=yes
28256 ac_cv_header_stat_broken=no
28261 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28262 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28263 if test $ac_cv_header_stat_broken = yes; then
28265 cat >>confdefs.h <<\_ACEOF
28266 #define STAT_MACROS_BROKEN 1
28271 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28272 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28273 if test "${ac_cv_header_stdc+set}" = set; then
28274 echo $ECHO_N "(cached) $ECHO_C" >&6
28276 cat >conftest.$ac_ext <<_ACEOF
28279 cat confdefs.h >>conftest.$ac_ext
28280 cat >>conftest.$ac_ext <<_ACEOF
28281 /* end confdefs.h. */
28282 #include <stdlib.h>
28283 #include <stdarg.h>
28284 #include <string.h>
28295 rm -f conftest.$ac_objext
28296 if { (ac_try="$ac_compile"
28297 case "(($ac_try" in
28298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28299 *) ac_try_echo=$ac_try;;
28301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28302 (eval "$ac_compile") 2>conftest.er1
28304 grep -v '^ *+' conftest.er1 >conftest.err
28306 cat conftest.err >&5
28307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308 (exit $ac_status); } &&
28309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28310 { (case "(($ac_try" in
28311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28312 *) ac_try_echo=$ac_try;;
28314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28315 (eval "$ac_try") 2>&5
28317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28318 (exit $ac_status); }; } &&
28319 { ac_try='test -s conftest.$ac_objext'
28320 { (case "(($ac_try" in
28321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28322 *) ac_try_echo=$ac_try;;
28324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28325 (eval "$ac_try") 2>&5
28327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28328 (exit $ac_status); }; }; then
28329 ac_cv_header_stdc=yes
28331 echo "$as_me: failed program was:" >&5
28332 sed 's/^/| /' conftest.$ac_ext >&5
28334 ac_cv_header_stdc=no
28337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28339 if test $ac_cv_header_stdc = yes; then
28340 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28341 cat >conftest.$ac_ext <<_ACEOF
28344 cat confdefs.h >>conftest.$ac_ext
28345 cat >>conftest.$ac_ext <<_ACEOF
28346 /* end confdefs.h. */
28347 #include <string.h>
28350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28351 $EGREP "memchr" >/dev/null 2>&1; then
28354 ac_cv_header_stdc=no
28360 if test $ac_cv_header_stdc = yes; then
28361 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28362 cat >conftest.$ac_ext <<_ACEOF
28365 cat confdefs.h >>conftest.$ac_ext
28366 cat >>conftest.$ac_ext <<_ACEOF
28367 /* end confdefs.h. */
28368 #include <stdlib.h>
28371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28372 $EGREP "free" >/dev/null 2>&1; then
28375 ac_cv_header_stdc=no
28381 if test $ac_cv_header_stdc = yes; then
28382 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28383 if test "$cross_compiling" = yes; then
28386 cat >conftest.$ac_ext <<_ACEOF
28389 cat confdefs.h >>conftest.$ac_ext
28390 cat >>conftest.$ac_ext <<_ACEOF
28391 /* end confdefs.h. */
28393 #include <stdlib.h>
28394 #if ((' ' & 0x0FF) == 0x020)
28395 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28396 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28398 # define ISLOWER(c) \
28399 (('a' <= (c) && (c) <= 'i') \
28400 || ('j' <= (c) && (c) <= 'r') \
28401 || ('s' <= (c) && (c) <= 'z'))
28402 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28405 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28410 for (i = 0; i < 256; i++)
28411 if (XOR (islower (i), ISLOWER (i))
28412 || toupper (i) != TOUPPER (i))
28417 rm -f conftest$ac_exeext
28418 if { (ac_try="$ac_link"
28419 case "(($ac_try" in
28420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28421 *) ac_try_echo=$ac_try;;
28423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28424 (eval "$ac_link") 2>&5
28426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28428 { (case "(($ac_try" in
28429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28430 *) ac_try_echo=$ac_try;;
28432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28433 (eval "$ac_try") 2>&5
28435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436 (exit $ac_status); }; }; then
28439 echo "$as_me: program exited with status $ac_status" >&5
28440 echo "$as_me: failed program was:" >&5
28441 sed 's/^/| /' conftest.$ac_ext >&5
28443 ( exit $ac_status )
28444 ac_cv_header_stdc=no
28446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28452 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28453 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28454 if test $ac_cv_header_stdc = yes; then
28456 cat >>confdefs.h <<\_ACEOF
28457 #define STDC_HEADERS 1
28462 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28463 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28464 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28465 echo $ECHO_N "(cached) $ECHO_C" >&6
28467 cat >conftest.$ac_ext <<_ACEOF
28470 cat confdefs.h >>conftest.$ac_ext
28471 cat >>conftest.$ac_ext <<_ACEOF
28472 /* end confdefs.h. */
28473 #include <sys/types.h>
28474 #include <sys/wait.h>
28475 #ifndef WEXITSTATUS
28476 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28479 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28487 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28492 rm -f conftest.$ac_objext
28493 if { (ac_try="$ac_compile"
28494 case "(($ac_try" in
28495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28496 *) ac_try_echo=$ac_try;;
28498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28499 (eval "$ac_compile") 2>conftest.er1
28501 grep -v '^ *+' conftest.er1 >conftest.err
28503 cat conftest.err >&5
28504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28505 (exit $ac_status); } &&
28506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28507 { (case "(($ac_try" in
28508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28509 *) ac_try_echo=$ac_try;;
28511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28512 (eval "$ac_try") 2>&5
28514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515 (exit $ac_status); }; } &&
28516 { ac_try='test -s conftest.$ac_objext'
28517 { (case "(($ac_try" in
28518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28519 *) ac_try_echo=$ac_try;;
28521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28522 (eval "$ac_try") 2>&5
28524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525 (exit $ac_status); }; }; then
28526 ac_cv_header_sys_wait_h=yes
28528 echo "$as_me: failed program was:" >&5
28529 sed 's/^/| /' conftest.$ac_ext >&5
28531 ac_cv_header_sys_wait_h=no
28534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28536 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28537 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28538 if test $ac_cv_header_sys_wait_h = yes; then
28540 cat >>confdefs.h <<\_ACEOF
28541 #define HAVE_SYS_WAIT_H 1
28546 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28547 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28548 if test "${ac_cv_header_time+set}" = set; then
28549 echo $ECHO_N "(cached) $ECHO_C" >&6
28551 cat >conftest.$ac_ext <<_ACEOF
28554 cat confdefs.h >>conftest.$ac_ext
28555 cat >>conftest.$ac_ext <<_ACEOF
28556 /* end confdefs.h. */
28557 #include <sys/types.h>
28558 #include <sys/time.h>
28564 if ((struct tm *) 0)
28570 rm -f conftest.$ac_objext
28571 if { (ac_try="$ac_compile"
28572 case "(($ac_try" in
28573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28574 *) ac_try_echo=$ac_try;;
28576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28577 (eval "$ac_compile") 2>conftest.er1
28579 grep -v '^ *+' conftest.er1 >conftest.err
28581 cat conftest.err >&5
28582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28583 (exit $ac_status); } &&
28584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28585 { (case "(($ac_try" in
28586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28587 *) ac_try_echo=$ac_try;;
28589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28590 (eval "$ac_try") 2>&5
28592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593 (exit $ac_status); }; } &&
28594 { ac_try='test -s conftest.$ac_objext'
28595 { (case "(($ac_try" in
28596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28597 *) ac_try_echo=$ac_try;;
28599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28600 (eval "$ac_try") 2>&5
28602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603 (exit $ac_status); }; }; then
28604 ac_cv_header_time=yes
28606 echo "$as_me: failed program was:" >&5
28607 sed 's/^/| /' conftest.$ac_ext >&5
28609 ac_cv_header_time=no
28612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28614 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28615 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28616 if test $ac_cv_header_time = yes; then
28618 cat >>confdefs.h <<\_ACEOF
28619 #define TIME_WITH_SYS_TIME 1
28631 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28638 echo $ECHO_N "(cached) $ECHO_C" >&6
28640 ac_res=`eval echo '${'$as_ac_Header'}'`
28641 { echo "$as_me:$LINENO: result: $ac_res" >&5
28642 echo "${ECHO_T}$ac_res" >&6; }
28644 # Is the header compilable?
28645 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28647 cat >conftest.$ac_ext <<_ACEOF
28650 cat confdefs.h >>conftest.$ac_ext
28651 cat >>conftest.$ac_ext <<_ACEOF
28652 /* end confdefs.h. */
28653 $ac_includes_default
28654 #include <$ac_header>
28656 rm -f conftest.$ac_objext
28657 if { (ac_try="$ac_compile"
28658 case "(($ac_try" in
28659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28660 *) ac_try_echo=$ac_try;;
28662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28663 (eval "$ac_compile") 2>conftest.er1
28665 grep -v '^ *+' conftest.er1 >conftest.err
28667 cat conftest.err >&5
28668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669 (exit $ac_status); } &&
28670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28671 { (case "(($ac_try" in
28672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28673 *) ac_try_echo=$ac_try;;
28675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28676 (eval "$ac_try") 2>&5
28678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679 (exit $ac_status); }; } &&
28680 { ac_try='test -s conftest.$ac_objext'
28681 { (case "(($ac_try" in
28682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28683 *) ac_try_echo=$ac_try;;
28685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28686 (eval "$ac_try") 2>&5
28688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689 (exit $ac_status); }; }; then
28690 ac_header_compiler=yes
28692 echo "$as_me: failed program was:" >&5
28693 sed 's/^/| /' conftest.$ac_ext >&5
28695 ac_header_compiler=no
28698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28699 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28700 echo "${ECHO_T}$ac_header_compiler" >&6; }
28702 # Is the header present?
28703 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28705 cat >conftest.$ac_ext <<_ACEOF
28708 cat confdefs.h >>conftest.$ac_ext
28709 cat >>conftest.$ac_ext <<_ACEOF
28710 /* end confdefs.h. */
28711 #include <$ac_header>
28713 if { (ac_try="$ac_cpp conftest.$ac_ext"
28714 case "(($ac_try" in
28715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28716 *) ac_try_echo=$ac_try;;
28718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28721 grep -v '^ *+' conftest.er1 >conftest.err
28723 cat conftest.err >&5
28724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28725 (exit $ac_status); } >/dev/null; then
28726 if test -s conftest.err; then
28727 ac_cpp_err=$ac_c_preproc_warn_flag
28728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28735 if test -z "$ac_cpp_err"; then
28736 ac_header_preproc=yes
28738 echo "$as_me: failed program was:" >&5
28739 sed 's/^/| /' conftest.$ac_ext >&5
28741 ac_header_preproc=no
28744 rm -f conftest.err conftest.$ac_ext
28745 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28746 echo "${ECHO_T}$ac_header_preproc" >&6; }
28748 # So? What about this header?
28749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28755 ac_header_preproc=yes
28758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28765 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28771 ## ----------------------------------- ##
28772 ## Report this to llvmbugs@cs.uiuc.edu ##
28773 ## ----------------------------------- ##
28775 ) | sed "s/^/$as_me: WARNING: /" >&2
28778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28781 echo $ECHO_N "(cached) $ECHO_C" >&6
28783 eval "$as_ac_Header=\$ac_header_preproc"
28785 ac_res=`eval echo '${'$as_ac_Header'}'`
28786 { echo "$as_me:$LINENO: result: $ac_res" >&5
28787 echo "${ECHO_T}$ac_res" >&6; }
28790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28791 cat >>confdefs.h <<_ACEOF
28792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28805 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28812 echo $ECHO_N "(cached) $ECHO_C" >&6
28814 ac_res=`eval echo '${'$as_ac_Header'}'`
28815 { echo "$as_me:$LINENO: result: $ac_res" >&5
28816 echo "${ECHO_T}$ac_res" >&6; }
28818 # Is the header compilable?
28819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28821 cat >conftest.$ac_ext <<_ACEOF
28824 cat confdefs.h >>conftest.$ac_ext
28825 cat >>conftest.$ac_ext <<_ACEOF
28826 /* end confdefs.h. */
28827 $ac_includes_default
28828 #include <$ac_header>
28830 rm -f conftest.$ac_objext
28831 if { (ac_try="$ac_compile"
28832 case "(($ac_try" in
28833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28834 *) ac_try_echo=$ac_try;;
28836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28837 (eval "$ac_compile") 2>conftest.er1
28839 grep -v '^ *+' conftest.er1 >conftest.err
28841 cat conftest.err >&5
28842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843 (exit $ac_status); } &&
28844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28845 { (case "(($ac_try" in
28846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28847 *) ac_try_echo=$ac_try;;
28849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28850 (eval "$ac_try") 2>&5
28852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853 (exit $ac_status); }; } &&
28854 { ac_try='test -s conftest.$ac_objext'
28855 { (case "(($ac_try" in
28856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28857 *) ac_try_echo=$ac_try;;
28859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28860 (eval "$ac_try") 2>&5
28862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863 (exit $ac_status); }; }; then
28864 ac_header_compiler=yes
28866 echo "$as_me: failed program was:" >&5
28867 sed 's/^/| /' conftest.$ac_ext >&5
28869 ac_header_compiler=no
28872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28874 echo "${ECHO_T}$ac_header_compiler" >&6; }
28876 # Is the header present?
28877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28879 cat >conftest.$ac_ext <<_ACEOF
28882 cat confdefs.h >>conftest.$ac_ext
28883 cat >>conftest.$ac_ext <<_ACEOF
28884 /* end confdefs.h. */
28885 #include <$ac_header>
28887 if { (ac_try="$ac_cpp conftest.$ac_ext"
28888 case "(($ac_try" in
28889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28890 *) ac_try_echo=$ac_try;;
28892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28895 grep -v '^ *+' conftest.er1 >conftest.err
28897 cat conftest.err >&5
28898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28899 (exit $ac_status); } >/dev/null; then
28900 if test -s conftest.err; then
28901 ac_cpp_err=$ac_c_preproc_warn_flag
28902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28909 if test -z "$ac_cpp_err"; then
28910 ac_header_preproc=yes
28912 echo "$as_me: failed program was:" >&5
28913 sed 's/^/| /' conftest.$ac_ext >&5
28915 ac_header_preproc=no
28918 rm -f conftest.err conftest.$ac_ext
28919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28920 echo "${ECHO_T}$ac_header_preproc" >&6; }
28922 # So? What about this header?
28923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28929 ac_header_preproc=yes
28932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28939 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28945 ## ----------------------------------- ##
28946 ## Report this to llvmbugs@cs.uiuc.edu ##
28947 ## ----------------------------------- ##
28949 ) | sed "s/^/$as_me: WARNING: /" >&2
28952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28955 echo $ECHO_N "(cached) $ECHO_C" >&6
28957 eval "$as_ac_Header=\$ac_header_preproc"
28959 ac_res=`eval echo '${'$as_ac_Header'}'`
28960 { echo "$as_me:$LINENO: result: $ac_res" >&5
28961 echo "${ECHO_T}$ac_res" >&6; }
28964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28965 cat >>confdefs.h <<_ACEOF
28966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28974 for ac_header in windows.h
28976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28981 echo $ECHO_N "(cached) $ECHO_C" >&6
28983 ac_res=`eval echo '${'$as_ac_Header'}'`
28984 { echo "$as_me:$LINENO: result: $ac_res" >&5
28985 echo "${ECHO_T}$ac_res" >&6; }
28987 # Is the header compilable?
28988 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28990 cat >conftest.$ac_ext <<_ACEOF
28993 cat confdefs.h >>conftest.$ac_ext
28994 cat >>conftest.$ac_ext <<_ACEOF
28995 /* end confdefs.h. */
28996 $ac_includes_default
28997 #include <$ac_header>
28999 rm -f conftest.$ac_objext
29000 if { (ac_try="$ac_compile"
29001 case "(($ac_try" in
29002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29003 *) ac_try_echo=$ac_try;;
29005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29006 (eval "$ac_compile") 2>conftest.er1
29008 grep -v '^ *+' conftest.er1 >conftest.err
29010 cat conftest.err >&5
29011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012 (exit $ac_status); } &&
29013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29014 { (case "(($ac_try" in
29015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29016 *) ac_try_echo=$ac_try;;
29018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29019 (eval "$ac_try") 2>&5
29021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022 (exit $ac_status); }; } &&
29023 { ac_try='test -s conftest.$ac_objext'
29024 { (case "(($ac_try" in
29025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29026 *) ac_try_echo=$ac_try;;
29028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29029 (eval "$ac_try") 2>&5
29031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29032 (exit $ac_status); }; }; then
29033 ac_header_compiler=yes
29035 echo "$as_me: failed program was:" >&5
29036 sed 's/^/| /' conftest.$ac_ext >&5
29038 ac_header_compiler=no
29041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29042 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29043 echo "${ECHO_T}$ac_header_compiler" >&6; }
29045 # Is the header present?
29046 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29047 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29048 cat >conftest.$ac_ext <<_ACEOF
29051 cat confdefs.h >>conftest.$ac_ext
29052 cat >>conftest.$ac_ext <<_ACEOF
29053 /* end confdefs.h. */
29054 #include <$ac_header>
29056 if { (ac_try="$ac_cpp conftest.$ac_ext"
29057 case "(($ac_try" in
29058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29059 *) ac_try_echo=$ac_try;;
29061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29064 grep -v '^ *+' conftest.er1 >conftest.err
29066 cat conftest.err >&5
29067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29068 (exit $ac_status); } >/dev/null; then
29069 if test -s conftest.err; then
29070 ac_cpp_err=$ac_c_preproc_warn_flag
29071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29078 if test -z "$ac_cpp_err"; then
29079 ac_header_preproc=yes
29081 echo "$as_me: failed program was:" >&5
29082 sed 's/^/| /' conftest.$ac_ext >&5
29084 ac_header_preproc=no
29087 rm -f conftest.err conftest.$ac_ext
29088 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29089 echo "${ECHO_T}$ac_header_preproc" >&6; }
29091 # So? What about this header?
29092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29097 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29098 ac_header_preproc=yes
29101 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29103 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29104 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29105 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29106 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29107 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29108 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29111 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29112 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29114 ## ----------------------------------- ##
29115 ## Report this to llvmbugs@cs.uiuc.edu ##
29116 ## ----------------------------------- ##
29118 ) | sed "s/^/$as_me: WARNING: /" >&2
29121 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29124 echo $ECHO_N "(cached) $ECHO_C" >&6
29126 eval "$as_ac_Header=\$ac_header_preproc"
29128 ac_res=`eval echo '${'$as_ac_Header'}'`
29129 { echo "$as_me:$LINENO: result: $ac_res" >&5
29130 echo "${ECHO_T}$ac_res" >&6; }
29133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29134 cat >>confdefs.h <<_ACEOF
29135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29146 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29153 echo $ECHO_N "(cached) $ECHO_C" >&6
29155 ac_res=`eval echo '${'$as_ac_Header'}'`
29156 { echo "$as_me:$LINENO: result: $ac_res" >&5
29157 echo "${ECHO_T}$ac_res" >&6; }
29159 # Is the header compilable?
29160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29162 cat >conftest.$ac_ext <<_ACEOF
29165 cat confdefs.h >>conftest.$ac_ext
29166 cat >>conftest.$ac_ext <<_ACEOF
29167 /* end confdefs.h. */
29168 $ac_includes_default
29169 #include <$ac_header>
29171 rm -f conftest.$ac_objext
29172 if { (ac_try="$ac_compile"
29173 case "(($ac_try" in
29174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29175 *) ac_try_echo=$ac_try;;
29177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29178 (eval "$ac_compile") 2>conftest.er1
29180 grep -v '^ *+' conftest.er1 >conftest.err
29182 cat conftest.err >&5
29183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184 (exit $ac_status); } &&
29185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29186 { (case "(($ac_try" in
29187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29188 *) ac_try_echo=$ac_try;;
29190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29191 (eval "$ac_try") 2>&5
29193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29194 (exit $ac_status); }; } &&
29195 { ac_try='test -s conftest.$ac_objext'
29196 { (case "(($ac_try" in
29197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29198 *) ac_try_echo=$ac_try;;
29200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29201 (eval "$ac_try") 2>&5
29203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204 (exit $ac_status); }; }; then
29205 ac_header_compiler=yes
29207 echo "$as_me: failed program was:" >&5
29208 sed 's/^/| /' conftest.$ac_ext >&5
29210 ac_header_compiler=no
29213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29215 echo "${ECHO_T}$ac_header_compiler" >&6; }
29217 # Is the header present?
29218 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29220 cat >conftest.$ac_ext <<_ACEOF
29223 cat confdefs.h >>conftest.$ac_ext
29224 cat >>conftest.$ac_ext <<_ACEOF
29225 /* end confdefs.h. */
29226 #include <$ac_header>
29228 if { (ac_try="$ac_cpp conftest.$ac_ext"
29229 case "(($ac_try" in
29230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29231 *) ac_try_echo=$ac_try;;
29233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29236 grep -v '^ *+' conftest.er1 >conftest.err
29238 cat conftest.err >&5
29239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240 (exit $ac_status); } >/dev/null; then
29241 if test -s conftest.err; then
29242 ac_cpp_err=$ac_c_preproc_warn_flag
29243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29250 if test -z "$ac_cpp_err"; then
29251 ac_header_preproc=yes
29253 echo "$as_me: failed program was:" >&5
29254 sed 's/^/| /' conftest.$ac_ext >&5
29256 ac_header_preproc=no
29259 rm -f conftest.err conftest.$ac_ext
29260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29261 echo "${ECHO_T}$ac_header_preproc" >&6; }
29263 # So? What about this header?
29264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29270 ac_header_preproc=yes
29273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29286 ## ----------------------------------- ##
29287 ## Report this to llvmbugs@cs.uiuc.edu ##
29288 ## ----------------------------------- ##
29290 ) | sed "s/^/$as_me: WARNING: /" >&2
29293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29296 echo $ECHO_N "(cached) $ECHO_C" >&6
29298 eval "$as_ac_Header=\$ac_header_preproc"
29300 ac_res=`eval echo '${'$as_ac_Header'}'`
29301 { echo "$as_me:$LINENO: result: $ac_res" >&5
29302 echo "${ECHO_T}$ac_res" >&6; }
29305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29306 cat >>confdefs.h <<_ACEOF
29307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29317 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29324 echo $ECHO_N "(cached) $ECHO_C" >&6
29326 ac_res=`eval echo '${'$as_ac_Header'}'`
29327 { echo "$as_me:$LINENO: result: $ac_res" >&5
29328 echo "${ECHO_T}$ac_res" >&6; }
29330 # Is the header compilable?
29331 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29333 cat >conftest.$ac_ext <<_ACEOF
29336 cat confdefs.h >>conftest.$ac_ext
29337 cat >>conftest.$ac_ext <<_ACEOF
29338 /* end confdefs.h. */
29339 $ac_includes_default
29340 #include <$ac_header>
29342 rm -f conftest.$ac_objext
29343 if { (ac_try="$ac_compile"
29344 case "(($ac_try" in
29345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29346 *) ac_try_echo=$ac_try;;
29348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29349 (eval "$ac_compile") 2>conftest.er1
29351 grep -v '^ *+' conftest.er1 >conftest.err
29353 cat conftest.err >&5
29354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355 (exit $ac_status); } &&
29356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29357 { (case "(($ac_try" in
29358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29359 *) ac_try_echo=$ac_try;;
29361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29362 (eval "$ac_try") 2>&5
29364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29365 (exit $ac_status); }; } &&
29366 { ac_try='test -s conftest.$ac_objext'
29367 { (case "(($ac_try" in
29368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29369 *) ac_try_echo=$ac_try;;
29371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29372 (eval "$ac_try") 2>&5
29374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29375 (exit $ac_status); }; }; then
29376 ac_header_compiler=yes
29378 echo "$as_me: failed program was:" >&5
29379 sed 's/^/| /' conftest.$ac_ext >&5
29381 ac_header_compiler=no
29384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29386 echo "${ECHO_T}$ac_header_compiler" >&6; }
29388 # Is the header present?
29389 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29391 cat >conftest.$ac_ext <<_ACEOF
29394 cat confdefs.h >>conftest.$ac_ext
29395 cat >>conftest.$ac_ext <<_ACEOF
29396 /* end confdefs.h. */
29397 #include <$ac_header>
29399 if { (ac_try="$ac_cpp conftest.$ac_ext"
29400 case "(($ac_try" in
29401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29402 *) ac_try_echo=$ac_try;;
29404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29407 grep -v '^ *+' conftest.er1 >conftest.err
29409 cat conftest.err >&5
29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411 (exit $ac_status); } >/dev/null; then
29412 if test -s conftest.err; then
29413 ac_cpp_err=$ac_c_preproc_warn_flag
29414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29421 if test -z "$ac_cpp_err"; then
29422 ac_header_preproc=yes
29424 echo "$as_me: failed program was:" >&5
29425 sed 's/^/| /' conftest.$ac_ext >&5
29427 ac_header_preproc=no
29430 rm -f conftest.err conftest.$ac_ext
29431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29432 echo "${ECHO_T}$ac_header_preproc" >&6; }
29434 # So? What about this header?
29435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29441 ac_header_preproc=yes
29444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29457 ## ----------------------------------- ##
29458 ## Report this to llvmbugs@cs.uiuc.edu ##
29459 ## ----------------------------------- ##
29461 ) | sed "s/^/$as_me: WARNING: /" >&2
29464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29467 echo $ECHO_N "(cached) $ECHO_C" >&6
29469 eval "$as_ac_Header=\$ac_header_preproc"
29471 ac_res=`eval echo '${'$as_ac_Header'}'`
29472 { echo "$as_me:$LINENO: result: $ac_res" >&5
29473 echo "${ECHO_T}$ac_res" >&6; }
29476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29477 cat >>confdefs.h <<_ACEOF
29478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29485 if test "$ENABLE_THREADS" -eq 1 ; then
29487 for ac_header in pthread.h
29489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29494 echo $ECHO_N "(cached) $ECHO_C" >&6
29496 ac_res=`eval echo '${'$as_ac_Header'}'`
29497 { echo "$as_me:$LINENO: result: $ac_res" >&5
29498 echo "${ECHO_T}$ac_res" >&6; }
29500 # Is the header compilable?
29501 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29503 cat >conftest.$ac_ext <<_ACEOF
29506 cat confdefs.h >>conftest.$ac_ext
29507 cat >>conftest.$ac_ext <<_ACEOF
29508 /* end confdefs.h. */
29509 $ac_includes_default
29510 #include <$ac_header>
29512 rm -f conftest.$ac_objext
29513 if { (ac_try="$ac_compile"
29514 case "(($ac_try" in
29515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29516 *) ac_try_echo=$ac_try;;
29518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29519 (eval "$ac_compile") 2>conftest.er1
29521 grep -v '^ *+' conftest.er1 >conftest.err
29523 cat conftest.err >&5
29524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29525 (exit $ac_status); } &&
29526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29527 { (case "(($ac_try" in
29528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29529 *) ac_try_echo=$ac_try;;
29531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29532 (eval "$ac_try") 2>&5
29534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535 (exit $ac_status); }; } &&
29536 { ac_try='test -s conftest.$ac_objext'
29537 { (case "(($ac_try" in
29538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29539 *) ac_try_echo=$ac_try;;
29541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29542 (eval "$ac_try") 2>&5
29544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545 (exit $ac_status); }; }; then
29546 ac_header_compiler=yes
29548 echo "$as_me: failed program was:" >&5
29549 sed 's/^/| /' conftest.$ac_ext >&5
29551 ac_header_compiler=no
29554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29556 echo "${ECHO_T}$ac_header_compiler" >&6; }
29558 # Is the header present?
29559 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29561 cat >conftest.$ac_ext <<_ACEOF
29564 cat confdefs.h >>conftest.$ac_ext
29565 cat >>conftest.$ac_ext <<_ACEOF
29566 /* end confdefs.h. */
29567 #include <$ac_header>
29569 if { (ac_try="$ac_cpp conftest.$ac_ext"
29570 case "(($ac_try" in
29571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29572 *) ac_try_echo=$ac_try;;
29574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29577 grep -v '^ *+' conftest.er1 >conftest.err
29579 cat conftest.err >&5
29580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581 (exit $ac_status); } >/dev/null; then
29582 if test -s conftest.err; then
29583 ac_cpp_err=$ac_c_preproc_warn_flag
29584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29591 if test -z "$ac_cpp_err"; then
29592 ac_header_preproc=yes
29594 echo "$as_me: failed program was:" >&5
29595 sed 's/^/| /' conftest.$ac_ext >&5
29597 ac_header_preproc=no
29600 rm -f conftest.err conftest.$ac_ext
29601 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29602 echo "${ECHO_T}$ac_header_preproc" >&6; }
29604 # So? What about this header?
29605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29608 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29610 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29611 ac_header_preproc=yes
29614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29617 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29619 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29621 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29625 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29627 ## ----------------------------------- ##
29628 ## Report this to llvmbugs@cs.uiuc.edu ##
29629 ## ----------------------------------- ##
29631 ) | sed "s/^/$as_me: WARNING: /" >&2
29634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29637 echo $ECHO_N "(cached) $ECHO_C" >&6
29639 eval "$as_ac_Header=\$ac_header_preproc"
29641 ac_res=`eval echo '${'$as_ac_Header'}'`
29642 { echo "$as_me:$LINENO: result: $ac_res" >&5
29643 echo "${ECHO_T}$ac_res" >&6; }
29646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29647 cat >>confdefs.h <<_ACEOF
29648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29664 if test -n "$have_libffi" ; then
29667 for ac_header in ffi.h ffi/ffi.h
29669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29674 echo $ECHO_N "(cached) $ECHO_C" >&6
29676 ac_res=`eval echo '${'$as_ac_Header'}'`
29677 { echo "$as_me:$LINENO: result: $ac_res" >&5
29678 echo "${ECHO_T}$ac_res" >&6; }
29680 # Is the header compilable?
29681 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29683 cat >conftest.$ac_ext <<_ACEOF
29686 cat confdefs.h >>conftest.$ac_ext
29687 cat >>conftest.$ac_ext <<_ACEOF
29688 /* end confdefs.h. */
29689 $ac_includes_default
29690 #include <$ac_header>
29692 rm -f conftest.$ac_objext
29693 if { (ac_try="$ac_compile"
29694 case "(($ac_try" in
29695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29696 *) ac_try_echo=$ac_try;;
29698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29699 (eval "$ac_compile") 2>conftest.er1
29701 grep -v '^ *+' conftest.er1 >conftest.err
29703 cat conftest.err >&5
29704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705 (exit $ac_status); } &&
29706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29707 { (case "(($ac_try" in
29708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29709 *) ac_try_echo=$ac_try;;
29711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29712 (eval "$ac_try") 2>&5
29714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715 (exit $ac_status); }; } &&
29716 { ac_try='test -s conftest.$ac_objext'
29717 { (case "(($ac_try" in
29718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29719 *) ac_try_echo=$ac_try;;
29721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29722 (eval "$ac_try") 2>&5
29724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29725 (exit $ac_status); }; }; then
29726 ac_header_compiler=yes
29728 echo "$as_me: failed program was:" >&5
29729 sed 's/^/| /' conftest.$ac_ext >&5
29731 ac_header_compiler=no
29734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29736 echo "${ECHO_T}$ac_header_compiler" >&6; }
29738 # Is the header present?
29739 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29741 cat >conftest.$ac_ext <<_ACEOF
29744 cat confdefs.h >>conftest.$ac_ext
29745 cat >>conftest.$ac_ext <<_ACEOF
29746 /* end confdefs.h. */
29747 #include <$ac_header>
29749 if { (ac_try="$ac_cpp conftest.$ac_ext"
29750 case "(($ac_try" in
29751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29752 *) ac_try_echo=$ac_try;;
29754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29757 grep -v '^ *+' conftest.er1 >conftest.err
29759 cat conftest.err >&5
29760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761 (exit $ac_status); } >/dev/null; then
29762 if test -s conftest.err; then
29763 ac_cpp_err=$ac_c_preproc_warn_flag
29764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29771 if test -z "$ac_cpp_err"; then
29772 ac_header_preproc=yes
29774 echo "$as_me: failed program was:" >&5
29775 sed 's/^/| /' conftest.$ac_ext >&5
29777 ac_header_preproc=no
29780 rm -f conftest.err conftest.$ac_ext
29781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29782 echo "${ECHO_T}$ac_header_preproc" >&6; }
29784 # So? What about this header?
29785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29791 ac_header_preproc=yes
29794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29807 ## ----------------------------------- ##
29808 ## Report this to llvmbugs@cs.uiuc.edu ##
29809 ## ----------------------------------- ##
29811 ) | sed "s/^/$as_me: WARNING: /" >&2
29814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29817 echo $ECHO_N "(cached) $ECHO_C" >&6
29819 eval "$as_ac_Header=\$ac_header_preproc"
29821 ac_res=`eval echo '${'$as_ac_Header'}'`
29822 { echo "$as_me:$LINENO: result: $ac_res" >&5
29823 echo "${ECHO_T}$ac_res" >&6; }
29826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29827 cat >>confdefs.h <<_ACEOF
29828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29840 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29841 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29842 if test "${ac_cv_huge_val_sanity+set}" = set; then
29843 echo $ECHO_N "(cached) $ECHO_C" >&6
29847 ac_cpp='$CXXCPP $CPPFLAGS'
29848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29853 if test "$cross_compiling" = yes; then
29854 ac_cv_huge_val_sanity=yes
29856 cat >conftest.$ac_ext <<_ACEOF
29859 cat confdefs.h >>conftest.$ac_ext
29860 cat >>conftest.$ac_ext <<_ACEOF
29861 /* end confdefs.h. */
29866 double x = HUGE_VAL; return x != x;
29871 rm -f conftest$ac_exeext
29872 if { (ac_try="$ac_link"
29873 case "(($ac_try" in
29874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29875 *) ac_try_echo=$ac_try;;
29877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29878 (eval "$ac_link") 2>&5
29880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29882 { (case "(($ac_try" in
29883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29884 *) ac_try_echo=$ac_try;;
29886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29887 (eval "$ac_try") 2>&5
29889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890 (exit $ac_status); }; }; then
29891 ac_cv_huge_val_sanity=yes
29893 echo "$as_me: program exited with status $ac_status" >&5
29894 echo "$as_me: failed program was:" >&5
29895 sed 's/^/| /' conftest.$ac_ext >&5
29897 ( exit $ac_status )
29898 ac_cv_huge_val_sanity=no
29900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29905 ac_cpp='$CPP $CPPFLAGS'
29906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29912 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29913 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29914 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29917 { echo "$as_me:$LINENO: checking for pid_t" >&5
29918 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29919 if test "${ac_cv_type_pid_t+set}" = set; then
29920 echo $ECHO_N "(cached) $ECHO_C" >&6
29922 cat >conftest.$ac_ext <<_ACEOF
29925 cat confdefs.h >>conftest.$ac_ext
29926 cat >>conftest.$ac_ext <<_ACEOF
29927 /* end confdefs.h. */
29928 $ac_includes_default
29929 typedef pid_t ac__type_new_;
29933 if ((ac__type_new_ *) 0)
29935 if (sizeof (ac__type_new_))
29941 rm -f conftest.$ac_objext
29942 if { (ac_try="$ac_compile"
29943 case "(($ac_try" in
29944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29945 *) ac_try_echo=$ac_try;;
29947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29948 (eval "$ac_compile") 2>conftest.er1
29950 grep -v '^ *+' conftest.er1 >conftest.err
29952 cat conftest.err >&5
29953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29954 (exit $ac_status); } &&
29955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29956 { (case "(($ac_try" in
29957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29958 *) ac_try_echo=$ac_try;;
29960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29961 (eval "$ac_try") 2>&5
29963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964 (exit $ac_status); }; } &&
29965 { ac_try='test -s conftest.$ac_objext'
29966 { (case "(($ac_try" in
29967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29968 *) ac_try_echo=$ac_try;;
29970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29971 (eval "$ac_try") 2>&5
29973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974 (exit $ac_status); }; }; then
29975 ac_cv_type_pid_t=yes
29977 echo "$as_me: failed program was:" >&5
29978 sed 's/^/| /' conftest.$ac_ext >&5
29980 ac_cv_type_pid_t=no
29983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29985 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29986 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29987 if test $ac_cv_type_pid_t = yes; then
29991 cat >>confdefs.h <<_ACEOF
29997 { echo "$as_me:$LINENO: checking for size_t" >&5
29998 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29999 if test "${ac_cv_type_size_t+set}" = set; then
30000 echo $ECHO_N "(cached) $ECHO_C" >&6
30002 cat >conftest.$ac_ext <<_ACEOF
30005 cat confdefs.h >>conftest.$ac_ext
30006 cat >>conftest.$ac_ext <<_ACEOF
30007 /* end confdefs.h. */
30008 $ac_includes_default
30009 typedef size_t ac__type_new_;
30013 if ((ac__type_new_ *) 0)
30015 if (sizeof (ac__type_new_))
30021 rm -f conftest.$ac_objext
30022 if { (ac_try="$ac_compile"
30023 case "(($ac_try" in
30024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30025 *) ac_try_echo=$ac_try;;
30027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30028 (eval "$ac_compile") 2>conftest.er1
30030 grep -v '^ *+' conftest.er1 >conftest.err
30032 cat conftest.err >&5
30033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30034 (exit $ac_status); } &&
30035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30036 { (case "(($ac_try" in
30037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30038 *) ac_try_echo=$ac_try;;
30040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30041 (eval "$ac_try") 2>&5
30043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044 (exit $ac_status); }; } &&
30045 { ac_try='test -s conftest.$ac_objext'
30046 { (case "(($ac_try" in
30047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30048 *) ac_try_echo=$ac_try;;
30050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30051 (eval "$ac_try") 2>&5
30053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054 (exit $ac_status); }; }; then
30055 ac_cv_type_size_t=yes
30057 echo "$as_me: failed program was:" >&5
30058 sed 's/^/| /' conftest.$ac_ext >&5
30060 ac_cv_type_size_t=no
30063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30065 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30066 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30067 if test $ac_cv_type_size_t = yes; then
30071 cat >>confdefs.h <<_ACEOF
30072 #define size_t unsigned int
30077 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30078 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30079 if test "${ac_cv_type_signal+set}" = set; then
30080 echo $ECHO_N "(cached) $ECHO_C" >&6
30082 cat >conftest.$ac_ext <<_ACEOF
30085 cat confdefs.h >>conftest.$ac_ext
30086 cat >>conftest.$ac_ext <<_ACEOF
30087 /* end confdefs.h. */
30088 #include <sys/types.h>
30089 #include <signal.h>
30094 return *(signal (0, 0)) (0) == 1;
30099 rm -f conftest.$ac_objext
30100 if { (ac_try="$ac_compile"
30101 case "(($ac_try" in
30102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30103 *) ac_try_echo=$ac_try;;
30105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30106 (eval "$ac_compile") 2>conftest.er1
30108 grep -v '^ *+' conftest.er1 >conftest.err
30110 cat conftest.err >&5
30111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30112 (exit $ac_status); } &&
30113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30114 { (case "(($ac_try" in
30115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30116 *) ac_try_echo=$ac_try;;
30118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30119 (eval "$ac_try") 2>&5
30121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122 (exit $ac_status); }; } &&
30123 { ac_try='test -s conftest.$ac_objext'
30124 { (case "(($ac_try" in
30125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30126 *) ac_try_echo=$ac_try;;
30128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30129 (eval "$ac_try") 2>&5
30131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132 (exit $ac_status); }; }; then
30133 ac_cv_type_signal=int
30135 echo "$as_me: failed program was:" >&5
30136 sed 's/^/| /' conftest.$ac_ext >&5
30138 ac_cv_type_signal=void
30141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30143 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30144 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30146 cat >>confdefs.h <<_ACEOF
30147 #define RETSIGTYPE $ac_cv_type_signal
30151 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30152 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30153 if test "${ac_cv_struct_tm+set}" = set; then
30154 echo $ECHO_N "(cached) $ECHO_C" >&6
30156 cat >conftest.$ac_ext <<_ACEOF
30159 cat confdefs.h >>conftest.$ac_ext
30160 cat >>conftest.$ac_ext <<_ACEOF
30161 /* end confdefs.h. */
30162 #include <sys/types.h>
30168 struct tm *tp; tp->tm_sec;
30173 rm -f conftest.$ac_objext
30174 if { (ac_try="$ac_compile"
30175 case "(($ac_try" in
30176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30177 *) ac_try_echo=$ac_try;;
30179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30180 (eval "$ac_compile") 2>conftest.er1
30182 grep -v '^ *+' conftest.er1 >conftest.err
30184 cat conftest.err >&5
30185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30186 (exit $ac_status); } &&
30187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30188 { (case "(($ac_try" in
30189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30190 *) ac_try_echo=$ac_try;;
30192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30193 (eval "$ac_try") 2>&5
30195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196 (exit $ac_status); }; } &&
30197 { ac_try='test -s conftest.$ac_objext'
30198 { (case "(($ac_try" in
30199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30200 *) ac_try_echo=$ac_try;;
30202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30203 (eval "$ac_try") 2>&5
30205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); }; }; then
30207 ac_cv_struct_tm=time.h
30209 echo "$as_me: failed program was:" >&5
30210 sed 's/^/| /' conftest.$ac_ext >&5
30212 ac_cv_struct_tm=sys/time.h
30215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30217 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30218 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30219 if test $ac_cv_struct_tm = sys/time.h; then
30221 cat >>confdefs.h <<\_ACEOF
30222 #define TM_IN_SYS_TIME 1
30227 { echo "$as_me:$LINENO: checking for int64_t" >&5
30228 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30229 if test "${ac_cv_type_int64_t+set}" = set; then
30230 echo $ECHO_N "(cached) $ECHO_C" >&6
30232 cat >conftest.$ac_ext <<_ACEOF
30235 cat confdefs.h >>conftest.$ac_ext
30236 cat >>conftest.$ac_ext <<_ACEOF
30237 /* end confdefs.h. */
30238 $ac_includes_default
30239 typedef int64_t ac__type_new_;
30243 if ((ac__type_new_ *) 0)
30245 if (sizeof (ac__type_new_))
30251 rm -f conftest.$ac_objext
30252 if { (ac_try="$ac_compile"
30253 case "(($ac_try" in
30254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30255 *) ac_try_echo=$ac_try;;
30257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30258 (eval "$ac_compile") 2>conftest.er1
30260 grep -v '^ *+' conftest.er1 >conftest.err
30262 cat conftest.err >&5
30263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30264 (exit $ac_status); } &&
30265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30266 { (case "(($ac_try" in
30267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30268 *) ac_try_echo=$ac_try;;
30270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30271 (eval "$ac_try") 2>&5
30273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30274 (exit $ac_status); }; } &&
30275 { ac_try='test -s conftest.$ac_objext'
30276 { (case "(($ac_try" in
30277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30278 *) ac_try_echo=$ac_try;;
30280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30281 (eval "$ac_try") 2>&5
30283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); }; }; then
30285 ac_cv_type_int64_t=yes
30287 echo "$as_me: failed program was:" >&5
30288 sed 's/^/| /' conftest.$ac_ext >&5
30290 ac_cv_type_int64_t=no
30293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30295 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30296 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30297 if test $ac_cv_type_int64_t = yes; then
30299 cat >>confdefs.h <<_ACEOF
30300 #define HAVE_INT64_T 1
30305 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30306 echo "$as_me: error: Type int64_t required but not found" >&2;}
30307 { (exit 1); exit 1; }; }
30310 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30311 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30312 if test "${ac_cv_type_uint64_t+set}" = set; then
30313 echo $ECHO_N "(cached) $ECHO_C" >&6
30315 cat >conftest.$ac_ext <<_ACEOF
30318 cat confdefs.h >>conftest.$ac_ext
30319 cat >>conftest.$ac_ext <<_ACEOF
30320 /* end confdefs.h. */
30321 $ac_includes_default
30322 typedef uint64_t ac__type_new_;
30326 if ((ac__type_new_ *) 0)
30328 if (sizeof (ac__type_new_))
30334 rm -f conftest.$ac_objext
30335 if { (ac_try="$ac_compile"
30336 case "(($ac_try" in
30337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30338 *) ac_try_echo=$ac_try;;
30340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30341 (eval "$ac_compile") 2>conftest.er1
30343 grep -v '^ *+' conftest.er1 >conftest.err
30345 cat conftest.err >&5
30346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347 (exit $ac_status); } &&
30348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30349 { (case "(($ac_try" in
30350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30351 *) ac_try_echo=$ac_try;;
30353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30354 (eval "$ac_try") 2>&5
30356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357 (exit $ac_status); }; } &&
30358 { ac_try='test -s conftest.$ac_objext'
30359 { (case "(($ac_try" in
30360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30361 *) ac_try_echo=$ac_try;;
30363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30364 (eval "$ac_try") 2>&5
30366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367 (exit $ac_status); }; }; then
30368 ac_cv_type_uint64_t=yes
30370 echo "$as_me: failed program was:" >&5
30371 sed 's/^/| /' conftest.$ac_ext >&5
30373 ac_cv_type_uint64_t=no
30376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30378 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30379 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30380 if test $ac_cv_type_uint64_t = yes; then
30382 cat >>confdefs.h <<_ACEOF
30383 #define HAVE_UINT64_T 1
30388 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30389 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30390 if test "${ac_cv_type_u_int64_t+set}" = set; then
30391 echo $ECHO_N "(cached) $ECHO_C" >&6
30393 cat >conftest.$ac_ext <<_ACEOF
30396 cat confdefs.h >>conftest.$ac_ext
30397 cat >>conftest.$ac_ext <<_ACEOF
30398 /* end confdefs.h. */
30399 $ac_includes_default
30400 typedef u_int64_t ac__type_new_;
30404 if ((ac__type_new_ *) 0)
30406 if (sizeof (ac__type_new_))
30412 rm -f conftest.$ac_objext
30413 if { (ac_try="$ac_compile"
30414 case "(($ac_try" in
30415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30416 *) ac_try_echo=$ac_try;;
30418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30419 (eval "$ac_compile") 2>conftest.er1
30421 grep -v '^ *+' conftest.er1 >conftest.err
30423 cat conftest.err >&5
30424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425 (exit $ac_status); } &&
30426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30427 { (case "(($ac_try" in
30428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30429 *) ac_try_echo=$ac_try;;
30431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30432 (eval "$ac_try") 2>&5
30434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435 (exit $ac_status); }; } &&
30436 { ac_try='test -s conftest.$ac_objext'
30437 { (case "(($ac_try" in
30438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30439 *) ac_try_echo=$ac_try;;
30441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30442 (eval "$ac_try") 2>&5
30444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445 (exit $ac_status); }; }; then
30446 ac_cv_type_u_int64_t=yes
30448 echo "$as_me: failed program was:" >&5
30449 sed 's/^/| /' conftest.$ac_ext >&5
30451 ac_cv_type_u_int64_t=no
30454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30456 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30457 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30458 if test $ac_cv_type_u_int64_t = yes; then
30460 cat >>confdefs.h <<_ACEOF
30461 #define HAVE_U_INT64_T 1
30466 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30467 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30468 { (exit 1); exit 1; }; }
30482 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30488 echo $ECHO_N "(cached) $ECHO_C" >&6
30490 cat >conftest.$ac_ext <<_ACEOF
30493 cat confdefs.h >>conftest.$ac_ext
30494 cat >>conftest.$ac_ext <<_ACEOF
30495 /* end confdefs.h. */
30496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30498 #define $ac_func innocuous_$ac_func
30500 /* System header to define __stub macros and hopefully few prototypes,
30501 which can conflict with char $ac_func (); below.
30502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30503 <limits.h> exists even on freestanding compilers. */
30506 # include <limits.h>
30508 # include <assert.h>
30513 /* Override any GCC internal prototype to avoid an error.
30514 Use char because int might match the return type of a GCC
30515 builtin and then its argument prototype would still apply. */
30520 /* The GNU C library defines this for functions which it implements
30521 to always fail with ENOSYS. Some functions are actually named
30522 something starting with __ and the normal name is an alias. */
30523 #if defined __stub_$ac_func || defined __stub___$ac_func
30530 return $ac_func ();
30535 rm -f conftest.$ac_objext conftest$ac_exeext
30536 if { (ac_try="$ac_link"
30537 case "(($ac_try" in
30538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30539 *) ac_try_echo=$ac_try;;
30541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30542 (eval "$ac_link") 2>conftest.er1
30544 grep -v '^ *+' conftest.er1 >conftest.err
30546 cat conftest.err >&5
30547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30548 (exit $ac_status); } &&
30549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30550 { (case "(($ac_try" in
30551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30552 *) ac_try_echo=$ac_try;;
30554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30555 (eval "$ac_try") 2>&5
30557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558 (exit $ac_status); }; } &&
30559 { ac_try='test -s conftest$ac_exeext'
30560 { (case "(($ac_try" in
30561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30562 *) ac_try_echo=$ac_try;;
30564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30565 (eval "$ac_try") 2>&5
30567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30568 (exit $ac_status); }; }; then
30569 eval "$as_ac_var=yes"
30571 echo "$as_me: failed program was:" >&5
30572 sed 's/^/| /' conftest.$ac_ext >&5
30574 eval "$as_ac_var=no"
30577 rm -f core conftest.err conftest.$ac_objext \
30578 conftest$ac_exeext conftest.$ac_ext
30580 ac_res=`eval echo '${'$as_ac_var'}'`
30581 { echo "$as_me:$LINENO: result: $ac_res" >&5
30582 echo "${ECHO_T}$ac_res" >&6; }
30583 if test `eval echo '${'$as_ac_var'}'` = yes; then
30584 cat >>confdefs.h <<_ACEOF
30585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30595 for ac_func in powf fmodf strtof round
30597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30598 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30600 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30601 echo $ECHO_N "(cached) $ECHO_C" >&6
30603 cat >conftest.$ac_ext <<_ACEOF
30606 cat confdefs.h >>conftest.$ac_ext
30607 cat >>conftest.$ac_ext <<_ACEOF
30608 /* end confdefs.h. */
30609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30611 #define $ac_func innocuous_$ac_func
30613 /* System header to define __stub macros and hopefully few prototypes,
30614 which can conflict with char $ac_func (); below.
30615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30616 <limits.h> exists even on freestanding compilers. */
30619 # include <limits.h>
30621 # include <assert.h>
30626 /* Override any GCC internal prototype to avoid an error.
30627 Use char because int might match the return type of a GCC
30628 builtin and then its argument prototype would still apply. */
30633 /* The GNU C library defines this for functions which it implements
30634 to always fail with ENOSYS. Some functions are actually named
30635 something starting with __ and the normal name is an alias. */
30636 #if defined __stub_$ac_func || defined __stub___$ac_func
30643 return $ac_func ();
30648 rm -f conftest.$ac_objext conftest$ac_exeext
30649 if { (ac_try="$ac_link"
30650 case "(($ac_try" in
30651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30652 *) ac_try_echo=$ac_try;;
30654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30655 (eval "$ac_link") 2>conftest.er1
30657 grep -v '^ *+' conftest.er1 >conftest.err
30659 cat conftest.err >&5
30660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30661 (exit $ac_status); } &&
30662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30663 { (case "(($ac_try" in
30664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30665 *) ac_try_echo=$ac_try;;
30667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30668 (eval "$ac_try") 2>&5
30670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30671 (exit $ac_status); }; } &&
30672 { ac_try='test -s conftest$ac_exeext'
30673 { (case "(($ac_try" in
30674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30675 *) ac_try_echo=$ac_try;;
30677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30678 (eval "$ac_try") 2>&5
30680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30681 (exit $ac_status); }; }; then
30682 eval "$as_ac_var=yes"
30684 echo "$as_me: failed program was:" >&5
30685 sed 's/^/| /' conftest.$ac_ext >&5
30687 eval "$as_ac_var=no"
30690 rm -f core conftest.err conftest.$ac_objext \
30691 conftest$ac_exeext conftest.$ac_ext
30693 ac_res=`eval echo '${'$as_ac_var'}'`
30694 { echo "$as_me:$LINENO: result: $ac_res" >&5
30695 echo "${ECHO_T}$ac_res" >&6; }
30696 if test `eval echo '${'$as_ac_var'}'` = yes; then
30697 cat >>confdefs.h <<_ACEOF
30698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30709 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30715 echo $ECHO_N "(cached) $ECHO_C" >&6
30717 cat >conftest.$ac_ext <<_ACEOF
30720 cat confdefs.h >>conftest.$ac_ext
30721 cat >>conftest.$ac_ext <<_ACEOF
30722 /* end confdefs.h. */
30723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30725 #define $ac_func innocuous_$ac_func
30727 /* System header to define __stub macros and hopefully few prototypes,
30728 which can conflict with char $ac_func (); below.
30729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30730 <limits.h> exists even on freestanding compilers. */
30733 # include <limits.h>
30735 # include <assert.h>
30740 /* Override any GCC internal prototype to avoid an error.
30741 Use char because int might match the return type of a GCC
30742 builtin and then its argument prototype would still apply. */
30747 /* The GNU C library defines this for functions which it implements
30748 to always fail with ENOSYS. Some functions are actually named
30749 something starting with __ and the normal name is an alias. */
30750 #if defined __stub_$ac_func || defined __stub___$ac_func
30757 return $ac_func ();
30762 rm -f conftest.$ac_objext conftest$ac_exeext
30763 if { (ac_try="$ac_link"
30764 case "(($ac_try" in
30765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30766 *) ac_try_echo=$ac_try;;
30768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30769 (eval "$ac_link") 2>conftest.er1
30771 grep -v '^ *+' conftest.er1 >conftest.err
30773 cat conftest.err >&5
30774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30775 (exit $ac_status); } &&
30776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30777 { (case "(($ac_try" in
30778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30779 *) ac_try_echo=$ac_try;;
30781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30782 (eval "$ac_try") 2>&5
30784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785 (exit $ac_status); }; } &&
30786 { ac_try='test -s conftest$ac_exeext'
30787 { (case "(($ac_try" in
30788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30789 *) ac_try_echo=$ac_try;;
30791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30792 (eval "$ac_try") 2>&5
30794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795 (exit $ac_status); }; }; then
30796 eval "$as_ac_var=yes"
30798 echo "$as_me: failed program was:" >&5
30799 sed 's/^/| /' conftest.$ac_ext >&5
30801 eval "$as_ac_var=no"
30804 rm -f core conftest.err conftest.$ac_objext \
30805 conftest$ac_exeext conftest.$ac_ext
30807 ac_res=`eval echo '${'$as_ac_var'}'`
30808 { echo "$as_me:$LINENO: result: $ac_res" >&5
30809 echo "${ECHO_T}$ac_res" >&6; }
30810 if test `eval echo '${'$as_ac_var'}'` = yes; then
30811 cat >>confdefs.h <<_ACEOF
30812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30821 for ac_func in isatty mkdtemp mkstemp
30823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30826 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30827 echo $ECHO_N "(cached) $ECHO_C" >&6
30829 cat >conftest.$ac_ext <<_ACEOF
30832 cat confdefs.h >>conftest.$ac_ext
30833 cat >>conftest.$ac_ext <<_ACEOF
30834 /* end confdefs.h. */
30835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30837 #define $ac_func innocuous_$ac_func
30839 /* System header to define __stub macros and hopefully few prototypes,
30840 which can conflict with char $ac_func (); below.
30841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30842 <limits.h> exists even on freestanding compilers. */
30845 # include <limits.h>
30847 # include <assert.h>
30852 /* Override any GCC internal prototype to avoid an error.
30853 Use char because int might match the return type of a GCC
30854 builtin and then its argument prototype would still apply. */
30859 /* The GNU C library defines this for functions which it implements
30860 to always fail with ENOSYS. Some functions are actually named
30861 something starting with __ and the normal name is an alias. */
30862 #if defined __stub_$ac_func || defined __stub___$ac_func
30869 return $ac_func ();
30874 rm -f conftest.$ac_objext conftest$ac_exeext
30875 if { (ac_try="$ac_link"
30876 case "(($ac_try" in
30877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30878 *) ac_try_echo=$ac_try;;
30880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30881 (eval "$ac_link") 2>conftest.er1
30883 grep -v '^ *+' conftest.er1 >conftest.err
30885 cat conftest.err >&5
30886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887 (exit $ac_status); } &&
30888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30889 { (case "(($ac_try" in
30890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30891 *) ac_try_echo=$ac_try;;
30893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30894 (eval "$ac_try") 2>&5
30896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897 (exit $ac_status); }; } &&
30898 { ac_try='test -s conftest$ac_exeext'
30899 { (case "(($ac_try" in
30900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30901 *) ac_try_echo=$ac_try;;
30903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30904 (eval "$ac_try") 2>&5
30906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30907 (exit $ac_status); }; }; then
30908 eval "$as_ac_var=yes"
30910 echo "$as_me: failed program was:" >&5
30911 sed 's/^/| /' conftest.$ac_ext >&5
30913 eval "$as_ac_var=no"
30916 rm -f core conftest.err conftest.$ac_objext \
30917 conftest$ac_exeext conftest.$ac_ext
30919 ac_res=`eval echo '${'$as_ac_var'}'`
30920 { echo "$as_me:$LINENO: result: $ac_res" >&5
30921 echo "${ECHO_T}$ac_res" >&6; }
30922 if test `eval echo '${'$as_ac_var'}'` = yes; then
30923 cat >>confdefs.h <<_ACEOF
30924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30937 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30940 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30943 echo $ECHO_N "(cached) $ECHO_C" >&6
30945 cat >conftest.$ac_ext <<_ACEOF
30948 cat confdefs.h >>conftest.$ac_ext
30949 cat >>conftest.$ac_ext <<_ACEOF
30950 /* end confdefs.h. */
30951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30953 #define $ac_func innocuous_$ac_func
30955 /* System header to define __stub macros and hopefully few prototypes,
30956 which can conflict with char $ac_func (); below.
30957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30958 <limits.h> exists even on freestanding compilers. */
30961 # include <limits.h>
30963 # include <assert.h>
30968 /* Override any GCC internal prototype to avoid an error.
30969 Use char because int might match the return type of a GCC
30970 builtin and then its argument prototype would still apply. */
30975 /* The GNU C library defines this for functions which it implements
30976 to always fail with ENOSYS. Some functions are actually named
30977 something starting with __ and the normal name is an alias. */
30978 #if defined __stub_$ac_func || defined __stub___$ac_func
30985 return $ac_func ();
30990 rm -f conftest.$ac_objext conftest$ac_exeext
30991 if { (ac_try="$ac_link"
30992 case "(($ac_try" in
30993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30994 *) ac_try_echo=$ac_try;;
30996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30997 (eval "$ac_link") 2>conftest.er1
30999 grep -v '^ *+' conftest.er1 >conftest.err
31001 cat conftest.err >&5
31002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31003 (exit $ac_status); } &&
31004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31005 { (case "(($ac_try" in
31006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31007 *) ac_try_echo=$ac_try;;
31009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31010 (eval "$ac_try") 2>&5
31012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31013 (exit $ac_status); }; } &&
31014 { ac_try='test -s conftest$ac_exeext'
31015 { (case "(($ac_try" in
31016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31017 *) ac_try_echo=$ac_try;;
31019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31020 (eval "$ac_try") 2>&5
31022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31023 (exit $ac_status); }; }; then
31024 eval "$as_ac_var=yes"
31026 echo "$as_me: failed program was:" >&5
31027 sed 's/^/| /' conftest.$ac_ext >&5
31029 eval "$as_ac_var=no"
31032 rm -f core conftest.err conftest.$ac_objext \
31033 conftest$ac_exeext conftest.$ac_ext
31035 ac_res=`eval echo '${'$as_ac_var'}'`
31036 { echo "$as_me:$LINENO: result: $ac_res" >&5
31037 echo "${ECHO_T}$ac_res" >&6; }
31038 if test `eval echo '${'$as_ac_var'}'` = yes; then
31039 cat >>confdefs.h <<_ACEOF
31040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31050 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31053 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31056 echo $ECHO_N "(cached) $ECHO_C" >&6
31058 cat >conftest.$ac_ext <<_ACEOF
31061 cat confdefs.h >>conftest.$ac_ext
31062 cat >>conftest.$ac_ext <<_ACEOF
31063 /* end confdefs.h. */
31064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31066 #define $ac_func innocuous_$ac_func
31068 /* System header to define __stub macros and hopefully few prototypes,
31069 which can conflict with char $ac_func (); below.
31070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31071 <limits.h> exists even on freestanding compilers. */
31074 # include <limits.h>
31076 # include <assert.h>
31081 /* Override any GCC internal prototype to avoid an error.
31082 Use char because int might match the return type of a GCC
31083 builtin and then its argument prototype would still apply. */
31088 /* The GNU C library defines this for functions which it implements
31089 to always fail with ENOSYS. Some functions are actually named
31090 something starting with __ and the normal name is an alias. */
31091 #if defined __stub_$ac_func || defined __stub___$ac_func
31098 return $ac_func ();
31103 rm -f conftest.$ac_objext conftest$ac_exeext
31104 if { (ac_try="$ac_link"
31105 case "(($ac_try" in
31106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31107 *) ac_try_echo=$ac_try;;
31109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31110 (eval "$ac_link") 2>conftest.er1
31112 grep -v '^ *+' conftest.er1 >conftest.err
31114 cat conftest.err >&5
31115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116 (exit $ac_status); } &&
31117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31118 { (case "(($ac_try" in
31119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31120 *) ac_try_echo=$ac_try;;
31122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31123 (eval "$ac_try") 2>&5
31125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126 (exit $ac_status); }; } &&
31127 { ac_try='test -s conftest$ac_exeext'
31128 { (case "(($ac_try" in
31129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31130 *) ac_try_echo=$ac_try;;
31132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31133 (eval "$ac_try") 2>&5
31135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31136 (exit $ac_status); }; }; then
31137 eval "$as_ac_var=yes"
31139 echo "$as_me: failed program was:" >&5
31140 sed 's/^/| /' conftest.$ac_ext >&5
31142 eval "$as_ac_var=no"
31145 rm -f core conftest.err conftest.$ac_objext \
31146 conftest$ac_exeext conftest.$ac_ext
31148 ac_res=`eval echo '${'$as_ac_var'}'`
31149 { echo "$as_me:$LINENO: result: $ac_res" >&5
31150 echo "${ECHO_T}$ac_res" >&6; }
31151 if test `eval echo '${'$as_ac_var'}'` = yes; then
31152 cat >>confdefs.h <<_ACEOF
31153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31163 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31166 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31168 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31169 echo $ECHO_N "(cached) $ECHO_C" >&6
31171 cat >conftest.$ac_ext <<_ACEOF
31174 cat confdefs.h >>conftest.$ac_ext
31175 cat >>conftest.$ac_ext <<_ACEOF
31176 /* end confdefs.h. */
31177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31179 #define $ac_func innocuous_$ac_func
31181 /* System header to define __stub macros and hopefully few prototypes,
31182 which can conflict with char $ac_func (); below.
31183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31184 <limits.h> exists even on freestanding compilers. */
31187 # include <limits.h>
31189 # include <assert.h>
31194 /* Override any GCC internal prototype to avoid an error.
31195 Use char because int might match the return type of a GCC
31196 builtin and then its argument prototype would still apply. */
31201 /* The GNU C library defines this for functions which it implements
31202 to always fail with ENOSYS. Some functions are actually named
31203 something starting with __ and the normal name is an alias. */
31204 #if defined __stub_$ac_func || defined __stub___$ac_func
31211 return $ac_func ();
31216 rm -f conftest.$ac_objext conftest$ac_exeext
31217 if { (ac_try="$ac_link"
31218 case "(($ac_try" in
31219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31220 *) ac_try_echo=$ac_try;;
31222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31223 (eval "$ac_link") 2>conftest.er1
31225 grep -v '^ *+' conftest.er1 >conftest.err
31227 cat conftest.err >&5
31228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229 (exit $ac_status); } &&
31230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31231 { (case "(($ac_try" in
31232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31233 *) ac_try_echo=$ac_try;;
31235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31236 (eval "$ac_try") 2>&5
31238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239 (exit $ac_status); }; } &&
31240 { ac_try='test -s conftest$ac_exeext'
31241 { (case "(($ac_try" in
31242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31243 *) ac_try_echo=$ac_try;;
31245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31246 (eval "$ac_try") 2>&5
31248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31249 (exit $ac_status); }; }; then
31250 eval "$as_ac_var=yes"
31252 echo "$as_me: failed program was:" >&5
31253 sed 's/^/| /' conftest.$ac_ext >&5
31255 eval "$as_ac_var=no"
31258 rm -f core conftest.err conftest.$ac_objext \
31259 conftest$ac_exeext conftest.$ac_ext
31261 ac_res=`eval echo '${'$as_ac_var'}'`
31262 { echo "$as_me:$LINENO: result: $ac_res" >&5
31263 echo "${ECHO_T}$ac_res" >&6; }
31264 if test `eval echo '${'$as_ac_var'}'` = yes; then
31265 cat >>confdefs.h <<_ACEOF
31266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31272 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31273 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31274 if test "${llvm_cv_c_printf_a+set}" = set; then
31275 echo $ECHO_N "(cached) $ECHO_C" >&6
31278 ac_cpp='$CPP $CPPFLAGS'
31279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31283 if test "$cross_compiling" = yes; then
31284 llvmac_cv_c_printf_a=no
31286 cat >conftest.$ac_ext <<_ACEOF
31290 cat confdefs.h >>conftest.$ac_ext
31291 cat >>conftest.$ac_ext <<_ACEOF
31292 /* end confdefs.h. */
31295 #include <stdlib.h>
31301 volatile double A, B;
31305 sprintf(Buffer, "%a", A);
31309 if (A != 0x1.999999999999ap-4)
31316 rm -f conftest$ac_exeext
31317 if { (ac_try="$ac_link"
31318 case "(($ac_try" in
31319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31320 *) ac_try_echo=$ac_try;;
31322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31323 (eval "$ac_link") 2>&5
31325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31327 { (case "(($ac_try" in
31328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31329 *) ac_try_echo=$ac_try;;
31331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31332 (eval "$ac_try") 2>&5
31334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31335 (exit $ac_status); }; }; then
31336 llvm_cv_c_printf_a=yes
31338 echo "$as_me: program exited with status $ac_status" >&5
31339 echo "$as_me: failed program was:" >&5
31340 sed 's/^/| /' conftest.$ac_ext >&5
31342 ( exit $ac_status )
31343 llvmac_cv_c_printf_a=no
31345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31350 ac_cpp='$CPP $CPPFLAGS'
31351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31356 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31357 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31358 if test "$llvm_cv_c_printf_a" = "yes"; then
31360 cat >>confdefs.h <<\_ACEOF
31361 #define HAVE_PRINTF_A 1
31366 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31367 # for constant arguments. Useless!
31368 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31369 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31370 if test "${ac_cv_working_alloca_h+set}" = set; then
31371 echo $ECHO_N "(cached) $ECHO_C" >&6
31373 cat >conftest.$ac_ext <<_ACEOF
31376 cat confdefs.h >>conftest.$ac_ext
31377 cat >>conftest.$ac_ext <<_ACEOF
31378 /* end confdefs.h. */
31379 #include <alloca.h>
31383 char *p = (char *) alloca (2 * sizeof (int));
31389 rm -f conftest.$ac_objext conftest$ac_exeext
31390 if { (ac_try="$ac_link"
31391 case "(($ac_try" in
31392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31393 *) ac_try_echo=$ac_try;;
31395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31396 (eval "$ac_link") 2>conftest.er1
31398 grep -v '^ *+' conftest.er1 >conftest.err
31400 cat conftest.err >&5
31401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31402 (exit $ac_status); } &&
31403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31404 { (case "(($ac_try" in
31405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31406 *) ac_try_echo=$ac_try;;
31408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31409 (eval "$ac_try") 2>&5
31411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31412 (exit $ac_status); }; } &&
31413 { ac_try='test -s conftest$ac_exeext'
31414 { (case "(($ac_try" in
31415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31416 *) ac_try_echo=$ac_try;;
31418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31419 (eval "$ac_try") 2>&5
31421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31422 (exit $ac_status); }; }; then
31423 ac_cv_working_alloca_h=yes
31425 echo "$as_me: failed program was:" >&5
31426 sed 's/^/| /' conftest.$ac_ext >&5
31428 ac_cv_working_alloca_h=no
31431 rm -f core conftest.err conftest.$ac_objext \
31432 conftest$ac_exeext conftest.$ac_ext
31434 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31435 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31436 if test $ac_cv_working_alloca_h = yes; then
31438 cat >>confdefs.h <<\_ACEOF
31439 #define HAVE_ALLOCA_H 1
31444 { echo "$as_me:$LINENO: checking for alloca" >&5
31445 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31446 if test "${ac_cv_func_alloca_works+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. */
31456 # define alloca __builtin_alloca
31459 # include <malloc.h>
31460 # define alloca _alloca
31463 # include <alloca.h>
31468 # ifndef alloca /* predefined by HP cc +Olibcalls */
31479 char *p = (char *) alloca (1);
31485 rm -f conftest.$ac_objext conftest$ac_exeext
31486 if { (ac_try="$ac_link"
31487 case "(($ac_try" in
31488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31489 *) ac_try_echo=$ac_try;;
31491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31492 (eval "$ac_link") 2>conftest.er1
31494 grep -v '^ *+' conftest.er1 >conftest.err
31496 cat conftest.err >&5
31497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31498 (exit $ac_status); } &&
31499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31500 { (case "(($ac_try" in
31501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31502 *) ac_try_echo=$ac_try;;
31504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31505 (eval "$ac_try") 2>&5
31507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508 (exit $ac_status); }; } &&
31509 { ac_try='test -s conftest$ac_exeext'
31510 { (case "(($ac_try" in
31511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31512 *) ac_try_echo=$ac_try;;
31514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31515 (eval "$ac_try") 2>&5
31517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31518 (exit $ac_status); }; }; then
31519 ac_cv_func_alloca_works=yes
31521 echo "$as_me: failed program was:" >&5
31522 sed 's/^/| /' conftest.$ac_ext >&5
31524 ac_cv_func_alloca_works=no
31527 rm -f core conftest.err conftest.$ac_objext \
31528 conftest$ac_exeext conftest.$ac_ext
31530 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31531 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31533 if test $ac_cv_func_alloca_works = yes; then
31535 cat >>confdefs.h <<\_ACEOF
31536 #define HAVE_ALLOCA 1
31540 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31541 # that cause trouble. Some versions do not even contain alloca or
31542 # contain a buggy version. If you still want to use their alloca,
31543 # use ar to extract alloca.o from them instead of compiling alloca.c.
31545 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31547 cat >>confdefs.h <<\_ACEOF
31552 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31553 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31554 if test "${ac_cv_os_cray+set}" = set; then
31555 echo $ECHO_N "(cached) $ECHO_C" >&6
31557 cat >conftest.$ac_ext <<_ACEOF
31560 cat confdefs.h >>conftest.$ac_ext
31561 cat >>conftest.$ac_ext <<_ACEOF
31562 /* end confdefs.h. */
31563 #if defined CRAY && ! defined CRAY2
31570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31571 $EGREP "webecray" >/dev/null 2>&1; then
31579 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31580 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31581 if test $ac_cv_os_cray = yes; then
31582 for ac_func in _getb67 GETB67 getb67; do
31583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31584 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31586 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31587 echo $ECHO_N "(cached) $ECHO_C" >&6
31589 cat >conftest.$ac_ext <<_ACEOF
31592 cat confdefs.h >>conftest.$ac_ext
31593 cat >>conftest.$ac_ext <<_ACEOF
31594 /* end confdefs.h. */
31595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31597 #define $ac_func innocuous_$ac_func
31599 /* System header to define __stub macros and hopefully few prototypes,
31600 which can conflict with char $ac_func (); below.
31601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31602 <limits.h> exists even on freestanding compilers. */
31605 # include <limits.h>
31607 # include <assert.h>
31612 /* Override any GCC internal prototype to avoid an error.
31613 Use char because int might match the return type of a GCC
31614 builtin and then its argument prototype would still apply. */
31619 /* The GNU C library defines this for functions which it implements
31620 to always fail with ENOSYS. Some functions are actually named
31621 something starting with __ and the normal name is an alias. */
31622 #if defined __stub_$ac_func || defined __stub___$ac_func
31629 return $ac_func ();
31634 rm -f conftest.$ac_objext conftest$ac_exeext
31635 if { (ac_try="$ac_link"
31636 case "(($ac_try" in
31637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31638 *) ac_try_echo=$ac_try;;
31640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31641 (eval "$ac_link") 2>conftest.er1
31643 grep -v '^ *+' conftest.er1 >conftest.err
31645 cat conftest.err >&5
31646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31647 (exit $ac_status); } &&
31648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31649 { (case "(($ac_try" in
31650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31651 *) ac_try_echo=$ac_try;;
31653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31654 (eval "$ac_try") 2>&5
31656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31657 (exit $ac_status); }; } &&
31658 { ac_try='test -s conftest$ac_exeext'
31659 { (case "(($ac_try" in
31660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31661 *) ac_try_echo=$ac_try;;
31663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31664 (eval "$ac_try") 2>&5
31666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31667 (exit $ac_status); }; }; then
31668 eval "$as_ac_var=yes"
31670 echo "$as_me: failed program was:" >&5
31671 sed 's/^/| /' conftest.$ac_ext >&5
31673 eval "$as_ac_var=no"
31676 rm -f core conftest.err conftest.$ac_objext \
31677 conftest$ac_exeext conftest.$ac_ext
31679 ac_res=`eval echo '${'$as_ac_var'}'`
31680 { echo "$as_me:$LINENO: result: $ac_res" >&5
31681 echo "${ECHO_T}$ac_res" >&6; }
31682 if test `eval echo '${'$as_ac_var'}'` = yes; then
31684 cat >>confdefs.h <<_ACEOF
31685 #define CRAY_STACKSEG_END $ac_func
31694 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31695 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31696 if test "${ac_cv_c_stack_direction+set}" = set; then
31697 echo $ECHO_N "(cached) $ECHO_C" >&6
31699 if test "$cross_compiling" = yes; then
31700 ac_cv_c_stack_direction=0
31702 cat >conftest.$ac_ext <<_ACEOF
31705 cat confdefs.h >>conftest.$ac_ext
31706 cat >>conftest.$ac_ext <<_ACEOF
31707 /* end confdefs.h. */
31708 $ac_includes_default
31710 find_stack_direction ()
31712 static char *addr = 0;
31717 return find_stack_direction ();
31720 return (&dummy > addr) ? 1 : -1;
31726 return find_stack_direction () < 0;
31729 rm -f conftest$ac_exeext
31730 if { (ac_try="$ac_link"
31731 case "(($ac_try" in
31732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31733 *) ac_try_echo=$ac_try;;
31735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31736 (eval "$ac_link") 2>&5
31738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31740 { (case "(($ac_try" in
31741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31742 *) ac_try_echo=$ac_try;;
31744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31745 (eval "$ac_try") 2>&5
31747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31748 (exit $ac_status); }; }; then
31749 ac_cv_c_stack_direction=1
31751 echo "$as_me: program exited with status $ac_status" >&5
31752 echo "$as_me: failed program was:" >&5
31753 sed 's/^/| /' conftest.$ac_ext >&5
31755 ( exit $ac_status )
31756 ac_cv_c_stack_direction=-1
31758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31763 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31764 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31766 cat >>confdefs.h <<_ACEOF
31767 #define STACK_DIRECTION $ac_cv_c_stack_direction
31774 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31775 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31776 if test "${ac_cv_func_rand48+set}" = set; then
31777 echo $ECHO_N "(cached) $ECHO_C" >&6
31780 ac_cpp='$CXXCPP $CPPFLAGS'
31781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31785 cat >conftest.$ac_ext <<_ACEOF
31788 cat confdefs.h >>conftest.$ac_ext
31789 cat >>conftest.$ac_ext <<_ACEOF
31790 /* end confdefs.h. */
31791 #include <stdlib.h>
31795 srand48(0);lrand48();drand48();
31800 rm -f conftest.$ac_objext
31801 if { (ac_try="$ac_compile"
31802 case "(($ac_try" in
31803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31804 *) ac_try_echo=$ac_try;;
31806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31807 (eval "$ac_compile") 2>conftest.er1
31809 grep -v '^ *+' conftest.er1 >conftest.err
31811 cat conftest.err >&5
31812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31813 (exit $ac_status); } &&
31814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31815 { (case "(($ac_try" in
31816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31817 *) ac_try_echo=$ac_try;;
31819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31820 (eval "$ac_try") 2>&5
31822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823 (exit $ac_status); }; } &&
31824 { ac_try='test -s conftest.$ac_objext'
31825 { (case "(($ac_try" in
31826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31827 *) ac_try_echo=$ac_try;;
31829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31830 (eval "$ac_try") 2>&5
31832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833 (exit $ac_status); }; }; then
31834 ac_cv_func_rand48=yes
31836 echo "$as_me: failed program was:" >&5
31837 sed 's/^/| /' conftest.$ac_ext >&5
31839 ac_cv_func_rand48=no
31842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31844 ac_cpp='$CPP $CPPFLAGS'
31845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31850 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31851 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31853 if test "$ac_cv_func_rand48" = "yes" ; then
31855 cat >>confdefs.h <<\_ACEOF
31856 #define HAVE_RAND48 1
31862 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31863 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31864 if test "${ac_cv_cxx_namespaces+set}" = set; then
31865 echo $ECHO_N "(cached) $ECHO_C" >&6
31868 ac_cpp='$CXXCPP $CPPFLAGS'
31869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31873 cat >conftest.$ac_ext <<_ACEOF
31876 cat confdefs.h >>conftest.$ac_ext
31877 cat >>conftest.$ac_ext <<_ACEOF
31878 /* end confdefs.h. */
31879 namespace Outer { namespace Inner { int i = 0; }}
31883 using namespace Outer::Inner; return i;
31888 rm -f conftest.$ac_objext
31889 if { (ac_try="$ac_compile"
31890 case "(($ac_try" in
31891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31892 *) ac_try_echo=$ac_try;;
31894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31895 (eval "$ac_compile") 2>conftest.er1
31897 grep -v '^ *+' conftest.er1 >conftest.err
31899 cat conftest.err >&5
31900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31901 (exit $ac_status); } &&
31902 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31903 { (case "(($ac_try" in
31904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31905 *) ac_try_echo=$ac_try;;
31907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31908 (eval "$ac_try") 2>&5
31910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31911 (exit $ac_status); }; } &&
31912 { ac_try='test -s conftest.$ac_objext'
31913 { (case "(($ac_try" in
31914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31915 *) ac_try_echo=$ac_try;;
31917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31918 (eval "$ac_try") 2>&5
31920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921 (exit $ac_status); }; }; then
31922 ac_cv_cxx_namespaces=yes
31924 echo "$as_me: failed program was:" >&5
31925 sed 's/^/| /' conftest.$ac_ext >&5
31927 ac_cv_cxx_namespaces=no
31930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31932 ac_cpp='$CPP $CPPFLAGS'
31933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31939 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31940 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31941 if test "$ac_cv_cxx_namespaces" = yes; then
31943 cat >>confdefs.h <<\_ACEOF
31944 #define HAVE_NAMESPACES
31949 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31950 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31951 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31952 echo $ECHO_N "(cached) $ECHO_C" >&6
31956 ac_cpp='$CXXCPP $CPPFLAGS'
31957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31961 cat >conftest.$ac_ext <<_ACEOF
31964 cat confdefs.h >>conftest.$ac_ext
31965 cat >>conftest.$ac_ext <<_ACEOF
31966 /* end confdefs.h. */
31967 #include <ext/hash_map>
31968 #ifdef HAVE_NAMESPACES
31969 using namespace std;
31974 hash_map<int, int> t;
31979 rm -f conftest.$ac_objext
31980 if { (ac_try="$ac_compile"
31981 case "(($ac_try" in
31982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31983 *) ac_try_echo=$ac_try;;
31985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31986 (eval "$ac_compile") 2>conftest.er1
31988 grep -v '^ *+' conftest.er1 >conftest.err
31990 cat conftest.err >&5
31991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31992 (exit $ac_status); } &&
31993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31994 { (case "(($ac_try" in
31995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31996 *) ac_try_echo=$ac_try;;
31998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31999 (eval "$ac_try") 2>&5
32001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32002 (exit $ac_status); }; } &&
32003 { ac_try='test -s conftest.$ac_objext'
32004 { (case "(($ac_try" in
32005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32006 *) ac_try_echo=$ac_try;;
32008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32009 (eval "$ac_try") 2>&5
32011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32012 (exit $ac_status); }; }; then
32013 ac_cv_cxx_have_std_ext_hash_map=yes
32015 echo "$as_me: failed program was:" >&5
32016 sed 's/^/| /' conftest.$ac_ext >&5
32018 ac_cv_cxx_have_std_ext_hash_map=no
32021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32023 ac_cpp='$CPP $CPPFLAGS'
32024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32029 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
32030 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
32031 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32034 cat >>confdefs.h <<\_ACEOF
32035 #define HAVE_STD_EXT_HASH_MAP 1
32040 cat >>confdefs.h <<\_ACEOF
32041 #define HAVE_STD_EXT_HASH_MAP 0
32046 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
32047 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
32048 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32049 echo $ECHO_N "(cached) $ECHO_C" >&6
32053 ac_cpp='$CXXCPP $CPPFLAGS'
32054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32058 cat >conftest.$ac_ext <<_ACEOF
32061 cat confdefs.h >>conftest.$ac_ext
32062 cat >>conftest.$ac_ext <<_ACEOF
32063 /* end confdefs.h. */
32064 #include <ext/hash_map>
32065 #ifdef HAVE_NAMESPACES
32066 using namespace __gnu_cxx;
32071 hash_map<int,int> t;
32076 rm -f conftest.$ac_objext
32077 if { (ac_try="$ac_compile"
32078 case "(($ac_try" in
32079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32080 *) ac_try_echo=$ac_try;;
32082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32083 (eval "$ac_compile") 2>conftest.er1
32085 grep -v '^ *+' conftest.er1 >conftest.err
32087 cat conftest.err >&5
32088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089 (exit $ac_status); } &&
32090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32091 { (case "(($ac_try" in
32092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32093 *) ac_try_echo=$ac_try;;
32095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32096 (eval "$ac_try") 2>&5
32098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32099 (exit $ac_status); }; } &&
32100 { ac_try='test -s conftest.$ac_objext'
32101 { (case "(($ac_try" in
32102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32103 *) ac_try_echo=$ac_try;;
32105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32106 (eval "$ac_try") 2>&5
32108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109 (exit $ac_status); }; }; then
32110 ac_cv_cxx_have_gnu_ext_hash_map=yes
32112 echo "$as_me: failed program was:" >&5
32113 sed 's/^/| /' conftest.$ac_ext >&5
32115 ac_cv_cxx_have_gnu_ext_hash_map=no
32118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32120 ac_cpp='$CPP $CPPFLAGS'
32121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32126 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32127 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32128 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32131 cat >>confdefs.h <<\_ACEOF
32132 #define HAVE_GNU_EXT_HASH_MAP 1
32137 cat >>confdefs.h <<\_ACEOF
32138 #define HAVE_GNU_EXT_HASH_MAP 0
32143 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32144 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32145 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32146 echo $ECHO_N "(cached) $ECHO_C" >&6
32150 ac_cpp='$CXXCPP $CPPFLAGS'
32151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32155 cat >conftest.$ac_ext <<_ACEOF
32158 cat confdefs.h >>conftest.$ac_ext
32159 cat >>conftest.$ac_ext <<_ACEOF
32160 /* end confdefs.h. */
32161 #include <hash_map>
32165 hash_map<int,int> t;
32170 rm -f conftest.$ac_objext
32171 if { (ac_try="$ac_compile"
32172 case "(($ac_try" in
32173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32174 *) ac_try_echo=$ac_try;;
32176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32177 (eval "$ac_compile") 2>conftest.er1
32179 grep -v '^ *+' conftest.er1 >conftest.err
32181 cat conftest.err >&5
32182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183 (exit $ac_status); } &&
32184 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32185 { (case "(($ac_try" in
32186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32187 *) ac_try_echo=$ac_try;;
32189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32190 (eval "$ac_try") 2>&5
32192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32193 (exit $ac_status); }; } &&
32194 { ac_try='test -s conftest.$ac_objext'
32195 { (case "(($ac_try" in
32196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32197 *) ac_try_echo=$ac_try;;
32199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32200 (eval "$ac_try") 2>&5
32202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32203 (exit $ac_status); }; }; then
32204 ac_cv_cxx_have_global_hash_map=yes
32206 echo "$as_me: failed program was:" >&5
32207 sed 's/^/| /' conftest.$ac_ext >&5
32209 ac_cv_cxx_have_global_hash_map=no
32212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32214 ac_cpp='$CPP $CPPFLAGS'
32215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32220 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32221 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32222 if test "$ac_cv_cxx_have_global_hash_map" = yes
32225 cat >>confdefs.h <<\_ACEOF
32226 #define HAVE_GLOBAL_HASH_MAP 1
32231 cat >>confdefs.h <<\_ACEOF
32232 #define HAVE_GLOBAL_HASH_MAP 0
32237 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32238 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32239 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32240 echo $ECHO_N "(cached) $ECHO_C" >&6
32244 ac_cpp='$CXXCPP $CPPFLAGS'
32245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32249 cat >conftest.$ac_ext <<_ACEOF
32252 cat confdefs.h >>conftest.$ac_ext
32253 cat >>conftest.$ac_ext <<_ACEOF
32254 /* end confdefs.h. */
32255 #include <ext/hash_set>
32256 #ifdef HAVE_NAMESPACES
32257 using namespace std;
32267 rm -f conftest.$ac_objext
32268 if { (ac_try="$ac_compile"
32269 case "(($ac_try" in
32270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32271 *) ac_try_echo=$ac_try;;
32273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32274 (eval "$ac_compile") 2>conftest.er1
32276 grep -v '^ *+' conftest.er1 >conftest.err
32278 cat conftest.err >&5
32279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32280 (exit $ac_status); } &&
32281 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32282 { (case "(($ac_try" in
32283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32284 *) ac_try_echo=$ac_try;;
32286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32287 (eval "$ac_try") 2>&5
32289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32290 (exit $ac_status); }; } &&
32291 { ac_try='test -s conftest.$ac_objext'
32292 { (case "(($ac_try" in
32293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32294 *) ac_try_echo=$ac_try;;
32296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32297 (eval "$ac_try") 2>&5
32299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32300 (exit $ac_status); }; }; then
32301 ac_cv_cxx_have_std_ext_hash_set=yes
32303 echo "$as_me: failed program was:" >&5
32304 sed 's/^/| /' conftest.$ac_ext >&5
32306 ac_cv_cxx_have_std_ext_hash_set=no
32309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32311 ac_cpp='$CPP $CPPFLAGS'
32312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32317 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32318 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32319 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32322 cat >>confdefs.h <<\_ACEOF
32323 #define HAVE_STD_EXT_HASH_SET 1
32328 cat >>confdefs.h <<\_ACEOF
32329 #define HAVE_STD_EXT_HASH_SET 0
32334 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32335 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32336 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32337 echo $ECHO_N "(cached) $ECHO_C" >&6
32341 ac_cpp='$CXXCPP $CPPFLAGS'
32342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32346 cat >conftest.$ac_ext <<_ACEOF
32349 cat confdefs.h >>conftest.$ac_ext
32350 cat >>conftest.$ac_ext <<_ACEOF
32351 /* end confdefs.h. */
32352 #include <ext/hash_set>
32353 #ifdef HAVE_NAMESPACES
32354 using namespace __gnu_cxx;
32364 rm -f conftest.$ac_objext
32365 if { (ac_try="$ac_compile"
32366 case "(($ac_try" in
32367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32368 *) ac_try_echo=$ac_try;;
32370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32371 (eval "$ac_compile") 2>conftest.er1
32373 grep -v '^ *+' conftest.er1 >conftest.err
32375 cat conftest.err >&5
32376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377 (exit $ac_status); } &&
32378 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32379 { (case "(($ac_try" in
32380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32381 *) ac_try_echo=$ac_try;;
32383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32384 (eval "$ac_try") 2>&5
32386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32387 (exit $ac_status); }; } &&
32388 { ac_try='test -s conftest.$ac_objext'
32389 { (case "(($ac_try" in
32390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32391 *) ac_try_echo=$ac_try;;
32393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32394 (eval "$ac_try") 2>&5
32396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397 (exit $ac_status); }; }; then
32398 ac_cv_cxx_have_gnu_ext_hash_set=yes
32400 echo "$as_me: failed program was:" >&5
32401 sed 's/^/| /' conftest.$ac_ext >&5
32403 ac_cv_cxx_have_gnu_ext_hash_set=no
32406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32408 ac_cpp='$CPP $CPPFLAGS'
32409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32414 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32415 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32416 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32419 cat >>confdefs.h <<\_ACEOF
32420 #define HAVE_GNU_EXT_HASH_SET 1
32425 cat >>confdefs.h <<\_ACEOF
32426 #define HAVE_GNU_EXT_HASH_SET 0
32431 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32432 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32433 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32434 echo $ECHO_N "(cached) $ECHO_C" >&6
32438 ac_cpp='$CXXCPP $CPPFLAGS'
32439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32443 cat >conftest.$ac_ext <<_ACEOF
32446 cat confdefs.h >>conftest.$ac_ext
32447 cat >>conftest.$ac_ext <<_ACEOF
32448 /* end confdefs.h. */
32449 #include <hash_set>
32453 hash_set<int> t; return 0;
32458 rm -f conftest.$ac_objext
32459 if { (ac_try="$ac_compile"
32460 case "(($ac_try" in
32461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32462 *) ac_try_echo=$ac_try;;
32464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32465 (eval "$ac_compile") 2>conftest.er1
32467 grep -v '^ *+' conftest.er1 >conftest.err
32469 cat conftest.err >&5
32470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32471 (exit $ac_status); } &&
32472 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32473 { (case "(($ac_try" in
32474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32475 *) ac_try_echo=$ac_try;;
32477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32478 (eval "$ac_try") 2>&5
32480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32481 (exit $ac_status); }; } &&
32482 { ac_try='test -s conftest.$ac_objext'
32483 { (case "(($ac_try" in
32484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32485 *) ac_try_echo=$ac_try;;
32487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32488 (eval "$ac_try") 2>&5
32490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32491 (exit $ac_status); }; }; then
32492 ac_cv_cxx_have_global_hash_set=yes
32494 echo "$as_me: failed program was:" >&5
32495 sed 's/^/| /' conftest.$ac_ext >&5
32497 ac_cv_cxx_have_global_hash_set=no
32500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32502 ac_cpp='$CPP $CPPFLAGS'
32503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32508 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32509 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32510 if test "$ac_cv_cxx_have_global_hash_set" = yes
32513 cat >>confdefs.h <<\_ACEOF
32514 #define HAVE_GLOBAL_HASH_SET 1
32519 cat >>confdefs.h <<\_ACEOF
32520 #define HAVE_GLOBAL_HASH_SET 0
32525 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32526 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32527 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32528 echo $ECHO_N "(cached) $ECHO_C" >&6
32532 ac_cpp='$CXXCPP $CPPFLAGS'
32533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32537 cat >conftest.$ac_ext <<_ACEOF
32540 cat confdefs.h >>conftest.$ac_ext
32541 cat >>conftest.$ac_ext <<_ACEOF
32542 /* end confdefs.h. */
32543 #include <iterator>
32544 #ifdef HAVE_NAMESPACES
32545 using namespace std;
32550 iterator<int,int,int> t; return 0;
32555 rm -f conftest.$ac_objext
32556 if { (ac_try="$ac_compile"
32557 case "(($ac_try" in
32558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32559 *) ac_try_echo=$ac_try;;
32561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32562 (eval "$ac_compile") 2>conftest.er1
32564 grep -v '^ *+' conftest.er1 >conftest.err
32566 cat conftest.err >&5
32567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32568 (exit $ac_status); } &&
32569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32570 { (case "(($ac_try" in
32571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32572 *) ac_try_echo=$ac_try;;
32574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32575 (eval "$ac_try") 2>&5
32577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32578 (exit $ac_status); }; } &&
32579 { ac_try='test -s conftest.$ac_objext'
32580 { (case "(($ac_try" in
32581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32582 *) ac_try_echo=$ac_try;;
32584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32585 (eval "$ac_try") 2>&5
32587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588 (exit $ac_status); }; }; then
32589 ac_cv_cxx_have_std_iterator=yes
32591 echo "$as_me: failed program was:" >&5
32592 sed 's/^/| /' conftest.$ac_ext >&5
32594 ac_cv_cxx_have_std_iterator=no
32597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32599 ac_cpp='$CPP $CPPFLAGS'
32600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32606 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32607 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32608 if test "$ac_cv_cxx_have_std_iterator" = yes
32611 cat >>confdefs.h <<\_ACEOF
32612 #define HAVE_STD_ITERATOR 1
32617 cat >>confdefs.h <<\_ACEOF
32618 #define HAVE_STD_ITERATOR 0
32623 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32624 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32625 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32626 echo $ECHO_N "(cached) $ECHO_C" >&6
32630 ac_cpp='$CXXCPP $CPPFLAGS'
32631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32635 cat >conftest.$ac_ext <<_ACEOF
32638 cat confdefs.h >>conftest.$ac_ext
32639 cat >>conftest.$ac_ext <<_ACEOF
32640 /* end confdefs.h. */
32641 #include <iterator>
32642 #ifdef HAVE_NAMESPACES
32643 using namespace std;
32648 bidirectional_iterator<int,int> t; return 0;
32653 rm -f conftest.$ac_objext
32654 if { (ac_try="$ac_compile"
32655 case "(($ac_try" in
32656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32657 *) ac_try_echo=$ac_try;;
32659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32660 (eval "$ac_compile") 2>conftest.er1
32662 grep -v '^ *+' conftest.er1 >conftest.err
32664 cat conftest.err >&5
32665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32666 (exit $ac_status); } &&
32667 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32668 { (case "(($ac_try" in
32669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32670 *) ac_try_echo=$ac_try;;
32672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32673 (eval "$ac_try") 2>&5
32675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32676 (exit $ac_status); }; } &&
32677 { ac_try='test -s conftest.$ac_objext'
32678 { (case "(($ac_try" in
32679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32680 *) ac_try_echo=$ac_try;;
32682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32683 (eval "$ac_try") 2>&5
32685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32686 (exit $ac_status); }; }; then
32687 ac_cv_cxx_have_bi_iterator=yes
32689 echo "$as_me: failed program was:" >&5
32690 sed 's/^/| /' conftest.$ac_ext >&5
32692 ac_cv_cxx_have_bi_iterator=no
32695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32697 ac_cpp='$CPP $CPPFLAGS'
32698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32704 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32705 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32706 if test "$ac_cv_cxx_have_bi_iterator" = yes
32709 cat >>confdefs.h <<\_ACEOF
32710 #define HAVE_BI_ITERATOR 1
32715 cat >>confdefs.h <<\_ACEOF
32716 #define HAVE_BI_ITERATOR 0
32721 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32722 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32723 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32724 echo $ECHO_N "(cached) $ECHO_C" >&6
32728 ac_cpp='$CXXCPP $CPPFLAGS'
32729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32733 cat >conftest.$ac_ext <<_ACEOF
32736 cat confdefs.h >>conftest.$ac_ext
32737 cat >>conftest.$ac_ext <<_ACEOF
32738 /* end confdefs.h. */
32739 #include <iterator>
32740 #ifdef HAVE_NAMESPACES
32741 using namespace std;
32746 forward_iterator<int,int> t; return 0;
32751 rm -f conftest.$ac_objext
32752 if { (ac_try="$ac_compile"
32753 case "(($ac_try" in
32754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32755 *) ac_try_echo=$ac_try;;
32757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32758 (eval "$ac_compile") 2>conftest.er1
32760 grep -v '^ *+' conftest.er1 >conftest.err
32762 cat conftest.err >&5
32763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764 (exit $ac_status); } &&
32765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32766 { (case "(($ac_try" in
32767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32768 *) ac_try_echo=$ac_try;;
32770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32771 (eval "$ac_try") 2>&5
32773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32774 (exit $ac_status); }; } &&
32775 { ac_try='test -s conftest.$ac_objext'
32776 { (case "(($ac_try" in
32777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32778 *) ac_try_echo=$ac_try;;
32780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32781 (eval "$ac_try") 2>&5
32783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784 (exit $ac_status); }; }; then
32785 ac_cv_cxx_have_fwd_iterator=yes
32787 echo "$as_me: failed program was:" >&5
32788 sed 's/^/| /' conftest.$ac_ext >&5
32790 ac_cv_cxx_have_fwd_iterator=no
32793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32795 ac_cpp='$CPP $CPPFLAGS'
32796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32802 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32803 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32804 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32807 cat >>confdefs.h <<\_ACEOF
32808 #define HAVE_FWD_ITERATOR 1
32813 cat >>confdefs.h <<\_ACEOF
32814 #define HAVE_FWD_ITERATOR 0
32820 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32821 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32822 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32823 echo $ECHO_N "(cached) $ECHO_C" >&6
32826 ac_cpp='$CXXCPP $CPPFLAGS'
32827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32831 cat >conftest.$ac_ext <<_ACEOF
32834 cat confdefs.h >>conftest.$ac_ext
32835 cat >>conftest.$ac_ext <<_ACEOF
32836 /* end confdefs.h. */
32846 rm -f conftest.$ac_objext
32847 if { (ac_try="$ac_compile"
32848 case "(($ac_try" in
32849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32850 *) ac_try_echo=$ac_try;;
32852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32853 (eval "$ac_compile") 2>conftest.er1
32855 grep -v '^ *+' conftest.er1 >conftest.err
32857 cat conftest.err >&5
32858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32859 (exit $ac_status); } &&
32860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32861 { (case "(($ac_try" in
32862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32863 *) ac_try_echo=$ac_try;;
32865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32866 (eval "$ac_try") 2>&5
32868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32869 (exit $ac_status); }; } &&
32870 { ac_try='test -s conftest.$ac_objext'
32871 { (case "(($ac_try" in
32872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32873 *) ac_try_echo=$ac_try;;
32875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32876 (eval "$ac_try") 2>&5
32878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879 (exit $ac_status); }; }; then
32880 ac_cv_func_isnan_in_math_h=yes
32882 echo "$as_me: failed program was:" >&5
32883 sed 's/^/| /' conftest.$ac_ext >&5
32885 ac_cv_func_isnan_in_math_h=no
32888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32890 ac_cpp='$CPP $CPPFLAGS'
32891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32896 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32897 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32900 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32902 cat >>confdefs.h <<\_ACEOF
32903 #define HAVE_ISNAN_IN_MATH_H 1
32908 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32909 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32910 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32911 echo $ECHO_N "(cached) $ECHO_C" >&6
32914 ac_cpp='$CXXCPP $CPPFLAGS'
32915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32919 cat >conftest.$ac_ext <<_ACEOF
32922 cat confdefs.h >>conftest.$ac_ext
32923 cat >>conftest.$ac_ext <<_ACEOF
32924 /* end confdefs.h. */
32934 rm -f conftest.$ac_objext
32935 if { (ac_try="$ac_compile"
32936 case "(($ac_try" in
32937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32938 *) ac_try_echo=$ac_try;;
32940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32941 (eval "$ac_compile") 2>conftest.er1
32943 grep -v '^ *+' conftest.er1 >conftest.err
32945 cat conftest.err >&5
32946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947 (exit $ac_status); } &&
32948 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32949 { (case "(($ac_try" in
32950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32951 *) ac_try_echo=$ac_try;;
32953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32954 (eval "$ac_try") 2>&5
32956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957 (exit $ac_status); }; } &&
32958 { ac_try='test -s conftest.$ac_objext'
32959 { (case "(($ac_try" in
32960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32961 *) ac_try_echo=$ac_try;;
32963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32964 (eval "$ac_try") 2>&5
32966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32967 (exit $ac_status); }; }; then
32968 ac_cv_func_isnan_in_cmath=yes
32970 echo "$as_me: failed program was:" >&5
32971 sed 's/^/| /' conftest.$ac_ext >&5
32973 ac_cv_func_isnan_in_cmath=no
32976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32978 ac_cpp='$CPP $CPPFLAGS'
32979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32984 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32985 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32987 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32989 cat >>confdefs.h <<\_ACEOF
32990 #define HAVE_ISNAN_IN_CMATH 1
32995 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32996 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32997 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32998 echo $ECHO_N "(cached) $ECHO_C" >&6
33001 ac_cpp='$CXXCPP $CPPFLAGS'
33002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33006 cat >conftest.$ac_ext <<_ACEOF
33009 cat confdefs.h >>conftest.$ac_ext
33010 cat >>conftest.$ac_ext <<_ACEOF
33011 /* end confdefs.h. */
33016 float f; std::isnan(f);
33021 rm -f conftest.$ac_objext
33022 if { (ac_try="$ac_compile"
33023 case "(($ac_try" in
33024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33025 *) ac_try_echo=$ac_try;;
33027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33028 (eval "$ac_compile") 2>conftest.er1
33030 grep -v '^ *+' conftest.er1 >conftest.err
33032 cat conftest.err >&5
33033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034 (exit $ac_status); } &&
33035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33036 { (case "(($ac_try" in
33037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33038 *) ac_try_echo=$ac_try;;
33040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33041 (eval "$ac_try") 2>&5
33043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044 (exit $ac_status); }; } &&
33045 { ac_try='test -s conftest.$ac_objext'
33046 { (case "(($ac_try" in
33047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33048 *) ac_try_echo=$ac_try;;
33050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33051 (eval "$ac_try") 2>&5
33053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054 (exit $ac_status); }; }; then
33055 ac_cv_func_std_isnan_in_cmath=yes
33057 echo "$as_me: failed program was:" >&5
33058 sed 's/^/| /' conftest.$ac_ext >&5
33060 ac_cv_func_std_isnan_in_cmath=no
33063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33065 ac_cpp='$CPP $CPPFLAGS'
33066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33071 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33072 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33074 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33076 cat >>confdefs.h <<\_ACEOF
33077 #define HAVE_STD_ISNAN_IN_CMATH 1
33083 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33084 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33085 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33086 echo $ECHO_N "(cached) $ECHO_C" >&6
33089 ac_cpp='$CXXCPP $CPPFLAGS'
33090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33094 cat >conftest.$ac_ext <<_ACEOF
33097 cat confdefs.h >>conftest.$ac_ext
33098 cat >>conftest.$ac_ext <<_ACEOF
33099 /* end confdefs.h. */
33109 rm -f conftest.$ac_objext
33110 if { (ac_try="$ac_compile"
33111 case "(($ac_try" in
33112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33113 *) ac_try_echo=$ac_try;;
33115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33116 (eval "$ac_compile") 2>conftest.er1
33118 grep -v '^ *+' conftest.er1 >conftest.err
33120 cat conftest.err >&5
33121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122 (exit $ac_status); } &&
33123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33124 { (case "(($ac_try" in
33125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33126 *) ac_try_echo=$ac_try;;
33128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33129 (eval "$ac_try") 2>&5
33131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33132 (exit $ac_status); }; } &&
33133 { ac_try='test -s conftest.$ac_objext'
33134 { (case "(($ac_try" in
33135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33136 *) ac_try_echo=$ac_try;;
33138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33139 (eval "$ac_try") 2>&5
33141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142 (exit $ac_status); }; }; then
33143 ac_cv_func_isinf_in_math_h=yes
33145 echo "$as_me: failed program was:" >&5
33146 sed 's/^/| /' conftest.$ac_ext >&5
33148 ac_cv_func_isinf_in_math_h=no
33151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33153 ac_cpp='$CPP $CPPFLAGS'
33154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33159 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33160 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33162 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33164 cat >>confdefs.h <<\_ACEOF
33165 #define HAVE_ISINF_IN_MATH_H 1
33170 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33171 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33172 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33173 echo $ECHO_N "(cached) $ECHO_C" >&6
33176 ac_cpp='$CXXCPP $CPPFLAGS'
33177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33181 cat >conftest.$ac_ext <<_ACEOF
33184 cat confdefs.h >>conftest.$ac_ext
33185 cat >>conftest.$ac_ext <<_ACEOF
33186 /* end confdefs.h. */
33196 rm -f conftest.$ac_objext
33197 if { (ac_try="$ac_compile"
33198 case "(($ac_try" in
33199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33200 *) ac_try_echo=$ac_try;;
33202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33203 (eval "$ac_compile") 2>conftest.er1
33205 grep -v '^ *+' conftest.er1 >conftest.err
33207 cat conftest.err >&5
33208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209 (exit $ac_status); } &&
33210 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33211 { (case "(($ac_try" in
33212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33213 *) ac_try_echo=$ac_try;;
33215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33216 (eval "$ac_try") 2>&5
33218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33219 (exit $ac_status); }; } &&
33220 { ac_try='test -s conftest.$ac_objext'
33221 { (case "(($ac_try" in
33222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33223 *) ac_try_echo=$ac_try;;
33225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33226 (eval "$ac_try") 2>&5
33228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229 (exit $ac_status); }; }; then
33230 ac_cv_func_isinf_in_cmath=yes
33232 echo "$as_me: failed program was:" >&5
33233 sed 's/^/| /' conftest.$ac_ext >&5
33235 ac_cv_func_isinf_in_cmath=no
33238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33240 ac_cpp='$CPP $CPPFLAGS'
33241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33246 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33247 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33249 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33251 cat >>confdefs.h <<\_ACEOF
33252 #define HAVE_ISINF_IN_CMATH 1
33257 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33258 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33259 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33260 echo $ECHO_N "(cached) $ECHO_C" >&6
33263 ac_cpp='$CXXCPP $CPPFLAGS'
33264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33268 cat >conftest.$ac_ext <<_ACEOF
33271 cat confdefs.h >>conftest.$ac_ext
33272 cat >>conftest.$ac_ext <<_ACEOF
33273 /* end confdefs.h. */
33278 float f; std::isinf(f)}
33283 rm -f conftest.$ac_objext
33284 if { (ac_try="$ac_compile"
33285 case "(($ac_try" in
33286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33287 *) ac_try_echo=$ac_try;;
33289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33290 (eval "$ac_compile") 2>conftest.er1
33292 grep -v '^ *+' conftest.er1 >conftest.err
33294 cat conftest.err >&5
33295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33296 (exit $ac_status); } &&
33297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33298 { (case "(($ac_try" in
33299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33300 *) ac_try_echo=$ac_try;;
33302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33303 (eval "$ac_try") 2>&5
33305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33306 (exit $ac_status); }; } &&
33307 { ac_try='test -s conftest.$ac_objext'
33308 { (case "(($ac_try" in
33309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33310 *) ac_try_echo=$ac_try;;
33312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33313 (eval "$ac_try") 2>&5
33315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33316 (exit $ac_status); }; }; then
33317 ac_cv_func_std_isinf_in_cmath=yes
33319 echo "$as_me: failed program was:" >&5
33320 sed 's/^/| /' conftest.$ac_ext >&5
33322 ac_cv_func_std_isinf_in_cmath=no
33325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33327 ac_cpp='$CPP $CPPFLAGS'
33328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33333 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33334 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33336 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33338 cat >>confdefs.h <<\_ACEOF
33339 #define HAVE_STD_ISINF_IN_CMATH 1
33344 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33345 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33346 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33347 echo $ECHO_N "(cached) $ECHO_C" >&6
33350 ac_cpp='$CXXCPP $CPPFLAGS'
33351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33355 cat >conftest.$ac_ext <<_ACEOF
33358 cat confdefs.h >>conftest.$ac_ext
33359 cat >>conftest.$ac_ext <<_ACEOF
33360 /* end confdefs.h. */
33361 #include <ieeefp.h>
33365 float f; finite(f);
33370 rm -f conftest.$ac_objext
33371 if { (ac_try="$ac_compile"
33372 case "(($ac_try" in
33373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33374 *) ac_try_echo=$ac_try;;
33376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33377 (eval "$ac_compile") 2>conftest.er1
33379 grep -v '^ *+' conftest.er1 >conftest.err
33381 cat conftest.err >&5
33382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33383 (exit $ac_status); } &&
33384 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33385 { (case "(($ac_try" in
33386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33387 *) ac_try_echo=$ac_try;;
33389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33390 (eval "$ac_try") 2>&5
33392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33393 (exit $ac_status); }; } &&
33394 { ac_try='test -s conftest.$ac_objext'
33395 { (case "(($ac_try" in
33396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33397 *) ac_try_echo=$ac_try;;
33399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33400 (eval "$ac_try") 2>&5
33402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33403 (exit $ac_status); }; }; then
33404 ac_cv_func_finite_in_ieeefp_h=yes
33406 echo "$as_me: failed program was:" >&5
33407 sed 's/^/| /' conftest.$ac_ext >&5
33409 ac_cv_func_finite_in_ieeefp_h=no
33412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33414 ac_cpp='$CPP $CPPFLAGS'
33415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33420 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33421 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33423 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33425 cat >>confdefs.h <<\_ACEOF
33426 #define HAVE_FINITE_IN_IEEEFP_H 1
33433 if test "$llvm_cv_platform_type" = "Unix" ; then
33436 for ac_header in stdlib.h unistd.h
33438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33443 echo $ECHO_N "(cached) $ECHO_C" >&6
33445 ac_res=`eval echo '${'$as_ac_Header'}'`
33446 { echo "$as_me:$LINENO: result: $ac_res" >&5
33447 echo "${ECHO_T}$ac_res" >&6; }
33449 # Is the header compilable?
33450 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33452 cat >conftest.$ac_ext <<_ACEOF
33455 cat confdefs.h >>conftest.$ac_ext
33456 cat >>conftest.$ac_ext <<_ACEOF
33457 /* end confdefs.h. */
33458 $ac_includes_default
33459 #include <$ac_header>
33461 rm -f conftest.$ac_objext
33462 if { (ac_try="$ac_compile"
33463 case "(($ac_try" in
33464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33465 *) ac_try_echo=$ac_try;;
33467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33468 (eval "$ac_compile") 2>conftest.er1
33470 grep -v '^ *+' conftest.er1 >conftest.err
33472 cat conftest.err >&5
33473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474 (exit $ac_status); } &&
33475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33476 { (case "(($ac_try" in
33477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33478 *) ac_try_echo=$ac_try;;
33480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33481 (eval "$ac_try") 2>&5
33483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484 (exit $ac_status); }; } &&
33485 { ac_try='test -s conftest.$ac_objext'
33486 { (case "(($ac_try" in
33487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33488 *) ac_try_echo=$ac_try;;
33490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33491 (eval "$ac_try") 2>&5
33493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33494 (exit $ac_status); }; }; then
33495 ac_header_compiler=yes
33497 echo "$as_me: failed program was:" >&5
33498 sed 's/^/| /' conftest.$ac_ext >&5
33500 ac_header_compiler=no
33503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33505 echo "${ECHO_T}$ac_header_compiler" >&6; }
33507 # Is the header present?
33508 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33510 cat >conftest.$ac_ext <<_ACEOF
33513 cat confdefs.h >>conftest.$ac_ext
33514 cat >>conftest.$ac_ext <<_ACEOF
33515 /* end confdefs.h. */
33516 #include <$ac_header>
33518 if { (ac_try="$ac_cpp conftest.$ac_ext"
33519 case "(($ac_try" in
33520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33521 *) ac_try_echo=$ac_try;;
33523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33526 grep -v '^ *+' conftest.er1 >conftest.err
33528 cat conftest.err >&5
33529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33530 (exit $ac_status); } >/dev/null; then
33531 if test -s conftest.err; then
33532 ac_cpp_err=$ac_c_preproc_warn_flag
33533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33540 if test -z "$ac_cpp_err"; then
33541 ac_header_preproc=yes
33543 echo "$as_me: failed program was:" >&5
33544 sed 's/^/| /' conftest.$ac_ext >&5
33546 ac_header_preproc=no
33549 rm -f conftest.err conftest.$ac_ext
33550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33551 echo "${ECHO_T}$ac_header_preproc" >&6; }
33553 # So? What about this header?
33554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33560 ac_header_preproc=yes
33563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33570 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33576 ## ----------------------------------- ##
33577 ## Report this to llvmbugs@cs.uiuc.edu ##
33578 ## ----------------------------------- ##
33580 ) | sed "s/^/$as_me: WARNING: /" >&2
33583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33586 echo $ECHO_N "(cached) $ECHO_C" >&6
33588 eval "$as_ac_Header=\$ac_header_preproc"
33590 ac_res=`eval echo '${'$as_ac_Header'}'`
33591 { echo "$as_me:$LINENO: result: $ac_res" >&5
33592 echo "${ECHO_T}$ac_res" >&6; }
33595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33596 cat >>confdefs.h <<_ACEOF
33597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33605 for ac_func in getpagesize
33607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33611 echo $ECHO_N "(cached) $ECHO_C" >&6
33613 cat >conftest.$ac_ext <<_ACEOF
33616 cat confdefs.h >>conftest.$ac_ext
33617 cat >>conftest.$ac_ext <<_ACEOF
33618 /* end confdefs.h. */
33619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33621 #define $ac_func innocuous_$ac_func
33623 /* System header to define __stub macros and hopefully few prototypes,
33624 which can conflict with char $ac_func (); below.
33625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33626 <limits.h> exists even on freestanding compilers. */
33629 # include <limits.h>
33631 # include <assert.h>
33636 /* Override any GCC internal prototype to avoid an error.
33637 Use char because int might match the return type of a GCC
33638 builtin and then its argument prototype would still apply. */
33643 /* The GNU C library defines this for functions which it implements
33644 to always fail with ENOSYS. Some functions are actually named
33645 something starting with __ and the normal name is an alias. */
33646 #if defined __stub_$ac_func || defined __stub___$ac_func
33653 return $ac_func ();
33658 rm -f conftest.$ac_objext conftest$ac_exeext
33659 if { (ac_try="$ac_link"
33660 case "(($ac_try" in
33661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33662 *) ac_try_echo=$ac_try;;
33664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33665 (eval "$ac_link") 2>conftest.er1
33667 grep -v '^ *+' conftest.er1 >conftest.err
33669 cat conftest.err >&5
33670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33671 (exit $ac_status); } &&
33672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33673 { (case "(($ac_try" in
33674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33675 *) ac_try_echo=$ac_try;;
33677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33678 (eval "$ac_try") 2>&5
33680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33681 (exit $ac_status); }; } &&
33682 { ac_try='test -s conftest$ac_exeext'
33683 { (case "(($ac_try" in
33684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33685 *) ac_try_echo=$ac_try;;
33687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33688 (eval "$ac_try") 2>&5
33690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33691 (exit $ac_status); }; }; then
33692 eval "$as_ac_var=yes"
33694 echo "$as_me: failed program was:" >&5
33695 sed 's/^/| /' conftest.$ac_ext >&5
33697 eval "$as_ac_var=no"
33700 rm -f core conftest.err conftest.$ac_objext \
33701 conftest$ac_exeext conftest.$ac_ext
33703 ac_res=`eval echo '${'$as_ac_var'}'`
33704 { echo "$as_me:$LINENO: result: $ac_res" >&5
33705 echo "${ECHO_T}$ac_res" >&6; }
33706 if test `eval echo '${'$as_ac_var'}'` = yes; then
33707 cat >>confdefs.h <<_ACEOF
33708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33714 { echo "$as_me:$LINENO: checking for working mmap" >&5
33715 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33716 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33717 echo $ECHO_N "(cached) $ECHO_C" >&6
33719 if test "$cross_compiling" = yes; then
33720 ac_cv_func_mmap_fixed_mapped=no
33722 cat >conftest.$ac_ext <<_ACEOF
33725 cat confdefs.h >>conftest.$ac_ext
33726 cat >>conftest.$ac_ext <<_ACEOF
33727 /* end confdefs.h. */
33728 $ac_includes_default
33729 /* malloc might have been renamed as rpl_malloc. */
33732 /* Thanks to Mike Haertel and Jim Avera for this test.
33733 Here is a matrix of mmap possibilities:
33734 mmap private not fixed
33735 mmap private fixed at somewhere currently unmapped
33736 mmap private fixed at somewhere already mapped
33737 mmap shared not fixed
33738 mmap shared fixed at somewhere currently unmapped
33739 mmap shared fixed at somewhere already mapped
33740 For private mappings, we should verify that changes cannot be read()
33741 back from the file, nor mmap's back from the file at a different
33742 address. (There have been systems where private was not correctly
33743 implemented like the infamous i386 svr4.0, and systems where the
33744 VM page cache was not coherent with the file system buffer cache
33745 like early versions of FreeBSD and possibly contemporary NetBSD.)
33746 For shared mappings, we should conversely verify that changes get
33747 propagated back to all the places they're supposed to be.
33749 Grep wants private fixed already mapped.
33750 The main things grep needs to know about mmap are:
33751 * does it exist and is it safe to write into the mmap'd area
33752 * how to use it (BSD variants) */
33755 #include <sys/mman.h>
33757 #if !STDC_HEADERS && !HAVE_STDLIB_H
33761 /* This mess was copied from the GNU getpagesize.h. */
33762 #if !HAVE_GETPAGESIZE
33763 /* Assume that all systems that can run configure have sys/param.h. */
33764 # if !HAVE_SYS_PARAM_H
33765 # define HAVE_SYS_PARAM_H 1
33768 # ifdef _SC_PAGESIZE
33769 # define getpagesize() sysconf(_SC_PAGESIZE)
33770 # else /* no _SC_PAGESIZE */
33771 # if HAVE_SYS_PARAM_H
33772 # include <sys/param.h>
33773 # ifdef EXEC_PAGESIZE
33774 # define getpagesize() EXEC_PAGESIZE
33775 # else /* no EXEC_PAGESIZE */
33777 # define getpagesize() NBPG * CLSIZE
33780 # endif /* no CLSIZE */
33781 # else /* no NBPG */
33783 # define getpagesize() NBPC
33784 # else /* no NBPC */
33786 # define getpagesize() PAGESIZE
33787 # endif /* PAGESIZE */
33788 # endif /* no NBPC */
33789 # endif /* no NBPG */
33790 # endif /* no EXEC_PAGESIZE */
33791 # else /* no HAVE_SYS_PARAM_H */
33792 # define getpagesize() 8192 /* punt totally */
33793 # endif /* no HAVE_SYS_PARAM_H */
33794 # endif /* no _SC_PAGESIZE */
33796 #endif /* no HAVE_GETPAGESIZE */
33801 char *data, *data2, *data3;
33805 pagesize = getpagesize ();
33807 /* First, make a file with some known garbage in it. */
33808 data = (char *) malloc (pagesize);
33811 for (i = 0; i < pagesize; ++i)
33812 *(data + i) = rand ();
33814 fd = creat ("conftest.mmap", 0600);
33817 if (write (fd, data, pagesize) != pagesize)
33821 /* Next, try to mmap the file at a fixed address which already has
33822 something else allocated at it. If we can, also make sure that
33823 we see the same garbage. */
33824 fd = open ("conftest.mmap", O_RDWR);
33827 data2 = (char *) malloc (2 * pagesize);
33830 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33831 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33832 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33834 for (i = 0; i < pagesize; ++i)
33835 if (*(data + i) != *(data2 + i))
33838 /* Finally, make sure that changes to the mapped area do not
33839 percolate back to the file as seen by read(). (This is a bug on
33840 some variants of i386 svr4.0.) */
33841 for (i = 0; i < pagesize; ++i)
33842 *(data2 + i) = *(data2 + i) + 1;
33843 data3 = (char *) malloc (pagesize);
33846 if (read (fd, data3, pagesize) != pagesize)
33848 for (i = 0; i < pagesize; ++i)
33849 if (*(data + i) != *(data3 + i))
33855 rm -f conftest$ac_exeext
33856 if { (ac_try="$ac_link"
33857 case "(($ac_try" in
33858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33859 *) ac_try_echo=$ac_try;;
33861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33862 (eval "$ac_link") 2>&5
33864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33866 { (case "(($ac_try" in
33867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33868 *) ac_try_echo=$ac_try;;
33870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33871 (eval "$ac_try") 2>&5
33873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874 (exit $ac_status); }; }; then
33875 ac_cv_func_mmap_fixed_mapped=yes
33877 echo "$as_me: program exited with status $ac_status" >&5
33878 echo "$as_me: failed program was:" >&5
33879 sed 's/^/| /' conftest.$ac_ext >&5
33881 ( exit $ac_status )
33882 ac_cv_func_mmap_fixed_mapped=no
33884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33889 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33890 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33891 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33893 cat >>confdefs.h <<\_ACEOF
33894 #define HAVE_MMAP 1
33898 rm -f conftest.mmap
33900 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33901 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33902 if test "${ac_cv_func_mmap_file+set}" = set; then
33903 echo $ECHO_N "(cached) $ECHO_C" >&6
33906 ac_cpp='$CPP $CPPFLAGS'
33907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33911 if test "$cross_compiling" = yes; then
33912 ac_cv_func_mmap_file=no
33914 cat >conftest.$ac_ext <<_ACEOF
33918 cat confdefs.h >>conftest.$ac_ext
33919 cat >>conftest.$ac_ext <<_ACEOF
33920 /* end confdefs.h. */
33922 #include <sys/types.h>
33923 #include <sys/mman.h>
33931 fd = creat ("foo",0777);
33932 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33934 return (fd != (int) MAP_FAILED);
33939 rm -f conftest$ac_exeext
33940 if { (ac_try="$ac_link"
33941 case "(($ac_try" in
33942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33943 *) ac_try_echo=$ac_try;;
33945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33946 (eval "$ac_link") 2>&5
33948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33950 { (case "(($ac_try" in
33951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33952 *) ac_try_echo=$ac_try;;
33954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33955 (eval "$ac_try") 2>&5
33957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33958 (exit $ac_status); }; }; then
33959 ac_cv_func_mmap_file=yes
33961 echo "$as_me: program exited with status $ac_status" >&5
33962 echo "$as_me: failed program was:" >&5
33963 sed 's/^/| /' conftest.$ac_ext >&5
33965 ( exit $ac_status )
33966 ac_cv_func_mmap_file=no
33968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33973 ac_cpp='$CPP $CPPFLAGS'
33974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33980 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33981 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33982 if test "$ac_cv_func_mmap_file" = yes; then
33984 cat >>confdefs.h <<\_ACEOF
33985 #define HAVE_MMAP_FILE
33992 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33993 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33994 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33995 echo $ECHO_N "(cached) $ECHO_C" >&6
33997 if test "$llvm_cv_os_type" = "Interix" ; then
33998 ac_cv_need_dev_zero_for_mmap=yes
34000 ac_cv_need_dev_zero_for_mmap=no
34004 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34005 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34006 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34008 cat >>confdefs.h <<\_ACEOF
34009 #define NEED_DEV_ZERO_FOR_MMAP 1
34014 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34016 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34017 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34019 if test "$ac_cv_func_mmap_file" = "no"
34021 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34022 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34028 for ac_func in __dso_handle
34030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34034 echo $ECHO_N "(cached) $ECHO_C" >&6
34036 cat >conftest.$ac_ext <<_ACEOF
34039 cat confdefs.h >>conftest.$ac_ext
34040 cat >>conftest.$ac_ext <<_ACEOF
34041 /* end confdefs.h. */
34042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34044 #define $ac_func innocuous_$ac_func
34046 /* System header to define __stub macros and hopefully few prototypes,
34047 which can conflict with char $ac_func (); below.
34048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34049 <limits.h> exists even on freestanding compilers. */
34052 # include <limits.h>
34054 # include <assert.h>
34059 /* Override any GCC internal prototype to avoid an error.
34060 Use char because int might match the return type of a GCC
34061 builtin and then its argument prototype would still apply. */
34066 /* The GNU C library defines this for functions which it implements
34067 to always fail with ENOSYS. Some functions are actually named
34068 something starting with __ and the normal name is an alias. */
34069 #if defined __stub_$ac_func || defined __stub___$ac_func
34076 return $ac_func ();
34081 rm -f conftest.$ac_objext conftest$ac_exeext
34082 if { (ac_try="$ac_link"
34083 case "(($ac_try" in
34084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34085 *) ac_try_echo=$ac_try;;
34087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34088 (eval "$ac_link") 2>conftest.er1
34090 grep -v '^ *+' conftest.er1 >conftest.err
34092 cat conftest.err >&5
34093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34094 (exit $ac_status); } &&
34095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34096 { (case "(($ac_try" in
34097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34098 *) ac_try_echo=$ac_try;;
34100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34101 (eval "$ac_try") 2>&5
34103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34104 (exit $ac_status); }; } &&
34105 { ac_try='test -s conftest$ac_exeext'
34106 { (case "(($ac_try" in
34107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34108 *) ac_try_echo=$ac_try;;
34110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34111 (eval "$ac_try") 2>&5
34113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34114 (exit $ac_status); }; }; then
34115 eval "$as_ac_var=yes"
34117 echo "$as_me: failed program was:" >&5
34118 sed 's/^/| /' conftest.$ac_ext >&5
34120 eval "$as_ac_var=no"
34123 rm -f core conftest.err conftest.$ac_objext \
34124 conftest$ac_exeext conftest.$ac_ext
34126 ac_res=`eval echo '${'$as_ac_var'}'`
34127 { echo "$as_me:$LINENO: result: $ac_res" >&5
34128 echo "${ECHO_T}$ac_res" >&6; }
34129 if test `eval echo '${'$as_ac_var'}'` = yes; then
34130 cat >>confdefs.h <<_ACEOF
34131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34138 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34139 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34140 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34141 echo $ECHO_N "(cached) $ECHO_C" >&6
34143 llvm_cv_llvmgcc_sanity="no"
34144 if test -x "$LLVMGCC" ; then
34145 cp /dev/null conftest.c
34146 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34147 grep 'target datalayout =' > /dev/null 2>&1
34148 if test $? -eq 0 ; then
34149 llvm_cv_llvmgcc_sanity="yes"
34154 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34155 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34157 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34158 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34159 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34160 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34161 LLVMCC1=$llvmcc1path
34163 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34164 LLVMCC1PLUS=$llvmcc1pluspath
34166 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34167 LLVMGCCDIR=$llvmgccdir
34169 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34170 LLVMGCCLIBEXEC=$llvmgcclibexec
34172 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34173 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34174 LLVMGCC_VERSION=$llvmgccversion
34176 LLVMGCC_MAJVERS=$llvmgccmajvers
34178 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34179 LLVMGCC_LANGS=$llvmgcclangs
34181 { echo "$as_me:$LINENO: result: ok" >&5
34182 echo "${ECHO_T}ok" >&6; }
34185 SHLIBEXT=$libltdl_cv_shlibext
34188 # Translate the various configuration directories and other basic
34189 # information into substitutions that will end up in Makefile.config.in
34190 # that these configured values can be used by the makefiles
34191 if test "${prefix}" = "NONE" ; then
34192 prefix="/usr/local"
34194 eval LLVM_PREFIX="${prefix}";
34195 eval LLVM_BINDIR="${prefix}/bin";
34196 eval LLVM_LIBDIR="${prefix}/lib";
34197 eval LLVM_DATADIR="${prefix}/share/llvm";
34198 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34199 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34200 eval LLVM_INCLUDEDIR="${prefix}/include";
34201 eval LLVM_INFODIR="${prefix}/info";
34202 eval LLVM_MANDIR="${prefix}/man";
34203 LLVM_CONFIGTIME=`date`
34215 # Place the various directores into the config.h file as #defines so that we
34216 # can know about the installation paths within LLVM.
34218 cat >>confdefs.h <<_ACEOF
34219 #define LLVM_PREFIX "$LLVM_PREFIX"
34223 cat >>confdefs.h <<_ACEOF
34224 #define LLVM_BINDIR "$LLVM_BINDIR"
34228 cat >>confdefs.h <<_ACEOF
34229 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34233 cat >>confdefs.h <<_ACEOF
34234 #define LLVM_DATADIR "$LLVM_DATADIR"
34238 cat >>confdefs.h <<_ACEOF
34239 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34243 cat >>confdefs.h <<_ACEOF
34244 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34248 cat >>confdefs.h <<_ACEOF
34249 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34253 cat >>confdefs.h <<_ACEOF
34254 #define LLVM_INFODIR "$LLVM_INFODIR"
34258 cat >>confdefs.h <<_ACEOF
34259 #define LLVM_MANDIR "$LLVM_MANDIR"
34263 cat >>confdefs.h <<_ACEOF
34264 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34268 cat >>confdefs.h <<_ACEOF
34269 #define LLVM_HOSTTRIPLE "$host"
34273 # Determine which bindings to build.
34274 if test "$BINDINGS_TO_BUILD" = auto ; then
34275 BINDINGS_TO_BUILD=""
34276 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34277 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34280 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34283 # This isn't really configurey, but it avoids having to repeat the list in
34288 # Do any work necessary to ensure that bindings have what they need.
34289 binding_prereqs_failed=0
34290 for a_binding in $BINDINGS_TO_BUILD ; do
34291 case "$a_binding" in
34293 if test "x$OCAMLC" = x ; then
34294 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34295 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34296 binding_prereqs_failed=1
34298 if test "x$OCAMLDEP" = x ; then
34299 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34300 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34301 binding_prereqs_failed=1
34303 if test "x$OCAMLOPT" = x ; then
34304 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34305 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34307 if test "x$with_ocaml_libdir" != xauto ; then
34308 OCAML_LIBDIR=$with_ocaml_libdir
34311 ocaml_stdlib="`"$OCAMLC" -where`"
34312 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34314 # ocaml stdlib is beneath our prefix; use stdlib
34315 OCAML_LIBDIR=$ocaml_stdlib
34318 # ocaml stdlib is outside our prefix; use libdir/ocaml
34319 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34326 if test "$binding_prereqs_failed" = 1 ; then
34327 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34328 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34329 { (exit 1); exit 1; }; }
34332 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34333 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34334 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34335 echo $ECHO_N "(cached) $ECHO_C" >&6
34338 ac_cpp='$CXXCPP $CPPFLAGS'
34339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34343 oldcxxflags="$CXXFLAGS"
34344 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34345 cat >conftest.$ac_ext <<_ACEOF
34348 cat confdefs.h >>conftest.$ac_ext
34349 cat >>conftest.$ac_ext <<_ACEOF
34350 /* end confdefs.h. */
34360 rm -f conftest.$ac_objext
34361 if { (ac_try="$ac_compile"
34362 case "(($ac_try" in
34363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34364 *) ac_try_echo=$ac_try;;
34366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34367 (eval "$ac_compile") 2>conftest.er1
34369 grep -v '^ *+' conftest.er1 >conftest.err
34371 cat conftest.err >&5
34372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34373 (exit $ac_status); } &&
34374 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34375 { (case "(($ac_try" in
34376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34377 *) ac_try_echo=$ac_try;;
34379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34380 (eval "$ac_try") 2>&5
34382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34383 (exit $ac_status); }; } &&
34384 { ac_try='test -s conftest.$ac_objext'
34385 { (case "(($ac_try" in
34386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34387 *) ac_try_echo=$ac_try;;
34389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34390 (eval "$ac_try") 2>&5
34392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34393 (exit $ac_status); }; }; then
34394 llvm_cv_cxx_visibility_inlines_hidden=yes
34396 echo "$as_me: failed program was:" >&5
34397 sed 's/^/| /' conftest.$ac_ext >&5
34399 llvm_cv_cxx_visibility_inlines_hidden=no
34402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34403 CXXFLAGS="$oldcxxflags"
34405 ac_cpp='$CPP $CPPFLAGS'
34406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34412 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34413 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34414 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34415 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34418 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34423 case $llvm_cv_os_type in
34424 SunOS) RPATH="-Wl,-R" ;;
34425 *) RPATH="-Wl,-rpath" ;;
34430 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34432 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34434 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
34436 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
34438 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34441 ac_config_files="$ac_config_files Makefile.config"
34444 ac_config_files="$ac_config_files llvm.spec"
34447 ac_config_files="$ac_config_files docs/doxygen.cfg"
34450 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34453 ac_config_commands="$ac_config_commands setup"
34455 ac_config_commands="$ac_config_commands Makefile"
34458 ac_config_commands="$ac_config_commands Makefile.common"
34461 ac_config_commands="$ac_config_commands examples/Makefile"
34464 ac_config_commands="$ac_config_commands lib/Makefile"
34467 ac_config_commands="$ac_config_commands runtime/Makefile"
34470 ac_config_commands="$ac_config_commands test/Makefile"
34473 ac_config_commands="$ac_config_commands test/Makefile.tests"
34476 ac_config_commands="$ac_config_commands unittests/Makefile"
34479 ac_config_commands="$ac_config_commands tools/Makefile"
34482 ac_config_commands="$ac_config_commands utils/Makefile"
34485 ac_config_commands="$ac_config_commands projects/Makefile"
34488 ac_config_commands="$ac_config_commands bindings/Makefile"
34491 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34495 cat >confcache <<\_ACEOF
34496 # This file is a shell script that caches the results of configure
34497 # tests run on this system so they can be shared between configure
34498 # scripts and configure runs, see configure's option --config-cache.
34499 # It is not useful on other systems. If it contains results you don't
34500 # want to keep, you may remove or edit it.
34502 # config.status only pays attention to the cache file if you give it
34503 # the --recheck option to rerun configure.
34505 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34506 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34507 # following values.
34511 # The following way of writing the cache mishandles newlines in values,
34512 # but we know of no workaround that is simple, portable, and efficient.
34513 # So, we kill variables containing newlines.
34514 # Ultrix sh set writes to stderr and can't be redirected directly,
34515 # and sets the high bit in the cache file unless we assign to the vars.
34517 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34518 eval ac_val=\$$ac_var
34522 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34523 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34526 _ | IFS | as_nl) ;; #(
34527 *) $as_unset $ac_var ;;
34533 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34534 *${as_nl}ac_space=\ *)
34535 # `set' does not quote correctly, so add quotes (double-quote
34536 # substitution turns \\\\ into \\, and sed turns \\ into \).
34539 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34542 # `set' quotes correctly as required by POSIX, so do not add quotes.
34543 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34552 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34554 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34556 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34557 if test -w "$cache_file"; then
34558 test "x$cache_file" != "x/dev/null" &&
34559 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34560 echo "$as_me: updating cache $cache_file" >&6;}
34561 cat confcache >$cache_file
34563 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34564 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34569 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34570 # Let make expand exec_prefix.
34571 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34573 DEFS=-DHAVE_CONFIG_H
34577 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34578 # 1. Remove the extension, and $U if already installed.
34579 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34580 ac_i=`echo "$ac_i" | sed "$ac_script"`
34581 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34582 # will be set to the directory where LIBOBJS objects are built.
34583 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34584 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34586 LIBOBJS=$ac_libobjs
34588 LTLIBOBJS=$ac_ltlibobjs
34591 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34592 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34593 Usually this means the macro was only invoked conditionally." >&5
34594 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34595 Usually this means the macro was only invoked conditionally." >&2;}
34596 { (exit 1); exit 1; }; }
34598 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34599 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34600 Usually this means the macro was only invoked conditionally." >&5
34601 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34602 Usually this means the macro was only invoked conditionally." >&2;}
34603 { (exit 1); exit 1; }; }
34606 : ${CONFIG_STATUS=./config.status}
34607 ac_clean_files_save=$ac_clean_files
34608 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34609 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34610 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34611 cat >$CONFIG_STATUS <<_ACEOF
34613 # Generated by $as_me.
34614 # Run this file to recreate the current configuration.
34615 # Compiler output produced by configure, useful for debugging
34616 # configure, is in config.log if it exists.
34619 ac_cs_recheck=false
34621 SHELL=\${CONFIG_SHELL-$SHELL}
34624 cat >>$CONFIG_STATUS <<\_ACEOF
34625 ## --------------------- ##
34626 ## M4sh Initialization. ##
34627 ## --------------------- ##
34629 # Be Bourne compatible
34630 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34633 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34634 # is contrary to our usage. Disable this feature.
34635 alias -g '${1+"$@"}'='"$@"'
34636 setopt NO_GLOB_SUBST
34638 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34640 BIN_SH=xpg4; export BIN_SH # for Tru64
34641 DUALCASE=1; export DUALCASE # for MKS sh
34645 # Avoid depending upon Character Ranges.
34646 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34647 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34648 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34649 as_cr_digits='0123456789'
34650 as_cr_alnum=$as_cr_Letters$as_cr_digits
34652 # The user is always right.
34653 if test "${PATH_SEPARATOR+set}" != set; then
34654 echo "#! /bin/sh" >conf$$.sh
34655 echo "exit 0" >>conf$$.sh
34657 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34665 # Support unset when possible.
34666 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34674 # We need space, tab and new line, in precisely that order. Quoting is
34675 # there to prevent editors from complaining about space-tab.
34676 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34677 # splitting by setting IFS to empty value.)
34682 # Find who we are. Look in the path if we contain no directory separator.
34684 *[\\/]* ) as_myself=$0 ;;
34685 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34686 for as_dir in $PATH
34689 test -z "$as_dir" && as_dir=.
34690 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34696 # We did not find ourselves, most probably we were run as `sh COMMAND'
34697 # in which case we are not to be found in the path.
34698 if test "x$as_myself" = x; then
34701 if test ! -f "$as_myself"; then
34702 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34703 { (exit 1); exit 1; }
34706 # Work around bugs in pre-3.0 UWIN ksh.
34707 for as_var in ENV MAIL MAILPATH
34708 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34716 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34717 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34718 LC_TELEPHONE LC_TIME
34720 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34721 eval $as_var=C; export $as_var
34723 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34727 # Required to use basename.
34728 if expr a : '\(a\)' >/dev/null 2>&1 &&
34729 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34735 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34736 as_basename=basename
34742 # Name of the executable.
34743 as_me=`$as_basename -- "$0" ||
34744 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34745 X"$0" : 'X\(//\)$' \| \
34746 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34748 sed '/^.*\/\([^/][^/]*\)\/*$/{
34767 as_lineno_1=$LINENO
34768 as_lineno_2=$LINENO
34769 test "x$as_lineno_1" != "x$as_lineno_2" &&
34770 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34772 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34773 # uniformly replaced by the line number. The first 'sed' inserts a
34774 # line-number line after each line using $LINENO; the second 'sed'
34775 # does the real work. The second script uses 'N' to pair each
34776 # line-number line with the line containing $LINENO, and appends
34777 # trailing '-' during substitution so that $LINENO is not a special
34778 # case at line end.
34779 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34780 # scripts with optimization help from Paolo Bonzini. Blame Lee
34781 # E. McMahon (1931-1989) for sed's syntax. :-)
34793 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34796 ' >$as_me.lineno &&
34797 chmod +x "$as_me.lineno" ||
34798 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34799 { (exit 1); exit 1; }; }
34801 # Don't try to exec as it changes $[0], causing all sort of problems
34802 # (the dirname of $[0] is not the place where we might find the
34803 # original and so on. Autoconf is especially sensitive to this).
34804 . "./$as_me.lineno"
34805 # Exit status is that of the last command.
34810 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34816 ECHO_C= ECHO_N= ECHO_T=
34817 case `echo -n x` in
34819 case `echo 'x\c'` in
34820 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34827 if expr a : '\(a\)' >/dev/null 2>&1 &&
34828 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34834 rm -f conf$$ conf$$.exe conf$$.file
34835 if test -d conf$$.dir; then
34836 rm -f conf$$.dir/conf$$.file
34842 if ln -s conf$$.file conf$$ 2>/dev/null; then
34844 # ... but there are two gotchas:
34845 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34846 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34847 # In both cases, we have to default to `cp -p'.
34848 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34850 elif ln conf$$.file conf$$ 2>/dev/null; then
34855 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34856 rmdir conf$$.dir 2>/dev/null
34858 if mkdir -p . 2>/dev/null; then
34861 test -d ./-p && rmdir ./-p
34865 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34866 # systems may use methods other than mode bits to determine executability.
34867 cat >conf$$.file <<_ASEOF
34871 chmod +x conf$$.file
34872 if test -x conf$$.file >/dev/null 2>&1; then
34873 as_executable_p="test -x"
34879 # Sed expression to map a string onto a valid CPP name.
34880 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34882 # Sed expression to map a string onto a valid variable name.
34883 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34888 # Save the log message, to keep $[0] and so on meaningful, and to
34889 # report actual input values of CONFIG_FILES etc. instead of their
34890 # values after options handling.
34892 This file was extended by llvm $as_me 2.6svn, which was
34893 generated by GNU Autoconf 2.60. Invocation command line was
34895 CONFIG_FILES = $CONFIG_FILES
34896 CONFIG_HEADERS = $CONFIG_HEADERS
34897 CONFIG_LINKS = $CONFIG_LINKS
34898 CONFIG_COMMANDS = $CONFIG_COMMANDS
34901 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34906 cat >>$CONFIG_STATUS <<_ACEOF
34907 # Files that config.status was made for.
34908 config_files="$ac_config_files"
34909 config_headers="$ac_config_headers"
34910 config_commands="$ac_config_commands"
34914 cat >>$CONFIG_STATUS <<\_ACEOF
34916 \`$as_me' instantiates files from templates according to the
34917 current configuration.
34919 Usage: $0 [OPTIONS] [FILE]...
34921 -h, --help print this help, then exit
34922 -V, --version print version number, then exit
34923 -q, --quiet do not print progress messages
34924 -d, --debug don't remove temporary files
34925 --recheck update $as_me by reconfiguring in the same conditions
34926 --file=FILE[:TEMPLATE]
34927 instantiate the configuration file FILE
34928 --header=FILE[:TEMPLATE]
34929 instantiate the configuration header FILE
34931 Configuration files:
34934 Configuration headers:
34937 Configuration commands:
34940 Report bugs to <bug-autoconf@gnu.org>."
34943 cat >>$CONFIG_STATUS <<_ACEOF
34945 llvm config.status 2.6svn
34946 configured by $0, generated by GNU Autoconf 2.60,
34947 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34949 Copyright (C) 2006 Free Software Foundation, Inc.
34950 This config.status script is free software; the Free Software Foundation
34951 gives unlimited permission to copy, distribute and modify it."
34958 cat >>$CONFIG_STATUS <<\_ACEOF
34959 # If no file are specified by the user, then we need to provide default
34960 # value. By we need to know if files were specified by the user.
34966 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34967 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34978 # Handling of the options.
34979 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34981 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34982 echo "$ac_cs_version"; exit ;;
34983 --debug | --debu | --deb | --de | --d | -d )
34985 --file | --fil | --fi | --f )
34987 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34988 ac_need_defaults=false;;
34989 --header | --heade | --head | --hea )
34991 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34992 ac_need_defaults=false;;
34994 # Conflict between --help and --header
34995 { echo "$as_me: error: ambiguous option: $1
34996 Try \`$0 --help' for more information." >&2
34997 { (exit 1); exit 1; }; };;
34998 --help | --hel | -h )
34999 echo "$ac_cs_usage"; exit ;;
35000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35001 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35004 # This is an error.
35005 -*) { echo "$as_me: error: unrecognized option: $1
35006 Try \`$0 --help' for more information." >&2
35007 { (exit 1); exit 1; }; } ;;
35009 *) ac_config_targets="$ac_config_targets $1"
35010 ac_need_defaults=false ;;
35016 ac_configure_extra_args=
35018 if $ac_cs_silent; then
35020 ac_configure_extra_args="$ac_configure_extra_args --silent"
35024 cat >>$CONFIG_STATUS <<_ACEOF
35025 if \$ac_cs_recheck; then
35026 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35027 CONFIG_SHELL=$SHELL
35028 export CONFIG_SHELL
35029 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35033 cat >>$CONFIG_STATUS <<\_ACEOF
35037 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35038 ## Running $as_me. ##
35044 cat >>$CONFIG_STATUS <<_ACEOF
35048 llvm_src="${srcdir}"
35052 cat >>$CONFIG_STATUS <<\_ACEOF
35054 # Handling of arguments.
35055 for ac_config_target in $ac_config_targets
35057 case $ac_config_target in
35058 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35059 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35060 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35061 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35062 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35063 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35064 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35065 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35066 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35067 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35068 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35069 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35070 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35071 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35072 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35073 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35074 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35075 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35076 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35077 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35078 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35079 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35080 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35082 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35083 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35084 { (exit 1); exit 1; }; };;
35089 # If the user did not use the arguments to specify the items to instantiate,
35090 # then the envvar interface is used. Set only those that are not.
35091 # We use the long form for the default assignment because of an extremely
35092 # bizarre bug on SunOS 4.1.3.
35093 if $ac_need_defaults; then
35094 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35095 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35096 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35099 # Have a temporary directory for convenience. Make it in the build tree
35100 # simply because there is no reason against having it here, and in addition,
35101 # creating and moving files from /tmp can sometimes cause problems.
35102 # Hook for its removal unless debugging.
35103 # Note that there is a small window in which the directory will not be cleaned:
35104 # after its creation but before its name has been assigned to `$tmp'.
35108 trap 'exit_status=$?
35109 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35111 trap '{ (exit 1); exit 1; }' 1 2 13 15
35113 # Create a (secure) tmp directory for tmp files.
35116 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35117 test -n "$tmp" && test -d "$tmp"
35120 tmp=./conf$$-$RANDOM
35121 (umask 077 && mkdir "$tmp")
35124 echo "$me: cannot create a temporary directory in ." >&2
35125 { (exit 1); exit 1; }
35129 # Set up the sed scripts for CONFIG_FILES section.
35132 # No need to generate the scripts if there are no CONFIG_FILES.
35133 # This happens for instance when ./config.status config.h
35134 if test -n "$CONFIG_FILES"; then
35141 for ac_last_try in false false false false false :; do
35142 cat >conf$$subs.sed <<_ACEOF
35143 SHELL!$SHELL$ac_delim
35144 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35145 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35146 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35147 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35148 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35149 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35150 exec_prefix!$exec_prefix$ac_delim
35151 prefix!$prefix$ac_delim
35152 program_transform_name!$program_transform_name$ac_delim
35153 bindir!$bindir$ac_delim
35154 sbindir!$sbindir$ac_delim
35155 libexecdir!$libexecdir$ac_delim
35156 datarootdir!$datarootdir$ac_delim
35157 datadir!$datadir$ac_delim
35158 sysconfdir!$sysconfdir$ac_delim
35159 sharedstatedir!$sharedstatedir$ac_delim
35160 localstatedir!$localstatedir$ac_delim
35161 includedir!$includedir$ac_delim
35162 oldincludedir!$oldincludedir$ac_delim
35163 docdir!$docdir$ac_delim
35164 infodir!$infodir$ac_delim
35165 htmldir!$htmldir$ac_delim
35166 dvidir!$dvidir$ac_delim
35167 pdfdir!$pdfdir$ac_delim
35168 psdir!$psdir$ac_delim
35169 libdir!$libdir$ac_delim
35170 localedir!$localedir$ac_delim
35171 mandir!$mandir$ac_delim
35172 DEFS!$DEFS$ac_delim
35173 ECHO_C!$ECHO_C$ac_delim
35174 ECHO_N!$ECHO_N$ac_delim
35175 ECHO_T!$ECHO_T$ac_delim
35176 LIBS!$LIBS$ac_delim
35177 build_alias!$build_alias$ac_delim
35178 host_alias!$host_alias$ac_delim
35179 target_alias!$target_alias$ac_delim
35180 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35181 subdirs!$subdirs$ac_delim
35182 build!$build$ac_delim
35183 build_cpu!$build_cpu$ac_delim
35184 build_vendor!$build_vendor$ac_delim
35185 build_os!$build_os$ac_delim
35186 host!$host$ac_delim
35187 host_cpu!$host_cpu$ac_delim
35188 host_vendor!$host_vendor$ac_delim
35189 host_os!$host_os$ac_delim
35190 target!$target$ac_delim
35191 target_cpu!$target_cpu$ac_delim
35192 target_vendor!$target_vendor$ac_delim
35193 target_os!$target_os$ac_delim
35195 LINKALL!$LINKALL$ac_delim
35196 NOLINKALL!$NOLINKALL$ac_delim
35197 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35198 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35199 ARCH!$ARCH$ac_delim
35200 ENDIAN!$ENDIAN$ac_delim
35202 CFLAGS!$CFLAGS$ac_delim
35203 LDFLAGS!$LDFLAGS$ac_delim
35204 CPPFLAGS!$CPPFLAGS$ac_delim
35205 ac_ct_CC!$ac_ct_CC$ac_delim
35206 EXEEXT!$EXEEXT$ac_delim
35207 OBJEXT!$OBJEXT$ac_delim
35209 GREP!$GREP$ac_delim
35210 EGREP!$EGREP$ac_delim
35211 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35212 BUILD_CC!$BUILD_CC$ac_delim
35213 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35214 BUILD_CXX!$BUILD_CXX$ac_delim
35215 CVSBUILD!$CVSBUILD$ac_delim
35216 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35217 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35218 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35219 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35220 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35222 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35223 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35224 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35225 ENABLE_PIC!$ENABLE_PIC$ac_delim
35226 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35227 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35228 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35229 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
35231 CXXFLAGS!$CXXFLAGS$ac_delim
35232 ac_ct_CXX!$ac_ct_CXX$ac_delim
35234 ifGNUmake!$ifGNUmake$ac_delim
35235 LN_S!$LN_S$ac_delim
35238 DATE!$DATE$ac_delim
35239 FIND!$FIND$ac_delim
35242 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35244 elif $ac_last_try; then
35245 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35246 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35247 { (exit 1); exit 1; }; }
35249 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35253 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35254 if test -n "$ac_eof"; then
35255 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35256 ac_eof=`expr $ac_eof + 1`
35259 cat >>$CONFIG_STATUS <<_ACEOF
35260 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35261 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35264 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35265 s/^/s,@/; s/!/@,|#_!!_#|/
35268 s/'"$ac_delim"'$/,g/; t
35270 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35271 ' >>$CONFIG_STATUS <conf$$subs.sed
35272 rm -f conf$$subs.sed
35273 cat >>$CONFIG_STATUS <<_ACEOF
35279 for ac_last_try in false false false false false :; do
35280 cat >conf$$subs.sed <<_ACEOF
35281 MKDIR!$MKDIR$ac_delim
35283 RANLIB!$RANLIB$ac_delim
35287 BINPWD!$BINPWD$ac_delim
35288 GRAPHVIZ!$GRAPHVIZ$ac_delim
35291 DOTTY!$DOTTY$ac_delim
35292 PERL!$PERL$ac_delim
35293 HAVE_PERL!$HAVE_PERL$ac_delim
35294 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35295 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35296 INSTALL_DATA!$INSTALL_DATA$ac_delim
35297 BZIP2!$BZIP2$ac_delim
35298 DOXYGEN!$DOXYGEN$ac_delim
35299 GROFF!$GROFF$ac_delim
35300 GZIP!$GZIP$ac_delim
35301 POD2HTML!$POD2HTML$ac_delim
35302 POD2MAN!$POD2MAN$ac_delim
35303 RUNTEST!$RUNTEST$ac_delim
35304 TCLSH!$TCLSH$ac_delim
35306 OCAMLC!$OCAMLC$ac_delim
35307 OCAMLOPT!$OCAMLOPT$ac_delim
35308 OCAMLDEP!$OCAMLDEP$ac_delim
35309 OCAMLDOC!$OCAMLDOC$ac_delim
35311 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35312 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35313 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35314 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35315 LIBADD_DL!$LIBADD_DL$ac_delim
35316 ECHO!$ECHO$ac_delim
35318 STRIP!$STRIP$ac_delim
35319 CXXCPP!$CXXCPP$ac_delim
35321 FFLAGS!$FFLAGS$ac_delim
35322 ac_ct_F77!$ac_ct_F77$ac_delim
35323 LIBTOOL!$LIBTOOL$ac_delim
35324 LLVMGCC!$LLVMGCC$ac_delim
35325 LLVMGXX!$LLVMGXX$ac_delim
35326 USE_UDIS86!$USE_UDIS86$ac_delim
35327 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35328 HAVE_FFI!$HAVE_FFI$ac_delim
35329 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35330 ALLOCA!$ALLOCA$ac_delim
35331 MMAP_FILE!$MMAP_FILE$ac_delim
35332 LLVMCC1!$LLVMCC1$ac_delim
35333 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35334 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35335 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35336 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35337 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35338 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35339 SHLIBEXT!$SHLIBEXT$ac_delim
35340 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35341 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35342 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35343 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35344 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35345 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35346 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35347 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35348 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35349 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35350 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35351 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35352 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35353 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35354 RPATH!$RPATH$ac_delim
35355 LIBOBJS!$LIBOBJS$ac_delim
35356 LTLIBOBJS!$LTLIBOBJS$ac_delim
35359 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
35361 elif $ac_last_try; then
35362 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35363 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35364 { (exit 1); exit 1; }; }
35366 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35370 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35371 if test -n "$ac_eof"; then
35372 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35373 ac_eof=`expr $ac_eof + 1`
35376 cat >>$CONFIG_STATUS <<_ACEOF
35377 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35378 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35381 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35382 s/^/s,@/; s/!/@,|#_!!_#|/
35385 s/'"$ac_delim"'$/,g/; t
35387 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35388 ' >>$CONFIG_STATUS <conf$$subs.sed
35389 rm -f conf$$subs.sed
35390 cat >>$CONFIG_STATUS <<_ACEOF
35397 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35398 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35399 # trailing colons and then remove the whole line if VPATH becomes empty
35400 # (actually we leave an empty line to preserve line numbers).
35401 if test "x$srcdir" = x.; then
35402 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35403 s/:*\$(srcdir):*/:/
35404 s/:*\${srcdir}:*/:/
35406 s/^\([^=]*=[ ]*\):*/\1/
35412 cat >>$CONFIG_STATUS <<\_ACEOF
35413 fi # test -n "$CONFIG_FILES"
35416 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35419 :[FHLC]) ac_mode=$ac_tag; continue;;
35421 case $ac_mode$ac_tag in
35423 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35424 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35425 { (exit 1); exit 1; }; };;
35426 :[FH]-) ac_tag=-:-;;
35427 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35444 -) ac_f="$tmp/stdin";;
35445 *) # Look for the file first in the build tree, then in the source tree
35446 # (if the path is not absolute). The absolute path cannot be DOS-style,
35447 # because $ac_f cannot contain `:'.
35451 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35453 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35454 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35455 { (exit 1); exit 1; }; };;
35457 ac_file_inputs="$ac_file_inputs $ac_f"
35460 # Let's still pretend it is `configure' which instantiates (i.e., don't
35461 # use $as_me), people would be surprised to read:
35462 # /* config.h. Generated by config.status. */
35463 configure_input="Generated from "`IFS=:
35464 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35465 if test x"$ac_file" != x-; then
35466 configure_input="$ac_file. $configure_input"
35467 { echo "$as_me:$LINENO: creating $ac_file" >&5
35468 echo "$as_me: creating $ac_file" >&6;}
35472 *:-:* | *:-) cat >"$tmp/stdin";;
35477 ac_dir=`$as_dirname -- "$ac_file" ||
35478 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35479 X"$ac_file" : 'X\(//\)[^/]' \| \
35480 X"$ac_file" : 'X\(//\)$' \| \
35481 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35487 /^X\(\/\/\)[^/].*/{
35502 -*) as_dir=./$as_dir;;
35504 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35508 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35509 *) as_qdir=$as_dir;;
35511 as_dirs="'$as_qdir' $as_dirs"
35512 as_dir=`$as_dirname -- "$as_dir" ||
35513 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35514 X"$as_dir" : 'X\(//\)[^/]' \| \
35515 X"$as_dir" : 'X\(//\)$' \| \
35516 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35522 /^X\(\/\/\)[^/].*/{
35535 test -d "$as_dir" && break
35537 test -z "$as_dirs" || eval "mkdir $as_dirs"
35538 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35539 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35540 { (exit 1); exit 1; }; }; }
35544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35546 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35547 # A ".." for each directory in $ac_dir_suffix.
35548 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35549 case $ac_top_builddir_sub in
35550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35554 ac_abs_top_builddir=$ac_pwd
35555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35556 # for backward compatibility:
35557 ac_top_builddir=$ac_top_build_prefix
35560 .) # We are building in place.
35562 ac_top_srcdir=$ac_top_builddir_sub
35563 ac_abs_top_srcdir=$ac_pwd ;;
35564 [\\/]* | ?:[\\/]* ) # Absolute name.
35565 ac_srcdir=$srcdir$ac_dir_suffix;
35566 ac_top_srcdir=$srcdir
35567 ac_abs_top_srcdir=$srcdir ;;
35568 *) # Relative name.
35569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35570 ac_top_srcdir=$ac_top_build_prefix$srcdir
35571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35583 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35584 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35588 cat >>$CONFIG_STATUS <<\_ACEOF
35589 # If the template does not know about datarootdir, expand it.
35590 # FIXME: This hack should be removed a few years after 2.60.
35591 ac_datarootdir_hack=; ac_datarootdir_seen=
35593 case `sed -n '/datarootdir/ {
35602 ' $ac_file_inputs` in
35603 *datarootdir*) ac_datarootdir_seen=yes;;
35604 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35605 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35606 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35608 cat >>$CONFIG_STATUS <<_ACEOF
35609 ac_datarootdir_hack='
35610 s&@datadir@&$datadir&g
35611 s&@docdir@&$docdir&g
35612 s&@infodir@&$infodir&g
35613 s&@localedir@&$localedir&g
35614 s&@mandir@&$mandir&g
35615 s&\\\${datarootdir}&$datarootdir&g' ;;
35619 # Neutralize VPATH when `$srcdir' = `.'.
35620 # Shell code in configure.ac might set extrasub.
35621 # FIXME: do we really want to maintain this feature?
35622 cat >>$CONFIG_STATUS <<_ACEOF
35626 cat >>$CONFIG_STATUS <<\_ACEOF
35628 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35629 s&@configure_input@&$configure_input&;t t
35630 s&@top_builddir@&$ac_top_builddir_sub&;t t
35631 s&@srcdir@&$ac_srcdir&;t t
35632 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35633 s&@top_srcdir@&$ac_top_srcdir&;t t
35634 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35635 s&@builddir@&$ac_builddir&;t t
35636 s&@abs_builddir@&$ac_abs_builddir&;t t
35637 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35638 s&@INSTALL@&$ac_INSTALL&;t t
35639 $ac_datarootdir_hack
35640 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35642 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35643 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35644 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35645 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35646 which seems to be undefined. Please make sure it is defined." >&5
35647 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35648 which seems to be undefined. Please make sure it is defined." >&2;}
35652 -) cat "$tmp/out"; rm -f "$tmp/out";;
35653 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35662 # Transform confdefs.h into a sed script `conftest.defines', that
35663 # substitutes the proper values into config.h.in to produce config.h.
35664 rm -f conftest.defines conftest.tail
35665 # First, append a space to every undef/define line, to ease matching.
35666 echo 's/$/ /' >conftest.defines
35667 # Then, protect against being on the right side of a sed subst, or in
35668 # an unquoted here document, in config.status. If some macros were
35669 # called several times there might be several #defines for the same
35670 # symbol, which is useless. But do not sort them, since the last
35671 # AC_DEFINE must be honored.
35672 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35673 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35674 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35675 # PARAMS is the parameter list in the macro definition--in most cases, it's
35676 # just an empty string.
35677 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35678 ac_dB='\\)[ (].*,\\1define\\2'
35686 s/^[ ]*#[ ]*define[ ][ ]*//
35691 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35692 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35693 ' >>conftest.defines
35695 # Remove the space that was appended to ease matching.
35696 # Then replace #undef with comments. This is necessary, for
35697 # example, in the case of _POSIX_SOURCE, which is predefined and required
35698 # on some systems where configure will not decide to define it.
35699 # (The regexp can be short, since the line contains either #define or #undef.)
35701 s,^[ #]*u.*,/* & */,' >>conftest.defines
35703 # Break up conftest.defines:
35704 ac_max_sed_lines=50
35706 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35707 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35708 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35710 ac_in='$ac_file_inputs'
35711 ac_out='"$tmp/out1"'
35712 ac_nxt='"$tmp/out2"'
35716 # Write a here document:
35717 cat >>$CONFIG_STATUS <<_ACEOF
35718 # First, check the format of the line:
35719 cat >"\$tmp/defines.sed" <<\\CEOF
35720 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35721 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35725 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35727 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35728 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35729 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35730 grep . conftest.tail >/dev/null || break
35731 rm -f conftest.defines
35732 mv conftest.tail conftest.defines
35734 rm -f conftest.defines conftest.tail
35736 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35737 cat >>$CONFIG_STATUS <<\_ACEOF
35738 if test x"$ac_file" != x-; then
35739 echo "/* $configure_input */" >"$tmp/config.h"
35740 cat "$ac_result" >>"$tmp/config.h"
35741 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35742 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35743 echo "$as_me: $ac_file is unchanged" >&6;}
35746 mv "$tmp/config.h" $ac_file
35749 echo "/* $configure_input */"
35755 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35756 echo "$as_me: executing $ac_file commands" >&6;}
35761 case $ac_file$ac_mode in
35762 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35763 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35764 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35765 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35766 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35767 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35768 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35769 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35770 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35771 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35772 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35773 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35774 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35775 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35776 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35777 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35778 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35779 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35780 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35781 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35782 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35783 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35784 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35785 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35786 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35787 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35793 { (exit 0); exit 0; }
35795 chmod +x $CONFIG_STATUS
35796 ac_clean_files=$ac_clean_files_save
35799 # configure is writing to config.log, and then calls config.status.
35800 # config.status does its own redirection, appending to config.log.
35801 # Unfortunately, on DOS this fails, as config.log is still kept open
35802 # by configure, so config.status won't be able to write to it; its
35803 # output is simply discarded. So we exec the FD to /dev/null,
35804 # effectively closing config.log, so it can be properly (re)opened and
35805 # appended to by config.status. When coming back to configure, we
35806 # need to make the FD available again.
35807 if test "$no_create" != yes; then
35809 ac_config_status_args=
35810 test "$silent" = yes &&
35811 ac_config_status_args="$ac_config_status_args --quiet"
35813 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35815 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35816 # would make configure fail if this is the last instruction.
35817 $ac_cs_success || { (exit 1); exit 1; }
35821 # CONFIG_SUBDIRS section.
35823 if test "$no_recursion" != yes; then
35825 # Remove --cache-file and --srcdir arguments so they do not pile up.
35826 ac_sub_configure_args=
35828 eval "set x $ac_configure_args"
35832 if test -n "$ac_prev"; then
35837 -cache-file | --cache-file | --cache-fil | --cache-fi \
35838 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35839 ac_prev=cache_file ;;
35840 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35841 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35844 --config-cache | -C)
35846 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35848 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35850 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35852 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35856 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35858 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35862 # Always prepend --prefix to ensure using the same prefix
35863 # in subdir configurations.
35864 ac_arg="--prefix=$prefix"
35866 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35868 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35871 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35873 # Do not complain, so a configure script can configure whichever
35874 # parts of a large source tree are present.
35875 test -d "$srcdir/$ac_dir" || continue
35877 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35878 echo "$as_me:$LINENO: $ac_msg" >&5
35882 -*) as_dir=./$as_dir;;
35884 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35888 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35889 *) as_qdir=$as_dir;;
35891 as_dirs="'$as_qdir' $as_dirs"
35892 as_dir=`$as_dirname -- "$as_dir" ||
35893 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35894 X"$as_dir" : 'X\(//\)[^/]' \| \
35895 X"$as_dir" : 'X\(//\)$' \| \
35896 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35902 /^X\(\/\/\)[^/].*/{
35915 test -d "$as_dir" && break
35917 test -z "$as_dirs" || eval "mkdir $as_dirs"
35918 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35919 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35920 { (exit 1); exit 1; }; }; }
35924 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35927 # A ".." for each directory in $ac_dir_suffix.
35928 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35929 case $ac_top_builddir_sub in
35930 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35931 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35934 ac_abs_top_builddir=$ac_pwd
35935 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35936 # for backward compatibility:
35937 ac_top_builddir=$ac_top_build_prefix
35940 .) # We are building in place.
35942 ac_top_srcdir=$ac_top_builddir_sub
35943 ac_abs_top_srcdir=$ac_pwd ;;
35944 [\\/]* | ?:[\\/]* ) # Absolute name.
35945 ac_srcdir=$srcdir$ac_dir_suffix;
35946 ac_top_srcdir=$srcdir
35947 ac_abs_top_srcdir=$srcdir ;;
35948 *) # Relative name.
35949 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35950 ac_top_srcdir=$ac_top_build_prefix$srcdir
35951 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35953 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35958 # Check for guested configure; otherwise get Cygnus style configure.
35959 if test -f "$ac_srcdir/configure.gnu"; then
35960 ac_sub_configure=$ac_srcdir/configure.gnu
35961 elif test -f "$ac_srcdir/configure"; then
35962 ac_sub_configure=$ac_srcdir/configure
35963 elif test -f "$ac_srcdir/configure.in"; then
35964 # This should be Cygnus configure.
35965 ac_sub_configure=$ac_aux_dir/configure
35967 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35968 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35972 # The recursion is here.
35973 if test -n "$ac_sub_configure"; then
35974 # Make the cache file name correct relative to the subdirectory.
35975 case $cache_file in
35976 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35977 *) # Relative name.
35978 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35981 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35982 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35983 # The eval makes quoting arguments work.
35984 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35985 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35986 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35987 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35988 { (exit 1); exit 1; }; }