2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.7svn.
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-2009 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.7svn'
719 PACKAGE_STRING='llvm 2.7svn'
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
837 ENABLE_EXPENSIVE_CHECKS
848 LLVM_ENUM_ASM_PRINTERS
849 LLVM_ENUM_ASM_PARSERS
854 ENABLE_LLVMC_DYNAMIC_PLUGINS
901 CONVENIENCE_LTDL_TRUE
902 CONVENIENCE_LTDL_FALSE
943 ENABLE_VISIBILITY_INLINES_HIDDEN
949 ac_precious_vars='build_alias
963 ac_subdirs_all='projects/sample
965 projects/llvm-stacker
972 projects/llvm-poolalloc
974 projects/llvm-kernel'
976 # Initialize some variables set by options.
978 ac_init_version=false
979 # The variables have the same names as the options, with
980 # dashes changed to underlines.
988 program_transform_name=s,x,x,
996 # Installation directory options.
997 # These are left unexpanded so users can "make install exec_prefix=/foo"
998 # and all the variables that are supposed to be based on exec_prefix
999 # by default will actually change.
1000 # Use braces instead of parens because sh, perl, etc. also accept them.
1001 # (The list follows the same order as the GNU Coding Standards.)
1002 bindir='${exec_prefix}/bin'
1003 sbindir='${exec_prefix}/sbin'
1004 libexecdir='${exec_prefix}/libexec'
1005 datarootdir='${prefix}/share'
1006 datadir='${datarootdir}'
1007 sysconfdir='${prefix}/etc'
1008 sharedstatedir='${prefix}/com'
1009 localstatedir='${prefix}/var'
1010 includedir='${prefix}/include'
1011 oldincludedir='/usr/include'
1012 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1013 infodir='${datarootdir}/info'
1018 libdir='${exec_prefix}/lib'
1019 localedir='${datarootdir}/locale'
1020 mandir='${datarootdir}/man'
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
1028 eval $ac_prev=\$ac_option
1034 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038 # Accept the important Cygnus configure options, so we can diagnose typos.
1040 case $ac_dashdash$ac_option in
1044 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1046 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1047 bindir=$ac_optarg ;;
1049 -build | --build | --buil | --bui | --bu)
1050 ac_prev=build_alias ;;
1051 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1052 build_alias=$ac_optarg ;;
1054 -cache-file | --cache-file | --cache-fil | --cache-fi \
1055 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1056 ac_prev=cache_file ;;
1057 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1058 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1059 cache_file=$ac_optarg ;;
1061 --config-cache | -C)
1062 cache_file=config.cache ;;
1064 -datadir | --datadir | --datadi | --datad)
1066 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1067 datadir=$ac_optarg ;;
1069 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1070 | --dataroo | --dataro | --datar)
1071 ac_prev=datarootdir ;;
1072 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1073 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1074 datarootdir=$ac_optarg ;;
1076 -disable-* | --disable-*)
1077 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1083 eval enable_$ac_feature=no ;;
1085 -docdir | --docdir | --docdi | --doc | --do)
1087 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088 docdir=$ac_optarg ;;
1090 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1092 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093 dvidir=$ac_optarg ;;
1095 -enable-* | --enable-*)
1096 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1099 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1100 { (exit 1); exit 1; }; }
1101 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1102 eval enable_$ac_feature=\$ac_optarg ;;
1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106 | --exec | --exe | --ex)
1107 ac_prev=exec_prefix ;;
1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110 | --exec=* | --exe=* | --ex=*)
1111 exec_prefix=$ac_optarg ;;
1113 -gas | --gas | --ga | --g)
1114 # Obsolete; use --with-gas.
1117 -help | --help | --hel | --he | -h)
1118 ac_init_help=long ;;
1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120 ac_init_help=recursive ;;
1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122 ac_init_help=short ;;
1124 -host | --host | --hos | --ho)
1125 ac_prev=host_alias ;;
1126 -host=* | --host=* | --hos=* | --ho=*)
1127 host_alias=$ac_optarg ;;
1129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1133 htmldir=$ac_optarg ;;
1135 -includedir | --includedir | --includedi | --included | --include \
1136 | --includ | --inclu | --incl | --inc)
1137 ac_prev=includedir ;;
1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139 | --includ=* | --inclu=* | --incl=* | --inc=*)
1140 includedir=$ac_optarg ;;
1142 -infodir | --infodir | --infodi | --infod | --info | --inf)
1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145 infodir=$ac_optarg ;;
1147 -libdir | --libdir | --libdi | --libd)
1149 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150 libdir=$ac_optarg ;;
1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153 | --libexe | --libex | --libe)
1154 ac_prev=libexecdir ;;
1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156 | --libexe=* | --libex=* | --libe=*)
1157 libexecdir=$ac_optarg ;;
1159 -localedir | --localedir | --localedi | --localed | --locale)
1160 ac_prev=localedir ;;
1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162 localedir=$ac_optarg ;;
1164 -localstatedir | --localstatedir | --localstatedi | --localstated \
1165 | --localstate | --localstat | --localsta | --localst | --locals)
1166 ac_prev=localstatedir ;;
1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1169 localstatedir=$ac_optarg ;;
1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174 mandir=$ac_optarg ;;
1176 -nfp | --nfp | --nf)
1177 # Obsolete; use --without-fp.
1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181 | --no-cr | --no-c | -n)
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190 | --oldin | --oldi | --old | --ol | --o)
1191 ac_prev=oldincludedir ;;
1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195 oldincludedir=$ac_optarg ;;
1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200 prefix=$ac_optarg ;;
1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203 | --program-pre | --program-pr | --program-p)
1204 ac_prev=program_prefix ;;
1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207 program_prefix=$ac_optarg ;;
1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210 | --program-suf | --program-su | --program-s)
1211 ac_prev=program_suffix ;;
1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214 program_suffix=$ac_optarg ;;
1216 -program-transform-name | --program-transform-name \
1217 | --program-transform-nam | --program-transform-na \
1218 | --program-transform-n | --program-transform- \
1219 | --program-transform | --program-transfor \
1220 | --program-transfo | --program-transf \
1221 | --program-trans | --program-tran \
1222 | --progr-tra | --program-tr | --program-t)
1223 ac_prev=program_transform_name ;;
1224 -program-transform-name=* | --program-transform-name=* \
1225 | --program-transform-nam=* | --program-transform-na=* \
1226 | --program-transform-n=* | --program-transform-=* \
1227 | --program-transform=* | --program-transfor=* \
1228 | --program-transfo=* | --program-transf=* \
1229 | --program-trans=* | --program-tran=* \
1230 | --progr-tra=* | --program-tr=* | --program-t=*)
1231 program_transform_name=$ac_optarg ;;
1233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236 pdfdir=$ac_optarg ;;
1238 -psdir | --psdir | --psdi | --psd | --ps)
1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1247 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1249 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1251 sbindir=$ac_optarg ;;
1253 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255 | --sharedst | --shareds | --shared | --share | --shar \
1257 ac_prev=sharedstatedir ;;
1258 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1262 sharedstatedir=$ac_optarg ;;
1264 -site | --site | --sit)
1266 -site=* | --site=* | --sit=*)
1269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272 srcdir=$ac_optarg ;;
1274 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275 | --syscon | --sysco | --sysc | --sys | --sy)
1276 ac_prev=sysconfdir ;;
1277 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279 sysconfdir=$ac_optarg ;;
1281 -target | --target | --targe | --targ | --tar | --ta | --t)
1282 ac_prev=target_alias ;;
1283 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284 target_alias=$ac_optarg ;;
1286 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1289 -version | --version | --versio | --versi | --vers | -V)
1290 ac_init_version=: ;;
1293 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1296 { echo "$as_me: error: invalid package name: $ac_package" >&2
1297 { (exit 1); exit 1; }; }
1298 ac_package=`echo $ac_package| sed 's/-/_/g'`
1299 eval with_$ac_package=\$ac_optarg ;;
1301 -without-* | --without-*)
1302 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1305 { echo "$as_me: error: invalid package name: $ac_package" >&2
1306 { (exit 1); exit 1; }; }
1307 ac_package=`echo $ac_package | sed 's/-/_/g'`
1308 eval with_$ac_package=no ;;
1311 # Obsolete; use --with-x.
1314 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315 | --x-incl | --x-inc | --x-in | --x-i)
1316 ac_prev=x_includes ;;
1317 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319 x_includes=$ac_optarg ;;
1321 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323 ac_prev=x_libraries ;;
1324 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326 x_libraries=$ac_optarg ;;
1328 -*) { echo "$as_me: error: unrecognized option: $ac_option
1329 Try \`$0 --help' for more information." >&2
1330 { (exit 1); exit 1; }; }
1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1337 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1338 { (exit 1); exit 1; }; }
1339 eval $ac_envvar=\$ac_optarg
1340 export $ac_envvar ;;
1343 # FIXME: should be removed in autoconf 3.0.
1344 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1353 if test -n "$ac_prev"; then
1354 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355 { echo "$as_me: error: missing argument to $ac_option" >&2
1356 { (exit 1); exit 1; }; }
1359 # Be sure to have absolute directory names.
1360 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361 datadir sysconfdir sharedstatedir localstatedir includedir \
1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363 libdir localedir mandir
1365 eval ac_val=\$$ac_var
1367 [\\/$]* | ?:[\\/]* ) continue;;
1368 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1370 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1371 { (exit 1); exit 1; }; }
1374 # There might be people who depend on the old broken behavior: `$host'
1375 # used to hold the argument of --host etc.
1376 # FIXME: To remove some day.
1379 target=$target_alias
1381 # FIXME: To remove some day.
1382 if test "x$host_alias" != x; then
1383 if test "x$build_alias" = x; then
1384 cross_compiling=maybe
1385 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1386 If a cross compiler is detected then cross compile mode will be used." >&2
1387 elif test "x$build_alias" != "x$host_alias"; then
1393 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1395 test "$silent" = yes && exec 6>/dev/null
1398 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1399 ac_ls_di=`ls -di .` &&
1400 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1401 { echo "$as_me: error: Working directory cannot be determined" >&2
1402 { (exit 1); exit 1; }; }
1403 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1404 { echo "$as_me: error: pwd does not report name of working directory" >&2
1405 { (exit 1); exit 1; }; }
1408 # Find the source files, if location was not specified.
1409 if test -z "$srcdir"; then
1410 ac_srcdir_defaulted=yes
1411 # Try the directory containing this script, then the parent directory.
1412 ac_confdir=`$as_dirname -- "$0" ||
1413 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1414 X"$0" : 'X\(//\)[^/]' \| \
1415 X"$0" : 'X\(//\)$' \| \
1416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1436 if test ! -r "$srcdir/$ac_unique_file"; then
1440 ac_srcdir_defaulted=no
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1444 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1445 { (exit 1); exit 1; }; }
1447 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1450 { (exit 1); exit 1; }; }
1452 # When building in place, set srcdir=.
1453 if test "$ac_abs_confdir" = "$ac_pwd"; then
1456 # Remove unnecessary trailing slashes from srcdir.
1457 # Double slashes in file names in object file debugging info
1458 # mess up M-x gdb in Emacs.
1460 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1462 for ac_var in $ac_precious_vars; do
1463 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464 eval ac_env_${ac_var}_value=\$${ac_var}
1465 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1470 # Report the --help message.
1472 if test "$ac_init_help" = "long"; then
1473 # Omit some internal or obsolete options to make the list less imposing.
1474 # This message is too long to be a string in the A/UX 3.1 sh.
1476 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1478 Usage: $0 [OPTION]... [VAR=VALUE]...
1480 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481 VAR=VALUE. See below for descriptions of some of the useful variables.
1483 Defaults for the options are specified in brackets.
1486 -h, --help display this help and exit
1487 --help=short display options specific to this package
1488 --help=recursive display the short help of all the included packages
1489 -V, --version display version information and exit
1490 -q, --quiet, --silent do not print \`checking...' messages
1491 --cache-file=FILE cache test results in FILE [disabled]
1492 -C, --config-cache alias for \`--cache-file=config.cache'
1493 -n, --no-create do not create output files
1494 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1496 Installation directories:
1497 --prefix=PREFIX install architecture-independent files in PREFIX
1498 [$ac_default_prefix]
1499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1502 By default, \`make install' will install all the files in
1503 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1504 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505 for instance \`--prefix=\$HOME'.
1507 For better control, use the options below.
1509 Fine tuning of the installation directories:
1510 --bindir=DIR user executables [EPREFIX/bin]
1511 --sbindir=DIR system admin executables [EPREFIX/sbin]
1512 --libexecdir=DIR program executables [EPREFIX/libexec]
1513 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1514 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1515 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1516 --libdir=DIR object code libraries [EPREFIX/lib]
1517 --includedir=DIR C header files [PREFIX/include]
1518 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1519 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1520 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1521 --infodir=DIR info documentation [DATAROOTDIR/info]
1522 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1523 --mandir=DIR man documentation [DATAROOTDIR/man]
1524 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1525 --htmldir=DIR html documentation [DOCDIR]
1526 --dvidir=DIR dvi documentation [DOCDIR]
1527 --pdfdir=DIR pdf documentation [DOCDIR]
1528 --psdir=DIR ps documentation [DOCDIR]
1534 --build=BUILD configure for building on BUILD [guessed]
1535 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1536 --target=TARGET configure for building compilers for TARGET [HOST]
1540 if test -n "$ac_init_help"; then
1541 case $ac_init_help in
1542 short | recursive ) echo "Configuration of llvm 2.7svn:";;
1547 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1548 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1549 --enable-optimized Compile with optimizations enabled (default is NO)
1550 --enable-profiling Compile with profiling enabled (default is NO)
1551 --enable-assertions Compile with assertion checks enabled (default is
1553 --enable-expensive-checks
1554 Compile with expensive debug checks enabled (default
1556 --enable-debug-runtime Build runtime libs with debug symbols (default is
1558 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1559 optimization is on and YES if it's off)
1560 --enable-jit Enable Just In Time Compiling (default is YES)
1561 --enable-doxygen Build doxygen documentation (default is NO)
1562 --enable-threads Use threads if available (default is YES)
1563 --enable-pic Build LLVM with Position Independent Code (default
1565 --enable-targets Build specific host targets: all or
1566 target1,target2,... Valid targets are: host, x86,
1567 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1568 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1569 and cpp (default=all)
1570 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1572 --enable-bindings Build specific language bindings:
1573 all,auto,none,{binding-name} (default=auto)
1574 --enable-libffi Check for the presence of libffi (default is YES)
1575 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1577 --enable-llvmc-dynamic-plugins
1578 Enable dynamic LLVMC plugins (default is YES)
1579 --enable-ltdl-install install libltdl
1580 --enable-shared[=PKGS] build shared libraries
1582 --enable-static[=PKGS] build static libraries
1584 --enable-fast-install[=PKGS]
1585 optimize for fast installation
1587 --disable-libtool-lock avoid locking (might break parallel builds)
1590 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1591 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1592 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1594 --with-llvmgcc Specify location of llvm-gcc driver (default
1596 --with-llvmgxx Specify location of llvm-g++ driver (default
1598 --with-extra-options Specify additional options to compile LLVM with
1599 --with-ocaml-libdir Specify install location for ocaml bindings (default
1601 --with-binutils-include Specify path to binutils/include/ containing
1602 plugin-api.h file for gold plugin.
1603 --with-tclinclude directory where tcl headers are
1604 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1605 --with-pic try to use only PIC/non-PIC objects [default=use
1607 --with-tags[=TAGS] include additional configurations [automatic]
1608 --with-udis86=<path> Use udis86 external x86 disassembler library
1609 --with-oprofile=<prefix>
1610 Tell OProfile >= 0.9.4 how to symbolize JIT output
1612 Some influential environment variables:
1613 CC C compiler command
1614 CFLAGS C compiler flags
1615 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1616 nonstandard directory <lib dir>
1617 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1618 you have headers in a nonstandard directory <include dir>
1620 CXX C++ compiler command
1621 CXXFLAGS C++ compiler flags
1622 CXXCPP C++ preprocessor
1623 F77 Fortran 77 compiler command
1624 FFLAGS Fortran 77 compiler flags
1626 Use these variables to override the choices made by `configure' or to help
1627 it to find libraries and programs with nonstandard names/locations.
1629 Report bugs to <llvmbugs@cs.uiuc.edu>.
1634 if test "$ac_init_help" = "recursive"; then
1635 # If there are subdirs, report their specific --help.
1636 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1637 test -d "$ac_dir" || continue
1641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1644 # A ".." for each directory in $ac_dir_suffix.
1645 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1646 case $ac_top_builddir_sub in
1647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1651 ac_abs_top_builddir=$ac_pwd
1652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1653 # for backward compatibility:
1654 ac_top_builddir=$ac_top_build_prefix
1657 .) # We are building in place.
1659 ac_top_srcdir=$ac_top_builddir_sub
1660 ac_abs_top_srcdir=$ac_pwd ;;
1661 [\\/]* | ?:[\\/]* ) # Absolute name.
1662 ac_srcdir=$srcdir$ac_dir_suffix;
1663 ac_top_srcdir=$srcdir
1664 ac_abs_top_srcdir=$srcdir ;;
1666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1667 ac_top_srcdir=$ac_top_build_prefix$srcdir
1668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1672 cd "$ac_dir" || { ac_status=$?; continue; }
1673 # Check for guested configure.
1674 if test -f "$ac_srcdir/configure.gnu"; then
1676 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677 elif test -f "$ac_srcdir/configure"; then
1679 $SHELL "$ac_srcdir/configure" --help=recursive
1681 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1683 cd "$ac_pwd" || { ac_status=$?; break; }
1687 test -n "$ac_init_help" && exit $ac_status
1688 if $ac_init_version; then
1690 llvm configure 2.7svn
1691 generated by GNU Autoconf 2.60
1693 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1694 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1695 This configure script is free software; the Free Software Foundation
1696 gives unlimited permission to copy, distribute and modify it.
1698 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1702 cat >config.log <<_ACEOF
1703 This file contains any messages produced by compilers while
1704 running configure, to aid debugging if configure makes a mistake.
1706 It was created by llvm $as_me 2.7svn, which was
1707 generated by GNU Autoconf 2.60. Invocation command line was
1719 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1720 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1721 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1722 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1723 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1725 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1726 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1728 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1729 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1730 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1731 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1732 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1733 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1734 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742 test -z "$as_dir" && as_dir=.
1743 echo "PATH: $as_dir"
1759 # Keep a trace of the command line.
1760 # Strip out --no-create and --no-recursion so they do not pile up.
1761 # Strip out --silent because we don't want to record it for future runs.
1762 # Also quote any args containing shell meta-characters.
1763 # Make two passes to allow for proper duplicate-argument suppression.
1767 ac_must_keep_next=false
1773 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1775 | -silent | --silent | --silen | --sile | --sil)
1778 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1781 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1783 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1784 if test $ac_must_keep_next = true; then
1785 ac_must_keep_next=false # Got value, back to normal.
1788 *=* | --config-cache | -C | -disable-* | --disable-* \
1789 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1790 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1791 | -with-* | --with-* | -without-* | --without-* | --x)
1792 case "$ac_configure_args0 " in
1793 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1796 -* ) ac_must_keep_next=true ;;
1799 ac_configure_args="$ac_configure_args '$ac_arg'"
1804 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1805 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1807 # When interrupted or exit'd, cleanup temporary files, and complete
1808 # config.log. We remove comments because anyway the quotes in there
1809 # would cause problems or look ugly.
1810 # WARNING: Use '\'' to represent an apostrophe within the trap.
1811 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1812 trap 'exit_status=$?
1813 # Save into config.log some information that might help in debugging.
1818 ## ---------------- ##
1819 ## Cache variables. ##
1820 ## ---------------- ##
1823 # The following way of writing the cache mishandles newlines in values,
1825 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1826 eval ac_val=\$$ac_var
1830 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1831 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1834 _ | IFS | as_nl) ;; #(
1835 *) $as_unset $ac_var ;;
1840 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1841 *${as_nl}ac_space=\ *)
1843 "s/'\''/'\''\\\\'\'''\''/g;
1844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1847 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1855 ## ----------------- ##
1856 ## Output variables. ##
1857 ## ----------------- ##
1860 for ac_var in $ac_subst_vars
1862 eval ac_val=\$$ac_var
1864 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1866 echo "$ac_var='\''$ac_val'\''"
1870 if test -n "$ac_subst_files"; then
1872 ## ------------------- ##
1873 ## File substitutions. ##
1874 ## ------------------- ##
1877 for ac_var in $ac_subst_files
1879 eval ac_val=\$$ac_var
1881 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1883 echo "$ac_var='\''$ac_val'\''"
1888 if test -s confdefs.h; then
1898 test "$ac_signal" != 0 &&
1899 echo "$as_me: caught signal $ac_signal"
1900 echo "$as_me: exit $exit_status"
1902 rm -f core *.core core.conftest.* &&
1903 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1906 for ac_signal in 1 2 13 15; do
1907 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1911 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1912 rm -f -r conftest* confdefs.h
1914 # Predefined preprocessor variables.
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_NAME "$PACKAGE_NAME"
1921 cat >>confdefs.h <<_ACEOF
1922 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_STRING "$PACKAGE_STRING"
1936 cat >>confdefs.h <<_ACEOF
1937 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1941 # Let the site file select an alternate cache file if it wants to.
1942 # Prefer explicitly selected file to automatically selected ones.
1943 if test -n "$CONFIG_SITE"; then
1944 set x "$CONFIG_SITE"
1945 elif test "x$prefix" != xNONE; then
1946 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1948 set x "$ac_default_prefix/share/config.site" \
1949 "$ac_default_prefix/etc/config.site"
1954 if test -r "$ac_site_file"; then
1955 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1956 echo "$as_me: loading site script $ac_site_file" >&6;}
1957 sed 's/^/| /' "$ac_site_file" >&5
1962 if test -r "$cache_file"; then
1963 # Some versions of bash will fail to source /dev/null (special
1964 # files actually), so we avoid doing that.
1965 if test -f "$cache_file"; then
1966 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1967 echo "$as_me: loading cache $cache_file" >&6;}
1969 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1970 *) . "./$cache_file";;
1974 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1975 echo "$as_me: creating cache $cache_file" >&6;}
1979 # Check that the precious variables saved in the cache have kept the same
1981 ac_cache_corrupted=false
1982 for ac_var in $ac_precious_vars; do
1983 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1984 eval ac_new_set=\$ac_env_${ac_var}_set
1985 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1986 eval ac_new_val=\$ac_env_${ac_var}_value
1987 case $ac_old_set,$ac_new_set in
1989 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1990 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1991 ac_cache_corrupted=: ;;
1993 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1994 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1995 ac_cache_corrupted=: ;;
1998 if test "x$ac_old_val" != "x$ac_new_val"; then
1999 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2000 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2001 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2002 echo "$as_me: former value: $ac_old_val" >&2;}
2003 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2004 echo "$as_me: current value: $ac_new_val" >&2;}
2005 ac_cache_corrupted=:
2008 # Pass precious variables to config.status.
2009 if test "$ac_new_set" = set; then
2011 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2012 *) ac_arg=$ac_var=$ac_new_val ;;
2014 case " $ac_configure_args " in
2015 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2016 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2020 if $ac_cache_corrupted; then
2021 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2022 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2023 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2024 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2025 { (exit 1); exit 1; }; }
2053 ac_cpp='$CPP $CPPFLAGS'
2054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2060 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
2069 for ac_dir in autoconf "$srcdir"/autoconf; do
2070 if test -f "$ac_dir/install-sh"; then
2072 ac_install_sh="$ac_aux_dir/install-sh -c"
2074 elif test -f "$ac_dir/install.sh"; then
2076 ac_install_sh="$ac_aux_dir/install.sh -c"
2078 elif test -f "$ac_dir/shtool"; then
2080 ac_install_sh="$ac_aux_dir/shtool install -c"
2084 if test -z "$ac_aux_dir"; then
2085 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2086 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2087 { (exit 1); exit 1; }; }
2090 # These three variables are undocumented and unsupported,
2091 # and are intended to be withdrawn in a future Autoconf release.
2092 # They can cause serious problems if a builder's source tree is in a directory
2093 # whose full name contains unusual characters.
2094 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2095 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2096 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2100 if test ${srcdir} != "." ; then
2101 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2102 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2103 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2104 { (exit 1); exit 1; }; }
2108 for i in `ls ${srcdir}/projects`
2110 if test -d ${srcdir}/projects/${i} ; then
2113 sample) subdirs="$subdirs projects/sample"
2115 privbracket) subdirs="$subdirs projects/privbracket"
2117 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2119 # llvm-test is the old name of the test-suite, kept here for backwards
2121 llvm-test) subdirs="$subdirs projects/llvm-test"
2123 test-suite) subdirs="$subdirs projects/test-suite"
2125 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2127 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2129 llvm-java) subdirs="$subdirs projects/llvm-java"
2131 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2133 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2135 poolalloc) subdirs="$subdirs projects/poolalloc"
2137 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2140 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2141 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2148 # Make sure we can run config.sub.
2149 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2150 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2151 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2152 { (exit 1); exit 1; }; }
2154 { echo "$as_me:$LINENO: checking build system type" >&5
2155 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2156 if test "${ac_cv_build+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 ac_build_alias=$build_alias
2160 test "x$ac_build_alias" = x &&
2161 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2162 test "x$ac_build_alias" = x &&
2163 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2164 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2165 { (exit 1); exit 1; }; }
2166 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2167 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2168 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2169 { (exit 1); exit 1; }; }
2172 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2173 echo "${ECHO_T}$ac_cv_build" >&6; }
2174 case $ac_cv_build in
2176 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2177 echo "$as_me: error: invalid value of canonical build" >&2;}
2178 { (exit 1); exit 1; }; };;
2181 ac_save_IFS=$IFS; IFS='-'
2187 # Remember, the first character of IFS is used to create $*,
2188 # except with old shells:
2191 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2194 { echo "$as_me:$LINENO: checking host system type" >&5
2195 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2196 if test "${ac_cv_host+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 if test "x$host_alias" = x; then
2200 ac_cv_host=$ac_cv_build
2202 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2203 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2204 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2205 { (exit 1); exit 1; }; }
2209 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2210 echo "${ECHO_T}$ac_cv_host" >&6; }
2213 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2214 echo "$as_me: error: invalid value of canonical host" >&2;}
2215 { (exit 1); exit 1; }; };;
2218 ac_save_IFS=$IFS; IFS='-'
2224 # Remember, the first character of IFS is used to create $*,
2225 # except with old shells:
2228 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2231 { echo "$as_me:$LINENO: checking target system type" >&5
2232 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2233 if test "${ac_cv_target+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 if test "x$target_alias" = x; then
2237 ac_cv_target=$ac_cv_host
2239 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2240 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2241 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2242 { (exit 1); exit 1; }; }
2246 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2247 echo "${ECHO_T}$ac_cv_target" >&6; }
2248 case $ac_cv_target in
2250 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2251 echo "$as_me: error: invalid value of canonical target" >&2;}
2252 { (exit 1); exit 1; }; };;
2254 target=$ac_cv_target
2255 ac_save_IFS=$IFS; IFS='-'
2261 # Remember, the first character of IFS is used to create $*,
2262 # except with old shells:
2265 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2268 # The aliases save the names the user supplied, while $host etc.
2269 # will get canonicalized.
2270 test -n "$target_alias" &&
2271 test "$program_prefix$program_suffix$program_transform_name" = \
2273 program_prefix=${target_alias}-
2275 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2276 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2277 if test "${llvm_cv_os_type+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 llvm_cv_link_all_option="-Wl,--whole-archive"
2283 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2284 llvm_cv_os_type="AIX"
2285 llvm_cv_platform_type="Unix" ;;
2287 llvm_cv_link_all_option="-Wl,--whole-archive"
2288 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2289 llvm_cv_os_type="IRIX"
2290 llvm_cv_platform_type="Unix" ;;
2292 llvm_cv_link_all_option="-Wl,--whole-archive"
2293 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2294 llvm_cv_os_type="Cygwin"
2295 llvm_cv_platform_type="Unix" ;;
2297 llvm_cv_link_all_option="-Wl,-all_load"
2298 llvm_cv_no_link_all_option="-Wl,-noall_load"
2299 llvm_cv_os_type="Darwin"
2300 llvm_cv_platform_type="Unix" ;;
2302 llvm_cv_link_all_option="-Wl,--whole-archive"
2303 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2304 llvm_cv_os_type="FreeBSD"
2305 llvm_cv_platform_type="Unix" ;;
2307 llvm_cv_link_all_option="-Wl,--whole-archive"
2308 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2309 llvm_cv_os_type="OpenBSD"
2310 llvm_cv_platform_type="Unix" ;;
2312 llvm_cv_link_all_option="-Wl,--whole-archive"
2313 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2314 llvm_cv_os_type="NetBSD"
2315 llvm_cv_platform_type="Unix" ;;
2317 llvm_cv_link_all_option="-Wl,--whole-archive"
2318 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2319 llvm_cv_os_type="DragonFly"
2320 llvm_cv_platform_type="Unix" ;;
2322 llvm_cv_link_all_option="-Wl,--whole-archive"
2323 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2324 llvm_cv_os_type="HP-UX"
2325 llvm_cv_platform_type="Unix" ;;
2327 llvm_cv_link_all_option="-Wl,--whole-archive"
2328 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2329 llvm_cv_os_type="Interix"
2330 llvm_cv_platform_type="Unix" ;;
2332 llvm_cv_link_all_option="-Wl,--whole-archive"
2333 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2334 llvm_cv_os_type="Linux"
2335 llvm_cv_platform_type="Unix" ;;
2337 llvm_cv_link_all_option="-Wl,-z,allextract"
2338 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2339 llvm_cv_os_type="SunOS"
2340 llvm_cv_platform_type="Unix" ;;
2342 llvm_cv_link_all_option="-Wl,--whole-archive"
2343 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2344 llvm_cv_os_type="Win32"
2345 llvm_cv_platform_type="Win32" ;;
2347 llvm_cv_link_all_option="-Wl,--whole-archive"
2348 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2349 llvm_cv_os_type="MingW"
2350 llvm_cv_platform_type="Win32" ;;
2352 llvm_cv_link_all_option="-Wl,--whole-archive"
2353 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2354 llvm_cv_os_type="Haiku"
2355 llvm_cv_platform_type="Unix" ;;
2357 llvm_cv_link_all_option="-Wl,--whole-archive"
2358 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2359 llvm_cv_os_type="Freestanding"
2360 llvm_cv_platform_type="Unix" ;;
2362 llvm_cv_link_all_option="-Wl,--whole-archive"
2363 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2364 llvm_cv_os_type="Freestanding"
2365 llvm_cv_platform_type="Unix" ;;
2367 llvm_cv_link_all_option=""
2368 llvm_cv_no_link_all_option=""
2369 llvm_cv_os_type="Unknown"
2370 llvm_cv_platform_type="Unknown" ;;
2373 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2374 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2376 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2377 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2378 if test "${llvm_cv_target_os_type+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2383 llvm_cv_target_os_type="AIX" ;;
2385 llvm_cv_target_os_type="IRIX" ;;
2387 llvm_cv_target_os_type="Cygwin" ;;
2389 llvm_cv_target_os_type="Darwin" ;;
2391 llvm_cv_target_os_type="FreeBSD" ;;
2393 llvm_cv_target_os_type="OpenBSD" ;;
2395 llvm_cv_target_os_type="NetBSD" ;;
2397 llvm_cv_target_os_type="DragonFly" ;;
2399 llvm_cv_target_os_type="HP-UX" ;;
2401 llvm_cv_target_os_type="Interix" ;;
2403 llvm_cv_target_os_type="Linux" ;;
2405 llvm_cv_target_os_type="SunOS" ;;
2407 llvm_cv_target_os_type="Win32" ;;
2409 llvm_cv_target_os_type="MingW" ;;
2411 llvm_cv_target_os_type="Haiku" ;;
2413 llvm_cv_target_os_type="Freestanding" ;;
2415 llvm_cv_target_os_type="Unknown" ;;
2418 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2419 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2421 if test "$llvm_cv_os_type" = "Unknown" ; then
2422 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2423 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2424 { (exit 1); exit 1; }; }
2429 HOST_OS=$llvm_cv_os_type
2431 TARGET_OS=$llvm_cv_target_os_type
2434 LINKALL=$llvm_cv_link_all_option
2436 NOLINKALL=$llvm_cv_no_link_all_option
2439 case $llvm_cv_platform_type in
2442 cat >>confdefs.h <<\_ACEOF
2443 #define LLVM_ON_UNIX 1
2453 cat >>confdefs.h <<\_ACEOF
2454 #define LLVM_ON_WIN32 1
2464 { echo "$as_me:$LINENO: checking target architecture" >&5
2465 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2466 if test "${llvm_cv_target_arch+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 i?86-*) llvm_cv_target_arch="x86" ;;
2471 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2472 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2473 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2474 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2475 arm*-*) llvm_cv_target_arch="ARM" ;;
2476 mips-*) llvm_cv_target_arch="Mips" ;;
2477 pic16-*) llvm_cv_target_arch="PIC16" ;;
2478 xcore-*) llvm_cv_target_arch="XCore" ;;
2479 msp430-*) llvm_cv_target_arch="MSP430" ;;
2480 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2481 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2482 *) llvm_cv_target_arch="Unknown" ;;
2485 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2486 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2488 if test "$llvm_cv_target_arch" = "Unknown" ; then
2489 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2490 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2493 # Determine the LLVM native architecture for the target
2494 case "$llvm_cv_target_arch" in
2495 x86) LLVM_NATIVE_ARCH="X86" ;;
2496 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2497 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2500 ARCH=$llvm_cv_target_arch
2504 ac_cpp='$CPP $CPPFLAGS'
2505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2508 if test -n "$ac_tool_prefix"; then
2509 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2510 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2513 if test "${ac_cv_prog_CC+set}" = set; then
2514 echo $ECHO_N "(cached) $ECHO_C" >&6
2516 if test -n "$CC"; then
2517 ac_cv_prog_CC="$CC" # Let the user override the test.
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 test -z "$as_dir" && as_dir=.
2524 for ac_exec_ext in '' $ac_executable_extensions; do
2525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2526 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 if test -n "$CC"; then
2538 { echo "$as_me:$LINENO: result: $CC" >&5
2539 echo "${ECHO_T}$CC" >&6; }
2541 { echo "$as_me:$LINENO: result: no" >&5
2542 echo "${ECHO_T}no" >&6; }
2547 if test -z "$ac_cv_prog_CC"; then
2549 # Extract the first word of "gcc", so it can be a program name with args.
2550 set dummy gcc; ac_word=$2
2551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 if test -n "$ac_ct_CC"; then
2557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2566 ac_cv_prog_ac_ct_CC="gcc"
2567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2577 if test -n "$ac_ct_CC"; then
2578 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2579 echo "${ECHO_T}$ac_ct_CC" >&6; }
2581 { echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6; }
2585 if test "x$ac_ct_CC" = x; then
2588 case $cross_compiling:$ac_tool_warned in
2590 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2591 whose name does not start with the host triplet. If you think this
2592 configuration is useful to you, please write to autoconf@gnu.org." >&5
2593 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2594 whose name does not start with the host triplet. If you think this
2595 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2596 ac_tool_warned=yes ;;
2604 if test -z "$CC"; then
2605 if test -n "$ac_tool_prefix"; then
2606 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2607 set dummy ${ac_tool_prefix}cc; ac_word=$2
2608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2610 if test "${ac_cv_prog_CC+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2613 if test -n "$CC"; then
2614 ac_cv_prog_CC="$CC" # Let the user override the test.
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2623 ac_cv_prog_CC="${ac_tool_prefix}cc"
2624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2634 if test -n "$CC"; then
2635 { echo "$as_me:$LINENO: result: $CC" >&5
2636 echo "${ECHO_T}$CC" >&6; }
2638 { echo "$as_me:$LINENO: result: no" >&5
2639 echo "${ECHO_T}no" >&6; }
2645 if test -z "$CC"; then
2646 # Extract the first word of "cc", so it can be a program name with args.
2647 set dummy cc; ac_word=$2
2648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2650 if test "${ac_cv_prog_CC+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2653 if test -n "$CC"; then
2654 ac_cv_prog_CC="$CC" # Let the user override the test.
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2664 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2665 ac_prog_rejected=yes
2669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 if test $ac_prog_rejected = yes; then
2677 # We found a bogon in the path, so make sure we never use it.
2678 set dummy $ac_cv_prog_CC
2680 if test $# != 0; then
2681 # We chose a different compiler from the bogus one.
2682 # However, it has the same basename, so the bogon will be chosen
2683 # first if we set CC to just the basename; use the full file name.
2685 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2691 if test -n "$CC"; then
2692 { echo "$as_me:$LINENO: result: $CC" >&5
2693 echo "${ECHO_T}$CC" >&6; }
2695 { echo "$as_me:$LINENO: result: no" >&5
2696 echo "${ECHO_T}no" >&6; }
2701 if test -z "$CC"; then
2702 if test -n "$ac_tool_prefix"; then
2703 for ac_prog in cl.exe
2705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2709 if test "${ac_cv_prog_CC+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2712 if test -n "$CC"; then
2713 ac_cv_prog_CC="$CC" # Let the user override the test.
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2722 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 if test -n "$CC"; then
2734 { echo "$as_me:$LINENO: result: $CC" >&5
2735 echo "${ECHO_T}$CC" >&6; }
2737 { echo "$as_me:$LINENO: result: no" >&5
2738 echo "${ECHO_T}no" >&6; }
2742 test -n "$CC" && break
2745 if test -z "$CC"; then
2747 for ac_prog in cl.exe
2749 # Extract the first word of "$ac_prog", so it can be a program name with args.
2750 set dummy $ac_prog; ac_word=$2
2751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2753 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 if test -n "$ac_ct_CC"; then
2757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_ac_ct_CC="$ac_prog"
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2777 if test -n "$ac_ct_CC"; then
2778 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2779 echo "${ECHO_T}$ac_ct_CC" >&6; }
2781 { echo "$as_me:$LINENO: result: no" >&5
2782 echo "${ECHO_T}no" >&6; }
2786 test -n "$ac_ct_CC" && break
2789 if test "x$ac_ct_CC" = x; then
2792 case $cross_compiling:$ac_tool_warned in
2794 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2795 whose name does not start with the host triplet. If you think this
2796 configuration is useful to you, please write to autoconf@gnu.org." >&5
2797 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2798 whose name does not start with the host triplet. If you think this
2799 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2800 ac_tool_warned=yes ;;
2809 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2810 See \`config.log' for more details." >&5
2811 echo "$as_me: error: no acceptable C compiler found in \$PATH
2812 See \`config.log' for more details." >&2;}
2813 { (exit 1); exit 1; }; }
2815 # Provide some information about the compiler.
2816 echo "$as_me:$LINENO: checking for C compiler version" >&5
2817 ac_compiler=`set X $ac_compile; echo $2`
2818 { (ac_try="$ac_compiler --version >&5"
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_compiler --version >&5") 2>&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }
2828 { (ac_try="$ac_compiler -v >&5"
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831 *) ac_try_echo=$ac_try;;
2833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2834 (eval "$ac_compiler -v >&5") 2>&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }
2838 { (ac_try="$ac_compiler -V >&5"
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_compiler -V >&5") 2>&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }
2849 cat >conftest.$ac_ext <<_ACEOF
2852 cat confdefs.h >>conftest.$ac_ext
2853 cat >>conftest.$ac_ext <<_ACEOF
2854 /* end confdefs.h. */
2864 ac_clean_files_save=$ac_clean_files
2865 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2866 # Try to create an executable without -o first, disregard a.out.
2867 # It will help us diagnose broken compilers, and finding out an intuition
2869 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2870 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2871 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2873 # List of possible output files, starting from the most likely.
2874 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2875 # only as a last resort. b.out is created by i960 compilers.
2876 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2878 # The IRIX 6 linker writes into existing files which may not be
2879 # executable, retaining their permissions. Remove them first so a
2880 # subsequent execution test works.
2882 for ac_file in $ac_files
2885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2886 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2891 if { (ac_try="$ac_link_default"
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_link_default") 2>&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; then
2901 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2902 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2903 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2904 # so that the user can short-circuit this test for compilers unknown to
2906 for ac_file in $ac_files
2908 test -f "$ac_file" || continue
2910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2913 # We found the default executable, but exeext='' is most
2917 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2919 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2921 # We set ac_cv_exeext here because the later test for it is not
2922 # safe: cross compilers may not add the suffix if given an `-o'
2923 # argument, so we may need to know it at that point already.
2924 # Even if this section looks crufty: it has the advantage of
2931 test "$ac_cv_exeext" = no && ac_cv_exeext=
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2937 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2938 See \`config.log' for more details." >&5
2939 echo "$as_me: error: C compiler cannot create executables
2940 See \`config.log' for more details." >&2;}
2941 { (exit 77); exit 77; }; }
2944 ac_exeext=$ac_cv_exeext
2945 { echo "$as_me:$LINENO: result: $ac_file" >&5
2946 echo "${ECHO_T}$ac_file" >&6; }
2948 # Check that the compiler produces executables we can run. If not, either
2949 # the compiler is broken, or we cross compile.
2950 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2951 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2952 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2953 # If not cross compiling, check that we can run a simple program.
2954 if test "$cross_compiling" != yes; then
2955 if { ac_try='./$ac_file'
2956 { (case "(($ac_try" in
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2961 (eval "$ac_try") 2>&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; }; then
2967 if test "$cross_compiling" = maybe; then
2970 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2971 If you meant to cross compile, use \`--host'.
2972 See \`config.log' for more details." >&5
2973 echo "$as_me: error: cannot run C compiled programs.
2974 If you meant to cross compile, use \`--host'.
2975 See \`config.log' for more details." >&2;}
2976 { (exit 1); exit 1; }; }
2980 { echo "$as_me:$LINENO: result: yes" >&5
2981 echo "${ECHO_T}yes" >&6; }
2983 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2984 ac_clean_files=$ac_clean_files_save
2985 # Check that the compiler produces executables we can run. If not, either
2986 # the compiler is broken, or we cross compile.
2987 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2988 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2989 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2990 echo "${ECHO_T}$cross_compiling" >&6; }
2992 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2993 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2994 if { (ac_try="$ac_link"
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000 (eval "$ac_link") 2>&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }; then
3004 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3005 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3006 # work properly (i.e., refer to `conftest.exe'), while it won't with
3008 for ac_file in conftest.exe conftest conftest.*; do
3009 test -f "$ac_file" || continue
3011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3012 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3018 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3019 See \`config.log' for more details." >&5
3020 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3021 See \`config.log' for more details." >&2;}
3022 { (exit 1); exit 1; }; }
3025 rm -f conftest$ac_cv_exeext
3026 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3027 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3029 rm -f conftest.$ac_ext
3030 EXEEXT=$ac_cv_exeext
3032 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3033 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3034 if test "${ac_cv_objext+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 cat >conftest.$ac_ext <<_ACEOF
3040 cat confdefs.h >>conftest.$ac_ext
3041 cat >>conftest.$ac_ext <<_ACEOF
3042 /* end confdefs.h. */
3052 rm -f conftest.o conftest.obj
3053 if { (ac_try="$ac_compile"
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_compile") 2>&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; then
3063 for ac_file in conftest.o conftest.obj conftest.*; do
3064 test -f "$ac_file" || continue;
3066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3067 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3072 echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3075 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3076 See \`config.log' for more details." >&5
3077 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3078 See \`config.log' for more details." >&2;}
3079 { (exit 1); exit 1; }; }
3082 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3084 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3085 echo "${ECHO_T}$ac_cv_objext" >&6; }
3086 OBJEXT=$ac_cv_objext
3088 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3089 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3090 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3091 echo $ECHO_N "(cached) $ECHO_C" >&6
3093 cat >conftest.$ac_ext <<_ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h. */
3111 rm -f conftest.$ac_objext
3112 if { (ac_try="$ac_compile"
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118 (eval "$ac_compile") 2>conftest.er1
3120 grep -v '^ *+' conftest.er1 >conftest.err
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } &&
3125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3126 { (case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_try") 2>&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; } &&
3135 { ac_try='test -s conftest.$ac_objext'
3136 { (case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_try") 2>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3154 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3157 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3158 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3159 GCC=`test $ac_compiler_gnu = yes && echo yes`
3160 ac_test_CFLAGS=${CFLAGS+set}
3161 ac_save_CFLAGS=$CFLAGS
3162 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3163 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3164 if test "${ac_cv_prog_cc_g+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 ac_save_c_werror_flag=$ac_c_werror_flag
3168 ac_c_werror_flag=yes
3171 cat >conftest.$ac_ext <<_ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3186 rm -f conftest.$ac_objext
3187 if { (ac_try="$ac_compile"
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_compile") 2>conftest.er1
3195 grep -v '^ *+' conftest.er1 >conftest.err
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } &&
3200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3201 { (case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_try") 2>&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; } &&
3210 { ac_try='test -s conftest.$ac_objext'
3211 { (case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3216 (eval "$ac_try") 2>&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3226 cat >conftest.$ac_ext <<_ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3241 rm -f conftest.$ac_objext
3242 if { (ac_try="$ac_compile"
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_compile") 2>conftest.er1
3250 grep -v '^ *+' conftest.er1 >conftest.err
3252 cat conftest.err >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); } &&
3255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3256 { (case "(($ac_try" in
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3261 (eval "$ac_try") 2>&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }; } &&
3265 { ac_try='test -s conftest.$ac_objext'
3266 { (case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3271 (eval "$ac_try") 2>&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3280 ac_c_werror_flag=$ac_save_c_werror_flag
3282 cat >conftest.$ac_ext <<_ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3297 rm -f conftest.$ac_objext
3298 if { (ac_try="$ac_compile"
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304 (eval "$ac_compile") 2>conftest.er1
3306 grep -v '^ *+' conftest.er1 >conftest.err
3308 cat conftest.err >&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); } &&
3311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3312 { (case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_try") 2>&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; } &&
3321 { ac_try='test -s conftest.$ac_objext'
3322 { (case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327 (eval "$ac_try") 2>&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; }; then
3333 echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3346 ac_c_werror_flag=$ac_save_c_werror_flag
3348 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3349 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3350 if test "$ac_test_CFLAGS" = set; then
3351 CFLAGS=$ac_save_CFLAGS
3352 elif test $ac_cv_prog_cc_g = yes; then
3353 if test "$GCC" = yes; then
3359 if test "$GCC" = yes; then
3365 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3366 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3367 if test "${ac_cv_prog_cc_c89+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 ac_cv_prog_cc_c89=no
3372 cat >conftest.$ac_ext <<_ACEOF
3375 cat confdefs.h >>conftest.$ac_ext
3376 cat >>conftest.$ac_ext <<_ACEOF
3377 /* end confdefs.h. */
3380 #include <sys/types.h>
3381 #include <sys/stat.h>
3382 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3383 struct buf { int x; };
3384 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3385 static char *e (p, i)
3391 static char *f (char * (*g) (char **, int), char **p, ...)
3396 s = g (p, va_arg (v,int));
3401 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3402 function prototypes and stuff, but not '\xHH' hex character constants.
3403 These don't provoke an error unfortunately, instead are silently treated
3404 as 'x'. The following induces an error, until -std is added to get
3405 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3406 array size at least. It's necessary to write '\x00'==0 to get something
3407 that's true only with -std. */
3408 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3410 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3411 inside strings and character constants. */
3413 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3415 int test (int i, double x);
3416 struct s1 {int (*f) (int a);};
3417 struct s2 {int (*f) (double a);};
3418 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3424 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3429 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3430 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3432 CC="$ac_save_CC $ac_arg"
3433 rm -f conftest.$ac_objext
3434 if { (ac_try="$ac_compile"
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440 (eval "$ac_compile") 2>conftest.er1
3442 grep -v '^ *+' conftest.er1 >conftest.err
3444 cat conftest.err >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } &&
3447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3448 { (case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3453 (eval "$ac_try") 2>&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; } &&
3457 { ac_try='test -s conftest.$ac_objext'
3458 { (case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463 (eval "$ac_try") 2>&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; }; then
3467 ac_cv_prog_cc_c89=$ac_arg
3469 echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3475 rm -f core conftest.err conftest.$ac_objext
3476 test "x$ac_cv_prog_cc_c89" != "xno" && break
3478 rm -f conftest.$ac_ext
3483 case "x$ac_cv_prog_cc_c89" in
3485 { echo "$as_me:$LINENO: result: none needed" >&5
3486 echo "${ECHO_T}none needed" >&6; } ;;
3488 { echo "$as_me:$LINENO: result: unsupported" >&5
3489 echo "${ECHO_T}unsupported" >&6; } ;;
3491 CC="$CC $ac_cv_prog_cc_c89"
3492 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3493 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3498 ac_cpp='$CPP $CPPFLAGS'
3499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505 ac_cpp='$CPP $CPPFLAGS'
3506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3509 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3510 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3511 # On Suns, sometimes $CPP names a directory.
3512 if test -n "$CPP" && test -d "$CPP"; then
3515 if test -z "$CPP"; then
3516 if test "${ac_cv_prog_CPP+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 # Double quotes because CPP needs to be expanded
3520 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3523 for ac_c_preproc_warn_flag in '' yes
3525 # Use a header file that comes with gcc, so configuring glibc
3526 # with a fresh cross-compiler works.
3527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3528 # <limits.h> exists even on freestanding compilers.
3529 # On the NeXT, cc -E runs the code through the compiler's parser,
3530 # not just through cpp. "Syntax error" is here to catch this case.
3531 cat >conftest.$ac_ext <<_ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3538 # include <limits.h>
3540 # include <assert.h>
3544 if { (ac_try="$ac_cpp conftest.$ac_ext"
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3552 grep -v '^ *+' conftest.er1 >conftest.err
3554 cat conftest.err >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } >/dev/null; then
3557 if test -s conftest.err; then
3558 ac_cpp_err=$ac_c_preproc_warn_flag
3559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3566 if test -z "$ac_cpp_err"; then
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3572 # Broken: fails on valid input.
3576 rm -f conftest.err conftest.$ac_ext
3578 # OK, works on sane cases. Now check whether nonexistent headers
3579 # can be detected and how.
3580 cat >conftest.$ac_ext <<_ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3586 #include <ac_nonexistent.h>
3588 if { (ac_try="$ac_cpp conftest.$ac_ext"
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3596 grep -v '^ *+' conftest.er1 >conftest.err
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } >/dev/null; then
3601 if test -s conftest.err; then
3602 ac_cpp_err=$ac_c_preproc_warn_flag
3603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3610 if test -z "$ac_cpp_err"; then
3611 # Broken: success on invalid input.
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3617 # Passes both tests.
3622 rm -f conftest.err conftest.$ac_ext
3625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3626 rm -f conftest.err conftest.$ac_ext
3627 if $ac_preproc_ok; then
3639 { echo "$as_me:$LINENO: result: $CPP" >&5
3640 echo "${ECHO_T}$CPP" >&6; }
3642 for ac_c_preproc_warn_flag in '' yes
3644 # Use a header file that comes with gcc, so configuring glibc
3645 # with a fresh cross-compiler works.
3646 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3647 # <limits.h> exists even on freestanding compilers.
3648 # On the NeXT, cc -E runs the code through the compiler's parser,
3649 # not just through cpp. "Syntax error" is here to catch this case.
3650 cat >conftest.$ac_ext <<_ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3657 # include <limits.h>
3659 # include <assert.h>
3663 if { (ac_try="$ac_cpp conftest.$ac_ext"
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3671 grep -v '^ *+' conftest.er1 >conftest.err
3673 cat conftest.err >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } >/dev/null; then
3676 if test -s conftest.err; then
3677 ac_cpp_err=$ac_c_preproc_warn_flag
3678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3685 if test -z "$ac_cpp_err"; then
3688 echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3691 # Broken: fails on valid input.
3695 rm -f conftest.err conftest.$ac_ext
3697 # OK, works on sane cases. Now check whether nonexistent headers
3698 # can be detected and how.
3699 cat >conftest.$ac_ext <<_ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3705 #include <ac_nonexistent.h>
3707 if { (ac_try="$ac_cpp conftest.$ac_ext"
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3715 grep -v '^ *+' conftest.er1 >conftest.err
3717 cat conftest.err >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } >/dev/null; then
3720 if test -s conftest.err; then
3721 ac_cpp_err=$ac_c_preproc_warn_flag
3722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3729 if test -z "$ac_cpp_err"; then
3730 # Broken: success on invalid input.
3733 echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3736 # Passes both tests.
3741 rm -f conftest.err conftest.$ac_ext
3744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3745 rm -f conftest.err conftest.$ac_ext
3746 if $ac_preproc_ok; then
3749 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3750 See \`config.log' for more details." >&5
3751 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3752 See \`config.log' for more details." >&2;}
3753 { (exit 1); exit 1; }; }
3757 ac_cpp='$CPP $CPPFLAGS'
3758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3763 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3764 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3765 if test "${ac_cv_path_GREP+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 # Extract the first word of "grep ggrep" to use in msg output
3769 if test -z "$GREP"; then
3770 set dummy grep ggrep; ac_prog_name=$2
3771 if test "${ac_cv_path_GREP+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 ac_path_GREP_found=false
3775 # Loop through the user's path and test for each of PROGNAME-LIST
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3780 test -z "$as_dir" && as_dir=.
3781 for ac_prog in grep ggrep; do
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3784 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3785 # Check for GNU ac_path_GREP and select it if it is found.
3786 # Check for GNU $ac_path_GREP
3787 case `"$ac_path_GREP" --version 2>&1` in
3789 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3792 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3795 cat "conftest.in" "conftest.in" >"conftest.tmp"
3796 mv "conftest.tmp" "conftest.in"
3797 cp "conftest.in" "conftest.nl"
3798 echo 'GREP' >> "conftest.nl"
3799 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3800 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3801 ac_count=`expr $ac_count + 1`
3802 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3803 # Best one so far, save it but keep looking for a better one
3804 ac_cv_path_GREP="$ac_path_GREP"
3805 ac_path_GREP_max=$ac_count
3807 # 10*(2^10) chars as input seems more than enough
3808 test $ac_count -gt 10 && break
3810 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3814 $ac_path_GREP_found && break 3
3824 GREP="$ac_cv_path_GREP"
3825 if test -z "$GREP"; then
3826 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3827 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3828 { (exit 1); exit 1; }; }
3832 ac_cv_path_GREP=$GREP
3837 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3838 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3839 GREP="$ac_cv_path_GREP"
3842 { echo "$as_me:$LINENO: checking for egrep" >&5
3843 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3844 if test "${ac_cv_path_EGREP+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3848 then ac_cv_path_EGREP="$GREP -E"
3850 # Extract the first word of "egrep" to use in msg output
3851 if test -z "$EGREP"; then
3852 set dummy egrep; ac_prog_name=$2
3853 if test "${ac_cv_path_EGREP+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 ac_path_EGREP_found=false
3857 # Loop through the user's path and test for each of PROGNAME-LIST
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3862 test -z "$as_dir" && as_dir=.
3863 for ac_prog in egrep; do
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3866 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3867 # Check for GNU ac_path_EGREP and select it if it is found.
3868 # Check for GNU $ac_path_EGREP
3869 case `"$ac_path_EGREP" --version 2>&1` in
3871 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3874 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3877 cat "conftest.in" "conftest.in" >"conftest.tmp"
3878 mv "conftest.tmp" "conftest.in"
3879 cp "conftest.in" "conftest.nl"
3880 echo 'EGREP' >> "conftest.nl"
3881 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3882 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3883 ac_count=`expr $ac_count + 1`
3884 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3885 # Best one so far, save it but keep looking for a better one
3886 ac_cv_path_EGREP="$ac_path_EGREP"
3887 ac_path_EGREP_max=$ac_count
3889 # 10*(2^10) chars as input seems more than enough
3890 test $ac_count -gt 10 && break
3892 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3896 $ac_path_EGREP_found && break 3
3906 EGREP="$ac_cv_path_EGREP"
3907 if test -z "$EGREP"; then
3908 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3909 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3910 { (exit 1); exit 1; }; }
3914 ac_cv_path_EGREP=$EGREP
3920 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3921 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3922 EGREP="$ac_cv_path_EGREP"
3925 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3926 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3927 if test "${ac_cv_header_stdc+set}" = set; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 cat >conftest.$ac_ext <<_ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3949 rm -f conftest.$ac_objext
3950 if { (ac_try="$ac_compile"
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3956 (eval "$ac_compile") 2>conftest.er1
3958 grep -v '^ *+' conftest.er1 >conftest.err
3960 cat conftest.err >&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); } &&
3963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3964 { (case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969 (eval "$ac_try") 2>&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; } &&
3973 { ac_try='test -s conftest.$ac_objext'
3974 { (case "(($ac_try" in
3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3979 (eval "$ac_try") 2>&5
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); }; }; then
3983 ac_cv_header_stdc=yes
3985 echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3988 ac_cv_header_stdc=no
3991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993 if test $ac_cv_header_stdc = yes; then
3994 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3995 cat >conftest.$ac_ext <<_ACEOF
3998 cat confdefs.h >>conftest.$ac_ext
3999 cat >>conftest.$ac_ext <<_ACEOF
4000 /* end confdefs.h. */
4004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4005 $EGREP "memchr" >/dev/null 2>&1; then
4008 ac_cv_header_stdc=no
4014 if test $ac_cv_header_stdc = yes; then
4015 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4016 cat >conftest.$ac_ext <<_ACEOF
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h. */
4025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4026 $EGREP "free" >/dev/null 2>&1; then
4029 ac_cv_header_stdc=no
4035 if test $ac_cv_header_stdc = yes; then
4036 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4037 if test "$cross_compiling" = yes; then
4040 cat >conftest.$ac_ext <<_ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4048 #if ((' ' & 0x0FF) == 0x020)
4049 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4050 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4052 # define ISLOWER(c) \
4053 (('a' <= (c) && (c) <= 'i') \
4054 || ('j' <= (c) && (c) <= 'r') \
4055 || ('s' <= (c) && (c) <= 'z'))
4056 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4059 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4064 for (i = 0; i < 256; i++)
4065 if (XOR (islower (i), ISLOWER (i))
4066 || toupper (i) != TOUPPER (i))
4071 rm -f conftest$ac_exeext
4072 if { (ac_try="$ac_link"
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078 (eval "$ac_link") 2>&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4082 { (case "(($ac_try" in
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_try") 2>&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; }; then
4093 echo "$as_me: program exited with status $ac_status" >&5
4094 echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4098 ac_cv_header_stdc=no
4100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4106 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4107 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4108 if test $ac_cv_header_stdc = yes; then
4110 cat >>confdefs.h <<\_ACEOF
4111 #define STDC_HEADERS 1
4116 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4126 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4127 inttypes.h stdint.h unistd.h
4129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 cat >conftest.$ac_ext <<_ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 $ac_includes_default
4143 #include <$ac_header>
4145 rm -f conftest.$ac_objext
4146 if { (ac_try="$ac_compile"
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_compile") 2>conftest.er1
4154 grep -v '^ *+' conftest.er1 >conftest.err
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4160 { (case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165 (eval "$ac_try") 2>&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; } &&
4169 { ac_try='test -s conftest.$ac_objext'
4170 { (case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_try") 2>&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
4179 eval "$as_ac_Header=yes"
4181 echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4184 eval "$as_ac_Header=no"
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4189 ac_res=`eval echo '${'$as_ac_Header'}'`
4190 { echo "$as_me:$LINENO: result: $ac_res" >&5
4191 echo "${ECHO_T}$ac_res" >&6; }
4192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4193 cat >>confdefs.h <<_ACEOF
4194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4202 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4203 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4204 if test "${ac_cv_c_bigendian+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 # See if sys/param.h defines the BYTE_ORDER macro.
4208 cat >conftest.$ac_ext <<_ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h. */
4214 #include <sys/types.h>
4215 #include <sys/param.h>
4220 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4228 rm -f conftest.$ac_objext
4229 if { (ac_try="$ac_compile"
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_compile") 2>conftest.er1
4237 grep -v '^ *+' conftest.er1 >conftest.err
4239 cat conftest.err >&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } &&
4242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4243 { (case "(($ac_try" in
4244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245 *) ac_try_echo=$ac_try;;
4247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4248 (eval "$ac_try") 2>&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }; } &&
4252 { ac_try='test -s conftest.$ac_objext'
4253 { (case "(($ac_try" in
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258 (eval "$ac_try") 2>&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4262 # It does; now see whether it defined to BIG_ENDIAN or not.
4263 cat >conftest.$ac_ext <<_ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4269 #include <sys/types.h>
4270 #include <sys/param.h>
4275 #if BYTE_ORDER != BIG_ENDIAN
4283 rm -f conftest.$ac_objext
4284 if { (ac_try="$ac_compile"
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 (eval "$ac_compile") 2>conftest.er1
4292 grep -v '^ *+' conftest.er1 >conftest.err
4294 cat conftest.err >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } &&
4297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4298 { (case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_try") 2>&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; } &&
4307 { ac_try='test -s conftest.$ac_objext'
4308 { (case "(($ac_try" in
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313 (eval "$ac_try") 2>&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
4317 ac_cv_c_bigendian=yes
4319 echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4322 ac_cv_c_bigendian=no
4325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4330 # It does not; compile a test program.
4331 if test "$cross_compiling" = yes; then
4332 # try to guess the endianness by grepping values into an object file
4333 ac_cv_c_bigendian=unknown
4334 cat >conftest.$ac_ext <<_ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4341 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4342 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4343 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4344 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4345 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4349 _ascii (); _ebcdic ();
4354 rm -f conftest.$ac_objext
4355 if { (ac_try="$ac_compile"
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_compile") 2>conftest.er1
4363 grep -v '^ *+' conftest.er1 >conftest.err
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4369 { (case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374 (eval "$ac_try") 2>&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; } &&
4378 { ac_try='test -s conftest.$ac_objext'
4379 { (case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384 (eval "$ac_try") 2>&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; }; then
4388 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4389 ac_cv_c_bigendian=yes
4391 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4392 if test "$ac_cv_c_bigendian" = unknown; then
4393 ac_cv_c_bigendian=no
4395 # finding both strings is unlikely to happen, but who knows?
4396 ac_cv_c_bigendian=unknown
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408 cat >conftest.$ac_ext <<_ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4414 $ac_includes_default
4419 /* Are we little or big endian? From Harbison&Steele. */
4423 char c[sizeof (long int)];
4426 return u.c[sizeof (long int) - 1] == 1;
4432 rm -f conftest$ac_exeext
4433 if { (ac_try="$ac_link"
4435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436 *) ac_try_echo=$ac_try;;
4438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4439 (eval "$ac_link") 2>&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4443 { (case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448 (eval "$ac_try") 2>&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 ac_cv_c_bigendian=no
4454 echo "$as_me: program exited with status $ac_status" >&5
4455 echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.$ac_ext >&5
4459 ac_cv_c_bigendian=yes
4461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4470 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4471 case $ac_cv_c_bigendian in
4479 { { echo "$as_me:$LINENO: error: unknown endianness
4480 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4481 echo "$as_me: error: unknown endianness
4482 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4483 { (exit 1); exit 1; }; } ;;
4487 if test "$cross_compiling" = yes; then
4488 LLVM_CROSS_COMPILING=1
4491 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4492 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4493 if test "${ac_cv_build_exeext+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4497 ac_cv_build_exeext=.exe
4499 ac_build_prefix=${build_alias}-
4501 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4502 set dummy ${ac_build_prefix}gcc; ac_word=$2
4503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4505 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 if test -n "$BUILD_CC"; then
4509 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4518 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 BUILD_CC=$ac_cv_prog_BUILD_CC
4529 if test -n "$BUILD_CC"; then
4530 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4531 echo "${ECHO_T}$BUILD_CC" >&6; }
4533 { echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6; }
4538 if test -z "$BUILD_CC"; then
4539 # Extract the first word of "gcc", so it can be a program name with args.
4540 set dummy gcc; ac_word=$2
4541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4543 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 if test -n "$BUILD_CC"; then
4547 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4556 ac_cv_prog_BUILD_CC="gcc"
4557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 BUILD_CC=$ac_cv_prog_BUILD_CC
4567 if test -n "$BUILD_CC"; then
4568 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4569 echo "${ECHO_T}$BUILD_CC" >&6; }
4571 { echo "$as_me:$LINENO: result: no" >&5
4572 echo "${ECHO_T}no" >&6; }
4576 if test -z "$BUILD_CC"; then
4577 # Extract the first word of "cc", so it can be a program name with args.
4578 set dummy cc; ac_word=$2
4579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4581 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 if test -n "$BUILD_CC"; then
4585 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4595 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4596 ac_prog_rejected=yes
4599 ac_cv_prog_BUILD_CC="cc"
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 if test $ac_prog_rejected = yes; then
4608 # We found a bogon in the path, so make sure we never use it.
4609 set dummy $ac_cv_prog_BUILD_CC
4611 if test $# != 0; then
4612 # We chose a different compiler from the bogus one.
4613 # However, it has the same basename, so the bogon will be chosen
4614 # first if we set BUILD_CC to just the basename; use the full file name.
4616 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4621 BUILD_CC=$ac_cv_prog_BUILD_CC
4622 if test -n "$BUILD_CC"; then
4623 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4624 echo "${ECHO_T}$BUILD_CC" >&6; }
4626 { echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6; }
4633 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4634 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4635 { (exit 1); exit 1; }; }
4636 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4638 echo 'int main () { return 0; }' > conftest.$ac_ext
4640 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4641 (eval $ac_build_link) 2>&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; then
4645 for file in conftest.*; do
4647 *.c | *.o | *.obj | *.dSYM) ;;
4648 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4652 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4653 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4654 { (exit 1); exit 1; }; }
4657 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4662 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4663 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4664 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4665 ac_build_exeext=$BUILD_EXEEXT
4667 ac_build_prefix=${build_alias}-
4668 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4669 set dummy ${ac_build_prefix}g++; ac_word=$2
4670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4672 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 if test -n "$BUILD_CXX"; then
4676 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4685 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4696 if test -n "$BUILD_CXX"; then
4697 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4698 echo "${ECHO_T}$BUILD_CXX" >&6; }
4700 { echo "$as_me:$LINENO: result: no" >&5
4701 echo "${ECHO_T}no" >&6; }
4705 if test -z "$BUILD_CXX"; then
4706 # Extract the first word of "g++", so it can be a program name with args.
4707 set dummy g++; ac_word=$2
4708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4710 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 if test -n "$BUILD_CXX"; then
4714 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4723 ac_cv_prog_BUILD_CXX="g++"
4724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4734 if test -n "$BUILD_CXX"; then
4735 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4736 echo "${ECHO_T}$BUILD_CXX" >&6; }
4738 { echo "$as_me:$LINENO: result: no" >&5
4739 echo "${ECHO_T}no" >&6; }
4743 if test -z "$BUILD_CXX"; then
4744 # Extract the first word of "c++", so it can be a program name with args.
4745 set dummy c++; ac_word=$2
4746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4748 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 if test -n "$BUILD_CXX"; then
4752 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4762 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4763 ac_prog_rejected=yes
4766 ac_cv_prog_BUILD_CXX="c++"
4767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4774 if test $ac_prog_rejected = yes; then
4775 # We found a bogon in the path, so make sure we never use it.
4776 set dummy $ac_cv_prog_BUILD_CXX
4778 if test $# != 0; then
4779 # We chose a different compiler from the bogus one.
4780 # However, it has the same basename, so the bogon will be chosen
4781 # first if we set BUILD_CXX to just the basename; use the full file name.
4783 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4788 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4789 if test -n "$BUILD_CXX"; then
4790 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4791 echo "${ECHO_T}$BUILD_CXX" >&6; }
4793 { echo "$as_me:$LINENO: result: no" >&5
4794 echo "${ECHO_T}no" >&6; }
4801 LLVM_CROSS_COMPILING=0
4805 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4816 # Check whether --enable-optimized was given.
4817 if test "${enable_optimized+set}" = set; then
4818 enableval=$enable_optimized;
4823 if test ${enableval} = "no" ; then
4827 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4831 # Check whether --enable-profiling was given.
4832 if test "${enable_profiling+set}" = set; then
4833 enableval=$enable_profiling;
4838 if test ${enableval} = "no" ; then
4842 ENABLE_PROFILING=ENABLE_PROFILING=1
4846 # Check whether --enable-assertions was given.
4847 if test "${enable_assertions+set}" = set; then
4848 enableval=$enable_assertions;
4853 if test ${enableval} = "yes" ; then
4857 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4861 # Check whether --enable-expensive-checks was given.
4862 if test "${enable_expensive_checks+set}" = set; then
4863 enableval=$enable_expensive_checks;
4868 if test ${enableval} = "yes" ; then
4869 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4871 EXPENSIVE_CHECKS=yes
4874 ENABLE_EXPENSIVE_CHECKS=
4880 # Check whether --enable-debug-runtime was given.
4881 if test "${enable_debug_runtime+set}" = set; then
4882 enableval=$enable_debug_runtime;
4887 if test ${enableval} = "no" ; then
4891 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4895 # Check whether --enable-debug-symbols was given.
4896 if test "${enable_debug_symbols+set}" = set; then
4897 enableval=$enable_debug_symbols;
4902 if test ${enableval} = "no" ; then
4906 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4910 # Check whether --enable-jit was given.
4911 if test "${enable_jit+set}" = set; then
4912 enableval=$enable_jit;
4917 if test ${enableval} = "no"
4922 case "$llvm_cv_target_arch" in
4923 x86) TARGET_HAS_JIT=1
4925 Sparc) TARGET_HAS_JIT=0
4927 PowerPC) TARGET_HAS_JIT=1
4929 x86_64) TARGET_HAS_JIT=1
4931 Alpha) TARGET_HAS_JIT=1
4933 ARM) TARGET_HAS_JIT=1
4935 Mips) TARGET_HAS_JIT=0
4937 PIC16) TARGET_HAS_JIT=0
4939 XCore) TARGET_HAS_JIT=0
4941 MSP430) TARGET_HAS_JIT=0
4943 SystemZ) TARGET_HAS_JIT=0
4945 Blackfin) TARGET_HAS_JIT=0
4952 # Check whether --enable-doxygen was given.
4953 if test "${enable_doxygen+set}" = set; then
4954 enableval=$enable_doxygen;
4959 case "$enableval" in
4960 yes) ENABLE_DOXYGEN=1
4962 no) ENABLE_DOXYGEN=0
4964 default) ENABLE_DOXYGEN=0
4966 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4967 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4968 { (exit 1); exit 1; }; } ;;
4971 # Check whether --enable-threads was given.
4972 if test "${enable_threads+set}" = set; then
4973 enableval=$enable_threads;
4978 case "$enableval" in
4979 yes) ENABLE_THREADS=1
4981 no) ENABLE_THREADS=0
4983 default) ENABLE_THREADS=1
4985 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4986 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4987 { (exit 1); exit 1; }; } ;;
4990 cat >>confdefs.h <<_ACEOF
4991 #define ENABLE_THREADS $ENABLE_THREADS
4995 # Check whether --enable-pic was given.
4996 if test "${enable_pic+set}" = set; then
4997 enableval=$enable_pic;
5002 case "$enableval" in
5007 default) ENABLE_PIC=1
5009 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5010 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5011 { (exit 1); exit 1; }; } ;;
5014 cat >>confdefs.h <<_ACEOF
5015 #define ENABLE_PIC $ENABLE_PIC
5020 # Check whether --enable-targets was given.
5021 if test "${enable_targets+set}" = set; then
5022 enableval=$enable_targets;
5027 if test "$enableval" = host-only ; then
5030 case "$enableval" in
5031 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
5032 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5034 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5035 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5036 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5037 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5038 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5039 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5040 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5041 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5042 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5043 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5044 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5045 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5046 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5047 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5048 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5049 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5050 host) case "$llvm_cv_target_arch" in
5051 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5052 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5053 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5054 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5055 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5056 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5057 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5058 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5059 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5060 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5061 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5062 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5063 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5064 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5065 echo "$as_me: error: Can not set target to build" >&2;}
5066 { (exit 1); exit 1; }; } ;;
5068 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5069 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5070 { (exit 1); exit 1; }; } ;;
5075 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5078 # Determine whether we are building LLVM support for the native architecture.
5079 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5080 for a_target in $TARGETS_TO_BUILD; do
5081 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5082 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5084 cat >>confdefs.h <<_ACEOF
5085 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5091 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5092 # Targets.def, AsmPrinters.def, and AsmParsers.def.
5093 LLVM_ENUM_TARGETS=""
5094 LLVM_ENUM_ASM_PRINTERS=""
5095 LLVM_ENUM_ASM_PARSERS=""
5096 for target_to_build in $TARGETS_TO_BUILD; do
5097 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5098 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5099 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5101 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5102 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5109 # Check whether --enable-cbe-printf-a was given.
5110 if test "${enable_cbe_printf_a+set}" = set; then
5111 enableval=$enable_cbe_printf_a;
5116 case "$enableval" in
5117 yes) ENABLE_CBE_PRINTF_A=1
5119 no) ENABLE_CBE_PRINTF_A=0
5121 default) ENABLE_CBE_PRINTF_A=1
5123 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5124 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5125 { (exit 1); exit 1; }; } ;;
5128 cat >>confdefs.h <<_ACEOF
5129 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5134 # Check whether --with-llvmgccdir was given.
5135 if test "${with_llvmgccdir+set}" = set; then
5136 withval=$with_llvmgccdir;
5142 default) WITH_LLVMGCCDIR=default ;;
5143 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5144 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5145 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5146 { (exit 1); exit 1; }; } ;;
5150 # Check whether --with-llvmgcc was given.
5151 if test "${with_llvmgcc+set}" = set; then
5152 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5158 # Check whether --with-llvmgxx was given.
5159 if test "${with_llvmgxx+set}" = set; then
5160 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5165 if test -n "$LLVMGCC"; then
5166 LLVMGCCCOMMAND="$LLVMGCC"
5169 if test -n "$LLVMGXX"; then
5170 LLVMGXXCOMMAND="$LLVMGXX"
5173 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5174 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5175 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5176 { (exit 1); exit 1; }; };
5179 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5180 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5181 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5182 { (exit 1); exit 1; }; };
5186 # Check whether --with-extra-options was given.
5187 if test "${with_extra_options+set}" = set; then
5188 withval=$with_extra_options;
5194 default) EXTRA_OPTIONS= ;;
5195 *) EXTRA_OPTIONS=$withval ;;
5197 EXTRA_OPTIONS=$EXTRA_OPTIONS
5200 # Check whether --enable-bindings was given.
5201 if test "${enable_bindings+set}" = set; then
5202 enableval=$enable_bindings;
5207 BINDINGS_TO_BUILD=""
5208 case "$enableval" in
5209 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5210 all ) BINDINGS_TO_BUILD="ocaml" ;;
5211 none | no) BINDINGS_TO_BUILD="" ;;
5212 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5213 case "$a_binding" in
5214 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5215 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5216 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5217 { (exit 1); exit 1; }; } ;;
5224 # Check whether --with-ocaml-libdir was given.
5225 if test "${with_ocaml_libdir+set}" = set; then
5226 withval=$with_ocaml_libdir;
5232 auto) with_ocaml_libdir="$withval" ;;
5233 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5234 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5235 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5236 { (exit 1); exit 1; }; } ;;
5240 # Check whether --with-binutils-include was given.
5241 if test "${with_binutils_include+set}" = set; then
5242 withval=$with_binutils_include;
5248 default) WITH_BINUTILS_INCDIR=default ;;
5249 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5250 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5251 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5252 { (exit 1); exit 1; }; } ;;
5254 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5255 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5257 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5258 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5259 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5260 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5261 { (exit 1); exit 1; }; };
5265 # Check whether --enable-libffi was given.
5266 if test "${enable_libffi+set}" = set; then
5267 enableval=$enable_libffi;
5272 case "$enableval" in
5273 yes) llvm_cv_enable_libffi="yes" ;;
5274 no) llvm_cv_enable_libffi="no" ;;
5275 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5276 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5277 { (exit 1); exit 1; }; } ;;
5280 if test "$llvm_cv_os_type" = "Win32" ; then
5286 # Check whether --enable-llvmc-dynamic was given.
5287 if test "${enable_llvmc_dynamic+set}" = set; then
5288 enableval=$enable_llvmc_dynamic;
5290 enableval=$llvmc_dynamic
5293 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5294 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5297 ENABLE_LLVMC_DYNAMIC=
5301 # Check whether --enable-llvmc-dynamic-plugins was given.
5302 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5303 enableval=$enable_llvmc_dynamic_plugins;
5308 if test ${enableval} = "yes" ; then
5309 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5312 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5318 ac_cpp='$CPP $CPPFLAGS'
5319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5322 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5323 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5324 # On Suns, sometimes $CPP names a directory.
5325 if test -n "$CPP" && test -d "$CPP"; then
5328 if test -z "$CPP"; then
5329 if test "${ac_cv_prog_CPP+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 # Double quotes because CPP needs to be expanded
5333 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5336 for ac_c_preproc_warn_flag in '' yes
5338 # Use a header file that comes with gcc, so configuring glibc
5339 # with a fresh cross-compiler works.
5340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5341 # <limits.h> exists even on freestanding compilers.
5342 # On the NeXT, cc -E runs the code through the compiler's parser,
5343 # not just through cpp. "Syntax error" is here to catch this case.
5344 cat >conftest.$ac_ext <<_ACEOF
5347 cat confdefs.h >>conftest.$ac_ext
5348 cat >>conftest.$ac_ext <<_ACEOF
5349 /* end confdefs.h. */
5351 # include <limits.h>
5353 # include <assert.h>
5357 if { (ac_try="$ac_cpp conftest.$ac_ext"
5359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360 *) ac_try_echo=$ac_try;;
5362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5365 grep -v '^ *+' conftest.er1 >conftest.err
5367 cat conftest.err >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } >/dev/null; then
5370 if test -s conftest.err; then
5371 ac_cpp_err=$ac_c_preproc_warn_flag
5372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5379 if test -z "$ac_cpp_err"; then
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5385 # Broken: fails on valid input.
5389 rm -f conftest.err conftest.$ac_ext
5391 # OK, works on sane cases. Now check whether nonexistent headers
5392 # can be detected and how.
5393 cat >conftest.$ac_ext <<_ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5399 #include <ac_nonexistent.h>
5401 if { (ac_try="$ac_cpp conftest.$ac_ext"
5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5409 grep -v '^ *+' conftest.er1 >conftest.err
5411 cat conftest.err >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } >/dev/null; then
5414 if test -s conftest.err; then
5415 ac_cpp_err=$ac_c_preproc_warn_flag
5416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5423 if test -z "$ac_cpp_err"; then
5424 # Broken: success on invalid input.
5427 echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.$ac_ext >&5
5430 # Passes both tests.
5435 rm -f conftest.err conftest.$ac_ext
5438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5439 rm -f conftest.err conftest.$ac_ext
5440 if $ac_preproc_ok; then
5452 { echo "$as_me:$LINENO: result: $CPP" >&5
5453 echo "${ECHO_T}$CPP" >&6; }
5455 for ac_c_preproc_warn_flag in '' yes
5457 # Use a header file that comes with gcc, so configuring glibc
5458 # with a fresh cross-compiler works.
5459 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5460 # <limits.h> exists even on freestanding compilers.
5461 # On the NeXT, cc -E runs the code through the compiler's parser,
5462 # not just through cpp. "Syntax error" is here to catch this case.
5463 cat >conftest.$ac_ext <<_ACEOF
5466 cat confdefs.h >>conftest.$ac_ext
5467 cat >>conftest.$ac_ext <<_ACEOF
5468 /* end confdefs.h. */
5470 # include <limits.h>
5472 # include <assert.h>
5476 if { (ac_try="$ac_cpp conftest.$ac_ext"
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5484 grep -v '^ *+' conftest.er1 >conftest.err
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } >/dev/null; then
5489 if test -s conftest.err; then
5490 ac_cpp_err=$ac_c_preproc_warn_flag
5491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5498 if test -z "$ac_cpp_err"; then
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5504 # Broken: fails on valid input.
5508 rm -f conftest.err conftest.$ac_ext
5510 # OK, works on sane cases. Now check whether nonexistent headers
5511 # can be detected and how.
5512 cat >conftest.$ac_ext <<_ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518 #include <ac_nonexistent.h>
5520 if { (ac_try="$ac_cpp conftest.$ac_ext"
5522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523 *) ac_try_echo=$ac_try;;
5525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5528 grep -v '^ *+' conftest.er1 >conftest.err
5530 cat conftest.err >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } >/dev/null; then
5533 if test -s conftest.err; then
5534 ac_cpp_err=$ac_c_preproc_warn_flag
5535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5542 if test -z "$ac_cpp_err"; then
5543 # Broken: success on invalid input.
5546 echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5549 # Passes both tests.
5554 rm -f conftest.err conftest.$ac_ext
5557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5558 rm -f conftest.err conftest.$ac_ext
5559 if $ac_preproc_ok; then
5562 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5563 See \`config.log' for more details." >&5
5564 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5565 See \`config.log' for more details." >&2;}
5566 { (exit 1); exit 1; }; }
5570 ac_cpp='$CPP $CPPFLAGS'
5571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5576 ac_cpp='$CPP $CPPFLAGS'
5577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5580 if test -n "$ac_tool_prefix"; then
5583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5584 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5587 if test "${ac_cv_prog_CC+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 if test -n "$CC"; then
5591 ac_cv_prog_CC="$CC" # Let the user override the test.
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5600 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 if test -n "$CC"; then
5612 { echo "$as_me:$LINENO: result: $CC" >&5
5613 echo "${ECHO_T}$CC" >&6; }
5615 { echo "$as_me:$LINENO: result: no" >&5
5616 echo "${ECHO_T}no" >&6; }
5620 test -n "$CC" && break
5623 if test -z "$CC"; then
5627 # Extract the first word of "$ac_prog", so it can be a program name with args.
5628 set dummy $ac_prog; ac_word=$2
5629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5631 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 if test -n "$ac_ct_CC"; then
5635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 test -z "$as_dir" && as_dir=.
5642 for ac_exec_ext in '' $ac_executable_extensions; do
5643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5644 ac_cv_prog_ac_ct_CC="$ac_prog"
5645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5654 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5655 if test -n "$ac_ct_CC"; then
5656 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5657 echo "${ECHO_T}$ac_ct_CC" >&6; }
5659 { echo "$as_me:$LINENO: result: no" >&5
5660 echo "${ECHO_T}no" >&6; }
5664 test -n "$ac_ct_CC" && break
5667 if test "x$ac_ct_CC" = x; then
5670 case $cross_compiling:$ac_tool_warned in
5672 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5673 whose name does not start with the host triplet. If you think this
5674 configuration is useful to you, please write to autoconf@gnu.org." >&5
5675 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5676 whose name does not start with the host triplet. If you think this
5677 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5678 ac_tool_warned=yes ;;
5685 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5686 See \`config.log' for more details." >&5
5687 echo "$as_me: error: no acceptable C compiler found in \$PATH
5688 See \`config.log' for more details." >&2;}
5689 { (exit 1); exit 1; }; }
5691 # Provide some information about the compiler.
5692 echo "$as_me:$LINENO: checking for C compiler version" >&5
5693 ac_compiler=`set X $ac_compile; echo $2`
5694 { (ac_try="$ac_compiler --version >&5"
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700 (eval "$ac_compiler --version >&5") 2>&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); }
5704 { (ac_try="$ac_compiler -v >&5"
5706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5707 *) ac_try_echo=$ac_try;;
5709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5710 (eval "$ac_compiler -v >&5") 2>&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }
5714 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }
5725 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5726 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5727 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 cat >conftest.$ac_ext <<_ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h. */
5748 rm -f conftest.$ac_objext
5749 if { (ac_try="$ac_compile"
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_compile") 2>conftest.er1
5757 grep -v '^ *+' conftest.er1 >conftest.err
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5763 { (case "(($ac_try" in
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_try") 2>&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; } &&
5772 { ac_try='test -s conftest.$ac_objext'
5773 { (case "(($ac_try" in
5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_try") 2>&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; }; then
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5794 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5795 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5796 GCC=`test $ac_compiler_gnu = yes && echo yes`
5797 ac_test_CFLAGS=${CFLAGS+set}
5798 ac_save_CFLAGS=$CFLAGS
5799 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5800 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5801 if test "${ac_cv_prog_cc_g+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 ac_save_c_werror_flag=$ac_c_werror_flag
5805 ac_c_werror_flag=yes
5808 cat >conftest.$ac_ext <<_ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5823 rm -f conftest.$ac_objext
5824 if { (ac_try="$ac_compile"
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_compile") 2>conftest.er1
5832 grep -v '^ *+' conftest.er1 >conftest.err
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } &&
5837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5838 { (case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_try") 2>&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } &&
5847 { ac_try='test -s conftest.$ac_objext'
5848 { (case "(($ac_try" in
5849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850 *) ac_try_echo=$ac_try;;
5852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853 (eval "$ac_try") 2>&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5863 cat >conftest.$ac_ext <<_ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h. */
5878 rm -f conftest.$ac_objext
5879 if { (ac_try="$ac_compile"
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885 (eval "$ac_compile") 2>conftest.er1
5887 grep -v '^ *+' conftest.er1 >conftest.err
5889 cat conftest.err >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } &&
5892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5893 { (case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_try") 2>&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; } &&
5902 { ac_try='test -s conftest.$ac_objext'
5903 { (case "(($ac_try" in
5904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5908 (eval "$ac_try") 2>&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); }; }; then
5914 echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5917 ac_c_werror_flag=$ac_save_c_werror_flag
5919 cat >conftest.$ac_ext <<_ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5934 rm -f conftest.$ac_objext
5935 if { (ac_try="$ac_compile"
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_compile") 2>conftest.er1
5943 grep -v '^ *+' conftest.er1 >conftest.err
5945 cat conftest.err >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } &&
5948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5949 { (case "(($ac_try" in
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_try") 2>&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; } &&
5958 { ac_try='test -s conftest.$ac_objext'
5959 { (case "(($ac_try" in
5960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5961 *) ac_try_echo=$ac_try;;
5963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5964 (eval "$ac_try") 2>&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983 ac_c_werror_flag=$ac_save_c_werror_flag
5985 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5986 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5987 if test "$ac_test_CFLAGS" = set; then
5988 CFLAGS=$ac_save_CFLAGS
5989 elif test $ac_cv_prog_cc_g = yes; then
5990 if test "$GCC" = yes; then
5996 if test "$GCC" = yes; then
6002 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6003 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6004 if test "${ac_cv_prog_cc_c89+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 ac_cv_prog_cc_c89=no
6009 cat >conftest.$ac_ext <<_ACEOF
6012 cat confdefs.h >>conftest.$ac_ext
6013 cat >>conftest.$ac_ext <<_ACEOF
6014 /* end confdefs.h. */
6017 #include <sys/types.h>
6018 #include <sys/stat.h>
6019 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6020 struct buf { int x; };
6021 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6022 static char *e (p, i)
6028 static char *f (char * (*g) (char **, int), char **p, ...)
6033 s = g (p, va_arg (v,int));
6038 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6039 function prototypes and stuff, but not '\xHH' hex character constants.
6040 These don't provoke an error unfortunately, instead are silently treated
6041 as 'x'. The following induces an error, until -std is added to get
6042 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6043 array size at least. It's necessary to write '\x00'==0 to get something
6044 that's true only with -std. */
6045 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6047 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6048 inside strings and character constants. */
6050 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6052 int test (int i, double x);
6053 struct s1 {int (*f) (int a);};
6054 struct s2 {int (*f) (double a);};
6055 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6061 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6066 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6067 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6069 CC="$ac_save_CC $ac_arg"
6070 rm -f conftest.$ac_objext
6071 if { (ac_try="$ac_compile"
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_compile") 2>conftest.er1
6079 grep -v '^ *+' conftest.er1 >conftest.err
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } &&
6084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6085 { (case "(($ac_try" in
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_try") 2>&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; } &&
6094 { ac_try='test -s conftest.$ac_objext'
6095 { (case "(($ac_try" in
6096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6097 *) ac_try_echo=$ac_try;;
6099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6100 (eval "$ac_try") 2>&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; }; then
6104 ac_cv_prog_cc_c89=$ac_arg
6106 echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6112 rm -f core conftest.err conftest.$ac_objext
6113 test "x$ac_cv_prog_cc_c89" != "xno" && break
6115 rm -f conftest.$ac_ext
6120 case "x$ac_cv_prog_cc_c89" in
6122 { echo "$as_me:$LINENO: result: none needed" >&5
6123 echo "${ECHO_T}none needed" >&6; } ;;
6125 { echo "$as_me:$LINENO: result: unsupported" >&5
6126 echo "${ECHO_T}unsupported" >&6; } ;;
6128 CC="$CC $ac_cv_prog_cc_c89"
6129 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6130 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6135 ac_cpp='$CPP $CPPFLAGS'
6136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6141 ac_cpp='$CXXCPP $CPPFLAGS'
6142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6145 if test -z "$CXX"; then
6146 if test -n "$CCC"; then
6149 if test -n "$ac_tool_prefix"; then
6152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6156 if test "${ac_cv_prog_CXX+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 if test -n "$CXX"; then
6160 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6169 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6180 if test -n "$CXX"; then
6181 { echo "$as_me:$LINENO: result: $CXX" >&5
6182 echo "${ECHO_T}$CXX" >&6; }
6184 { echo "$as_me:$LINENO: result: no" >&5
6185 echo "${ECHO_T}no" >&6; }
6189 test -n "$CXX" && break
6192 if test -z "$CXX"; then
6196 # Extract the first word of "$ac_prog", so it can be a program name with args.
6197 set dummy $ac_prog; ac_word=$2
6198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6200 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 if test -n "$ac_ct_CXX"; then
6204 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 test -z "$as_dir" && as_dir=.
6211 for ac_exec_ext in '' $ac_executable_extensions; do
6212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6213 ac_cv_prog_ac_ct_CXX="$ac_prog"
6214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6223 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6224 if test -n "$ac_ct_CXX"; then
6225 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6226 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6228 { echo "$as_me:$LINENO: result: no" >&5
6229 echo "${ECHO_T}no" >&6; }
6233 test -n "$ac_ct_CXX" && break
6236 if test "x$ac_ct_CXX" = x; then
6239 case $cross_compiling:$ac_tool_warned in
6241 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6242 whose name does not start with the host triplet. If you think this
6243 configuration is useful to you, please write to autoconf@gnu.org." >&5
6244 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6245 whose name does not start with the host triplet. If you think this
6246 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6247 ac_tool_warned=yes ;;
6255 # Provide some information about the compiler.
6256 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6257 ac_compiler=`set X $ac_compile; echo $2`
6258 { (ac_try="$ac_compiler --version >&5"
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_compiler --version >&5") 2>&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }
6268 { (ac_try="$ac_compiler -v >&5"
6270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271 *) ac_try_echo=$ac_try;;
6273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6274 (eval "$ac_compiler -v >&5") 2>&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); }
6278 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }
6289 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6290 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6291 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6294 cat >conftest.$ac_ext <<_ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h. */
6312 rm -f conftest.$ac_objext
6313 if { (ac_try="$ac_compile"
6315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316 *) ac_try_echo=$ac_try;;
6318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6319 (eval "$ac_compile") 2>conftest.er1
6321 grep -v '^ *+' conftest.er1 >conftest.err
6323 cat conftest.err >&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } &&
6326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6327 { (case "(($ac_try" in
6328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6329 *) ac_try_echo=$ac_try;;
6331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6332 (eval "$ac_try") 2>&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; } &&
6336 { ac_try='test -s conftest.$ac_objext'
6337 { (case "(($ac_try" in
6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$ac_try") 2>&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; }; then
6348 echo "$as_me: failed program was:" >&5
6349 sed 's/^/| /' conftest.$ac_ext >&5
6354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6358 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6359 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6360 GXX=`test $ac_compiler_gnu = yes && echo yes`
6361 ac_test_CXXFLAGS=${CXXFLAGS+set}
6362 ac_save_CXXFLAGS=$CXXFLAGS
6363 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6364 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6365 if test "${ac_cv_prog_cxx_g+set}" = set; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6369 ac_cxx_werror_flag=yes
6372 cat >conftest.$ac_ext <<_ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6387 rm -f conftest.$ac_objext
6388 if { (ac_try="$ac_compile"
6390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391 *) ac_try_echo=$ac_try;;
6393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_compile") 2>conftest.er1
6396 grep -v '^ *+' conftest.er1 >conftest.err
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } &&
6401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6402 { (case "(($ac_try" in
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_try") 2>&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; } &&
6411 { ac_try='test -s conftest.$ac_objext'
6412 { (case "(($ac_try" in
6413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6414 *) ac_try_echo=$ac_try;;
6416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6417 (eval "$ac_try") 2>&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
6421 ac_cv_prog_cxx_g=yes
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6427 cat >conftest.$ac_ext <<_ACEOF
6430 cat confdefs.h >>conftest.$ac_ext
6431 cat >>conftest.$ac_ext <<_ACEOF
6432 /* end confdefs.h. */
6442 rm -f conftest.$ac_objext
6443 if { (ac_try="$ac_compile"
6445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446 *) ac_try_echo=$ac_try;;
6448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6449 (eval "$ac_compile") 2>conftest.er1
6451 grep -v '^ *+' conftest.er1 >conftest.err
6453 cat conftest.err >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } &&
6456 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6457 { (case "(($ac_try" in
6458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459 *) ac_try_echo=$ac_try;;
6461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462 (eval "$ac_try") 2>&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; } &&
6466 { ac_try='test -s conftest.$ac_objext'
6467 { (case "(($ac_try" in
6468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469 *) ac_try_echo=$ac_try;;
6471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472 (eval "$ac_try") 2>&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); }; }; then
6478 echo "$as_me: failed program was:" >&5
6479 sed 's/^/| /' conftest.$ac_ext >&5
6481 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6483 cat >conftest.$ac_ext <<_ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6498 rm -f conftest.$ac_objext
6499 if { (ac_try="$ac_compile"
6501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502 *) ac_try_echo=$ac_try;;
6504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505 (eval "$ac_compile") 2>conftest.er1
6507 grep -v '^ *+' conftest.er1 >conftest.err
6509 cat conftest.err >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } &&
6512 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6513 { (case "(($ac_try" in
6514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515 *) ac_try_echo=$ac_try;;
6517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6518 (eval "$ac_try") 2>&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); }; } &&
6522 { ac_try='test -s conftest.$ac_objext'
6523 { (case "(($ac_try" in
6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528 (eval "$ac_try") 2>&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; }; then
6532 ac_cv_prog_cxx_g=yes
6534 echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.$ac_ext >&5
6540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6547 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6549 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6550 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6551 if test "$ac_test_CXXFLAGS" = set; then
6552 CXXFLAGS=$ac_save_CXXFLAGS
6553 elif test $ac_cv_prog_cxx_g = yes; then
6554 if test "$GXX" = yes; then
6560 if test "$GXX" = yes; then
6567 ac_cpp='$CPP $CPPFLAGS'
6568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6573 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6574 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6575 if test "${lt_cv_path_NM+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 if test -n "$NM"; then
6579 # Let the user override the test.
6582 lt_nm_to_check="${ac_tool_prefix}nm"
6583 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6584 lt_nm_to_check="$lt_nm_to_check nm"
6586 for lt_tmp_nm in $lt_nm_to_check; do
6587 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6588 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6590 test -z "$ac_dir" && ac_dir=.
6591 tmp_nm="$ac_dir/$lt_tmp_nm"
6592 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6593 # Check to see if the nm accepts a BSD-compat flag.
6594 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6595 # nm: unknown option "B" ignored
6596 # Tru64's nm complains that /dev/null is an invalid object file
6597 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6598 */dev/null* | *'Invalid file or object type'*)
6599 lt_cv_path_NM="$tmp_nm -B"
6603 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6605 lt_cv_path_NM="$tmp_nm -p"
6609 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6610 continue # so that we can try to find one that supports BSD flags
6619 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6622 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6623 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6628 { echo "$as_me:$LINENO: checking for GNU make" >&5
6629 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6630 if test "${llvm_cv_gnu_make_command+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 llvm_cv_gnu_make_command=''
6634 for a in "$MAKE" make gmake gnumake ; do
6635 if test -z "$a" ; then continue ; fi ;
6636 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6638 llvm_cv_gnu_make_command=$a ;
6643 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6644 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6645 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6649 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6650 echo "${ECHO_T}\"Not found\"" >&6; };
6654 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6655 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6657 if test "$LN_S" = "ln -s"; then
6658 { echo "$as_me:$LINENO: result: yes" >&5
6659 echo "${ECHO_T}yes" >&6; }
6661 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6662 echo "${ECHO_T}no, using $LN_S" >&6; }
6665 # Extract the first word of "cmp", so it can be a program name with args.
6666 set dummy cmp; ac_word=$2
6667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6669 if test "${ac_cv_path_CMP+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6697 if test -n "$CMP"; then
6698 { echo "$as_me:$LINENO: result: $CMP" >&5
6699 echo "${ECHO_T}$CMP" >&6; }
6701 { echo "$as_me:$LINENO: result: no" >&5
6702 echo "${ECHO_T}no" >&6; }
6706 # Extract the first word of "cp", so it can be a program name with args.
6707 set dummy cp; ac_word=$2
6708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6710 if test "${ac_cv_path_CP+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6738 if test -n "$CP"; then
6739 { echo "$as_me:$LINENO: result: $CP" >&5
6740 echo "${ECHO_T}$CP" >&6; }
6742 { echo "$as_me:$LINENO: result: no" >&5
6743 echo "${ECHO_T}no" >&6; }
6747 # Extract the first word of "date", so it can be a program name with args.
6748 set dummy date; ac_word=$2
6749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6751 if test "${ac_cv_path_DATE+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 test -z "$as_dir" && as_dir=.
6764 for ac_exec_ext in '' $ac_executable_extensions; do
6765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6766 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6778 DATE=$ac_cv_path_DATE
6779 if test -n "$DATE"; then
6780 { echo "$as_me:$LINENO: result: $DATE" >&5
6781 echo "${ECHO_T}$DATE" >&6; }
6783 { echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6; }
6788 # Extract the first word of "find", so it can be a program name with args.
6789 set dummy find; ac_word=$2
6790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6792 if test "${ac_cv_path_FIND+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6807 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6819 FIND=$ac_cv_path_FIND
6820 if test -n "$FIND"; then
6821 { echo "$as_me:$LINENO: result: $FIND" >&5
6822 echo "${ECHO_T}$FIND" >&6; }
6824 { echo "$as_me:$LINENO: result: no" >&5
6825 echo "${ECHO_T}no" >&6; }
6829 # Extract the first word of "grep", so it can be a program name with args.
6830 set dummy grep; ac_word=$2
6831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6833 if test "${ac_cv_path_GREP+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6848 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6860 GREP=$ac_cv_path_GREP
6861 if test -n "$GREP"; then
6862 { echo "$as_me:$LINENO: result: $GREP" >&5
6863 echo "${ECHO_T}$GREP" >&6; }
6865 { echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6; }
6870 # Extract the first word of "mkdir", so it can be a program name with args.
6871 set dummy mkdir; ac_word=$2
6872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6874 if test "${ac_cv_path_MKDIR+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6889 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6901 MKDIR=$ac_cv_path_MKDIR
6902 if test -n "$MKDIR"; then
6903 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6904 echo "${ECHO_T}$MKDIR" >&6; }
6906 { echo "$as_me:$LINENO: result: no" >&5
6907 echo "${ECHO_T}no" >&6; }
6911 # Extract the first word of "mv", so it can be a program name with args.
6912 set dummy mv; ac_word=$2
6913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6915 if test "${ac_cv_path_MV+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6930 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6943 if test -n "$MV"; then
6944 { echo "$as_me:$LINENO: result: $MV" >&5
6945 echo "${ECHO_T}$MV" >&6; }
6947 { echo "$as_me:$LINENO: result: no" >&5
6948 echo "${ECHO_T}no" >&6; }
6952 if test -n "$ac_tool_prefix"; then
6953 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6954 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6957 if test "${ac_cv_prog_RANLIB+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 if test -n "$RANLIB"; then
6961 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6970 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 RANLIB=$ac_cv_prog_RANLIB
6981 if test -n "$RANLIB"; then
6982 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6983 echo "${ECHO_T}$RANLIB" >&6; }
6985 { echo "$as_me:$LINENO: result: no" >&5
6986 echo "${ECHO_T}no" >&6; }
6991 if test -z "$ac_cv_prog_RANLIB"; then
6992 ac_ct_RANLIB=$RANLIB
6993 # Extract the first word of "ranlib", so it can be a program name with args.
6994 set dummy ranlib; ac_word=$2
6995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6997 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 if test -n "$ac_ct_RANLIB"; then
7001 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 test -z "$as_dir" && as_dir=.
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7010 ac_cv_prog_ac_ct_RANLIB="ranlib"
7011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7021 if test -n "$ac_ct_RANLIB"; then
7022 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7023 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7025 { echo "$as_me:$LINENO: result: no" >&5
7026 echo "${ECHO_T}no" >&6; }
7029 if test "x$ac_ct_RANLIB" = x; then
7032 case $cross_compiling:$ac_tool_warned in
7034 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7035 whose name does not start with the host triplet. If you think this
7036 configuration is useful to you, please write to autoconf@gnu.org." >&5
7037 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7038 whose name does not start with the host triplet. If you think this
7039 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7040 ac_tool_warned=yes ;;
7042 RANLIB=$ac_ct_RANLIB
7045 RANLIB="$ac_cv_prog_RANLIB"
7048 # Extract the first word of "rm", so it can be a program name with args.
7049 set dummy rm; ac_word=$2
7050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7052 if test "${ac_cv_path_RM+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7057 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 test -z "$as_dir" && as_dir=.
7065 for ac_exec_ext in '' $ac_executable_extensions; do
7066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7067 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7080 if test -n "$RM"; then
7081 { echo "$as_me:$LINENO: result: $RM" >&5
7082 echo "${ECHO_T}$RM" >&6; }
7084 { echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6; }
7089 # Extract the first word of "sed", so it can be a program name with args.
7090 set dummy sed; ac_word=$2
7091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7093 if test "${ac_cv_path_SED+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7098 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7108 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7121 if test -n "$SED"; then
7122 { echo "$as_me:$LINENO: result: $SED" >&5
7123 echo "${ECHO_T}$SED" >&6; }
7125 { echo "$as_me:$LINENO: result: no" >&5
7126 echo "${ECHO_T}no" >&6; }
7130 # Extract the first word of "tar", so it can be a program name with args.
7131 set dummy tar; ac_word=$2
7132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134 if test "${ac_cv_path_TAR+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7149 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7162 if test -n "$TAR"; then
7163 { echo "$as_me:$LINENO: result: $TAR" >&5
7164 echo "${ECHO_T}$TAR" >&6; }
7166 { echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6; }
7171 # Extract the first word of "pwd", so it can be a program name with args.
7172 set dummy pwd; ac_word=$2
7173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7175 if test "${ac_cv_path_BINPWD+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7190 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7202 BINPWD=$ac_cv_path_BINPWD
7203 if test -n "$BINPWD"; then
7204 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7205 echo "${ECHO_T}$BINPWD" >&6; }
7207 { echo "$as_me:$LINENO: result: no" >&5
7208 echo "${ECHO_T}no" >&6; }
7213 # Extract the first word of "Graphviz", so it can be a program name with args.
7214 set dummy Graphviz; ac_word=$2
7215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7217 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7232 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7244 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7245 if test -n "$GRAPHVIZ"; then
7246 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7247 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7249 { echo "$as_me:$LINENO: result: no" >&5
7250 echo "${ECHO_T}no" >&6; }
7254 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7256 cat >>confdefs.h <<\_ACEOF
7257 #define HAVE_GRAPHVIZ 1
7260 if test "$llvm_cv_os_type" = "MingW" ; then
7261 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7264 cat >>confdefs.h <<_ACEOF
7265 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7269 # Extract the first word of "dot", so it can be a program name with args.
7270 set dummy dot; ac_word=$2
7271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7273 if test "${ac_cv_path_DOT+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7288 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7296 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7301 if test -n "$DOT"; then
7302 { echo "$as_me:$LINENO: result: $DOT" >&5
7303 echo "${ECHO_T}$DOT" >&6; }
7305 { echo "$as_me:$LINENO: result: no" >&5
7306 echo "${ECHO_T}no" >&6; }
7310 if test "$DOT" != "echo dot" ; then
7312 cat >>confdefs.h <<\_ACEOF
7316 if test "$llvm_cv_os_type" = "MingW" ; then
7317 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7320 cat >>confdefs.h <<_ACEOF
7321 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7325 # Extract the first word of "fdp", so it can be a program name with args.
7326 set dummy fdp; ac_word=$2
7327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7329 if test "${ac_cv_path_FDP+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7334 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7344 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7357 if test -n "$FDP"; then
7358 { echo "$as_me:$LINENO: result: $FDP" >&5
7359 echo "${ECHO_T}$FDP" >&6; }
7361 { echo "$as_me:$LINENO: result: no" >&5
7362 echo "${ECHO_T}no" >&6; }
7366 if test "$FDP" != "echo fdp" ; then
7368 cat >>confdefs.h <<\_ACEOF
7372 if test "$llvm_cv_os_type" = "MingW" ; then
7373 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7376 cat >>confdefs.h <<_ACEOF
7377 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7381 # Extract the first word of "neato", so it can be a program name with args.
7382 set dummy neato; ac_word=$2
7383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7385 if test "${ac_cv_path_NEATO+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7400 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7412 NEATO=$ac_cv_path_NEATO
7413 if test -n "$NEATO"; then
7414 { echo "$as_me:$LINENO: result: $NEATO" >&5
7415 echo "${ECHO_T}$NEATO" >&6; }
7417 { echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6; }
7422 if test "$NEATO" != "echo neato" ; then
7424 cat >>confdefs.h <<\_ACEOF
7425 #define HAVE_NEATO 1
7428 if test "$llvm_cv_os_type" = "MingW" ; then
7429 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7432 cat >>confdefs.h <<_ACEOF
7433 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7437 # Extract the first word of "twopi", so it can be a program name with args.
7438 set dummy twopi; 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_TWOPI+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7446 ac_cv_path_TWOPI="$TWOPI" # 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_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7468 TWOPI=$ac_cv_path_TWOPI
7469 if test -n "$TWOPI"; then
7470 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7471 echo "${ECHO_T}$TWOPI" >&6; }
7473 { echo "$as_me:$LINENO: result: no" >&5
7474 echo "${ECHO_T}no" >&6; }
7478 if test "$TWOPI" != "echo twopi" ; then
7480 cat >>confdefs.h <<\_ACEOF
7481 #define HAVE_TWOPI 1
7484 if test "$llvm_cv_os_type" = "MingW" ; then
7485 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7488 cat >>confdefs.h <<_ACEOF
7489 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7493 # Extract the first word of "circo", so it can be a program name with args.
7494 set dummy circo; ac_word=$2
7495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7497 if test "${ac_cv_path_CIRCO+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7512 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7524 CIRCO=$ac_cv_path_CIRCO
7525 if test -n "$CIRCO"; then
7526 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7527 echo "${ECHO_T}$CIRCO" >&6; }
7529 { echo "$as_me:$LINENO: result: no" >&5
7530 echo "${ECHO_T}no" >&6; }
7534 if test "$CIRCO" != "echo circo" ; then
7536 cat >>confdefs.h <<\_ACEOF
7537 #define HAVE_CIRCO 1
7540 if test "$llvm_cv_os_type" = "MingW" ; then
7541 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7544 cat >>confdefs.h <<_ACEOF
7545 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7549 for ac_prog in gv gsview32
7551 # Extract the first word of "$ac_prog", so it can be a program name with args.
7552 set dummy $ac_prog; ac_word=$2
7553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7555 if test "${ac_cv_path_GV+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 test -z "$as_dir" && as_dir=.
7568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7570 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 if test -n "$GV"; then
7583 { echo "$as_me:$LINENO: result: $GV" >&5
7584 echo "${ECHO_T}$GV" >&6; }
7586 { echo "$as_me:$LINENO: result: no" >&5
7587 echo "${ECHO_T}no" >&6; }
7591 test -n "$GV" && break
7593 test -n "$GV" || GV="echo gv"
7595 if test "$GV" != "echo gv" ; then
7597 cat >>confdefs.h <<\_ACEOF
7601 if test "$llvm_cv_os_type" = "MingW" ; then
7602 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7605 cat >>confdefs.h <<_ACEOF
7606 #define LLVM_PATH_GV "$GV${EXEEXT}"
7610 # Extract the first word of "dotty", so it can be a program name with args.
7611 set dummy dotty; ac_word=$2
7612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7614 if test "${ac_cv_path_DOTTY+set}" = set; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 test -z "$as_dir" && as_dir=.
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7629 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7637 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7641 DOTTY=$ac_cv_path_DOTTY
7642 if test -n "$DOTTY"; then
7643 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7644 echo "${ECHO_T}$DOTTY" >&6; }
7646 { echo "$as_me:$LINENO: result: no" >&5
7647 echo "${ECHO_T}no" >&6; }
7651 if test "$DOTTY" != "echo dotty" ; then
7653 cat >>confdefs.h <<\_ACEOF
7654 #define HAVE_DOTTY 1
7657 if test "$llvm_cv_os_type" = "MingW" ; then
7658 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7661 cat >>confdefs.h <<_ACEOF
7662 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7668 # Extract the first word of "perl", so it can be a program name with args.
7669 set dummy perl; ac_word=$2
7670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7672 if test "${ac_cv_path_PERL+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7687 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7695 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7699 PERL=$ac_cv_path_PERL
7700 if test -n "$PERL"; then
7701 { echo "$as_me:$LINENO: result: $PERL" >&5
7702 echo "${ECHO_T}$PERL" >&6; }
7704 { echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6; }
7709 if test "$PERL" != "none"; then
7710 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7711 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7712 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7713 { echo "$as_me:$LINENO: result: yes" >&5
7714 echo "${ECHO_T}yes" >&6; }
7717 { echo "$as_me:$LINENO: result: not found" >&5
7718 echo "${ECHO_T}not found" >&6; }
7723 if test x"$PERL" = xnone; then
7726 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7727 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7728 { (exit 1); exit 1; }; }
7734 # Find a good install program. We prefer a C program (faster),
7735 # so one script is as good as another. But avoid the broken or
7736 # incompatible versions:
7737 # SysV /etc/install, /usr/sbin/install
7738 # SunOS /usr/etc/install
7739 # IRIX /sbin/install
7741 # AmigaOS /C/install, which installs bootblocks on floppy discs
7742 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7743 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7744 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7745 # OS/2's system install, which has a completely different semantic
7746 # ./install, which can be erroneously created by make from ./install.sh.
7747 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7748 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7749 if test -z "$INSTALL"; then
7750 if test "${ac_cv_path_install+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 test -z "$as_dir" && as_dir=.
7758 # Account for people who put trailing slashes in PATH elements.
7760 ./ | .// | /cC/* | \
7761 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7762 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7765 # OSF1 and SCO ODT 3.0 have their own names for install.
7766 # Don't use installbsd from OSF since it installs stuff as root
7768 for ac_prog in ginstall scoinst install; do
7769 for ac_exec_ext in '' $ac_executable_extensions; do
7770 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7771 if test $ac_prog = install &&
7772 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7773 # AIX install. It has an incompatible calling convention.
7775 elif test $ac_prog = install &&
7776 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7777 # program-specific install script used by HP pwplus--don't use.
7780 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7793 if test "${ac_cv_path_install+set}" = set; then
7794 INSTALL=$ac_cv_path_install
7796 # As a last resort, use the slow shell script. Don't cache a
7797 # value for INSTALL within a source directory, because that will
7798 # break other packages using the cache if that directory is
7799 # removed, or if the value is a relative name.
7800 INSTALL=$ac_install_sh
7803 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7804 echo "${ECHO_T}$INSTALL" >&6; }
7806 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7807 # It thinks the first close brace ends the variable substitution.
7808 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7810 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7812 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7815 # Extract the first word of "bzip2", so it can be a program name with args.
7816 set dummy bzip2; ac_word=$2
7817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7819 if test "${ac_cv_path_BZIP2+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7834 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 BZIP2=$ac_cv_path_BZIP2
7846 if test -n "$BZIP2"; then
7847 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7848 echo "${ECHO_T}$BZIP2" >&6; }
7850 { echo "$as_me:$LINENO: result: no" >&5
7851 echo "${ECHO_T}no" >&6; }
7855 # Extract the first word of "doxygen", so it can be a program name with args.
7856 set dummy doxygen; ac_word=$2
7857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7859 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7864 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7874 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7885 DOXYGEN=$ac_cv_path_DOXYGEN
7886 if test -n "$DOXYGEN"; then
7887 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7888 echo "${ECHO_T}$DOXYGEN" >&6; }
7890 { echo "$as_me:$LINENO: result: no" >&5
7891 echo "${ECHO_T}no" >&6; }
7895 # Extract the first word of "groff", so it can be a program name with args.
7896 set dummy groff; ac_word=$2
7897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7899 if test "${ac_cv_path_GROFF+set}" = set; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7914 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 GROFF=$ac_cv_path_GROFF
7926 if test -n "$GROFF"; then
7927 { echo "$as_me:$LINENO: result: $GROFF" >&5
7928 echo "${ECHO_T}$GROFF" >&6; }
7930 { echo "$as_me:$LINENO: result: no" >&5
7931 echo "${ECHO_T}no" >&6; }
7935 # Extract the first word of "gzip", so it can be a program name with args.
7936 set dummy gzip; ac_word=$2
7937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7939 if test "${ac_cv_path_GZIP+set}" = set; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7954 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7965 GZIP=$ac_cv_path_GZIP
7966 if test -n "$GZIP"; then
7967 { echo "$as_me:$LINENO: result: $GZIP" >&5
7968 echo "${ECHO_T}$GZIP" >&6; }
7970 { echo "$as_me:$LINENO: result: no" >&5
7971 echo "${ECHO_T}no" >&6; }
7975 # Extract the first word of "pod2html", so it can be a program name with args.
7976 set dummy pod2html; ac_word=$2
7977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7979 if test "${ac_cv_path_POD2HTML+set}" = set; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7984 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991 test -z "$as_dir" && as_dir=.
7992 for ac_exec_ext in '' $ac_executable_extensions; do
7993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7994 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8005 POD2HTML=$ac_cv_path_POD2HTML
8006 if test -n "$POD2HTML"; then
8007 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8008 echo "${ECHO_T}$POD2HTML" >&6; }
8010 { echo "$as_me:$LINENO: result: no" >&5
8011 echo "${ECHO_T}no" >&6; }
8015 # Extract the first word of "pod2man", so it can be a program name with args.
8016 set dummy pod2man; ac_word=$2
8017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8019 if test "${ac_cv_path_POD2MAN+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8024 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 test -z "$as_dir" && as_dir=.
8032 for ac_exec_ext in '' $ac_executable_extensions; do
8033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8034 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8045 POD2MAN=$ac_cv_path_POD2MAN
8046 if test -n "$POD2MAN"; then
8047 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8048 echo "${ECHO_T}$POD2MAN" >&6; }
8050 { echo "$as_me:$LINENO: result: no" >&5
8051 echo "${ECHO_T}no" >&6; }
8055 # Extract the first word of "runtest", so it can be a program name with args.
8056 set dummy runtest; ac_word=$2
8057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8059 if test "${ac_cv_path_RUNTEST+set}" = set; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 test -z "$as_dir" && as_dir=.
8072 for ac_exec_ext in '' $ac_executable_extensions; do
8073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8074 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8085 RUNTEST=$ac_cv_path_RUNTEST
8086 if test -n "$RUNTEST"; then
8087 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8088 echo "${ECHO_T}$RUNTEST" >&6; }
8090 { echo "$as_me:$LINENO: result: no" >&5
8091 echo "${ECHO_T}no" >&6; }
8097 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8098 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8100 # Check whether --with-tclinclude was given.
8101 if test "${with_tclinclude+set}" = set; then
8102 withval=$with_tclinclude; with_tclinclude=${withval}
8107 if test "${ac_cv_path_tclsh+set}" = set; then
8108 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 if test x"${with_tclinclude}" != x ; then
8112 if test -f ${with_tclinclude}/tclsh ; then
8113 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8114 elif test -f ${with_tclinclude}/src/tclsh ; then
8115 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8117 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8118 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8119 { (exit 1); exit 1; }; }
8123 if test x"${ac_cv_path_tclsh}" = x ; then
8124 { echo "$as_me:$LINENO: result: none" >&5
8125 echo "${ECHO_T}none" >&6; }
8126 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
8128 # Extract the first word of "$ac_prog", so it can be a program name with args.
8129 set dummy $ac_prog; ac_word=$2
8130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8132 if test "${ac_cv_path_TCLSH+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8147 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 TCLSH=$ac_cv_path_TCLSH
8159 if test -n "$TCLSH"; then
8160 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8161 echo "${ECHO_T}$TCLSH" >&6; }
8163 { echo "$as_me:$LINENO: result: no" >&5
8164 echo "${ECHO_T}no" >&6; }
8168 test -n "$TCLSH" && break
8171 if test x"${TCLSH}" = x ; then
8172 ac_cv_path_tclsh='';
8174 ac_cv_path_tclsh="${TCLSH}";
8177 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8178 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8179 TCLSH="${ac_cv_path_tclsh}"
8185 # Extract the first word of "zip", so it can be a program name with args.
8186 set dummy zip; ac_word=$2
8187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8189 if test "${ac_cv_path_ZIP+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8194 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201 test -z "$as_dir" && as_dir=.
8202 for ac_exec_ext in '' $ac_executable_extensions; do
8203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8204 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8216 if test -n "$ZIP"; then
8217 { echo "$as_me:$LINENO: result: $ZIP" >&5
8218 echo "${ECHO_T}$ZIP" >&6; }
8220 { echo "$as_me:$LINENO: result: no" >&5
8221 echo "${ECHO_T}no" >&6; }
8225 for ac_prog in ocamlc
8227 # Extract the first word of "$ac_prog", so it can be a program name with args.
8228 set dummy $ac_prog; ac_word=$2
8229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8231 if test "${ac_cv_path_OCAMLC+set}" = set; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243 test -z "$as_dir" && as_dir=.
8244 for ac_exec_ext in '' $ac_executable_extensions; do
8245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8246 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8257 OCAMLC=$ac_cv_path_OCAMLC
8258 if test -n "$OCAMLC"; then
8259 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8260 echo "${ECHO_T}$OCAMLC" >&6; }
8262 { echo "$as_me:$LINENO: result: no" >&5
8263 echo "${ECHO_T}no" >&6; }
8267 test -n "$OCAMLC" && break
8270 for ac_prog in ocamlopt
8272 # Extract the first word of "$ac_prog", so it can be a program name with args.
8273 set dummy $ac_prog; ac_word=$2
8274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8276 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8281 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8288 test -z "$as_dir" && as_dir=.
8289 for ac_exec_ext in '' $ac_executable_extensions; do
8290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8291 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8302 OCAMLOPT=$ac_cv_path_OCAMLOPT
8303 if test -n "$OCAMLOPT"; then
8304 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8305 echo "${ECHO_T}$OCAMLOPT" >&6; }
8307 { echo "$as_me:$LINENO: result: no" >&5
8308 echo "${ECHO_T}no" >&6; }
8312 test -n "$OCAMLOPT" && break
8315 for ac_prog in ocamldep
8317 # Extract the first word of "$ac_prog", so it can be a program name with args.
8318 set dummy $ac_prog; ac_word=$2
8319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8321 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 test -z "$as_dir" && as_dir=.
8334 for ac_exec_ext in '' $ac_executable_extensions; do
8335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8336 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8347 OCAMLDEP=$ac_cv_path_OCAMLDEP
8348 if test -n "$OCAMLDEP"; then
8349 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8350 echo "${ECHO_T}$OCAMLDEP" >&6; }
8352 { echo "$as_me:$LINENO: result: no" >&5
8353 echo "${ECHO_T}no" >&6; }
8357 test -n "$OCAMLDEP" && break
8360 for ac_prog in ocamldoc
8362 # Extract the first word of "$ac_prog", so it can be a program name with args.
8363 set dummy $ac_prog; ac_word=$2
8364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8366 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8371 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378 test -z "$as_dir" && as_dir=.
8379 for ac_exec_ext in '' $ac_executable_extensions; do
8380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8381 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8392 OCAMLDOC=$ac_cv_path_OCAMLDOC
8393 if test -n "$OCAMLDOC"; then
8394 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8395 echo "${ECHO_T}$OCAMLDOC" >&6; }
8397 { echo "$as_me:$LINENO: result: no" >&5
8398 echo "${ECHO_T}no" >&6; }
8402 test -n "$OCAMLDOC" && break
8405 for ac_prog in gas as
8407 # Extract the first word of "$ac_prog", so it can be a program name with args.
8408 set dummy $ac_prog; ac_word=$2
8409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8411 if test "${ac_cv_path_GAS+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8416 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423 test -z "$as_dir" && as_dir=.
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8426 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8438 if test -n "$GAS"; then
8439 { echo "$as_me:$LINENO: result: $GAS" >&5
8440 echo "${ECHO_T}$GAS" >&6; }
8442 { echo "$as_me:$LINENO: result: no" >&5
8443 echo "${ECHO_T}no" >&6; }
8447 test -n "$GAS" && break
8451 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8452 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8453 if test "${llvm_cv_link_use_r+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8457 ac_cpp='$CPP $CPPFLAGS'
8458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8463 CFLAGS="$CFLAGS -Wl,-R."
8464 cat >conftest.$ac_ext <<_ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8474 int main() { return 0; }
8479 rm -f conftest.$ac_objext conftest$ac_exeext
8480 if { (ac_try="$ac_link"
8482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8483 *) ac_try_echo=$ac_try;;
8485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8486 (eval "$ac_link") 2>conftest.er1
8488 grep -v '^ *+' conftest.er1 >conftest.err
8490 cat conftest.err >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } &&
8493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8494 { (case "(($ac_try" in
8495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499 (eval "$ac_try") 2>&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; } &&
8503 { ac_try='test -s conftest$ac_exeext'
8504 { (case "(($ac_try" in
8505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8506 *) ac_try_echo=$ac_try;;
8508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8509 (eval "$ac_try") 2>&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; }; then
8513 llvm_cv_link_use_r=yes
8515 echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8518 llvm_cv_link_use_r=no
8521 rm -f core conftest.err conftest.$ac_objext \
8522 conftest$ac_exeext conftest.$ac_ext
8525 ac_cpp='$CPP $CPPFLAGS'
8526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8532 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8533 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8534 if test "$llvm_cv_link_use_r" = yes ; then
8536 cat >>confdefs.h <<\_ACEOF
8537 #define HAVE_LINK_R 1
8543 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8544 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8545 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8549 ac_cpp='$CPP $CPPFLAGS'
8550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8555 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8556 cat >conftest.$ac_ext <<_ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h. */
8566 int main() { return 0; }
8571 rm -f conftest.$ac_objext conftest$ac_exeext
8572 if { (ac_try="$ac_link"
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_link") 2>conftest.er1
8580 grep -v '^ *+' conftest.er1 >conftest.err
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } &&
8585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8586 { (case "(($ac_try" in
8587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8588 *) ac_try_echo=$ac_try;;
8590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8591 (eval "$ac_try") 2>&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; } &&
8595 { ac_try='test -s conftest$ac_exeext'
8596 { (case "(($ac_try" in
8597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598 *) ac_try_echo=$ac_try;;
8600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601 (eval "$ac_try") 2>&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; }; then
8605 llvm_cv_link_use_export_dynamic=yes
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8610 llvm_cv_link_use_export_dynamic=no
8613 rm -f core conftest.err conftest.$ac_objext \
8614 conftest$ac_exeext conftest.$ac_ext
8617 ac_cpp='$CPP $CPPFLAGS'
8618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8624 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8625 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8626 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8628 cat >>confdefs.h <<\_ACEOF
8629 #define HAVE_LINK_EXPORT_DYNAMIC 1
8637 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8638 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8639 if test "${ac_cv_c_const+set}" = set; then
8640 echo $ECHO_N "(cached) $ECHO_C" >&6
8642 cat >conftest.$ac_ext <<_ACEOF
8645 cat confdefs.h >>conftest.$ac_ext
8646 cat >>conftest.$ac_ext <<_ACEOF
8647 /* end confdefs.h. */
8652 /* FIXME: Include the comments suggested by Paul. */
8654 /* Ultrix mips cc rejects this. */
8655 typedef int charset[2];
8657 /* SunOS 4.1.1 cc rejects this. */
8658 char const *const *ccp;
8660 /* NEC SVR4.0.2 mips cc rejects this. */
8661 struct point {int x, y;};
8662 static struct point const zero = {0,0};
8663 /* AIX XL C 1.02.0.0 rejects this.
8664 It does not let you subtract one const X* pointer from another in
8665 an arm of an if-expression whose if-part is not a constant
8667 const char *g = "string";
8668 ccp = &g + (g ? g-g : 0);
8669 /* HPUX 7.0 cc rejects these. */
8672 ccp = (char const *const *) p;
8673 { /* SCO 3.2v4 cc rejects this. */
8675 char const *s = 0 ? (char *) 0 : (char const *) 0;
8680 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8682 const int *foo = &x[0];
8685 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8686 typedef const int *iptr;
8690 { /* AIX XL C 1.02.0.0 rejects this saying
8691 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8692 struct s { int j; const int *ap[3]; };
8693 struct s *b; b->j = 5;
8695 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8699 return !x[0] && !zero.x;
8706 rm -f conftest.$ac_objext
8707 if { (ac_try="$ac_compile"
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_compile") 2>conftest.er1
8715 grep -v '^ *+' conftest.er1 >conftest.err
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } &&
8720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8721 { (case "(($ac_try" in
8722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723 *) ac_try_echo=$ac_try;;
8725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726 (eval "$ac_try") 2>&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; } &&
8730 { ac_try='test -s conftest.$ac_objext'
8731 { (case "(($ac_try" in
8732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733 *) ac_try_echo=$ac_try;;
8735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736 (eval "$ac_try") 2>&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; }; then
8742 echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8751 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8752 if test $ac_cv_c_const = no; then
8754 cat >>confdefs.h <<\_ACEOF
8766 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8767 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8768 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8769 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8773 cat >conftest.$ac_ext <<_ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h. */
8779 #include <sys/types.h>
8791 rm -f conftest.$ac_objext
8792 if { (ac_try="$ac_compile"
8794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8795 *) ac_try_echo=$ac_try;;
8797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8798 (eval "$ac_compile") 2>conftest.er1
8800 grep -v '^ *+' conftest.er1 >conftest.err
8802 cat conftest.err >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); } &&
8805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8806 { (case "(($ac_try" in
8807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8808 *) ac_try_echo=$ac_try;;
8810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8811 (eval "$ac_try") 2>&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; } &&
8815 { ac_try='test -s conftest.$ac_objext'
8816 { (case "(($ac_try" in
8817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8818 *) ac_try_echo=$ac_try;;
8820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8821 (eval "$ac_try") 2>&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); }; }; then
8825 eval "$as_ac_Header=yes"
8827 echo "$as_me: failed program was:" >&5
8828 sed 's/^/| /' conftest.$ac_ext >&5
8830 eval "$as_ac_Header=no"
8833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8835 ac_res=`eval echo '${'$as_ac_Header'}'`
8836 { echo "$as_me:$LINENO: result: $ac_res" >&5
8837 echo "${ECHO_T}$ac_res" >&6; }
8838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8839 cat >>confdefs.h <<_ACEOF
8840 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8843 ac_header_dirent=$ac_hdr; break
8847 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8848 if test $ac_header_dirent = dirent.h; then
8849 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8850 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8851 if test "${ac_cv_search_opendir+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8854 ac_func_search_save_LIBS=$LIBS
8855 cat >conftest.$ac_ext <<_ACEOF
8858 cat confdefs.h >>conftest.$ac_ext
8859 cat >>conftest.$ac_ext <<_ACEOF
8860 /* end confdefs.h. */
8862 /* Override any GCC internal prototype to avoid an error.
8863 Use char because int might match the return type of a GCC
8864 builtin and then its argument prototype would still apply. */
8877 for ac_lib in '' dir; do
8878 if test -z "$ac_lib"; then
8879 ac_res="none required"
8882 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8884 rm -f conftest.$ac_objext conftest$ac_exeext
8885 if { (ac_try="$ac_link"
8887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8888 *) ac_try_echo=$ac_try;;
8890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8891 (eval "$ac_link") 2>conftest.er1
8893 grep -v '^ *+' conftest.er1 >conftest.err
8895 cat conftest.err >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } &&
8898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8899 { (case "(($ac_try" in
8900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8901 *) ac_try_echo=$ac_try;;
8903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8904 (eval "$ac_try") 2>&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; } &&
8908 { ac_try='test -s conftest$ac_exeext'
8909 { (case "(($ac_try" in
8910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911 *) ac_try_echo=$ac_try;;
8913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8914 (eval "$ac_try") 2>&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; }; then
8918 ac_cv_search_opendir=$ac_res
8920 echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8926 rm -f core conftest.err conftest.$ac_objext \
8928 if test "${ac_cv_search_opendir+set}" = set; then
8932 if test "${ac_cv_search_opendir+set}" = set; then
8935 ac_cv_search_opendir=no
8938 LIBS=$ac_func_search_save_LIBS
8940 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8941 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8942 ac_res=$ac_cv_search_opendir
8943 if test "$ac_res" != no; then
8944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8949 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8950 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8951 if test "${ac_cv_search_opendir+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8954 ac_func_search_save_LIBS=$LIBS
8955 cat >conftest.$ac_ext <<_ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8962 /* Override any GCC internal prototype to avoid an error.
8963 Use char because int might match the return type of a GCC
8964 builtin and then its argument prototype would still apply. */
8977 for ac_lib in '' x; do
8978 if test -z "$ac_lib"; then
8979 ac_res="none required"
8982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8984 rm -f conftest.$ac_objext conftest$ac_exeext
8985 if { (ac_try="$ac_link"
8987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988 *) ac_try_echo=$ac_try;;
8990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8991 (eval "$ac_link") 2>conftest.er1
8993 grep -v '^ *+' conftest.er1 >conftest.err
8995 cat conftest.err >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } &&
8998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8999 { (case "(($ac_try" in
9000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9001 *) ac_try_echo=$ac_try;;
9003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9004 (eval "$ac_try") 2>&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; } &&
9008 { ac_try='test -s conftest$ac_exeext'
9009 { (case "(($ac_try" in
9010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9011 *) ac_try_echo=$ac_try;;
9013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9014 (eval "$ac_try") 2>&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); }; }; then
9018 ac_cv_search_opendir=$ac_res
9020 echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9026 rm -f core conftest.err conftest.$ac_objext \
9028 if test "${ac_cv_search_opendir+set}" = set; then
9032 if test "${ac_cv_search_opendir+set}" = set; then
9035 ac_cv_search_opendir=no
9038 LIBS=$ac_func_search_save_LIBS
9040 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9041 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9042 ac_res=$ac_cv_search_opendir
9043 if test "$ac_res" != no; then
9044 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9051 for ac_header in dlfcn.h
9053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9060 ac_res=`eval echo '${'$as_ac_Header'}'`
9061 { echo "$as_me:$LINENO: result: $ac_res" >&5
9062 echo "${ECHO_T}$ac_res" >&6; }
9064 # Is the header compilable?
9065 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9067 cat >conftest.$ac_ext <<_ACEOF
9070 cat confdefs.h >>conftest.$ac_ext
9071 cat >>conftest.$ac_ext <<_ACEOF
9072 /* end confdefs.h. */
9073 $ac_includes_default
9074 #include <$ac_header>
9076 rm -f conftest.$ac_objext
9077 if { (ac_try="$ac_compile"
9079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9080 *) ac_try_echo=$ac_try;;
9082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9083 (eval "$ac_compile") 2>conftest.er1
9085 grep -v '^ *+' conftest.er1 >conftest.err
9087 cat conftest.err >&5
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); } &&
9090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9091 { (case "(($ac_try" in
9092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9093 *) ac_try_echo=$ac_try;;
9095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9096 (eval "$ac_try") 2>&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; } &&
9100 { ac_try='test -s conftest.$ac_objext'
9101 { (case "(($ac_try" in
9102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9103 *) ac_try_echo=$ac_try;;
9105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9106 (eval "$ac_try") 2>&5
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); }; }; then
9110 ac_header_compiler=yes
9112 echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.$ac_ext >&5
9115 ac_header_compiler=no
9118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9120 echo "${ECHO_T}$ac_header_compiler" >&6; }
9122 # Is the header present?
9123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9125 cat >conftest.$ac_ext <<_ACEOF
9128 cat confdefs.h >>conftest.$ac_ext
9129 cat >>conftest.$ac_ext <<_ACEOF
9130 /* end confdefs.h. */
9131 #include <$ac_header>
9133 if { (ac_try="$ac_cpp conftest.$ac_ext"
9135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136 *) ac_try_echo=$ac_try;;
9138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9141 grep -v '^ *+' conftest.er1 >conftest.err
9143 cat conftest.err >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } >/dev/null; then
9146 if test -s conftest.err; then
9147 ac_cpp_err=$ac_c_preproc_warn_flag
9148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9155 if test -z "$ac_cpp_err"; then
9156 ac_header_preproc=yes
9158 echo "$as_me: failed program was:" >&5
9159 sed 's/^/| /' conftest.$ac_ext >&5
9161 ac_header_preproc=no
9164 rm -f conftest.err conftest.$ac_ext
9165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9166 echo "${ECHO_T}$ac_header_preproc" >&6; }
9168 # So? What about this header?
9169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9175 ac_header_preproc=yes
9178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9181 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9185 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9191 ## ----------------------------------- ##
9192 ## Report this to llvmbugs@cs.uiuc.edu ##
9193 ## ----------------------------------- ##
9195 ) | sed "s/^/$as_me: WARNING: /" >&2
9198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 eval "$as_ac_Header=\$ac_header_preproc"
9205 ac_res=`eval echo '${'$as_ac_Header'}'`
9206 { echo "$as_me:$LINENO: result: $ac_res" >&5
9207 echo "${ECHO_T}$ac_res" >&6; }
9210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9211 cat >>confdefs.h <<_ACEOF
9212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9219 # Check whether --enable-ltdl-install was given.
9220 if test "${enable_ltdl_install+set}" = set; then
9221 enableval=$enable_ltdl_install;
9227 if test x"${enable_ltdl_install-no}" != xno; then
9229 INSTALL_LTDL_FALSE='#'
9231 INSTALL_LTDL_TRUE='#'
9237 if test x"${enable_ltdl_convenience-no}" != xno; then
9238 CONVENIENCE_LTDL_TRUE=
9239 CONVENIENCE_LTDL_FALSE='#'
9241 CONVENIENCE_LTDL_TRUE='#'
9242 CONVENIENCE_LTDL_FALSE=
9246 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9247 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9249 libname_spec='lib$name'
9257 shlibpath_overrides_runpath=unknown
9259 dynamic_linker="$host_os ld.so"
9260 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9261 if test "$GCC" = yes; then
9262 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9263 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9264 # if the path contains ";" then we assume it to be the separator
9265 # otherwise default to the standard path separator (i.e. ":") - it is
9266 # assumed that no part of a normal pathname contains ";" but that should
9267 # okay in the real world where ";" in dirpaths is itself problematic.
9268 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9270 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9273 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9275 need_lib_prefix=unknown
9276 hardcode_into_libs=no
9278 # when you set need_version to no, make sure it does not cause -set_version
9279 # flags to be left without arguments
9280 need_version=unknown
9285 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9286 shlibpath_var=LIBPATH
9288 # AIX 3 has no versioning support, so we append a major version to the name.
9289 soname_spec='${libname}${release}${shared_ext}$major'
9296 hardcode_into_libs=yes
9297 if test "$host_cpu" = ia64; then
9298 # AIX 5 supports IA64
9299 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9300 shlibpath_var=LD_LIBRARY_PATH
9302 # With GCC up to 2.95.x, collect2 would create an import file
9303 # for dependence libraries. The import file would start with
9304 # the line `#! .'. This would cause the generated library to
9305 # depend on `.', always an invalid library. This was fixed in
9306 # development snapshots of GCC prior to 3.0.
9308 aix4 | aix4.[01] | aix4.[01].*)
9309 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9311 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9318 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9319 # soname into executable. Probably we can add versioning support to
9320 # collect2, so additional links can be useful in future.
9321 if test "$aix_use_runtimelinking" = yes; then
9322 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9323 # instead of lib<name>.a to let people know that these are not
9324 # typical AIX shared libraries.
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9327 # We preserve .a as extension for shared libraries through AIX4.2
9328 # and later when we are not doing run time linking.
9329 library_names_spec='${libname}${release}.a $libname.a'
9330 soname_spec='${libname}${release}${shared_ext}$major'
9332 shlibpath_var=LIBPATH
9337 library_names_spec='$libname.ixlibrary $libname.a'
9338 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9339 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'
9343 library_names_spec='${libname}${shared_ext}'
9344 dynamic_linker="$host_os ld.so"
9345 shlibpath_var=LIBRARY_PATH
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352 soname_spec='${libname}${release}${shared_ext}$major'
9353 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9354 shlibpath_var=LD_LIBRARY_PATH
9355 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9356 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9357 # the default ld.so.conf also contains /usr/contrib/lib and
9358 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9359 # libtool to hard-code these into programs
9362 cygwin* | mingw* | pw32*)
9363 version_type=windows
9368 case $GCC,$host_os in
9369 yes,cygwin* | yes,mingw* | yes,pw32*)
9370 library_names_spec='$libname.dll.a'
9371 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9372 postinstall_cmds='base_file=`basename \${file}`~
9373 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9374 dldir=$destdir/`dirname \$dlpath`~
9375 test -d \$dldir || mkdir -p \$dldir~
9376 $install_prog $dir/$dlname \$dldir/$dlname~
9377 chmod a+x \$dldir/$dlname'
9378 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9379 dlpath=$dir/\$dldll~
9381 shlibpath_overrides_runpath=yes
9385 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9386 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9387 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9390 # MinGW DLLs use traditional 'lib' prefix
9391 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9392 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9393 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9394 # It is most probably a Windows format PATH printed by
9395 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9396 # path with ; separators, and with drive letters. We can handle the
9397 # drive letters (cygwin fileutils understands them), so leave them,
9398 # especially as we might pass files found there to a mingw objdump,
9399 # which wouldn't understand a cygwinified path. Ahh.
9400 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9402 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9406 # pw32 DLLs use 'pw' prefix rather than 'lib'
9407 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9413 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9416 dynamic_linker='Win32 ld.exe'
9417 # FIXME: first we should search . and the directory the executable is in
9421 darwin* | rhapsody*)
9422 dynamic_linker="$host_os dyld"
9426 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9427 soname_spec='${libname}${release}${major}$shared_ext'
9428 shlibpath_overrides_runpath=yes
9429 shlibpath_var=DYLD_LIBRARY_PATH
9430 shrext_cmds='.dylib'
9431 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9432 if test "$GCC" = yes; then
9433 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"`
9435 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9437 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9445 soname_spec='${libname}${release}${shared_ext}$major'
9446 shlibpath_var=LD_LIBRARY_PATH
9457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9458 soname_spec='${libname}${release}${shared_ext}$major'
9459 shlibpath_var=LD_LIBRARY_PATH
9460 shlibpath_overrides_runpath=no
9461 hardcode_into_libs=yes
9462 dynamic_linker='GNU ld.so'
9465 freebsd* | dragonfly*)
9466 # DragonFly does not have aout. When/if they implement a new
9467 # versioning mechanism, adjust this.
9468 if test -x /usr/bin/objformat; then
9469 objformat=`/usr/bin/objformat`
9472 freebsd[123]*) objformat=aout ;;
9476 version_type=freebsd-$objformat
9477 case $version_type in
9479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9488 shlibpath_var=LD_LIBRARY_PATH
9491 shlibpath_overrides_runpath=yes
9493 freebsd3.[01]* | freebsdelf3.[01]*)
9494 shlibpath_overrides_runpath=yes
9495 hardcode_into_libs=yes
9497 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9498 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9499 shlibpath_overrides_runpath=no
9500 hardcode_into_libs=yes
9502 freebsd*) # from 4.6 on
9503 shlibpath_overrides_runpath=yes
9504 hardcode_into_libs=yes
9513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9514 soname_spec='${libname}${release}${shared_ext}$major'
9515 shlibpath_var=LD_LIBRARY_PATH
9516 hardcode_into_libs=yes
9519 hpux9* | hpux10* | hpux11*)
9520 # Give a soname corresponding to the major version so that dld.sl refuses to
9521 # link against other versions.
9528 hardcode_into_libs=yes
9529 dynamic_linker="$host_os dld.so"
9530 shlibpath_var=LD_LIBRARY_PATH
9531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9533 soname_spec='${libname}${release}${shared_ext}$major'
9534 if test "X$HPUX_IA64_MODE" = X32; then
9535 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9537 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9539 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9543 hardcode_into_libs=yes
9544 dynamic_linker="$host_os dld.sl"
9545 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9546 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9548 soname_spec='${libname}${release}${shared_ext}$major'
9549 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9554 dynamic_linker="$host_os dld.sl"
9555 shlibpath_var=SHLIB_PATH
9556 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9558 soname_spec='${libname}${release}${shared_ext}$major'
9561 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9562 postinstall_cmds='chmod 555 $lib'
9569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9570 soname_spec='${libname}${release}${shared_ext}$major'
9571 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9572 shlibpath_var=LD_LIBRARY_PATH
9573 shlibpath_overrides_runpath=no
9574 hardcode_into_libs=yes
9577 irix5* | irix6* | nonstopux*)
9579 nonstopux*) version_type=nonstopux ;;
9581 if test "$lt_cv_prog_gnu_ld" = yes; then
9589 soname_spec='${libname}${release}${shared_ext}$major'
9590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9592 irix5* | nonstopux*)
9596 case $LD in # libtool.m4 will add one of these switches to LD
9597 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9598 libsuff= shlibsuff= libmagic=32-bit;;
9599 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9600 libsuff=32 shlibsuff=N32 libmagic=N32;;
9601 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9602 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9603 *) libsuff= shlibsuff= libmagic=never-match;;
9607 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9608 shlibpath_overrides_runpath=no
9609 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9610 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9611 hardcode_into_libs=yes
9614 # No shared lib support for Linux oldld, aout, or coff.
9615 linux*oldld* | linux*aout* | linux*coff*)
9619 # This must be Linux ELF.
9624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9625 soname_spec='${libname}${release}${shared_ext}$major'
9626 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9627 shlibpath_var=LD_LIBRARY_PATH
9628 shlibpath_overrides_runpath=no
9629 # This implies no fast_install, which is unacceptable.
9630 # Some rework will be needed to allow for fast_install
9631 # before this can be enabled.
9632 hardcode_into_libs=yes
9634 # Append ld.so.conf contents to the search path
9635 if test -f /etc/ld.so.conf; then
9636 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' ' '`
9637 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9640 # We used to test for /lib/ld.so.1 and disable shared libraries on
9641 # powerpc, because MkLinux only supported shared libraries with the
9642 # GNU dynamic linker. Since this was broken with cross compilers,
9643 # most powerpc-linux boxes support dynamic linking these days and
9644 # people can always --disable-shared, the test was removed, and we
9645 # assume the GNU/Linux dynamic linker is in use.
9646 dynamic_linker='GNU/Linux ld.so'
9653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9654 soname_spec='${libname}${release}${shared_ext}$major'
9655 shlibpath_var=LD_LIBRARY_PATH
9656 shlibpath_overrides_runpath=no
9657 hardcode_into_libs=yes
9658 dynamic_linker='GNU ld.so'
9665 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9667 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9668 dynamic_linker='NetBSD (a.out) ld.so'
9670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9671 soname_spec='${libname}${release}${shared_ext}$major'
9672 dynamic_linker='NetBSD ld.elf_so'
9674 shlibpath_var=LD_LIBRARY_PATH
9675 shlibpath_overrides_runpath=yes
9676 hardcode_into_libs=yes
9681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9682 shlibpath_var=LD_LIBRARY_PATH
9683 shlibpath_overrides_runpath=yes
9690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9691 soname_spec='${libname}${release}${shared_ext}$major'
9692 shlibpath_var=LD_LIBRARY_PATH
9693 shlibpath_overrides_runpath=yes
9698 sys_lib_dlsearch_path_spec="/usr/lib"
9700 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9702 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9703 *) need_version=no ;;
9705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9707 shlibpath_var=LD_LIBRARY_PATH
9708 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9710 openbsd2.[89] | openbsd2.[89].*)
9711 shlibpath_overrides_runpath=no
9714 shlibpath_overrides_runpath=yes
9718 shlibpath_overrides_runpath=yes
9723 libname_spec='$name'
9726 library_names_spec='$libname${shared_ext} $libname.a'
9727 dynamic_linker='OS/2 ld.exe'
9728 shlibpath_var=LIBPATH
9731 osf3* | osf4* | osf5*)
9735 soname_spec='${libname}${release}${shared_ext}$major'
9736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9737 shlibpath_var=LD_LIBRARY_PATH
9738 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9739 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9747 soname_spec='${libname}${release}${shared_ext}$major'
9748 shlibpath_var=LD_LIBRARY_PATH
9749 shlibpath_overrides_runpath=yes
9750 hardcode_into_libs=yes
9751 # ldd complains unless libraries are executable
9752 postinstall_cmds='chmod +x $lib'
9757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9758 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9759 shlibpath_var=LD_LIBRARY_PATH
9760 shlibpath_overrides_runpath=yes
9761 if test "$with_gnu_ld" = yes; then
9769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9770 soname_spec='${libname}${release}${shared_ext}$major'
9771 shlibpath_var=LD_LIBRARY_PATH
9772 case $host_vendor in
9774 shlibpath_overrides_runpath=no
9776 export_dynamic_flag_spec='${wl}-Blargedynsym'
9777 runpath_var=LD_RUN_PATH
9785 shlibpath_overrides_runpath=no
9786 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9792 if test -d /usr/nec ;then
9794 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9795 soname_spec='$libname${shared_ext}.$major'
9796 shlibpath_var=LD_LIBRARY_PATH
9800 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9801 version_type=freebsd-elf
9804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9805 soname_spec='${libname}${release}${shared_ext}$major'
9806 shlibpath_var=LD_LIBRARY_PATH
9807 hardcode_into_libs=yes
9808 if test "$with_gnu_ld" = yes; then
9809 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9810 shlibpath_overrides_runpath=no
9812 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9813 shlibpath_overrides_runpath=yes
9816 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9820 sys_lib_dlsearch_path_spec='/usr/lib'
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826 soname_spec='${libname}${release}${shared_ext}$major'
9827 shlibpath_var=LD_LIBRARY_PATH
9834 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9835 echo "${ECHO_T}$dynamic_linker" >&6; }
9836 test "$dynamic_linker" = no && can_build_shared=no
9838 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9839 if test "$GCC" = yes; then
9840 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9844 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9845 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9846 if test "${libltdl_cv_shlibext+set}" = set; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9851 eval libltdl_cv_shlibext=$shrext_cmds
9854 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9855 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9856 if test -n "$libltdl_cv_shlibext"; then
9858 cat >>confdefs.h <<_ACEOF
9859 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9865 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9866 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9867 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9868 echo $ECHO_N "(cached) $ECHO_C" >&6
9870 libltdl_cv_shlibpath_var="$shlibpath_var"
9872 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9873 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9874 if test -n "$libltdl_cv_shlibpath_var"; then
9876 cat >>confdefs.h <<_ACEOF
9877 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9883 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9884 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9885 if test "${libltdl_cv_sys_search_path+set}" = set; then
9886 echo $ECHO_N "(cached) $ECHO_C" >&6
9888 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9890 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9891 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9892 if test -n "$libltdl_cv_sys_search_path"; then
9894 for dir in $libltdl_cv_sys_search_path; do
9895 if test -z "$sys_search_path"; then
9896 sys_search_path="$dir"
9898 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9902 cat >>confdefs.h <<_ACEOF
9903 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9908 { echo "$as_me:$LINENO: checking for objdir" >&5
9909 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9910 if test "${libltdl_cv_objdir+set}" = set; then
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
9913 libltdl_cv_objdir="$objdir"
9914 if test -n "$objdir"; then
9917 rm -f .libs 2>/dev/null
9918 mkdir .libs 2>/dev/null
9919 if test -d .libs; then
9920 libltdl_cv_objdir=.libs
9922 # MS-DOS does not allow filenames that begin with a dot.
9923 libltdl_cv_objdir=_libs
9925 rmdir .libs 2>/dev/null
9929 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9930 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9932 cat >>confdefs.h <<_ACEOF
9933 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9941 # Check for command to grab the raw symbol name followed by C symbol from nm.
9942 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9943 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9944 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9948 # These are sane defaults that work on at least a few old systems.
9949 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9951 # Character class describing NM global symbol codes.
9952 symcode='[BCDEGRST]'
9954 # Regexp to match symbols that can be accessed directly from C.
9955 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9957 # Transform an extracted symbol line into a proper C declaration
9958 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9960 # Transform an extracted symbol line into symbol name and symbol address
9961 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'"
9963 # Define system-specific variables.
9968 cygwin* | mingw* | pw32*)
9969 symcode='[ABCDGISTW]'
9971 hpux*) # Its linker distinguishes data from code symbols
9972 if test "$host_cpu" = ia64; then
9973 symcode='[ABCDEGRST]'
9975 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9976 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'"
9979 if test "$host_cpu" = ia64; then
9980 symcode='[ABCDGIRSTW]'
9981 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9982 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'"
9986 symcode='[BCDEGRST]'
9989 symcode='[BCDEGQRST]'
10000 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10008 # Handle CRLF in mingw tool chain
10012 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10016 # If we're using GNU nm, then use its standard symbol codes.
10017 case `$NM -V 2>&1` in
10018 *GNU* | *'with BFD'*)
10019 symcode='[ABCDGIRSTW]' ;;
10022 # Try without a prefix undercore, then with it.
10023 for ac_symprfx in "" "_"; do
10025 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10026 symxfrm="\\1 $ac_symprfx\\2 \\2"
10028 # Write the raw and C identifiers.
10029 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10031 # Check to see that the pipe works correctly.
10035 cat > conftest.$ac_ext <<EOF
10040 void nm_test_func(){}
10044 int main(){nm_test_var='a';nm_test_func();return(0);}
10047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10048 (eval $ac_compile) 2>&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; then
10052 # Now try to grab the symbols.
10054 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10055 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); } && test -s "$nlist"; then
10059 # Try sorting and uniquifying the output.
10060 if sort "$nlist" | uniq > "$nlist"T; then
10061 mv -f "$nlist"T "$nlist"
10066 # Make sure that we snagged all the symbols we need.
10067 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10068 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10069 cat <<EOF > conftest.$ac_ext
10075 # Now generate the symbol file.
10076 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10078 cat <<EOF >> conftest.$ac_ext
10079 #if defined (__STDC__) && __STDC__
10080 # define lt_ptr_t void *
10082 # define lt_ptr_t char *
10086 /* The mapping between symbol names and symbols. */
10091 lt_preloaded_symbols[] =
10094 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10095 cat <<\EOF >> conftest.$ac_ext
10103 # Now try linking the two files.
10104 mv conftest.$ac_objext conftstm.$ac_objext
10105 lt_save_LIBS="$LIBS"
10106 lt_save_CFLAGS="$CFLAGS"
10107 LIBS="conftstm.$ac_objext"
10108 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10110 (eval $ac_link) 2>&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10116 LIBS="$lt_save_LIBS"
10117 CFLAGS="$lt_save_CFLAGS"
10119 echo "cannot find nm_test_func in $nlist" >&5
10122 echo "cannot find nm_test_var in $nlist" >&5
10125 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10128 echo "$progname: failed program was:" >&5
10129 cat conftest.$ac_ext >&5
10131 rm -f conftest* conftst*
10133 # Do not use the global_symbol_pipe unless it works.
10134 if test "$pipe_works" = yes; then
10137 lt_cv_sys_global_symbol_pipe=
10143 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10144 lt_cv_sys_global_symbol_to_cdecl=
10146 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10147 { echo "$as_me:$LINENO: result: failed" >&5
10148 echo "${ECHO_T}failed" >&6; }
10150 { echo "$as_me:$LINENO: result: ok" >&5
10151 echo "${ECHO_T}ok" >&6; }
10155 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10156 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10157 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10158 echo $ECHO_N "(cached) $ECHO_C" >&6
10160 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10161 libltdl_cv_preloaded_symbols=yes
10163 libltdl_cv_preloaded_symbols=no
10167 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10168 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10169 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10171 cat >>confdefs.h <<\_ACEOF
10172 #define HAVE_PRELOADED_SYMBOLS 1
10180 ac_cpp='$CPP $CPPFLAGS'
10181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10186 { echo "$as_me:$LINENO: checking for shl_load" >&5
10187 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10188 if test "${ac_cv_func_shl_load+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 cat >conftest.$ac_ext <<_ACEOF
10194 cat confdefs.h >>conftest.$ac_ext
10195 cat >>conftest.$ac_ext <<_ACEOF
10196 /* end confdefs.h. */
10197 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10199 #define shl_load innocuous_shl_load
10201 /* System header to define __stub macros and hopefully few prototypes,
10202 which can conflict with char shl_load (); below.
10203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10204 <limits.h> exists even on freestanding compilers. */
10207 # include <limits.h>
10209 # include <assert.h>
10214 /* Override any GCC internal prototype to avoid an error.
10215 Use char because int might match the return type of a GCC
10216 builtin and then its argument prototype would still apply. */
10221 /* The GNU C library defines this for functions which it implements
10222 to always fail with ENOSYS. Some functions are actually named
10223 something starting with __ and the normal name is an alias. */
10224 #if defined __stub_shl_load || defined __stub___shl_load
10231 return shl_load ();
10236 rm -f conftest.$ac_objext conftest$ac_exeext
10237 if { (ac_try="$ac_link"
10238 case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_link") 2>conftest.er1
10245 grep -v '^ *+' conftest.er1 >conftest.err
10247 cat conftest.err >&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } &&
10250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10251 { (case "(($ac_try" in
10252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10253 *) ac_try_echo=$ac_try;;
10255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10256 (eval "$ac_try") 2>&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; } &&
10260 { ac_try='test -s conftest$ac_exeext'
10261 { (case "(($ac_try" in
10262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10263 *) ac_try_echo=$ac_try;;
10265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10266 (eval "$ac_try") 2>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; }; then
10270 ac_cv_func_shl_load=yes
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10275 ac_cv_func_shl_load=no
10278 rm -f core conftest.err conftest.$ac_objext \
10279 conftest$ac_exeext conftest.$ac_ext
10281 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10282 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10283 if test $ac_cv_func_shl_load = yes; then
10285 cat >>confdefs.h <<\_ACEOF
10286 #define HAVE_SHL_LOAD 1
10290 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10291 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10292 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 ac_check_lib_save_LIBS=$LIBS
10297 cat >conftest.$ac_ext <<_ACEOF
10300 cat confdefs.h >>conftest.$ac_ext
10301 cat >>conftest.$ac_ext <<_ACEOF
10302 /* end confdefs.h. */
10304 /* Override any GCC internal prototype to avoid an error.
10305 Use char because int might match the return type of a GCC
10306 builtin and then its argument prototype would still apply. */
10314 return shl_load ();
10319 rm -f conftest.$ac_objext conftest$ac_exeext
10320 if { (ac_try="$ac_link"
10321 case "(($ac_try" in
10322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323 *) ac_try_echo=$ac_try;;
10325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326 (eval "$ac_link") 2>conftest.er1
10328 grep -v '^ *+' conftest.er1 >conftest.err
10330 cat conftest.err >&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } &&
10333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10334 { (case "(($ac_try" in
10335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336 *) ac_try_echo=$ac_try;;
10338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339 (eval "$ac_try") 2>&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); }; } &&
10343 { ac_try='test -s conftest$ac_exeext'
10344 { (case "(($ac_try" in
10345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10346 *) ac_try_echo=$ac_try;;
10348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10349 (eval "$ac_try") 2>&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10353 ac_cv_lib_dld_shl_load=yes
10355 echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10358 ac_cv_lib_dld_shl_load=no
10361 rm -f core conftest.err conftest.$ac_objext \
10362 conftest$ac_exeext conftest.$ac_ext
10363 LIBS=$ac_check_lib_save_LIBS
10365 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10366 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10367 if test $ac_cv_lib_dld_shl_load = yes; then
10369 cat >>confdefs.h <<\_ACEOF
10370 #define HAVE_SHL_LOAD 1
10373 LIBADD_DL="$LIBADD_DL -ldld"
10375 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10376 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10377 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10380 ac_check_lib_save_LIBS=$LIBS
10382 cat >conftest.$ac_ext <<_ACEOF
10385 cat confdefs.h >>conftest.$ac_ext
10386 cat >>conftest.$ac_ext <<_ACEOF
10387 /* end confdefs.h. */
10389 /* Override any GCC internal prototype to avoid an error.
10390 Use char because int might match the return type of a GCC
10391 builtin and then its argument prototype would still apply. */
10404 rm -f conftest.$ac_objext conftest$ac_exeext
10405 if { (ac_try="$ac_link"
10406 case "(($ac_try" in
10407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408 *) ac_try_echo=$ac_try;;
10410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10411 (eval "$ac_link") 2>conftest.er1
10413 grep -v '^ *+' conftest.er1 >conftest.err
10415 cat conftest.err >&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); } &&
10418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10419 { (case "(($ac_try" in
10420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10421 *) ac_try_echo=$ac_try;;
10423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424 (eval "$ac_try") 2>&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; } &&
10428 { ac_try='test -s conftest$ac_exeext'
10429 { (case "(($ac_try" in
10430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10431 *) ac_try_echo=$ac_try;;
10433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10434 (eval "$ac_try") 2>&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; }; then
10438 ac_cv_lib_dl_dlopen=yes
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10443 ac_cv_lib_dl_dlopen=no
10446 rm -f core conftest.err conftest.$ac_objext \
10447 conftest$ac_exeext conftest.$ac_ext
10448 LIBS=$ac_check_lib_save_LIBS
10450 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10451 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10452 if test $ac_cv_lib_dl_dlopen = yes; then
10454 cat >>confdefs.h <<\_ACEOF
10455 #define HAVE_LIBDL 1
10458 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10460 cat >conftest.$ac_ext <<_ACEOF
10463 cat confdefs.h >>conftest.$ac_ext
10464 cat >>conftest.$ac_ext <<_ACEOF
10465 /* end confdefs.h. */
10467 # include <dlfcn.h>
10478 rm -f conftest.$ac_objext conftest$ac_exeext
10479 if { (ac_try="$ac_link"
10480 case "(($ac_try" in
10481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10485 (eval "$ac_link") 2>conftest.er1
10487 grep -v '^ *+' conftest.er1 >conftest.err
10489 cat conftest.err >&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); } &&
10492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10493 { (case "(($ac_try" in
10494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495 *) ac_try_echo=$ac_try;;
10497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498 (eval "$ac_try") 2>&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }; } &&
10502 { ac_try='test -s conftest$ac_exeext'
10503 { (case "(($ac_try" in
10504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10505 *) ac_try_echo=$ac_try;;
10507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10508 (eval "$ac_try") 2>&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; }; then
10513 cat >>confdefs.h <<\_ACEOF
10514 #define HAVE_LIBDL 1
10516 libltdl_cv_func_dlopen="yes"
10518 echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.$ac_ext >&5
10521 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10522 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10523 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10526 ac_check_lib_save_LIBS=$LIBS
10527 LIBS="-lsvld $LIBS"
10528 cat >conftest.$ac_ext <<_ACEOF
10531 cat confdefs.h >>conftest.$ac_ext
10532 cat >>conftest.$ac_ext <<_ACEOF
10533 /* end confdefs.h. */
10535 /* Override any GCC internal prototype to avoid an error.
10536 Use char because int might match the return type of a GCC
10537 builtin and then its argument prototype would still apply. */
10550 rm -f conftest.$ac_objext conftest$ac_exeext
10551 if { (ac_try="$ac_link"
10552 case "(($ac_try" in
10553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554 *) ac_try_echo=$ac_try;;
10556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10557 (eval "$ac_link") 2>conftest.er1
10559 grep -v '^ *+' conftest.er1 >conftest.err
10561 cat conftest.err >&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } &&
10564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10565 { (case "(($ac_try" in
10566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567 *) ac_try_echo=$ac_try;;
10569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10570 (eval "$ac_try") 2>&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); }; } &&
10574 { ac_try='test -s conftest$ac_exeext'
10575 { (case "(($ac_try" in
10576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577 *) ac_try_echo=$ac_try;;
10579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10580 (eval "$ac_try") 2>&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; }; then
10584 ac_cv_lib_svld_dlopen=yes
10586 echo "$as_me: failed program was:" >&5
10587 sed 's/^/| /' conftest.$ac_ext >&5
10589 ac_cv_lib_svld_dlopen=no
10592 rm -f core conftest.err conftest.$ac_objext \
10593 conftest$ac_exeext conftest.$ac_ext
10594 LIBS=$ac_check_lib_save_LIBS
10596 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10597 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10598 if test $ac_cv_lib_svld_dlopen = yes; then
10600 cat >>confdefs.h <<\_ACEOF
10601 #define HAVE_LIBDL 1
10604 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10606 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10607 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10608 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 ac_check_lib_save_LIBS=$LIBS
10613 cat >conftest.$ac_ext <<_ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10620 /* Override any GCC internal prototype to avoid an error.
10621 Use char because int might match the return type of a GCC
10622 builtin and then its argument prototype would still apply. */
10630 return dld_link ();
10635 rm -f conftest.$ac_objext conftest$ac_exeext
10636 if { (ac_try="$ac_link"
10637 case "(($ac_try" in
10638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639 *) ac_try_echo=$ac_try;;
10641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642 (eval "$ac_link") 2>conftest.er1
10644 grep -v '^ *+' conftest.er1 >conftest.err
10646 cat conftest.err >&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); } &&
10649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10650 { (case "(($ac_try" in
10651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652 *) ac_try_echo=$ac_try;;
10654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655 (eval "$ac_try") 2>&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; } &&
10659 { ac_try='test -s conftest$ac_exeext'
10660 { (case "(($ac_try" in
10661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662 *) ac_try_echo=$ac_try;;
10664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10665 (eval "$ac_try") 2>&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; }; then
10669 ac_cv_lib_dld_dld_link=yes
10671 echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10674 ac_cv_lib_dld_dld_link=no
10677 rm -f core conftest.err conftest.$ac_objext \
10678 conftest$ac_exeext conftest.$ac_ext
10679 LIBS=$ac_check_lib_save_LIBS
10681 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10682 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10683 if test $ac_cv_lib_dld_dld_link = yes; then
10685 cat >>confdefs.h <<\_ACEOF
10689 LIBADD_DL="$LIBADD_DL -ldld"
10691 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10692 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10693 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
10696 cat >conftest.$ac_ext <<_ACEOF
10699 cat confdefs.h >>conftest.$ac_ext
10700 cat >>conftest.$ac_ext <<_ACEOF
10701 /* end confdefs.h. */
10702 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10704 #define _dyld_func_lookup innocuous__dyld_func_lookup
10706 /* System header to define __stub macros and hopefully few prototypes,
10707 which can conflict with char _dyld_func_lookup (); below.
10708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10709 <limits.h> exists even on freestanding compilers. */
10712 # include <limits.h>
10714 # include <assert.h>
10717 #undef _dyld_func_lookup
10719 /* Override any GCC internal prototype to avoid an error.
10720 Use char because int might match the return type of a GCC
10721 builtin and then its argument prototype would still apply. */
10725 char _dyld_func_lookup ();
10726 /* The GNU C library defines this for functions which it implements
10727 to always fail with ENOSYS. Some functions are actually named
10728 something starting with __ and the normal name is an alias. */
10729 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10736 return _dyld_func_lookup ();
10741 rm -f conftest.$ac_objext conftest$ac_exeext
10742 if { (ac_try="$ac_link"
10743 case "(($ac_try" in
10744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748 (eval "$ac_link") 2>conftest.er1
10750 grep -v '^ *+' conftest.er1 >conftest.err
10752 cat conftest.err >&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } &&
10755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10756 { (case "(($ac_try" in
10757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10761 (eval "$ac_try") 2>&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; } &&
10765 { ac_try='test -s conftest$ac_exeext'
10766 { (case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771 (eval "$ac_try") 2>&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10775 ac_cv_func__dyld_func_lookup=yes
10777 echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10780 ac_cv_func__dyld_func_lookup=no
10783 rm -f core conftest.err conftest.$ac_objext \
10784 conftest$ac_exeext conftest.$ac_ext
10786 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10787 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10788 if test $ac_cv_func__dyld_func_lookup = yes; then
10790 cat >>confdefs.h <<\_ACEOF
10791 #define HAVE_DYLD 1
10805 rm -f core conftest.err conftest.$ac_objext \
10806 conftest$ac_exeext conftest.$ac_ext
10817 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10819 lt_save_LIBS="$LIBS"
10820 LIBS="$LIBS $LIBADD_DL"
10822 for ac_func in dlerror
10824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10825 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10827 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10828 echo $ECHO_N "(cached) $ECHO_C" >&6
10830 cat >conftest.$ac_ext <<_ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10838 #define $ac_func innocuous_$ac_func
10840 /* System header to define __stub macros and hopefully few prototypes,
10841 which can conflict with char $ac_func (); below.
10842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10843 <limits.h> exists even on freestanding compilers. */
10846 # include <limits.h>
10848 # include <assert.h>
10853 /* Override any GCC internal prototype to avoid an error.
10854 Use char because int might match the return type of a GCC
10855 builtin and then its argument prototype would still apply. */
10860 /* The GNU C library defines this for functions which it implements
10861 to always fail with ENOSYS. Some functions are actually named
10862 something starting with __ and the normal name is an alias. */
10863 #if defined __stub_$ac_func || defined __stub___$ac_func
10870 return $ac_func ();
10875 rm -f conftest.$ac_objext conftest$ac_exeext
10876 if { (ac_try="$ac_link"
10877 case "(($ac_try" in
10878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879 *) ac_try_echo=$ac_try;;
10881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882 (eval "$ac_link") 2>conftest.er1
10884 grep -v '^ *+' conftest.er1 >conftest.err
10886 cat conftest.err >&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); } &&
10889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10890 { (case "(($ac_try" in
10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895 (eval "$ac_try") 2>&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; } &&
10899 { ac_try='test -s conftest$ac_exeext'
10900 { (case "(($ac_try" in
10901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905 (eval "$ac_try") 2>&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; }; then
10909 eval "$as_ac_var=yes"
10911 echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10914 eval "$as_ac_var=no"
10917 rm -f core conftest.err conftest.$ac_objext \
10918 conftest$ac_exeext conftest.$ac_ext
10920 ac_res=`eval echo '${'$as_ac_var'}'`
10921 { echo "$as_me:$LINENO: result: $ac_res" >&5
10922 echo "${ECHO_T}$ac_res" >&6; }
10923 if test `eval echo '${'$as_ac_var'}'` = yes; then
10924 cat >>confdefs.h <<_ACEOF
10925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10931 LIBS="$lt_save_LIBS"
10934 ac_cpp='$CPP $CPPFLAGS'
10935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10941 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10942 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10943 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10944 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 ac_cv_sys_symbol_underscore=no
10947 cat > conftest.$ac_ext <<EOF
10948 void nm_test_func(){}
10949 int main(){nm_test_func;return 0;}
10951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10952 (eval $ac_compile) 2>&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; then
10956 # Now try to grab the symbols.
10957 ac_nlist=conftest.nm
10958 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10959 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } && test -s "$ac_nlist"; then
10963 # See whether the symbols have a leading underscore.
10964 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10965 ac_cv_sys_symbol_underscore=yes
10967 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10970 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10974 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10977 echo "configure: failed program was:" >&5
10983 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10984 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10987 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10988 if test x"$libltdl_cv_func_dlopen" = xyes ||
10989 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10990 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10991 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10992 if test "${libltdl_cv_need_uscore+set}" = set; then
10993 echo $ECHO_N "(cached) $ECHO_C" >&6
10995 libltdl_cv_need_uscore=unknown
10997 LIBS="$LIBS $LIBADD_DL"
10998 if test "$cross_compiling" = yes; then :
10999 libltdl_cv_need_uscore=cross
11001 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11002 lt_status=$lt_dlunknown
11003 cat > conftest.$ac_ext <<EOF
11004 #line 11004 "configure"
11005 #include "confdefs.h"
11014 # define LT_DLGLOBAL RTLD_GLOBAL
11017 # define LT_DLGLOBAL DL_GLOBAL
11019 # define LT_DLGLOBAL 0
11023 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11024 find out it does not work in some platform. */
11025 #ifndef LT_DLLAZY_OR_NOW
11027 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11030 # define LT_DLLAZY_OR_NOW DL_LAZY
11033 # define LT_DLLAZY_OR_NOW RTLD_NOW
11036 # define LT_DLLAZY_OR_NOW DL_NOW
11038 # define LT_DLLAZY_OR_NOW 0
11046 extern "C" void exit (int);
11049 void fnord() { int i=42;}
11052 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11053 int status = $lt_dlunknown;
11057 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11058 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11059 /* dlclose (self); */
11067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11068 (eval $ac_link) 2>&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11072 (./conftest; exit; ) >&5 2>/dev/null
11074 case x$lt_status in
11075 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11076 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11077 x$lt_dlunknown|x*) ;;
11080 # compilation failed
11089 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11090 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11094 if test x"$libltdl_cv_need_uscore" = xyes; then
11096 cat >>confdefs.h <<\_ACEOF
11097 #define NEED_USCORE 1
11103 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11104 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11105 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11108 # PORTME does your system automatically load deplibs for dlopen?
11109 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11110 # For now, we just catch OSes we know something about -- in the
11111 # future, we'll try test this programmatically.
11112 libltdl_cv_sys_dlopen_deplibs=unknown
11114 aix3*|aix4.1.*|aix4.2.*)
11115 # Unknown whether this is true for these versions of AIX, but
11116 # we want this `case' here to explicitly catch those versions.
11117 libltdl_cv_sys_dlopen_deplibs=unknown
11120 libltdl_cv_sys_dlopen_deplibs=yes
11123 # Assuming the user has installed a libdl from somewhere, this is true
11124 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11125 libltdl_cv_sys_dlopen_deplibs=yes
11127 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11128 # GNU and its variants, using gnu ld.so (Glibc)
11129 libltdl_cv_sys_dlopen_deplibs=yes
11132 libltdl_cv_sys_dlopen_deplibs=yes
11135 libltdl_cv_sys_dlopen_deplibs=yes
11137 irix[12345]*|irix6.[01]*)
11138 # Catch all versions of IRIX before 6.2, and indicate that we don't
11139 # know how it worked for any of those versions.
11140 libltdl_cv_sys_dlopen_deplibs=unknown
11143 # The case above catches anything before 6.2, and it's known that
11144 # at 6.2 and later dlopen does load deplibs.
11145 libltdl_cv_sys_dlopen_deplibs=yes
11148 libltdl_cv_sys_dlopen_deplibs=yes
11151 libltdl_cv_sys_dlopen_deplibs=yes
11154 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11155 # it did *not* use an RPATH in a shared library to find objects the
11156 # library depends on, so we explictly say `no'.
11157 libltdl_cv_sys_dlopen_deplibs=no
11159 osf5.0|osf5.0a|osf5.1)
11160 # dlopen *does* load deplibs and with the right loader patch applied
11161 # it even uses RPATH in a shared library to search for shared objects
11162 # that the library depends on, but there's no easy way to know if that
11163 # patch is installed. Since this is the case, all we can really
11164 # say is unknown -- it depends on the patch being installed. If
11165 # it is, this changes to `yes'. Without it, it would be `no'.
11166 libltdl_cv_sys_dlopen_deplibs=unknown
11169 # the two cases above should catch all versions of osf <= 5.1. Read
11170 # the comments above for what we know about them.
11171 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11172 # is used to find them so we can finally say `yes'.
11173 libltdl_cv_sys_dlopen_deplibs=yes
11176 libltdl_cv_sys_dlopen_deplibs=yes
11178 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11179 libltdl_cv_sys_dlopen_deplibs=yes
11184 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11185 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11186 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11188 cat >>confdefs.h <<\_ACEOF
11189 #define LTDL_DLOPEN_DEPLIBS 1
11195 for ac_header in argz.h
11197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11204 ac_res=`eval echo '${'$as_ac_Header'}'`
11205 { echo "$as_me:$LINENO: result: $ac_res" >&5
11206 echo "${ECHO_T}$ac_res" >&6; }
11208 # Is the header compilable?
11209 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11210 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11211 cat >conftest.$ac_ext <<_ACEOF
11214 cat confdefs.h >>conftest.$ac_ext
11215 cat >>conftest.$ac_ext <<_ACEOF
11216 /* end confdefs.h. */
11217 $ac_includes_default
11218 #include <$ac_header>
11220 rm -f conftest.$ac_objext
11221 if { (ac_try="$ac_compile"
11222 case "(($ac_try" in
11223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224 *) ac_try_echo=$ac_try;;
11226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227 (eval "$ac_compile") 2>conftest.er1
11229 grep -v '^ *+' conftest.er1 >conftest.err
11231 cat conftest.err >&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } &&
11234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11235 { (case "(($ac_try" in
11236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11237 *) ac_try_echo=$ac_try;;
11239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11240 (eval "$ac_try") 2>&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); }; } &&
11244 { ac_try='test -s conftest.$ac_objext'
11245 { (case "(($ac_try" in
11246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247 *) ac_try_echo=$ac_try;;
11249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11250 (eval "$ac_try") 2>&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }; then
11254 ac_header_compiler=yes
11256 echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11259 ac_header_compiler=no
11262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11263 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11264 echo "${ECHO_T}$ac_header_compiler" >&6; }
11266 # Is the header present?
11267 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11268 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11269 cat >conftest.$ac_ext <<_ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h. */
11275 #include <$ac_header>
11277 if { (ac_try="$ac_cpp conftest.$ac_ext"
11278 case "(($ac_try" in
11279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280 *) ac_try_echo=$ac_try;;
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11285 grep -v '^ *+' conftest.er1 >conftest.err
11287 cat conftest.err >&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } >/dev/null; then
11290 if test -s conftest.err; then
11291 ac_cpp_err=$ac_c_preproc_warn_flag
11292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11299 if test -z "$ac_cpp_err"; then
11300 ac_header_preproc=yes
11302 echo "$as_me: failed program was:" >&5
11303 sed 's/^/| /' conftest.$ac_ext >&5
11305 ac_header_preproc=no
11308 rm -f conftest.err conftest.$ac_ext
11309 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11310 echo "${ECHO_T}$ac_header_preproc" >&6; }
11312 # So? What about this header?
11313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11319 ac_header_preproc=yes
11322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11329 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11335 ## ----------------------------------- ##
11336 ## Report this to llvmbugs@cs.uiuc.edu ##
11337 ## ----------------------------------- ##
11339 ) | sed "s/^/$as_me: WARNING: /" >&2
11342 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11345 echo $ECHO_N "(cached) $ECHO_C" >&6
11347 eval "$as_ac_Header=\$ac_header_preproc"
11349 ac_res=`eval echo '${'$as_ac_Header'}'`
11350 { echo "$as_me:$LINENO: result: $ac_res" >&5
11351 echo "${ECHO_T}$ac_res" >&6; }
11354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11355 cat >>confdefs.h <<_ACEOF
11356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11364 { echo "$as_me:$LINENO: checking for error_t" >&5
11365 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11366 if test "${ac_cv_type_error_t+set}" = set; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11369 cat >conftest.$ac_ext <<_ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11379 typedef error_t ac__type_new_;
11383 if ((ac__type_new_ *) 0)
11385 if (sizeof (ac__type_new_))
11391 rm -f conftest.$ac_objext
11392 if { (ac_try="$ac_compile"
11393 case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_compile") 2>conftest.er1
11400 grep -v '^ *+' conftest.er1 >conftest.err
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } &&
11405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11406 { (case "(($ac_try" in
11407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408 *) ac_try_echo=$ac_try;;
11410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411 (eval "$ac_try") 2>&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; } &&
11415 { ac_try='test -s conftest.$ac_objext'
11416 { (case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421 (eval "$ac_try") 2>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; }; then
11425 ac_cv_type_error_t=yes
11427 echo "$as_me: failed program was:" >&5
11428 sed 's/^/| /' conftest.$ac_ext >&5
11430 ac_cv_type_error_t=no
11433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11435 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11436 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11437 if test $ac_cv_type_error_t = yes; then
11439 cat >>confdefs.h <<_ACEOF
11440 #define HAVE_ERROR_T 1
11446 cat >>confdefs.h <<\_ACEOF
11447 #define error_t int
11458 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11461 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11464 echo $ECHO_N "(cached) $ECHO_C" >&6
11466 cat >conftest.$ac_ext <<_ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11474 #define $ac_func innocuous_$ac_func
11476 /* System header to define __stub macros and hopefully few prototypes,
11477 which can conflict with char $ac_func (); below.
11478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11479 <limits.h> exists even on freestanding compilers. */
11482 # include <limits.h>
11484 # include <assert.h>
11489 /* Override any GCC internal prototype to avoid an error.
11490 Use char because int might match the return type of a GCC
11491 builtin and then its argument prototype would still apply. */
11496 /* The GNU C library defines this for functions which it implements
11497 to always fail with ENOSYS. Some functions are actually named
11498 something starting with __ and the normal name is an alias. */
11499 #if defined __stub_$ac_func || defined __stub___$ac_func
11506 return $ac_func ();
11511 rm -f conftest.$ac_objext conftest$ac_exeext
11512 if { (ac_try="$ac_link"
11513 case "(($ac_try" in
11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515 *) ac_try_echo=$ac_try;;
11517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518 (eval "$ac_link") 2>conftest.er1
11520 grep -v '^ *+' conftest.er1 >conftest.err
11522 cat conftest.err >&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); } &&
11525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11526 { (case "(($ac_try" in
11527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11528 *) ac_try_echo=$ac_try;;
11530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11531 (eval "$ac_try") 2>&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; } &&
11535 { ac_try='test -s conftest$ac_exeext'
11536 { (case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541 (eval "$ac_try") 2>&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; }; then
11545 eval "$as_ac_var=yes"
11547 echo "$as_me: failed program was:" >&5
11548 sed 's/^/| /' conftest.$ac_ext >&5
11550 eval "$as_ac_var=no"
11553 rm -f core conftest.err conftest.$ac_objext \
11554 conftest$ac_exeext conftest.$ac_ext
11556 ac_res=`eval echo '${'$as_ac_var'}'`
11557 { echo "$as_me:$LINENO: result: $ac_res" >&5
11558 echo "${ECHO_T}$ac_res" >&6; }
11559 if test `eval echo '${'$as_ac_var'}'` = yes; then
11560 cat >>confdefs.h <<_ACEOF
11561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11594 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 ac_res=`eval echo '${'$as_ac_Header'}'`
11605 { echo "$as_me:$LINENO: result: $ac_res" >&5
11606 echo "${ECHO_T}$ac_res" >&6; }
11608 # Is the header compilable?
11609 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11610 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11611 cat >conftest.$ac_ext <<_ACEOF
11614 cat confdefs.h >>conftest.$ac_ext
11615 cat >>conftest.$ac_ext <<_ACEOF
11616 /* end confdefs.h. */
11617 $ac_includes_default
11618 #include <$ac_header>
11620 rm -f conftest.$ac_objext
11621 if { (ac_try="$ac_compile"
11622 case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_compile") 2>conftest.er1
11629 grep -v '^ *+' conftest.er1 >conftest.err
11631 cat conftest.err >&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } &&
11634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11635 { (case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_try") 2>&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; } &&
11644 { ac_try='test -s conftest.$ac_objext'
11645 { (case "(($ac_try" in
11646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650 (eval "$ac_try") 2>&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; }; then
11654 ac_header_compiler=yes
11656 echo "$as_me: failed program was:" >&5
11657 sed 's/^/| /' conftest.$ac_ext >&5
11659 ac_header_compiler=no
11662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11663 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11664 echo "${ECHO_T}$ac_header_compiler" >&6; }
11666 # Is the header present?
11667 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11669 cat >conftest.$ac_ext <<_ACEOF
11672 cat confdefs.h >>conftest.$ac_ext
11673 cat >>conftest.$ac_ext <<_ACEOF
11674 /* end confdefs.h. */
11675 #include <$ac_header>
11677 if { (ac_try="$ac_cpp conftest.$ac_ext"
11678 case "(($ac_try" in
11679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680 *) ac_try_echo=$ac_try;;
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11685 grep -v '^ *+' conftest.er1 >conftest.err
11687 cat conftest.err >&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } >/dev/null; then
11690 if test -s conftest.err; then
11691 ac_cpp_err=$ac_c_preproc_warn_flag
11692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11699 if test -z "$ac_cpp_err"; then
11700 ac_header_preproc=yes
11702 echo "$as_me: failed program was:" >&5
11703 sed 's/^/| /' conftest.$ac_ext >&5
11705 ac_header_preproc=no
11708 rm -f conftest.err conftest.$ac_ext
11709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11710 echo "${ECHO_T}$ac_header_preproc" >&6; }
11712 # So? What about this header?
11713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11716 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11718 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11719 ac_header_preproc=yes
11722 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11723 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11724 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11725 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11726 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11727 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11728 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11729 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11732 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11733 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11735 ## ----------------------------------- ##
11736 ## Report this to llvmbugs@cs.uiuc.edu ##
11737 ## ----------------------------------- ##
11739 ) | sed "s/^/$as_me: WARNING: /" >&2
11742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
11747 eval "$as_ac_Header=\$ac_header_preproc"
11749 ac_res=`eval echo '${'$as_ac_Header'}'`
11750 { echo "$as_me:$LINENO: result: $ac_res" >&5
11751 echo "${ECHO_T}$ac_res" >&6; }
11754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11755 cat >>confdefs.h <<_ACEOF
11756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11767 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11771 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11774 echo $ECHO_N "(cached) $ECHO_C" >&6
11776 ac_res=`eval echo '${'$as_ac_Header'}'`
11777 { echo "$as_me:$LINENO: result: $ac_res" >&5
11778 echo "${ECHO_T}$ac_res" >&6; }
11780 # Is the header compilable?
11781 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11783 cat >conftest.$ac_ext <<_ACEOF
11786 cat confdefs.h >>conftest.$ac_ext
11787 cat >>conftest.$ac_ext <<_ACEOF
11788 /* end confdefs.h. */
11789 $ac_includes_default
11790 #include <$ac_header>
11792 rm -f conftest.$ac_objext
11793 if { (ac_try="$ac_compile"
11794 case "(($ac_try" in
11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796 *) ac_try_echo=$ac_try;;
11798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799 (eval "$ac_compile") 2>conftest.er1
11801 grep -v '^ *+' conftest.er1 >conftest.err
11803 cat conftest.err >&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } &&
11806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11807 { (case "(($ac_try" in
11808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809 *) ac_try_echo=$ac_try;;
11811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812 (eval "$ac_try") 2>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; } &&
11816 { ac_try='test -s conftest.$ac_objext'
11817 { (case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_try") 2>&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; }; then
11826 ac_header_compiler=yes
11828 echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.$ac_ext >&5
11831 ac_header_compiler=no
11834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11835 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11836 echo "${ECHO_T}$ac_header_compiler" >&6; }
11838 # Is the header present?
11839 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11841 cat >conftest.$ac_ext <<_ACEOF
11844 cat confdefs.h >>conftest.$ac_ext
11845 cat >>conftest.$ac_ext <<_ACEOF
11846 /* end confdefs.h. */
11847 #include <$ac_header>
11849 if { (ac_try="$ac_cpp conftest.$ac_ext"
11850 case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11857 grep -v '^ *+' conftest.er1 >conftest.err
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } >/dev/null; then
11862 if test -s conftest.err; then
11863 ac_cpp_err=$ac_c_preproc_warn_flag
11864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11871 if test -z "$ac_cpp_err"; then
11872 ac_header_preproc=yes
11874 echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11877 ac_header_preproc=no
11880 rm -f conftest.err conftest.$ac_ext
11881 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11882 echo "${ECHO_T}$ac_header_preproc" >&6; }
11884 # So? What about this header?
11885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11891 ac_header_preproc=yes
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11901 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11907 ## ----------------------------------- ##
11908 ## Report this to llvmbugs@cs.uiuc.edu ##
11909 ## ----------------------------------- ##
11911 ) | sed "s/^/$as_me: WARNING: /" >&2
11914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 eval "$as_ac_Header=\$ac_header_preproc"
11921 ac_res=`eval echo '${'$as_ac_Header'}'`
11922 { echo "$as_me:$LINENO: result: $ac_res" >&5
11923 echo "${ECHO_T}$ac_res" >&6; }
11926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11927 cat >>confdefs.h <<_ACEOF
11928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11937 for ac_header in string.h strings.h
11939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 ac_res=`eval echo '${'$as_ac_Header'}'`
11947 { echo "$as_me:$LINENO: result: $ac_res" >&5
11948 echo "${ECHO_T}$ac_res" >&6; }
11950 # Is the header compilable?
11951 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11953 cat >conftest.$ac_ext <<_ACEOF
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h. */
11959 $ac_includes_default
11960 #include <$ac_header>
11962 rm -f conftest.$ac_objext
11963 if { (ac_try="$ac_compile"
11964 case "(($ac_try" in
11965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_compile") 2>conftest.er1
11971 grep -v '^ *+' conftest.er1 >conftest.err
11973 cat conftest.err >&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } &&
11976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11977 { (case "(($ac_try" in
11978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11979 *) ac_try_echo=$ac_try;;
11981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11982 (eval "$ac_try") 2>&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; } &&
11986 { ac_try='test -s conftest.$ac_objext'
11987 { (case "(($ac_try" in
11988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989 *) ac_try_echo=$ac_try;;
11991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11992 (eval "$ac_try") 2>&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); }; }; then
11996 ac_header_compiler=yes
11998 echo "$as_me: failed program was:" >&5
11999 sed 's/^/| /' conftest.$ac_ext >&5
12001 ac_header_compiler=no
12004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12006 echo "${ECHO_T}$ac_header_compiler" >&6; }
12008 # Is the header present?
12009 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12010 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
12019 if { (ac_try="$ac_cpp conftest.$ac_ext"
12020 case "(($ac_try" in
12021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022 *) ac_try_echo=$ac_try;;
12024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12027 grep -v '^ *+' conftest.er1 >conftest.err
12029 cat conftest.err >&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); } >/dev/null; then
12032 if test -s conftest.err; then
12033 ac_cpp_err=$ac_c_preproc_warn_flag
12034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12041 if test -z "$ac_cpp_err"; then
12042 ac_header_preproc=yes
12044 echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12047 ac_header_preproc=no
12050 rm -f conftest.err conftest.$ac_ext
12051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12052 echo "${ECHO_T}$ac_header_preproc" >&6; }
12054 # So? What about this header?
12055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12061 ac_header_preproc=yes
12064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12067 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12071 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12077 ## ----------------------------------- ##
12078 ## Report this to llvmbugs@cs.uiuc.edu ##
12079 ## ----------------------------------- ##
12081 ) | sed "s/^/$as_me: WARNING: /" >&2
12084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12087 echo $ECHO_N "(cached) $ECHO_C" >&6
12089 eval "$as_ac_Header=\$ac_header_preproc"
12091 ac_res=`eval echo '${'$as_ac_Header'}'`
12092 { echo "$as_me:$LINENO: result: $ac_res" >&5
12093 echo "${ECHO_T}$ac_res" >&6; }
12096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12097 cat >>confdefs.h <<_ACEOF
12098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12108 for ac_func in strchr index
12110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12111 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12113 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12114 echo $ECHO_N "(cached) $ECHO_C" >&6
12116 cat >conftest.$ac_ext <<_ACEOF
12119 cat confdefs.h >>conftest.$ac_ext
12120 cat >>conftest.$ac_ext <<_ACEOF
12121 /* end confdefs.h. */
12122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12124 #define $ac_func innocuous_$ac_func
12126 /* System header to define __stub macros and hopefully few prototypes,
12127 which can conflict with char $ac_func (); below.
12128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12129 <limits.h> exists even on freestanding compilers. */
12132 # include <limits.h>
12134 # include <assert.h>
12139 /* Override any GCC internal prototype to avoid an error.
12140 Use char because int might match the return type of a GCC
12141 builtin and then its argument prototype would still apply. */
12146 /* The GNU C library defines this for functions which it implements
12147 to always fail with ENOSYS. Some functions are actually named
12148 something starting with __ and the normal name is an alias. */
12149 #if defined __stub_$ac_func || defined __stub___$ac_func
12156 return $ac_func ();
12161 rm -f conftest.$ac_objext conftest$ac_exeext
12162 if { (ac_try="$ac_link"
12163 case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168 (eval "$ac_link") 2>conftest.er1
12170 grep -v '^ *+' conftest.er1 >conftest.err
12172 cat conftest.err >&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); } &&
12175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12176 { (case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181 (eval "$ac_try") 2>&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); }; } &&
12185 { ac_try='test -s conftest$ac_exeext'
12186 { (case "(($ac_try" in
12187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188 *) ac_try_echo=$ac_try;;
12190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191 (eval "$ac_try") 2>&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }; }; then
12195 eval "$as_ac_var=yes"
12197 echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.$ac_ext >&5
12200 eval "$as_ac_var=no"
12203 rm -f core conftest.err conftest.$ac_objext \
12204 conftest$ac_exeext conftest.$ac_ext
12206 ac_res=`eval echo '${'$as_ac_var'}'`
12207 { echo "$as_me:$LINENO: result: $ac_res" >&5
12208 echo "${ECHO_T}$ac_res" >&6; }
12209 if test `eval echo '${'$as_ac_var'}'` = yes; then
12210 cat >>confdefs.h <<_ACEOF
12211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12219 for ac_func in strrchr rindex
12221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12222 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12224 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12225 echo $ECHO_N "(cached) $ECHO_C" >&6
12227 cat >conftest.$ac_ext <<_ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h. */
12233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12235 #define $ac_func innocuous_$ac_func
12237 /* System header to define __stub macros and hopefully few prototypes,
12238 which can conflict with char $ac_func (); below.
12239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12240 <limits.h> exists even on freestanding compilers. */
12243 # include <limits.h>
12245 # include <assert.h>
12250 /* Override any GCC internal prototype to avoid an error.
12251 Use char because int might match the return type of a GCC
12252 builtin and then its argument prototype would still apply. */
12257 /* The GNU C library defines this for functions which it implements
12258 to always fail with ENOSYS. Some functions are actually named
12259 something starting with __ and the normal name is an alias. */
12260 #if defined __stub_$ac_func || defined __stub___$ac_func
12267 return $ac_func ();
12272 rm -f conftest.$ac_objext conftest$ac_exeext
12273 if { (ac_try="$ac_link"
12274 case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279 (eval "$ac_link") 2>conftest.er1
12281 grep -v '^ *+' conftest.er1 >conftest.err
12283 cat conftest.err >&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } &&
12286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12287 { (case "(($ac_try" in
12288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289 *) ac_try_echo=$ac_try;;
12291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292 (eval "$ac_try") 2>&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; } &&
12296 { ac_try='test -s conftest$ac_exeext'
12297 { (case "(($ac_try" in
12298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299 *) ac_try_echo=$ac_try;;
12301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302 (eval "$ac_try") 2>&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); }; }; then
12306 eval "$as_ac_var=yes"
12308 echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12311 eval "$as_ac_var=no"
12314 rm -f core conftest.err conftest.$ac_objext \
12315 conftest$ac_exeext conftest.$ac_ext
12317 ac_res=`eval echo '${'$as_ac_var'}'`
12318 { echo "$as_me:$LINENO: result: $ac_res" >&5
12319 echo "${ECHO_T}$ac_res" >&6; }
12320 if test `eval echo '${'$as_ac_var'}'` = yes; then
12321 cat >>confdefs.h <<_ACEOF
12322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12330 for ac_func in memcpy bcopy
12332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12333 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12336 echo $ECHO_N "(cached) $ECHO_C" >&6
12338 cat >conftest.$ac_ext <<_ACEOF
12341 cat confdefs.h >>conftest.$ac_ext
12342 cat >>conftest.$ac_ext <<_ACEOF
12343 /* end confdefs.h. */
12344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12346 #define $ac_func innocuous_$ac_func
12348 /* System header to define __stub macros and hopefully few prototypes,
12349 which can conflict with char $ac_func (); below.
12350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12351 <limits.h> exists even on freestanding compilers. */
12354 # include <limits.h>
12356 # include <assert.h>
12361 /* Override any GCC internal prototype to avoid an error.
12362 Use char because int might match the return type of a GCC
12363 builtin and then its argument prototype would still apply. */
12368 /* The GNU C library defines this for functions which it implements
12369 to always fail with ENOSYS. Some functions are actually named
12370 something starting with __ and the normal name is an alias. */
12371 #if defined __stub_$ac_func || defined __stub___$ac_func
12378 return $ac_func ();
12383 rm -f conftest.$ac_objext conftest$ac_exeext
12384 if { (ac_try="$ac_link"
12385 case "(($ac_try" in
12386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387 *) ac_try_echo=$ac_try;;
12389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12390 (eval "$ac_link") 2>conftest.er1
12392 grep -v '^ *+' conftest.er1 >conftest.err
12394 cat conftest.err >&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } &&
12397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12398 { (case "(($ac_try" in
12399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400 *) ac_try_echo=$ac_try;;
12402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12403 (eval "$ac_try") 2>&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; } &&
12407 { ac_try='test -s conftest$ac_exeext'
12408 { (case "(($ac_try" in
12409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12410 *) ac_try_echo=$ac_try;;
12412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12413 (eval "$ac_try") 2>&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }; }; then
12417 eval "$as_ac_var=yes"
12419 echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.$ac_ext >&5
12422 eval "$as_ac_var=no"
12425 rm -f core conftest.err conftest.$ac_objext \
12426 conftest$ac_exeext conftest.$ac_ext
12428 ac_res=`eval echo '${'$as_ac_var'}'`
12429 { echo "$as_me:$LINENO: result: $ac_res" >&5
12430 echo "${ECHO_T}$ac_res" >&6; }
12431 if test `eval echo '${'$as_ac_var'}'` = yes; then
12432 cat >>confdefs.h <<_ACEOF
12433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12441 for ac_func in memmove strcmp
12443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12444 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12446 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12449 cat >conftest.$ac_ext <<_ACEOF
12452 cat confdefs.h >>conftest.$ac_ext
12453 cat >>conftest.$ac_ext <<_ACEOF
12454 /* end confdefs.h. */
12455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12457 #define $ac_func innocuous_$ac_func
12459 /* System header to define __stub macros and hopefully few prototypes,
12460 which can conflict with char $ac_func (); below.
12461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12462 <limits.h> exists even on freestanding compilers. */
12465 # include <limits.h>
12467 # include <assert.h>
12472 /* Override any GCC internal prototype to avoid an error.
12473 Use char because int might match the return type of a GCC
12474 builtin and then its argument prototype would still apply. */
12479 /* The GNU C library defines this for functions which it implements
12480 to always fail with ENOSYS. Some functions are actually named
12481 something starting with __ and the normal name is an alias. */
12482 #if defined __stub_$ac_func || defined __stub___$ac_func
12489 return $ac_func ();
12494 rm -f conftest.$ac_objext conftest$ac_exeext
12495 if { (ac_try="$ac_link"
12496 case "(($ac_try" in
12497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498 *) ac_try_echo=$ac_try;;
12500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12501 (eval "$ac_link") 2>conftest.er1
12503 grep -v '^ *+' conftest.er1 >conftest.err
12505 cat conftest.err >&5
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); } &&
12508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12509 { (case "(($ac_try" in
12510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12511 *) ac_try_echo=$ac_try;;
12513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12514 (eval "$ac_try") 2>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; } &&
12518 { ac_try='test -s conftest$ac_exeext'
12519 { (case "(($ac_try" in
12520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521 *) ac_try_echo=$ac_try;;
12523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12524 (eval "$ac_try") 2>&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; }; then
12528 eval "$as_ac_var=yes"
12530 echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12533 eval "$as_ac_var=no"
12536 rm -f core conftest.err conftest.$ac_objext \
12537 conftest$ac_exeext conftest.$ac_ext
12539 ac_res=`eval echo '${'$as_ac_var'}'`
12540 { echo "$as_me:$LINENO: result: $ac_res" >&5
12541 echo "${ECHO_T}$ac_res" >&6; }
12542 if test `eval echo '${'$as_ac_var'}'` = yes; then
12543 cat >>confdefs.h <<_ACEOF
12544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12553 for ac_func in closedir opendir readdir
12555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12556 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12559 echo $ECHO_N "(cached) $ECHO_C" >&6
12561 cat >conftest.$ac_ext <<_ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h. */
12567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12569 #define $ac_func innocuous_$ac_func
12571 /* System header to define __stub macros and hopefully few prototypes,
12572 which can conflict with char $ac_func (); below.
12573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12574 <limits.h> exists even on freestanding compilers. */
12577 # include <limits.h>
12579 # include <assert.h>
12584 /* Override any GCC internal prototype to avoid an error.
12585 Use char because int might match the return type of a GCC
12586 builtin and then its argument prototype would still apply. */
12591 /* The GNU C library defines this for functions which it implements
12592 to always fail with ENOSYS. Some functions are actually named
12593 something starting with __ and the normal name is an alias. */
12594 #if defined __stub_$ac_func || defined __stub___$ac_func
12601 return $ac_func ();
12606 rm -f conftest.$ac_objext conftest$ac_exeext
12607 if { (ac_try="$ac_link"
12608 case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_link") 2>conftest.er1
12615 grep -v '^ *+' conftest.er1 >conftest.err
12617 cat conftest.err >&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } &&
12620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12621 { (case "(($ac_try" in
12622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623 *) ac_try_echo=$ac_try;;
12625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626 (eval "$ac_try") 2>&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; } &&
12630 { ac_try='test -s conftest$ac_exeext'
12631 { (case "(($ac_try" in
12632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633 *) ac_try_echo=$ac_try;;
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636 (eval "$ac_try") 2>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; }; then
12640 eval "$as_ac_var=yes"
12642 echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12645 eval "$as_ac_var=no"
12648 rm -f core conftest.err conftest.$ac_objext \
12649 conftest$ac_exeext conftest.$ac_ext
12651 ac_res=`eval echo '${'$as_ac_var'}'`
12652 { echo "$as_me:$LINENO: result: $ac_res" >&5
12653 echo "${ECHO_T}$ac_res" >&6; }
12654 if test `eval echo '${'$as_ac_var'}'` = yes; then
12655 cat >>confdefs.h <<_ACEOF
12656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12663 # Check whether --enable-shared was given.
12664 if test "${enable_shared+set}" = set; then
12665 enableval=$enable_shared; p=${PACKAGE-default}
12667 yes) enable_shared=yes ;;
12668 no) enable_shared=no ;;
12671 # Look at the argument we got. We use all the common list separators.
12672 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12673 for pkg in $enableval; do
12675 if test "X$pkg" = "X$p"; then
12687 # Check whether --enable-static was given.
12688 if test "${enable_static+set}" = set; then
12689 enableval=$enable_static; p=${PACKAGE-default}
12691 yes) enable_static=yes ;;
12692 no) enable_static=no ;;
12695 # Look at the argument we got. We use all the common list separators.
12696 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12697 for pkg in $enableval; do
12699 if test "X$pkg" = "X$p"; then
12711 # Check whether --enable-fast-install was given.
12712 if test "${enable_fast_install+set}" = set; then
12713 enableval=$enable_fast_install; p=${PACKAGE-default}
12715 yes) enable_fast_install=yes ;;
12716 no) enable_fast_install=no ;;
12718 enable_fast_install=no
12719 # Look at the argument we got. We use all the common list separators.
12720 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12721 for pkg in $enableval; do
12723 if test "X$pkg" = "X$p"; then
12724 enable_fast_install=yes
12731 enable_fast_install=yes
12735 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12736 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12737 if test "${lt_cv_path_SED+set}" = set; then
12738 echo $ECHO_N "(cached) $ECHO_C" >&6
12740 # Loop through the user's path and test for sed and gsed.
12741 # Then use that list of sed's as ones to test for truncation.
12742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12743 for as_dir in $PATH
12746 test -z "$as_dir" && as_dir=.
12747 for lt_ac_prog in sed gsed; do
12748 for ac_exec_ext in '' $ac_executable_extensions; do
12749 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12750 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12757 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12758 # along with /bin/sed that truncates output.
12759 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12760 test ! -f $lt_ac_sed && continue
12761 cat /dev/null > conftest.in
12763 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12764 # Check for GNU sed and select it if it is found.
12765 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12766 lt_cv_path_SED=$lt_ac_sed
12770 cat conftest.in conftest.in >conftest.tmp
12771 mv conftest.tmp conftest.in
12772 cp conftest.in conftest.nl
12774 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12775 cmp -s conftest.out conftest.nl || break
12776 # 10000 chars as input seems more than enough
12777 test $lt_ac_count -gt 10 && break
12778 lt_ac_count=`expr $lt_ac_count + 1`
12779 if test $lt_ac_count -gt $lt_ac_max; then
12780 lt_ac_max=$lt_ac_count
12781 lt_cv_path_SED=$lt_ac_sed
12788 SED=$lt_cv_path_SED
12789 { echo "$as_me:$LINENO: result: $SED" >&5
12790 echo "${ECHO_T}$SED" >&6; }
12793 # Check whether --with-gnu-ld was given.
12794 if test "${with_gnu_ld+set}" = set; then
12795 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12801 if test "$GCC" = yes; then
12802 # Check if gcc -print-prog-name=ld gives a path.
12803 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12804 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12807 # gcc leaves a trailing carriage return which upsets mingw
12808 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12810 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12813 # Accept absolute paths.
12815 re_direlt='/[^/][^/]*/\.\./'
12816 # Canonicalize the pathname of ld
12817 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12818 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12819 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12821 test -z "$LD" && LD="$ac_prog"
12824 # If it fails, then pretend we aren't using GCC.
12828 # If it is relative, then search for the first ld in PATH.
12829 with_gnu_ld=unknown
12832 elif test "$with_gnu_ld" = yes; then
12833 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12834 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12836 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12837 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12839 if test "${lt_cv_path_LD+set}" = set; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
12842 if test -z "$LD"; then
12843 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12844 for ac_dir in $PATH; do
12846 test -z "$ac_dir" && ac_dir=.
12847 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12848 lt_cv_path_LD="$ac_dir/$ac_prog"
12849 # Check to see if the program is GNU ld. I'd rather use --version,
12850 # but apparently some variants of GNU ld only accept -v.
12851 # Break only if it was the GNU/non-GNU ld that we prefer.
12852 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12853 *GNU* | *'with BFD'*)
12854 test "$with_gnu_ld" != no && break
12857 test "$with_gnu_ld" != yes && break
12864 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12868 LD="$lt_cv_path_LD"
12869 if test -n "$LD"; then
12870 { echo "$as_me:$LINENO: result: $LD" >&5
12871 echo "${ECHO_T}$LD" >&6; }
12873 { echo "$as_me:$LINENO: result: no" >&5
12874 echo "${ECHO_T}no" >&6; }
12876 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12877 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12878 { (exit 1); exit 1; }; }
12879 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12880 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12881 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12884 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12885 case `$LD -v 2>&1 </dev/null` in
12886 *GNU* | *'with BFD'*)
12887 lt_cv_prog_gnu_ld=yes
12890 lt_cv_prog_gnu_ld=no
12894 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12895 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12896 with_gnu_ld=$lt_cv_prog_gnu_ld
12899 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12900 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12901 if test "${lt_cv_ld_reload_flag+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12904 lt_cv_ld_reload_flag='-r'
12906 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12907 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12908 reload_flag=$lt_cv_ld_reload_flag
12909 case $reload_flag in
12911 *) reload_flag=" $reload_flag" ;;
12913 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12916 if test "$GCC" = yes; then
12917 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12919 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12924 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12925 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12926 if test "${lt_cv_deplibs_check_method+set}" = set; then
12927 echo $ECHO_N "(cached) $ECHO_C" >&6
12929 lt_cv_file_magic_cmd='$MAGIC_CMD'
12930 lt_cv_file_magic_test_file=
12931 lt_cv_deplibs_check_method='unknown'
12932 # Need to set the preceding variable on all platforms that support
12933 # interlibrary dependencies.
12934 # 'none' -- dependencies not supported.
12935 # `unknown' -- same as none, but documents that we really don't know.
12936 # 'pass_all' -- all dependencies passed with no checks.
12937 # 'test_compile' -- check by making test program.
12938 # 'file_magic [[regex]]' -- check by looking for files in library path
12939 # which responds to the $file_magic_cmd with a given extended regex.
12940 # If you have `file' or equivalent on your system and you're not sure
12941 # whether `pass_all' will *always* work, you probably want this one.
12945 lt_cv_deplibs_check_method=pass_all
12949 lt_cv_deplibs_check_method=pass_all
12953 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12954 lt_cv_file_magic_cmd='/usr/bin/file -L'
12955 lt_cv_file_magic_test_file=/shlib/libc.so
12959 # func_win32_libid is a shell function defined in ltmain.sh
12960 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12961 lt_cv_file_magic_cmd='func_win32_libid'
12965 # Base MSYS/MinGW do not provide the 'file' command needed by
12966 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12967 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12968 lt_cv_file_magic_cmd='$OBJDUMP -f'
12971 darwin* | rhapsody*)
12972 lt_cv_deplibs_check_method=pass_all
12975 freebsd* | kfreebsd*-gnu | dragonfly*)
12976 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12979 # Not sure whether the presence of OpenBSD here was a mistake.
12980 # Let's accept both of them until this is cleared up.
12981 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12982 lt_cv_file_magic_cmd=/usr/bin/file
12983 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12987 lt_cv_deplibs_check_method=pass_all
12992 lt_cv_deplibs_check_method=pass_all
12995 hpux10.20* | hpux11*)
12996 lt_cv_file_magic_cmd=/usr/bin/file
12999 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13000 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13003 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]'
13004 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13007 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13008 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13014 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13015 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13018 irix5* | irix6* | nonstopux*)
13020 *-32|*"-32 ") libmagic=32-bit;;
13021 *-n32|*"-n32 ") libmagic=N32;;
13022 *-64|*"-64 ") libmagic=64-bit;;
13023 *) libmagic=never-match;;
13025 lt_cv_deplibs_check_method=pass_all
13028 # This must be Linux ELF.
13030 lt_cv_deplibs_check_method=pass_all
13034 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13035 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13042 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13043 lt_cv_file_magic_cmd=/usr/bin/file
13044 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13048 lt_cv_deplibs_check_method=unknown
13052 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13059 osf3* | osf4* | osf5*)
13060 lt_cv_deplibs_check_method=pass_all
13064 lt_cv_deplibs_check_method=pass_all
13068 case $host_vendor in
13070 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]'
13071 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13074 lt_cv_deplibs_check_method=pass_all
13077 lt_cv_file_magic_cmd='/bin/file'
13078 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13081 lt_cv_file_magic_cmd='/bin/file'
13082 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13083 lt_cv_file_magic_test_file=/lib/libc.so
13086 lt_cv_deplibs_check_method=pass_all
13089 lt_cv_deplibs_check_method=pass_all
13094 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13095 lt_cv_deplibs_check_method=pass_all
13100 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13101 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13102 file_magic_cmd=$lt_cv_file_magic_cmd
13103 deplibs_check_method=$lt_cv_deplibs_check_method
13104 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13108 # If no C compiler was specified, use CC.
13111 # If no C compiler flags were specified, use CFLAGS.
13112 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13114 # Allow CC to be a program name with arguments.
13117 # Check whether --enable-libtool-lock was given.
13118 if test "${enable_libtool_lock+set}" = set; then
13119 enableval=$enable_libtool_lock;
13122 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13124 # Some flags need to be propagated to the compiler or linker for good
13128 # Find out which ABI we are using.
13129 echo 'int i;' > conftest.$ac_ext
13130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13131 (eval $ac_compile) 2>&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; then
13135 case `/usr/bin/file conftest.$ac_objext` in
13137 HPUX_IA64_MODE="32"
13140 HPUX_IA64_MODE="64"
13147 # Find out which ABI we are using.
13148 echo '#line 13148 "configure"' > conftest.$ac_ext
13149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13150 (eval $ac_compile) 2>&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; then
13154 if test "$lt_cv_prog_gnu_ld" = yes; then
13155 case `/usr/bin/file conftest.$ac_objext` in
13157 LD="${LD-ld} -melf32bsmip"
13160 LD="${LD-ld} -melf32bmipn32"
13163 LD="${LD-ld} -melf64bmip"
13167 case `/usr/bin/file conftest.$ac_objext` in
13183 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13184 # Find out which ABI we are using.
13185 echo 'int i;' > conftest.$ac_ext
13186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13187 (eval $ac_compile) 2>&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; then
13191 case `/usr/bin/file conftest.o` in
13195 LD="${LD-ld} -m elf_i386"
13197 ppc64-*linux*|powerpc64-*linux*)
13198 LD="${LD-ld} -m elf32ppclinux"
13201 LD="${LD-ld} -m elf_s390"
13204 LD="${LD-ld} -m elf32_sparc"
13211 LD="${LD-ld} -m elf_x86_64"
13213 ppc*-*linux*|powerpc*-*linux*)
13214 LD="${LD-ld} -m elf64ppc"
13217 LD="${LD-ld} -m elf64_s390"
13220 LD="${LD-ld} -m elf64_sparc"
13230 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13231 SAVE_CFLAGS="$CFLAGS"
13232 CFLAGS="$CFLAGS -belf"
13233 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13234 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13235 if test "${lt_cv_cc_needs_belf+set}" = set; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13239 ac_cpp='$CPP $CPPFLAGS'
13240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13244 cat >conftest.$ac_ext <<_ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13259 rm -f conftest.$ac_objext conftest$ac_exeext
13260 if { (ac_try="$ac_link"
13261 case "(($ac_try" in
13262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266 (eval "$ac_link") 2>conftest.er1
13268 grep -v '^ *+' conftest.er1 >conftest.err
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } &&
13273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13274 { (case "(($ac_try" in
13275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13276 *) ac_try_echo=$ac_try;;
13278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13279 (eval "$ac_try") 2>&5
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); }; } &&
13283 { ac_try='test -s conftest$ac_exeext'
13284 { (case "(($ac_try" in
13285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286 *) ac_try_echo=$ac_try;;
13288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13289 (eval "$ac_try") 2>&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; }; then
13293 lt_cv_cc_needs_belf=yes
13295 echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13298 lt_cv_cc_needs_belf=no
13301 rm -f core conftest.err conftest.$ac_objext \
13302 conftest$ac_exeext conftest.$ac_ext
13304 ac_cpp='$CPP $CPPFLAGS'
13305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13310 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13311 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13312 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13313 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13314 CFLAGS="$SAVE_CFLAGS"
13318 # Find out which ABI we are using.
13319 echo 'int i;' > conftest.$ac_ext
13320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13321 (eval $ac_compile) 2>&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; then
13325 case `/usr/bin/file conftest.o` in
13327 case $lt_cv_prog_gnu_ld in
13328 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13329 *) LD="${LD-ld} -64" ;;
13340 need_locks="$enable_libtool_lock"
13345 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13346 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13347 (test "X$CXX" != "Xg++"))) ; then
13349 ac_cpp='$CXXCPP $CPPFLAGS'
13350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13353 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13354 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13355 if test -z "$CXXCPP"; then
13356 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13357 echo $ECHO_N "(cached) $ECHO_C" >&6
13359 # Double quotes because CXXCPP needs to be expanded
13360 for CXXCPP in "$CXX -E" "/lib/cpp"
13362 ac_preproc_ok=false
13363 for ac_cxx_preproc_warn_flag in '' yes
13365 # Use a header file that comes with gcc, so configuring glibc
13366 # with a fresh cross-compiler works.
13367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13368 # <limits.h> exists even on freestanding compilers.
13369 # On the NeXT, cc -E runs the code through the compiler's parser,
13370 # not just through cpp. "Syntax error" is here to catch this case.
13371 cat >conftest.$ac_ext <<_ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h. */
13378 # include <limits.h>
13380 # include <assert.h>
13384 if { (ac_try="$ac_cpp conftest.$ac_ext"
13385 case "(($ac_try" in
13386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387 *) ac_try_echo=$ac_try;;
13389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13392 grep -v '^ *+' conftest.er1 >conftest.err
13394 cat conftest.err >&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); } >/dev/null; then
13397 if test -s conftest.err; then
13398 ac_cpp_err=$ac_cxx_preproc_warn_flag
13399 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13406 if test -z "$ac_cpp_err"; then
13409 echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13412 # Broken: fails on valid input.
13416 rm -f conftest.err conftest.$ac_ext
13418 # OK, works on sane cases. Now check whether nonexistent headers
13419 # can be detected and how.
13420 cat >conftest.$ac_ext <<_ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h. */
13426 #include <ac_nonexistent.h>
13428 if { (ac_try="$ac_cpp conftest.$ac_ext"
13429 case "(($ac_try" in
13430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431 *) ac_try_echo=$ac_try;;
13433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13436 grep -v '^ *+' conftest.er1 >conftest.err
13438 cat conftest.err >&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } >/dev/null; then
13441 if test -s conftest.err; then
13442 ac_cpp_err=$ac_cxx_preproc_warn_flag
13443 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13450 if test -z "$ac_cpp_err"; then
13451 # Broken: success on invalid input.
13454 echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.$ac_ext >&5
13457 # Passes both tests.
13462 rm -f conftest.err conftest.$ac_ext
13465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13466 rm -f conftest.err conftest.$ac_ext
13467 if $ac_preproc_ok; then
13472 ac_cv_prog_CXXCPP=$CXXCPP
13475 CXXCPP=$ac_cv_prog_CXXCPP
13477 ac_cv_prog_CXXCPP=$CXXCPP
13479 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13480 echo "${ECHO_T}$CXXCPP" >&6; }
13481 ac_preproc_ok=false
13482 for ac_cxx_preproc_warn_flag in '' yes
13484 # Use a header file that comes with gcc, so configuring glibc
13485 # with a fresh cross-compiler works.
13486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13487 # <limits.h> exists even on freestanding compilers.
13488 # On the NeXT, cc -E runs the code through the compiler's parser,
13489 # not just through cpp. "Syntax error" is here to catch this case.
13490 cat >conftest.$ac_ext <<_ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h. */
13497 # include <limits.h>
13499 # include <assert.h>
13503 if { (ac_try="$ac_cpp conftest.$ac_ext"
13504 case "(($ac_try" in
13505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506 *) ac_try_echo=$ac_try;;
13508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13511 grep -v '^ *+' conftest.er1 >conftest.err
13513 cat conftest.err >&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); } >/dev/null; then
13516 if test -s conftest.err; then
13517 ac_cpp_err=$ac_cxx_preproc_warn_flag
13518 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13525 if test -z "$ac_cpp_err"; then
13528 echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13531 # Broken: fails on valid input.
13535 rm -f conftest.err conftest.$ac_ext
13537 # OK, works on sane cases. Now check whether nonexistent headers
13538 # can be detected and how.
13539 cat >conftest.$ac_ext <<_ACEOF
13542 cat confdefs.h >>conftest.$ac_ext
13543 cat >>conftest.$ac_ext <<_ACEOF
13544 /* end confdefs.h. */
13545 #include <ac_nonexistent.h>
13547 if { (ac_try="$ac_cpp conftest.$ac_ext"
13548 case "(($ac_try" in
13549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13550 *) ac_try_echo=$ac_try;;
13552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13555 grep -v '^ *+' conftest.er1 >conftest.err
13557 cat conftest.err >&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } >/dev/null; then
13560 if test -s conftest.err; then
13561 ac_cpp_err=$ac_cxx_preproc_warn_flag
13562 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13569 if test -z "$ac_cpp_err"; then
13570 # Broken: success on invalid input.
13573 echo "$as_me: failed program was:" >&5
13574 sed 's/^/| /' conftest.$ac_ext >&5
13576 # Passes both tests.
13581 rm -f conftest.err conftest.$ac_ext
13584 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13585 rm -f conftest.err conftest.$ac_ext
13586 if $ac_preproc_ok; then
13589 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13590 See \`config.log' for more details." >&5
13591 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13592 See \`config.log' for more details." >&2;}
13593 { (exit 1); exit 1; }; }
13597 ac_cpp='$CXXCPP $CPPFLAGS'
13598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13606 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13607 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13608 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13609 if test -n "$ac_tool_prefix"; then
13610 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
13612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13613 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13616 if test "${ac_cv_prog_F77+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13619 if test -n "$F77"; then
13620 ac_cv_prog_F77="$F77" # Let the user override the test.
13622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13623 for as_dir in $PATH
13626 test -z "$as_dir" && as_dir=.
13627 for ac_exec_ext in '' $ac_executable_extensions; do
13628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13629 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13639 F77=$ac_cv_prog_F77
13640 if test -n "$F77"; then
13641 { echo "$as_me:$LINENO: result: $F77" >&5
13642 echo "${ECHO_T}$F77" >&6; }
13644 { echo "$as_me:$LINENO: result: no" >&5
13645 echo "${ECHO_T}no" >&6; }
13649 test -n "$F77" && break
13652 if test -z "$F77"; then
13654 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
13656 # Extract the first word of "$ac_prog", so it can be a program name with args.
13657 set dummy $ac_prog; ac_word=$2
13658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13660 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13661 echo $ECHO_N "(cached) $ECHO_C" >&6
13663 if test -n "$ac_ct_F77"; then
13664 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13667 for as_dir in $PATH
13670 test -z "$as_dir" && as_dir=.
13671 for ac_exec_ext in '' $ac_executable_extensions; do
13672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13673 ac_cv_prog_ac_ct_F77="$ac_prog"
13674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13683 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13684 if test -n "$ac_ct_F77"; then
13685 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13686 echo "${ECHO_T}$ac_ct_F77" >&6; }
13688 { echo "$as_me:$LINENO: result: no" >&5
13689 echo "${ECHO_T}no" >&6; }
13693 test -n "$ac_ct_F77" && break
13696 if test "x$ac_ct_F77" = x; then
13699 case $cross_compiling:$ac_tool_warned in
13701 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13702 whose name does not start with the host triplet. If you think this
13703 configuration is useful to you, please write to autoconf@gnu.org." >&5
13704 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13705 whose name does not start with the host triplet. If you think this
13706 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13707 ac_tool_warned=yes ;;
13714 # Provide some information about the compiler.
13715 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13716 ac_compiler=`set X $ac_compile; echo $2`
13717 { (ac_try="$ac_compiler --version >&5"
13718 case "(($ac_try" in
13719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13720 *) ac_try_echo=$ac_try;;
13722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13723 (eval "$ac_compiler --version >&5") 2>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }
13727 { (ac_try="$ac_compiler -v >&5"
13728 case "(($ac_try" in
13729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13730 *) ac_try_echo=$ac_try;;
13732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13733 (eval "$ac_compiler -v >&5") 2>&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }
13737 { (ac_try="$ac_compiler -V >&5"
13738 case "(($ac_try" in
13739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740 *) ac_try_echo=$ac_try;;
13742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743 (eval "$ac_compiler -V >&5") 2>&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }
13749 # If we don't use `.F' as extension, the preprocessor is not run on the
13750 # input file. (Note that this only needs to work for GNU compilers.)
13751 ac_save_ext=$ac_ext
13753 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13754 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13755 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13756 echo $ECHO_N "(cached) $ECHO_C" >&6
13758 cat >conftest.$ac_ext <<_ACEOF
13766 rm -f conftest.$ac_objext
13767 if { (ac_try="$ac_compile"
13768 case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773 (eval "$ac_compile") 2>conftest.er1
13775 grep -v '^ *+' conftest.er1 >conftest.err
13777 cat conftest.err >&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); } &&
13780 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13781 { (case "(($ac_try" in
13782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13783 *) ac_try_echo=$ac_try;;
13785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13786 (eval "$ac_try") 2>&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; } &&
13790 { ac_try='test -s conftest.$ac_objext'
13791 { (case "(($ac_try" in
13792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793 *) ac_try_echo=$ac_try;;
13795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13796 (eval "$ac_try") 2>&5
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); }; }; then
13800 ac_compiler_gnu=yes
13802 echo "$as_me: failed program was:" >&5
13803 sed 's/^/| /' conftest.$ac_ext >&5
13808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13809 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13812 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13813 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13814 ac_ext=$ac_save_ext
13815 ac_test_FFLAGS=${FFLAGS+set}
13816 ac_save_FFLAGS=$FFLAGS
13818 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13819 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13820 if test "${ac_cv_prog_f77_g+set}" = set; then
13821 echo $ECHO_N "(cached) $ECHO_C" >&6
13824 cat >conftest.$ac_ext <<_ACEOF
13829 rm -f conftest.$ac_objext
13830 if { (ac_try="$ac_compile"
13831 case "(($ac_try" in
13832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13833 *) ac_try_echo=$ac_try;;
13835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13836 (eval "$ac_compile") 2>conftest.er1
13838 grep -v '^ *+' conftest.er1 >conftest.err
13840 cat conftest.err >&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); } &&
13843 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13844 { (case "(($ac_try" in
13845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13846 *) ac_try_echo=$ac_try;;
13848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13849 (eval "$ac_try") 2>&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; } &&
13853 { ac_try='test -s conftest.$ac_objext'
13854 { (case "(($ac_try" in
13855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13856 *) ac_try_echo=$ac_try;;
13858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13859 (eval "$ac_try") 2>&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; }; then
13863 ac_cv_prog_f77_g=yes
13865 echo "$as_me: failed program was:" >&5
13866 sed 's/^/| /' conftest.$ac_ext >&5
13868 ac_cv_prog_f77_g=no
13871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13874 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13875 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13876 if test "$ac_test_FFLAGS" = set; then
13877 FFLAGS=$ac_save_FFLAGS
13878 elif test $ac_cv_prog_f77_g = yes; then
13879 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13885 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13892 G77=`test $ac_compiler_gnu = yes && echo yes`
13894 ac_cpp='$CPP $CPPFLAGS'
13895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13901 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13903 # find the maximum length of command line arguments
13904 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13905 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13906 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13907 echo $ECHO_N "(cached) $ECHO_C" >&6
13914 # On DJGPP, this test can blow up pretty badly due to problems in libc
13915 # (any single argument exceeding 2000 bytes causes a buffer overrun
13916 # during glob expansion). Even if it were fixed, the result of this
13917 # check would be larger than it should be.
13918 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13922 # Under GNU Hurd, this test is not required because there is
13923 # no limit to the length of command line arguments.
13924 # Libtool will interpret -1 as no limit whatsoever
13925 lt_cv_sys_max_cmd_len=-1;
13929 # On Win9x/ME, this test blows up -- it succeeds, but takes
13930 # about 5 minutes as the teststring grows exponentially.
13931 # Worse, since 9x/ME are not pre-emptively multitasking,
13932 # you end up with a "frozen" computer, even though with patience
13933 # the test eventually succeeds (with a max line length of 256k).
13934 # Instead, let's just punt: use the minimum linelength reported by
13935 # all of the supported platforms: 8192 (on NT/2K/XP).
13936 lt_cv_sys_max_cmd_len=8192;
13940 # On AmigaOS with pdksh, this test takes hours, literally.
13941 # So we just punt and use a minimum line length of 8192.
13942 lt_cv_sys_max_cmd_len=8192;
13945 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13946 # This has been around since 386BSD, at least. Likely further.
13947 if test -x /sbin/sysctl; then
13948 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13949 elif test -x /usr/sbin/sysctl; then
13950 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13952 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13954 # And add a safety zone
13955 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13956 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13960 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13961 lt_cv_sys_max_cmd_len=196608
13965 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13966 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13967 # nice to cause kernel panics so lets avoid the loop below.
13968 # First set a reasonable default.
13969 lt_cv_sys_max_cmd_len=16384
13971 if test -x /sbin/sysconfig; then
13972 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13973 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13978 lt_cv_sys_max_cmd_len=102400
13980 sysv5* | sco5v6* | sysv4.2uw2*)
13981 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13982 if test -n "$kargmax"; then
13983 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13985 lt_cv_sys_max_cmd_len=32768
13989 # If test is not a shell built-in, we'll probably end up computing a
13990 # maximum length that is only half of the actual maximum length, but
13992 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13993 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13994 = "XX$teststring") >/dev/null 2>&1 &&
13995 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13996 lt_cv_sys_max_cmd_len=$new_result &&
13997 test $i != 17 # 1/2 MB should be enough
14000 teststring=$teststring$teststring
14003 # Add a significant safety factor because C++ compilers can tack on massive
14004 # amounts of additional arguments before passing them to the linker.
14005 # It appears as though 1/2 is a usable value.
14006 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14012 if test -n $lt_cv_sys_max_cmd_len ; then
14013 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14014 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
14016 { echo "$as_me:$LINENO: result: none" >&5
14017 echo "${ECHO_T}none" >&6; }
14023 # Check for command to grab the raw symbol name followed by C symbol from nm.
14024 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14025 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14026 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14027 echo $ECHO_N "(cached) $ECHO_C" >&6
14030 # These are sane defaults that work on at least a few old systems.
14031 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14033 # Character class describing NM global symbol codes.
14034 symcode='[BCDEGRST]'
14036 # Regexp to match symbols that can be accessed directly from C.
14037 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14039 # Transform an extracted symbol line into a proper C declaration
14040 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14042 # Transform an extracted symbol line into symbol name and symbol address
14043 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'"
14045 # Define system-specific variables.
14050 cygwin* | mingw* | pw32*)
14051 symcode='[ABCDGISTW]'
14053 hpux*) # Its linker distinguishes data from code symbols
14054 if test "$host_cpu" = ia64; then
14055 symcode='[ABCDEGRST]'
14057 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14058 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'"
14061 if test "$host_cpu" = ia64; then
14062 symcode='[ABCDGIRSTW]'
14063 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14064 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'"
14067 irix* | nonstopux*)
14068 symcode='[BCDEGRST]'
14071 symcode='[BCDEGQRST]'
14082 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14090 # Handle CRLF in mingw tool chain
14094 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14098 # If we're using GNU nm, then use its standard symbol codes.
14099 case `$NM -V 2>&1` in
14100 *GNU* | *'with BFD'*)
14101 symcode='[ABCDGIRSTW]' ;;
14104 # Try without a prefix undercore, then with it.
14105 for ac_symprfx in "" "_"; do
14107 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14108 symxfrm="\\1 $ac_symprfx\\2 \\2"
14110 # Write the raw and C identifiers.
14111 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14113 # Check to see that the pipe works correctly.
14117 cat > conftest.$ac_ext <<EOF
14122 void nm_test_func(){}
14126 int main(){nm_test_var='a';nm_test_func();return(0);}
14129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14130 (eval $ac_compile) 2>&5
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; then
14134 # Now try to grab the symbols.
14136 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14137 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } && test -s "$nlist"; then
14141 # Try sorting and uniquifying the output.
14142 if sort "$nlist" | uniq > "$nlist"T; then
14143 mv -f "$nlist"T "$nlist"
14148 # Make sure that we snagged all the symbols we need.
14149 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14150 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14151 cat <<EOF > conftest.$ac_ext
14157 # Now generate the symbol file.
14158 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14160 cat <<EOF >> conftest.$ac_ext
14161 #if defined (__STDC__) && __STDC__
14162 # define lt_ptr_t void *
14164 # define lt_ptr_t char *
14168 /* The mapping between symbol names and symbols. */
14173 lt_preloaded_symbols[] =
14176 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14177 cat <<\EOF >> conftest.$ac_ext
14185 # Now try linking the two files.
14186 mv conftest.$ac_objext conftstm.$ac_objext
14187 lt_save_LIBS="$LIBS"
14188 lt_save_CFLAGS="$CFLAGS"
14189 LIBS="conftstm.$ac_objext"
14190 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14192 (eval $ac_link) 2>&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14198 LIBS="$lt_save_LIBS"
14199 CFLAGS="$lt_save_CFLAGS"
14201 echo "cannot find nm_test_func in $nlist" >&5
14204 echo "cannot find nm_test_var in $nlist" >&5
14207 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14210 echo "$progname: failed program was:" >&5
14211 cat conftest.$ac_ext >&5
14213 rm -f conftest* conftst*
14215 # Do not use the global_symbol_pipe unless it works.
14216 if test "$pipe_works" = yes; then
14219 lt_cv_sys_global_symbol_pipe=
14225 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14226 lt_cv_sys_global_symbol_to_cdecl=
14228 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14229 { echo "$as_me:$LINENO: result: failed" >&5
14230 echo "${ECHO_T}failed" >&6; }
14232 { echo "$as_me:$LINENO: result: ok" >&5
14233 echo "${ECHO_T}ok" >&6; }
14236 { echo "$as_me:$LINENO: checking for objdir" >&5
14237 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14238 if test "${lt_cv_objdir+set}" = set; then
14239 echo $ECHO_N "(cached) $ECHO_C" >&6
14241 rm -f .libs 2>/dev/null
14242 mkdir .libs 2>/dev/null
14243 if test -d .libs; then
14246 # MS-DOS does not allow filenames that begin with a dot.
14249 rmdir .libs 2>/dev/null
14251 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14252 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14253 objdir=$lt_cv_objdir
14261 # AIX sometimes has problems with the GCC collect2 program. For some
14262 # reason, if we set the COLLECT_NAMES environment variable, the problems
14263 # vanish in a puff of smoke.
14264 if test "X${COLLECT_NAMES+set}" != Xset; then
14266 export COLLECT_NAMES
14271 # Sed substitution that helps us do robust quoting. It backslashifies
14272 # metacharacters that are still active within double-quoted strings.
14273 Xsed='sed -e 1s/^X//'
14274 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14276 # Same as above, but do not quote variable references.
14277 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14279 # Sed substitution to delay expansion of an escaped shell variable in a
14280 # double_quote_subst'ed string.
14281 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14283 # Sed substitution to avoid accidental globbing in evaled expressions
14284 no_glob_subst='s/\*/\\\*/g'
14289 # Global variables:
14290 default_ofile=mklib
14291 can_build_shared=yes
14293 # All known linkers require a `.a' archive for static linking (except MSVC,
14294 # which needs '.lib').
14296 ltmain="$ac_aux_dir/ltmain.sh"
14297 ofile="$default_ofile"
14298 with_gnu_ld="$lt_cv_prog_gnu_ld"
14300 if test -n "$ac_tool_prefix"; then
14301 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14302 set dummy ${ac_tool_prefix}ar; ac_word=$2
14303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14305 if test "${ac_cv_prog_AR+set}" = set; then
14306 echo $ECHO_N "(cached) $ECHO_C" >&6
14308 if test -n "$AR"; then
14309 ac_cv_prog_AR="$AR" # Let the user override the test.
14311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14312 for as_dir in $PATH
14315 test -z "$as_dir" && as_dir=.
14316 for ac_exec_ext in '' $ac_executable_extensions; do
14317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14318 ac_cv_prog_AR="${ac_tool_prefix}ar"
14319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14329 if test -n "$AR"; then
14330 { echo "$as_me:$LINENO: result: $AR" >&5
14331 echo "${ECHO_T}$AR" >&6; }
14333 { echo "$as_me:$LINENO: result: no" >&5
14334 echo "${ECHO_T}no" >&6; }
14339 if test -z "$ac_cv_prog_AR"; then
14341 # Extract the first word of "ar", so it can be a program name with args.
14342 set dummy ar; ac_word=$2
14343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14345 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14346 echo $ECHO_N "(cached) $ECHO_C" >&6
14348 if test -n "$ac_ct_AR"; then
14349 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14352 for as_dir in $PATH
14355 test -z "$as_dir" && as_dir=.
14356 for ac_exec_ext in '' $ac_executable_extensions; do
14357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14358 ac_cv_prog_ac_ct_AR="ar"
14359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14368 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14369 if test -n "$ac_ct_AR"; then
14370 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14371 echo "${ECHO_T}$ac_ct_AR" >&6; }
14373 { echo "$as_me:$LINENO: result: no" >&5
14374 echo "${ECHO_T}no" >&6; }
14377 if test "x$ac_ct_AR" = x; then
14380 case $cross_compiling:$ac_tool_warned in
14382 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14383 whose name does not start with the host triplet. If you think this
14384 configuration is useful to you, please write to autoconf@gnu.org." >&5
14385 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14386 whose name does not start with the host triplet. If you think this
14387 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14388 ac_tool_warned=yes ;;
14393 AR="$ac_cv_prog_AR"
14396 if test -n "$ac_tool_prefix"; then
14397 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14398 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14401 if test "${ac_cv_prog_RANLIB+set}" = set; then
14402 echo $ECHO_N "(cached) $ECHO_C" >&6
14404 if test -n "$RANLIB"; then
14405 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14408 for as_dir in $PATH
14411 test -z "$as_dir" && as_dir=.
14412 for ac_exec_ext in '' $ac_executable_extensions; do
14413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14414 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14424 RANLIB=$ac_cv_prog_RANLIB
14425 if test -n "$RANLIB"; then
14426 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14427 echo "${ECHO_T}$RANLIB" >&6; }
14429 { echo "$as_me:$LINENO: result: no" >&5
14430 echo "${ECHO_T}no" >&6; }
14435 if test -z "$ac_cv_prog_RANLIB"; then
14436 ac_ct_RANLIB=$RANLIB
14437 # Extract the first word of "ranlib", so it can be a program name with args.
14438 set dummy ranlib; ac_word=$2
14439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14441 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14442 echo $ECHO_N "(cached) $ECHO_C" >&6
14444 if test -n "$ac_ct_RANLIB"; then
14445 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14448 for as_dir in $PATH
14451 test -z "$as_dir" && as_dir=.
14452 for ac_exec_ext in '' $ac_executable_extensions; do
14453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14454 ac_cv_prog_ac_ct_RANLIB="ranlib"
14455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14464 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14465 if test -n "$ac_ct_RANLIB"; then
14466 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14467 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14469 { echo "$as_me:$LINENO: result: no" >&5
14470 echo "${ECHO_T}no" >&6; }
14473 if test "x$ac_ct_RANLIB" = x; then
14476 case $cross_compiling:$ac_tool_warned in
14478 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14479 whose name does not start with the host triplet. If you think this
14480 configuration is useful to you, please write to autoconf@gnu.org." >&5
14481 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14482 whose name does not start with the host triplet. If you think this
14483 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14484 ac_tool_warned=yes ;;
14486 RANLIB=$ac_ct_RANLIB
14489 RANLIB="$ac_cv_prog_RANLIB"
14492 if test -n "$ac_tool_prefix"; then
14493 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14494 set dummy ${ac_tool_prefix}strip; ac_word=$2
14495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14497 if test "${ac_cv_prog_STRIP+set}" = set; then
14498 echo $ECHO_N "(cached) $ECHO_C" >&6
14500 if test -n "$STRIP"; then
14501 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14504 for as_dir in $PATH
14507 test -z "$as_dir" && as_dir=.
14508 for ac_exec_ext in '' $ac_executable_extensions; do
14509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14510 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14520 STRIP=$ac_cv_prog_STRIP
14521 if test -n "$STRIP"; then
14522 { echo "$as_me:$LINENO: result: $STRIP" >&5
14523 echo "${ECHO_T}$STRIP" >&6; }
14525 { echo "$as_me:$LINENO: result: no" >&5
14526 echo "${ECHO_T}no" >&6; }
14531 if test -z "$ac_cv_prog_STRIP"; then
14533 # Extract the first word of "strip", so it can be a program name with args.
14534 set dummy strip; ac_word=$2
14535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14537 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14540 if test -n "$ac_ct_STRIP"; then
14541 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14544 for as_dir in $PATH
14547 test -z "$as_dir" && as_dir=.
14548 for ac_exec_ext in '' $ac_executable_extensions; do
14549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14550 ac_cv_prog_ac_ct_STRIP="strip"
14551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14560 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14561 if test -n "$ac_ct_STRIP"; then
14562 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14563 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14565 { echo "$as_me:$LINENO: result: no" >&5
14566 echo "${ECHO_T}no" >&6; }
14569 if test "x$ac_ct_STRIP" = x; then
14572 case $cross_compiling:$ac_tool_warned in
14574 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14575 whose name does not start with the host triplet. If you think this
14576 configuration is useful to you, please write to autoconf@gnu.org." >&5
14577 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14578 whose name does not start with the host triplet. If you think this
14579 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14580 ac_tool_warned=yes ;;
14585 STRIP="$ac_cv_prog_STRIP"
14590 old_CFLAGS="$CFLAGS"
14592 # Set sane defaults for various variables
14593 test -z "$AR" && AR=ar
14594 test -z "$AR_FLAGS" && AR_FLAGS=cru
14595 test -z "$AS" && AS=as
14596 test -z "$CC" && CC=cc
14597 test -z "$LTCC" && LTCC=$CC
14598 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14599 test -z "$DLLTOOL" && DLLTOOL=dlltool
14600 test -z "$LD" && LD=ld
14601 test -z "$LN_S" && LN_S="ln -s"
14602 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14603 test -z "$NM" && NM=nm
14604 test -z "$SED" && SED=sed
14605 test -z "$OBJDUMP" && OBJDUMP=objdump
14606 test -z "$RANLIB" && RANLIB=:
14607 test -z "$STRIP" && STRIP=:
14608 test -z "$ac_objext" && ac_objext=o
14610 # Determine commands to create old-style static archives.
14611 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14612 old_postinstall_cmds='chmod 644 $oldlib'
14613 old_postuninstall_cmds=
14615 if test -n "$RANLIB"; then
14618 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14621 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14624 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14627 for cc_temp in $compiler""; do
14629 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14630 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14635 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14638 # Only perform the check for file, if the check method requires it
14639 case $deplibs_check_method in
14641 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14642 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14643 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14644 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14645 echo $ECHO_N "(cached) $ECHO_C" >&6
14649 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14652 lt_save_MAGIC_CMD="$MAGIC_CMD"
14653 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14654 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14655 for ac_dir in $ac_dummy; do
14657 test -z "$ac_dir" && ac_dir=.
14658 if test -f $ac_dir/${ac_tool_prefix}file; then
14659 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14660 if test -n "$file_magic_test_file"; then
14661 case $deplibs_check_method in
14663 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14664 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14665 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14666 $EGREP "$file_magic_regex" > /dev/null; then
14671 *** Warning: the command libtool uses to detect shared libraries,
14672 *** $file_magic_cmd, produces output that libtool cannot recognize.
14673 *** The result is that libtool may fail to recognize shared libraries
14674 *** as such. This will affect the creation of libtool libraries that
14675 *** depend on shared libraries, but programs linked with such libtool
14676 *** libraries will work regardless of this problem. Nevertheless, you
14677 *** may want to report the problem to your system manager and/or to
14678 *** bug-libtool@gnu.org
14688 MAGIC_CMD="$lt_save_MAGIC_CMD"
14693 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14694 if test -n "$MAGIC_CMD"; then
14695 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14696 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14698 { echo "$as_me:$LINENO: result: no" >&5
14699 echo "${ECHO_T}no" >&6; }
14702 if test -z "$lt_cv_path_MAGIC_CMD"; then
14703 if test -n "$ac_tool_prefix"; then
14704 { echo "$as_me:$LINENO: checking for file" >&5
14705 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14706 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14707 echo $ECHO_N "(cached) $ECHO_C" >&6
14711 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14714 lt_save_MAGIC_CMD="$MAGIC_CMD"
14715 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14716 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14717 for ac_dir in $ac_dummy; do
14719 test -z "$ac_dir" && ac_dir=.
14720 if test -f $ac_dir/file; then
14721 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14722 if test -n "$file_magic_test_file"; then
14723 case $deplibs_check_method in
14725 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14727 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14728 $EGREP "$file_magic_regex" > /dev/null; then
14733 *** Warning: the command libtool uses to detect shared libraries,
14734 *** $file_magic_cmd, produces output that libtool cannot recognize.
14735 *** The result is that libtool may fail to recognize shared libraries
14736 *** as such. This will affect the creation of libtool libraries that
14737 *** depend on shared libraries, but programs linked with such libtool
14738 *** libraries will work regardless of this problem. Nevertheless, you
14739 *** may want to report the problem to your system manager and/or to
14740 *** bug-libtool@gnu.org
14750 MAGIC_CMD="$lt_save_MAGIC_CMD"
14755 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14756 if test -n "$MAGIC_CMD"; then
14757 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14758 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14760 { echo "$as_me:$LINENO: result: no" >&5
14761 echo "${ECHO_T}no" >&6; }
14774 enable_win32_dll=no
14776 # Check whether --enable-libtool-lock was given.
14777 if test "${enable_libtool_lock+set}" = set; then
14778 enableval=$enable_libtool_lock;
14781 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14784 # Check whether --with-pic was given.
14785 if test "${with_pic+set}" = set; then
14786 withval=$with_pic; pic_mode="$withval"
14791 test -z "$pic_mode" && pic_mode=default
14793 # Use C for the default configuration in the libtool script
14797 ac_cpp='$CPP $CPPFLAGS'
14798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14803 # Source file extension for C test sources.
14806 # Object file extension for compiled C test sources.
14810 # Code to be used in simple compile tests
14811 lt_simple_compile_test_code="int some_variable = 0;\n"
14813 # Code to be used in simple link tests
14814 lt_simple_link_test_code='int main(){return(0);}\n'
14817 # If no C compiler was specified, use CC.
14820 # If no C compiler flags were specified, use CFLAGS.
14821 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14823 # Allow CC to be a program name with arguments.
14827 # save warnings/boilerplate of simple test code
14828 ac_outfile=conftest.$ac_objext
14829 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14830 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14831 _lt_compiler_boilerplate=`cat conftest.err`
14834 ac_outfile=conftest.$ac_objext
14835 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14836 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14837 _lt_linker_boilerplate=`cat conftest.err`
14842 lt_prog_compiler_no_builtin_flag=
14844 if test "$GCC" = yes; then
14845 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14848 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14849 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14850 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14853 lt_cv_prog_compiler_rtti_exceptions=no
14854 ac_outfile=conftest.$ac_objext
14855 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14856 lt_compiler_flag="-fno-rtti -fno-exceptions"
14857 # Insert the option either (1) after the last *FLAGS variable, or
14858 # (2) before a word containing "conftest.", or (3) at the end.
14859 # Note that $ac_compile itself does not contain backslashes and begins
14860 # with a dollar sign (not a hyphen), so the echo should work correctly.
14861 # The option is referenced via a variable to avoid confusing sed.
14862 lt_compile=`echo "$ac_compile" | $SED \
14863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14865 -e 's:$: $lt_compiler_flag:'`
14866 (eval echo "\"\$as_me:14866: $lt_compile\"" >&5)
14867 (eval "$lt_compile" 2>conftest.err)
14869 cat conftest.err >&5
14870 echo "$as_me:14870: \$? = $ac_status" >&5
14871 if (exit $ac_status) && test -s "$ac_outfile"; then
14872 # The compiler can only warn and ignore the option if not recognized
14873 # So say no if there are warnings other than the usual output.
14874 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14876 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14877 lt_cv_prog_compiler_rtti_exceptions=yes
14883 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14884 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14886 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14887 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14894 lt_prog_compiler_wl=
14895 lt_prog_compiler_pic=
14896 lt_prog_compiler_static=
14898 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14899 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14901 if test "$GCC" = yes; then
14902 lt_prog_compiler_wl='-Wl,'
14903 lt_prog_compiler_static='-static'
14907 # All AIX code is PIC.
14908 if test "$host_cpu" = ia64; then
14909 # AIX 5 now supports IA64 processor
14910 lt_prog_compiler_static='-Bstatic'
14915 # FIXME: we need at least 68020 code to build shared libraries, but
14916 # adding the `-m68020' flag to GCC prevents building anything better,
14918 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14921 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14922 # PIC is the default for these OSes.
14925 mingw* | pw32* | os2*)
14926 # This hack is so that the source file can tell whether it is being
14927 # built for inclusion in a dll (and should export symbols for example).
14928 lt_prog_compiler_pic='-DDLL_EXPORT'
14931 darwin* | rhapsody*)
14932 # PIC is the default on this platform
14933 # Common symbols not allowed in MH_DYLIB files
14934 lt_prog_compiler_pic='-fno-common'
14938 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14939 # Instead, we relocate shared libraries at runtime.
14943 # Just because we use GCC doesn't mean we suddenly get shared libraries
14944 # on systems that don't support them.
14945 lt_prog_compiler_can_build_shared=no
14950 if test -d /usr/nec; then
14951 lt_prog_compiler_pic=-Kconform_pic
14956 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14957 # not for PA HP-UX.
14963 lt_prog_compiler_pic='-fPIC'
14969 lt_prog_compiler_pic='-fPIC'
14973 # PORTME Check for flag to pass linker flags through the system compiler.
14976 lt_prog_compiler_wl='-Wl,'
14977 if test "$host_cpu" = ia64; then
14978 # AIX 5 now supports IA64 processor
14979 lt_prog_compiler_static='-Bstatic'
14981 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14985 # PIC is the default on this platform
14986 # Common symbols not allowed in MH_DYLIB files
14987 case $cc_basename in
14989 lt_prog_compiler_pic='-qnocommon'
14990 lt_prog_compiler_wl='-Wl,'
14995 mingw* | pw32* | os2*)
14996 # This hack is so that the source file can tell whether it is being
14997 # built for inclusion in a dll (and should export symbols for example).
14998 lt_prog_compiler_pic='-DDLL_EXPORT'
15001 hpux9* | hpux10* | hpux11*)
15002 lt_prog_compiler_wl='-Wl,'
15003 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15004 # not for PA HP-UX.
15010 lt_prog_compiler_pic='+Z'
15013 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15014 lt_prog_compiler_static='${wl}-a ${wl}archive'
15017 irix5* | irix6* | nonstopux*)
15018 lt_prog_compiler_wl='-Wl,'
15019 # PIC (with -KPIC) is the default.
15020 lt_prog_compiler_static='-non_shared'
15024 lt_prog_compiler_pic='-KPIC'
15025 lt_prog_compiler_static='-Bstatic'
15029 case $cc_basename in
15031 lt_prog_compiler_wl='-Wl,'
15032 lt_prog_compiler_pic='-KPIC'
15033 lt_prog_compiler_static='-static'
15035 pgcc* | pgf77* | pgf90* | pgf95*)
15036 # Portland Group compilers (*not* the Pentium gcc compiler,
15037 # which looks to be a dead project)
15038 lt_prog_compiler_wl='-Wl,'
15039 lt_prog_compiler_pic='-fpic'
15040 lt_prog_compiler_static='-Bstatic'
15043 lt_prog_compiler_wl='-Wl,'
15044 # All Alpha code is PIC.
15045 lt_prog_compiler_static='-non_shared'
15050 osf3* | osf4* | osf5*)
15051 lt_prog_compiler_wl='-Wl,'
15052 # All OSF/1 code is PIC.
15053 lt_prog_compiler_static='-non_shared'
15057 lt_prog_compiler_pic='-KPIC'
15058 lt_prog_compiler_static='-Bstatic'
15059 case $cc_basename in
15060 f77* | f90* | f95*)
15061 lt_prog_compiler_wl='-Qoption ld ';;
15063 lt_prog_compiler_wl='-Wl,';;
15068 lt_prog_compiler_wl='-Qoption ld '
15069 lt_prog_compiler_pic='-PIC'
15070 lt_prog_compiler_static='-Bstatic'
15073 sysv4 | sysv4.2uw2* | sysv4.3*)
15074 lt_prog_compiler_wl='-Wl,'
15075 lt_prog_compiler_pic='-KPIC'
15076 lt_prog_compiler_static='-Bstatic'
15080 if test -d /usr/nec ;then
15081 lt_prog_compiler_pic='-Kconform_pic'
15082 lt_prog_compiler_static='-Bstatic'
15086 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15087 lt_prog_compiler_wl='-Wl,'
15088 lt_prog_compiler_pic='-KPIC'
15089 lt_prog_compiler_static='-Bstatic'
15093 lt_prog_compiler_wl='-Wl,'
15094 lt_prog_compiler_can_build_shared=no
15098 lt_prog_compiler_pic='-pic'
15099 lt_prog_compiler_static='-Bstatic'
15103 lt_prog_compiler_can_build_shared=no
15108 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15109 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15112 # Check to make sure the PIC flag actually works.
15114 if test -n "$lt_prog_compiler_pic"; then
15116 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15117 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15118 if test "${lt_prog_compiler_pic_works+set}" = set; then
15119 echo $ECHO_N "(cached) $ECHO_C" >&6
15121 lt_prog_compiler_pic_works=no
15122 ac_outfile=conftest.$ac_objext
15123 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15124 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15125 # Insert the option either (1) after the last *FLAGS variable, or
15126 # (2) before a word containing "conftest.", or (3) at the end.
15127 # Note that $ac_compile itself does not contain backslashes and begins
15128 # with a dollar sign (not a hyphen), so the echo should work correctly.
15129 # The option is referenced via a variable to avoid confusing sed.
15130 lt_compile=`echo "$ac_compile" | $SED \
15131 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15132 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15133 -e 's:$: $lt_compiler_flag:'`
15134 (eval echo "\"\$as_me:15134: $lt_compile\"" >&5)
15135 (eval "$lt_compile" 2>conftest.err)
15137 cat conftest.err >&5
15138 echo "$as_me:15138: \$? = $ac_status" >&5
15139 if (exit $ac_status) && test -s "$ac_outfile"; then
15140 # The compiler can only warn and ignore the option if not recognized
15141 # So say no if there are warnings other than the usual output.
15142 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15143 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15144 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15145 lt_prog_compiler_pic_works=yes
15151 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15152 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15154 if test x"$lt_prog_compiler_pic_works" = xyes; then
15155 case $lt_prog_compiler_pic in
15157 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15160 lt_prog_compiler_pic=
15161 lt_prog_compiler_can_build_shared=no
15166 # For platforms which do not support PIC, -DPIC is meaningless:
15168 lt_prog_compiler_pic=
15171 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15176 # Check to make sure the static flag actually works.
15178 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15179 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15180 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15181 if test "${lt_prog_compiler_static_works+set}" = set; then
15182 echo $ECHO_N "(cached) $ECHO_C" >&6
15184 lt_prog_compiler_static_works=no
15185 save_LDFLAGS="$LDFLAGS"
15186 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15187 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15188 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15189 # The linker can only warn and ignore the option if not recognized
15190 # So say no if there are warnings
15191 if test -s conftest.err; then
15192 # Append any errors to the config.log.
15193 cat conftest.err 1>&5
15194 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15195 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15196 if diff conftest.exp conftest.er2 >/dev/null; then
15197 lt_prog_compiler_static_works=yes
15200 lt_prog_compiler_static_works=yes
15204 LDFLAGS="$save_LDFLAGS"
15207 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15208 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15210 if test x"$lt_prog_compiler_static_works" = xyes; then
15213 lt_prog_compiler_static=
15217 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15218 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15219 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15220 echo $ECHO_N "(cached) $ECHO_C" >&6
15222 lt_cv_prog_compiler_c_o=no
15223 $rm -r conftest 2>/dev/null
15227 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15229 lt_compiler_flag="-o out/conftest2.$ac_objext"
15230 # Insert the option either (1) after the last *FLAGS variable, or
15231 # (2) before a word containing "conftest.", or (3) at the end.
15232 # Note that $ac_compile itself does not contain backslashes and begins
15233 # with a dollar sign (not a hyphen), so the echo should work correctly.
15234 lt_compile=`echo "$ac_compile" | $SED \
15235 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15237 -e 's:$: $lt_compiler_flag:'`
15238 (eval echo "\"\$as_me:15238: $lt_compile\"" >&5)
15239 (eval "$lt_compile" 2>out/conftest.err)
15241 cat out/conftest.err >&5
15242 echo "$as_me:15242: \$? = $ac_status" >&5
15243 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15245 # The compiler can only warn and ignore the option if not recognized
15246 # So say no if there are warnings
15247 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15248 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15249 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15250 lt_cv_prog_compiler_c_o=yes
15255 # SGI C++ compiler will create directory out/ii_files/ for
15256 # template instantiation
15257 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15258 $rm out/* && rmdir out
15264 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15265 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15268 hard_links="nottested"
15269 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15270 # do not overwrite the value of need_locks provided by the user
15271 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15272 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15275 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15277 ln conftest.a conftest.b 2>&5 || hard_links=no
15278 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15279 { echo "$as_me:$LINENO: result: $hard_links" >&5
15280 echo "${ECHO_T}$hard_links" >&6; }
15281 if test "$hard_links" = no; then
15282 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15283 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15290 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15291 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15294 allow_undefined_flag=
15295 enable_shared_with_static_runtimes=no
15297 archive_expsym_cmds=
15298 old_archive_From_new_cmds=
15299 old_archive_from_expsyms_cmds=
15300 export_dynamic_flag_spec=
15301 whole_archive_flag_spec=
15302 thread_safe_flag_spec=
15303 hardcode_libdir_flag_spec=
15304 hardcode_libdir_flag_spec_ld=
15305 hardcode_libdir_separator=
15307 hardcode_minus_L=no
15308 hardcode_shlibpath_var=unsupported
15309 link_all_deplibs=unknown
15310 hardcode_automatic=no
15312 module_expsym_cmds=
15313 always_export_symbols=no
15314 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15315 # include_expsyms should be a list of space-separated symbols to be *always*
15316 # included in the symbol list
15318 # exclude_expsyms can be an extended regexp of symbols to exclude
15319 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15320 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15321 # as well as any symbol that contains `d'.
15322 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15323 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15324 # platforms (ab)use it in PIC code, but their linkers get confused if
15325 # the symbol is explicitly referenced. Since portable code cannot
15326 # rely on this symbol name, it's probably fine to never include it in
15327 # preloaded symbol tables.
15328 extract_expsyms_cmds=
15329 # Just being paranoid about ensuring that cc_basename is set.
15330 for cc_temp in $compiler""; do
15332 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15333 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15338 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15341 cygwin* | mingw* | pw32*)
15342 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15343 # When not using gcc, we currently assume that we are using
15344 # Microsoft Visual C++.
15345 if test "$GCC" != yes; then
15350 # we just hope/assume this is gcc and not c89 (= MSVC++)
15359 if test "$with_gnu_ld" = yes; then
15360 # If archive_cmds runs LD, not CC, wlarc should be empty
15363 # Set some defaults for GNU ld with shared library support. These
15364 # are reset later if shared libraries are not supported. Putting them
15365 # here allows them to be overridden if necessary.
15366 runpath_var=LD_RUN_PATH
15367 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15368 export_dynamic_flag_spec='${wl}--export-dynamic'
15369 # ancient GNU ld didn't support --whole-archive et. al.
15370 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15371 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15373 whole_archive_flag_spec=
15375 supports_anon_versioning=no
15376 case `$LD -v 2>/dev/null` in
15377 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15378 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15379 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15380 *\ 2.11.*) ;; # other 2.11 versions
15381 *) supports_anon_versioning=yes ;;
15384 # See if GNU ld supports shared libraries.
15386 aix3* | aix4* | aix5*)
15387 # On AIX/PPC, the GNU linker is very broken
15388 if test "$host_cpu" != ia64; then
15392 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15393 *** to be unable to reliably create shared libraries on AIX.
15394 *** Therefore, libtool is disabling shared libraries support. If you
15395 *** really care for shared libraries, you may want to modify your PATH
15396 *** so that a non-GNU linker is found, and then restart.
15403 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)'
15404 hardcode_libdir_flag_spec='-L$libdir'
15405 hardcode_minus_L=yes
15407 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15408 # that the semantics of dynamic libraries on AmigaOS, at least up
15409 # to version 4, is to share data among multiple programs linked
15410 # with the same dynamic library. Since this doesn't match the
15411 # behavior of shared libraries on other platforms, we can't use
15417 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15418 allow_undefined_flag=unsupported
15419 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15420 # support --undefined. This deserves some investigation. FIXME
15421 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15427 cygwin* | mingw* | pw32*)
15428 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15429 # as there is no search path for DLLs.
15430 hardcode_libdir_flag_spec='-L$libdir'
15431 allow_undefined_flag=unsupported
15432 always_export_symbols=no
15433 enable_shared_with_static_runtimes=yes
15434 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15436 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15437 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15438 # If the export-symbols file already is a .def file (1st line
15439 # is EXPORTS), use it as is; otherwise, prepend...
15440 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15441 cp $export_symbols $output_objdir/$soname.def;
15443 echo EXPORTS > $output_objdir/$soname.def;
15444 cat $export_symbols >> $output_objdir/$soname.def;
15446 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15454 hardcode_shlibpath_var=no
15455 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15456 export_dynamic_flag_spec='${wl}-E'
15457 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15458 # Instead, shared libraries are loaded at an image base (0x10000000 by
15459 # default) and relocated if they conflict, which is a slow very memory
15460 # consuming and fragmenting process. To avoid this, we pick a random,
15461 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15462 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15463 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15464 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'
15468 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15470 case $cc_basename,$host_cpu in
15471 pgcc*) # Portland Group C compiler
15472 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'
15473 tmp_addflag=' $pic_flag'
15475 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15476 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'
15477 tmp_addflag=' $pic_flag -Mnomain' ;;
15478 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15479 tmp_addflag=' -i_dynamic' ;;
15480 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15481 tmp_addflag=' -i_dynamic -nofor_main' ;;
15482 ifc* | ifort*) # Intel Fortran compiler
15483 tmp_addflag=' -nofor_main' ;;
15485 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15487 if test $supports_anon_versioning = yes; then
15488 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15489 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15490 $echo "local: *; };" >> $output_objdir/$libname.ver~
15491 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15499 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15500 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15504 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15509 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15513 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15514 *** create shared libraries on Solaris systems. Therefore, libtool
15515 *** is disabling shared libraries support. We urge you to upgrade GNU
15516 *** binutils to release 2.9.1 or newer. Another option is to modify
15517 *** your PATH or compiler configuration so that the native linker is
15518 *** used, and then restart.
15521 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15523 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15529 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15530 case `$LD -v 2>&1` in
15531 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15535 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15536 *** reliably create shared libraries on SCO systems. Therefore, libtool
15537 *** is disabling shared libraries support. We urge you to upgrade GNU
15538 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15539 *** your PATH or compiler configuration so that the native linker is
15540 *** used, and then restart.
15545 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15546 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15548 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15557 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15559 hardcode_direct=yes
15560 hardcode_shlibpath_var=no
15564 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15565 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15566 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15573 if test "$ld_shlibs" = no; then
15575 hardcode_libdir_flag_spec=
15576 export_dynamic_flag_spec=
15577 whole_archive_flag_spec=
15580 # PORTME fill in a description of your system's linker (not GNU ld)
15583 allow_undefined_flag=unsupported
15584 always_export_symbols=yes
15585 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'
15586 # Note: this linker hardcodes the directories in LIBPATH if there
15587 # are no directories specified by -L.
15588 hardcode_minus_L=yes
15589 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15590 # Neither direct hardcoding nor static linking is supported with a
15592 hardcode_direct=unsupported
15597 if test "$host_cpu" = ia64; then
15598 # On IA64, the linker does run time linking by default, so we don't
15599 # have to do anything special.
15600 aix_use_runtimelinking=no
15601 exp_sym_flag='-Bexport'
15604 # If we're using GNU nm, then we don't want the "-C" option.
15605 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15606 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15607 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'
15609 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'
15611 aix_use_runtimelinking=no
15613 # Test if we are trying to use run time linking or normal
15614 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15615 # need to do runtime linking.
15616 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15617 for ld_flag in $LDFLAGS; do
15618 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15619 aix_use_runtimelinking=yes
15626 exp_sym_flag='-bexport'
15627 no_entry_flag='-bnoentry'
15630 # When large executables or shared objects are built, AIX ld can
15631 # have problems creating the table of contents. If linking a library
15632 # or program results in "error TOC overflow" add -mminimal-toc to
15633 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15634 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15637 hardcode_direct=yes
15638 hardcode_libdir_separator=':'
15639 link_all_deplibs=yes
15641 if test "$GCC" = yes; then
15642 case $host_os in aix4.[012]|aix4.[012].*)
15643 # We only want to do this on AIX 4.2 and lower, the check
15644 # below for broken collect2 doesn't work under 4.3+
15645 collect2name=`${CC} -print-prog-name=collect2`
15646 if test -f "$collect2name" && \
15647 strings "$collect2name" | grep resolve_lib_name >/dev/null
15649 # We have reworked collect2
15650 hardcode_direct=yes
15652 # We have old collect2
15653 hardcode_direct=unsupported
15654 # It fails to find uninstalled libraries when the uninstalled
15655 # path is not listed in the libpath. Setting hardcode_minus_L
15656 # to unsupported forces relinking
15657 hardcode_minus_L=yes
15658 hardcode_libdir_flag_spec='-L$libdir'
15659 hardcode_libdir_separator=
15663 shared_flag='-shared'
15664 if test "$aix_use_runtimelinking" = yes; then
15665 shared_flag="$shared_flag "'${wl}-G'
15669 if test "$host_cpu" = ia64; then
15670 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15671 # chokes on -Wl,-G. The following line is correct:
15674 if test "$aix_use_runtimelinking" = yes; then
15675 shared_flag='${wl}-G'
15677 shared_flag='${wl}-bM:SRE'
15682 # It seems that -bexpall does not export symbols beginning with
15683 # underscore (_), so it is better to generate a list of symbols to export.
15684 always_export_symbols=yes
15685 if test "$aix_use_runtimelinking" = yes; then
15686 # Warning - without using the other runtime loading flags (-brtl),
15687 # -berok will link without error, but may produce a broken library.
15688 allow_undefined_flag='-berok'
15689 # Determine the default libpath from the value encoded in an empty executable.
15690 cat >conftest.$ac_ext <<_ACEOF
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h. */
15705 rm -f conftest.$ac_objext conftest$ac_exeext
15706 if { (ac_try="$ac_link"
15707 case "(($ac_try" in
15708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709 *) ac_try_echo=$ac_try;;
15711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15712 (eval "$ac_link") 2>conftest.er1
15714 grep -v '^ *+' conftest.er1 >conftest.err
15716 cat conftest.err >&5
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); } &&
15719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15720 { (case "(($ac_try" in
15721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722 *) ac_try_echo=$ac_try;;
15724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725 (eval "$ac_try") 2>&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; } &&
15729 { ac_try='test -s conftest$ac_exeext'
15730 { (case "(($ac_try" in
15731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15732 *) ac_try_echo=$ac_try;;
15734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15735 (eval "$ac_try") 2>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; }; then
15740 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15742 # Check for a 64-bit object if we didn't find anything.
15743 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; }
15746 echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15752 rm -f core conftest.err conftest.$ac_objext \
15753 conftest$ac_exeext conftest.$ac_ext
15754 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15756 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15757 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"
15759 if test "$host_cpu" = ia64; then
15760 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15761 allow_undefined_flag="-z nodefs"
15762 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"
15764 # Determine the default libpath from the value encoded in an empty executable.
15765 cat >conftest.$ac_ext <<_ACEOF
15768 cat confdefs.h >>conftest.$ac_ext
15769 cat >>conftest.$ac_ext <<_ACEOF
15770 /* end confdefs.h. */
15780 rm -f conftest.$ac_objext conftest$ac_exeext
15781 if { (ac_try="$ac_link"
15782 case "(($ac_try" in
15783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15784 *) ac_try_echo=$ac_try;;
15786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15787 (eval "$ac_link") 2>conftest.er1
15789 grep -v '^ *+' conftest.er1 >conftest.err
15791 cat conftest.err >&5
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); } &&
15794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15795 { (case "(($ac_try" in
15796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797 *) ac_try_echo=$ac_try;;
15799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15800 (eval "$ac_try") 2>&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; } &&
15804 { ac_try='test -s conftest$ac_exeext'
15805 { (case "(($ac_try" in
15806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15807 *) ac_try_echo=$ac_try;;
15809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15810 (eval "$ac_try") 2>&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; }; then
15815 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15817 # Check for a 64-bit object if we didn't find anything.
15818 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; }
15821 echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15827 rm -f core conftest.err conftest.$ac_objext \
15828 conftest$ac_exeext conftest.$ac_ext
15829 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15831 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15832 # Warning - without using the other run time loading flags,
15833 # -berok will link without error, but may produce a broken library.
15834 no_undefined_flag=' ${wl}-bernotok'
15835 allow_undefined_flag=' ${wl}-berok'
15836 # Exported symbols can be pulled into shared objects from archives
15837 whole_archive_flag_spec='$convenience'
15838 archive_cmds_need_lc=yes
15839 # This is similar to how AIX traditionally builds its shared libraries.
15840 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'
15846 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)'
15847 hardcode_libdir_flag_spec='-L$libdir'
15848 hardcode_minus_L=yes
15849 # see comment about different semantics on the GNU ld section
15854 export_dynamic_flag_spec=-rdynamic
15857 cygwin* | mingw* | pw32*)
15858 # When not using gcc, we currently assume that we are using
15859 # Microsoft Visual C++.
15860 # hardcode_libdir_flag_spec is actually meaningless, as there is
15861 # no search path for DLLs.
15862 hardcode_libdir_flag_spec=' '
15863 allow_undefined_flag=unsupported
15864 # Tell ltmain to make .lib files, not .a files.
15866 # Tell ltmain to make .dll files, not .so files.
15868 # FIXME: Setting linknames here is a bad hack.
15869 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15870 # The linker will automatically build a .lib file if we build a DLL.
15871 old_archive_From_new_cmds='true'
15872 # FIXME: Should let the user specify the lib program.
15873 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15874 fix_srcfile_path='`cygpath -w "$srcfile"`'
15875 enable_shared_with_static_runtimes=yes
15878 darwin* | rhapsody*)
15880 rhapsody* | darwin1.[012])
15881 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15884 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15885 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15887 case ${MACOSX_DEPLOYMENT_TARGET} in
15889 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15892 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15898 archive_cmds_need_lc=no
15900 hardcode_automatic=yes
15901 hardcode_shlibpath_var=unsupported
15902 whole_archive_flag_spec=''
15903 link_all_deplibs=yes
15904 if test "$GCC" = yes ; then
15905 output_verbose_link_cmd='echo'
15906 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15907 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15908 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15909 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}'
15910 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}'
15912 case $cc_basename in
15914 output_verbose_link_cmd='echo'
15915 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15916 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15917 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15918 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}'
15919 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}'
15929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15930 hardcode_libdir_flag_spec='-L$libdir'
15931 hardcode_shlibpath_var=no
15938 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15939 # support. Future versions do this automatically, but an explicit c++rt0.o
15940 # does not break anything, and helps significantly (at the cost of a little
15943 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15944 hardcode_libdir_flag_spec='-R$libdir'
15945 hardcode_direct=yes
15946 hardcode_shlibpath_var=no
15949 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15952 hardcode_direct=yes
15953 hardcode_minus_L=yes
15954 hardcode_shlibpath_var=no
15957 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15958 freebsd* | kfreebsd*-gnu | dragonfly*)
15959 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15960 hardcode_libdir_flag_spec='-R$libdir'
15961 hardcode_direct=yes
15962 hardcode_shlibpath_var=no
15966 if test "$GCC" = yes; then
15967 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'
15969 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'
15971 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15972 hardcode_libdir_separator=:
15973 hardcode_direct=yes
15975 # hardcode_minus_L: Not really in the search PATH,
15976 # but as the default location of the library.
15977 hardcode_minus_L=yes
15978 export_dynamic_flag_spec='${wl}-E'
15982 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15983 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15985 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15987 if test "$with_gnu_ld" = no; then
15988 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15989 hardcode_libdir_separator=:
15991 hardcode_direct=yes
15992 export_dynamic_flag_spec='${wl}-E'
15994 # hardcode_minus_L: Not really in the search PATH,
15995 # but as the default location of the library.
15996 hardcode_minus_L=yes
16001 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16004 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16007 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16010 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16016 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16019 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16022 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16026 if test "$with_gnu_ld" = no; then
16027 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16028 hardcode_libdir_separator=:
16032 hardcode_libdir_flag_spec_ld='+b $libdir'
16034 hardcode_shlibpath_var=no
16037 hardcode_direct=yes
16038 export_dynamic_flag_spec='${wl}-E'
16040 # hardcode_minus_L: Not really in the search PATH,
16041 # but as the default location of the library.
16042 hardcode_minus_L=yes
16048 irix5* | irix6* | nonstopux*)
16049 if test "$GCC" = yes; then
16050 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'
16052 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'
16053 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16055 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16056 hardcode_libdir_separator=:
16057 link_all_deplibs=yes
16061 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16062 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16064 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16066 hardcode_libdir_flag_spec='-R$libdir'
16067 hardcode_direct=yes
16068 hardcode_shlibpath_var=no
16072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16073 hardcode_direct=yes
16074 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16075 hardcode_libdir_separator=:
16076 hardcode_shlibpath_var=no
16080 hardcode_direct=yes
16081 hardcode_shlibpath_var=no
16082 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16083 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16084 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16085 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16086 export_dynamic_flag_spec='${wl}-E'
16089 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16090 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16091 hardcode_libdir_flag_spec='-R$libdir'
16094 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16095 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16102 hardcode_libdir_flag_spec='-L$libdir'
16103 hardcode_minus_L=yes
16104 allow_undefined_flag=unsupported
16105 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'
16106 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16110 if test "$GCC" = yes; then
16111 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16112 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'
16114 allow_undefined_flag=' -expect_unresolved \*'
16115 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'
16117 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16118 hardcode_libdir_separator=:
16121 osf4* | osf5*) # as osf3* with the addition of -msym flag
16122 if test "$GCC" = yes; then
16123 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16124 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'
16125 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16127 allow_undefined_flag=' -expect_unresolved \*'
16128 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'
16129 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16130 $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'
16132 # Both c and cxx compiler support -rpath directly
16133 hardcode_libdir_flag_spec='-rpath $libdir'
16135 hardcode_libdir_separator=:
16139 no_undefined_flag=' -z text'
16140 if test "$GCC" = yes; then
16142 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16143 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16144 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16147 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16148 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16149 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16151 hardcode_libdir_flag_spec='-R$libdir'
16152 hardcode_shlibpath_var=no
16154 solaris2.[0-5] | solaris2.[0-5].*) ;;
16156 # The compiler driver will combine linker options so we
16157 # cannot just pass the convience library names through
16158 # without $wl, iff we do not link with $LD.
16159 # Luckily, gcc supports the same syntax we need for Sun Studio.
16160 # Supported since Solaris 2.6 (maybe 2.5.1?)
16163 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16165 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' ;;
16168 link_all_deplibs=yes
16172 if test "x$host_vendor" = xsequent; then
16173 # Use $CC to link under sequent, because it throws in some extra .o
16174 # files that make .init and .fini sections work.
16175 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16177 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16179 hardcode_libdir_flag_spec='-L$libdir'
16180 hardcode_direct=yes
16181 hardcode_minus_L=yes
16182 hardcode_shlibpath_var=no
16186 case $host_vendor in
16188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16189 hardcode_direct=yes # is this really true???
16192 ## LD is ld it makes a PLAMLIB
16193 ## CC just makes a GrossModule.
16194 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16195 reload_cmds='$CC -r -o $output$reload_objs'
16199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16200 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16203 runpath_var='LD_RUN_PATH'
16204 hardcode_shlibpath_var=no
16208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16209 hardcode_shlibpath_var=no
16210 export_dynamic_flag_spec='-Bexport'
16214 if test -d /usr/nec; then
16215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16216 hardcode_shlibpath_var=no
16217 runpath_var=LD_RUN_PATH
16218 hardcode_runpath_var=yes
16223 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16224 no_undefined_flag='${wl}-z,text'
16225 archive_cmds_need_lc=no
16226 hardcode_shlibpath_var=no
16227 runpath_var='LD_RUN_PATH'
16229 if test "$GCC" = yes; then
16230 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16231 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16233 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16234 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16238 sysv5* | sco3.2v5* | sco5v6*)
16239 # Note: We can NOT use -z defs as we might desire, because we do not
16240 # link with -lc, and that would cause any symbols used from libc to
16241 # always be unresolved, which means just about no library would
16242 # ever link correctly. If we're not using GNU ld we use -z text
16243 # though, which does catch some bad symbols but isn't as heavy-handed
16245 no_undefined_flag='${wl}-z,text'
16246 allow_undefined_flag='${wl}-z,nodefs'
16247 archive_cmds_need_lc=no
16248 hardcode_shlibpath_var=no
16249 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16250 hardcode_libdir_separator=':'
16251 link_all_deplibs=yes
16252 export_dynamic_flag_spec='${wl}-Bexport'
16253 runpath_var='LD_RUN_PATH'
16255 if test "$GCC" = yes; then
16256 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16257 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16259 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16260 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16266 hardcode_libdir_flag_spec='-L$libdir'
16267 hardcode_shlibpath_var=no
16276 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16277 echo "${ECHO_T}$ld_shlibs" >&6; }
16278 test "$ld_shlibs" = no && can_build_shared=no
16281 # Do we need to explicitly link libc?
16283 case "x$archive_cmds_need_lc" in
16285 # Assume -lc should be added
16286 archive_cmds_need_lc=yes
16288 if test "$enable_shared" = yes && test "$GCC" = yes; then
16289 case $archive_cmds in
16291 # FIXME: we may have to deal with multi-command sequences.
16294 # Test whether the compiler implicitly links with -lc since on some
16295 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16296 # to ld, don't add -lc before -lgcc.
16297 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16298 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16300 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16303 (eval $ac_compile) 2>&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } 2>conftest.err; then
16309 libobjs=conftest.$ac_objext
16311 wl=$lt_prog_compiler_wl
16312 pic_flag=$lt_prog_compiler_pic
16318 lt_save_allow_undefined_flag=$allow_undefined_flag
16319 allow_undefined_flag=
16320 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16321 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }
16326 archive_cmds_need_lc=no
16328 archive_cmds_need_lc=yes
16330 allow_undefined_flag=$lt_save_allow_undefined_flag
16332 cat conftest.err 1>&5
16335 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16336 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16343 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16344 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16345 library_names_spec=
16346 libname_spec='lib$name'
16350 postuninstall_cmds=
16354 shlibpath_overrides_runpath=unknown
16356 dynamic_linker="$host_os ld.so"
16357 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16358 if test "$GCC" = yes; then
16359 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16360 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16361 # if the path contains ";" then we assume it to be the separator
16362 # otherwise default to the standard path separator (i.e. ":") - it is
16363 # assumed that no part of a normal pathname contains ";" but that should
16364 # okay in the real world where ";" in dirpaths is itself problematic.
16365 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16367 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16370 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16372 need_lib_prefix=unknown
16373 hardcode_into_libs=no
16375 # when you set need_version to no, make sure it does not cause -set_version
16376 # flags to be left without arguments
16377 need_version=unknown
16382 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16383 shlibpath_var=LIBPATH
16385 # AIX 3 has no versioning support, so we append a major version to the name.
16386 soname_spec='${libname}${release}${shared_ext}$major'
16393 hardcode_into_libs=yes
16394 if test "$host_cpu" = ia64; then
16395 # AIX 5 supports IA64
16396 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16397 shlibpath_var=LD_LIBRARY_PATH
16399 # With GCC up to 2.95.x, collect2 would create an import file
16400 # for dependence libraries. The import file would start with
16401 # the line `#! .'. This would cause the generated library to
16402 # depend on `.', always an invalid library. This was fixed in
16403 # development snapshots of GCC prior to 3.0.
16405 aix4 | aix4.[01] | aix4.[01].*)
16406 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16408 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16411 can_build_shared=no
16415 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16416 # soname into executable. Probably we can add versioning support to
16417 # collect2, so additional links can be useful in future.
16418 if test "$aix_use_runtimelinking" = yes; then
16419 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16420 # instead of lib<name>.a to let people know that these are not
16421 # typical AIX shared libraries.
16422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16424 # We preserve .a as extension for shared libraries through AIX4.2
16425 # and later when we are not doing run time linking.
16426 library_names_spec='${libname}${release}.a $libname.a'
16427 soname_spec='${libname}${release}${shared_ext}$major'
16429 shlibpath_var=LIBPATH
16434 library_names_spec='$libname.ixlibrary $libname.a'
16435 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16436 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'
16440 library_names_spec='${libname}${shared_ext}'
16441 dynamic_linker="$host_os ld.so"
16442 shlibpath_var=LIBRARY_PATH
16448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16449 soname_spec='${libname}${release}${shared_ext}$major'
16450 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16451 shlibpath_var=LD_LIBRARY_PATH
16452 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16453 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16454 # the default ld.so.conf also contains /usr/contrib/lib and
16455 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16456 # libtool to hard-code these into programs
16459 cygwin* | mingw* | pw32*)
16460 version_type=windows
16465 case $GCC,$host_os in
16466 yes,cygwin* | yes,mingw* | yes,pw32*)
16467 library_names_spec='$libname.dll.a'
16468 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16469 postinstall_cmds='base_file=`basename \${file}`~
16470 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16471 dldir=$destdir/`dirname \$dlpath`~
16472 test -d \$dldir || mkdir -p \$dldir~
16473 $install_prog $dir/$dlname \$dldir/$dlname~
16474 chmod a+x \$dldir/$dlname'
16475 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16476 dlpath=$dir/\$dldll~
16478 shlibpath_overrides_runpath=yes
16482 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16483 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16484 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16487 # MinGW DLLs use traditional 'lib' prefix
16488 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16489 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16490 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16491 # It is most probably a Windows format PATH printed by
16492 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16493 # path with ; separators, and with drive letters. We can handle the
16494 # drive letters (cygwin fileutils understands them), so leave them,
16495 # especially as we might pass files found there to a mingw objdump,
16496 # which wouldn't understand a cygwinified path. Ahh.
16497 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16499 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16503 # pw32 DLLs use 'pw' prefix rather than 'lib'
16504 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16510 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16513 dynamic_linker='Win32 ld.exe'
16514 # FIXME: first we should search . and the directory the executable is in
16518 darwin* | rhapsody*)
16519 dynamic_linker="$host_os dyld"
16520 version_type=darwin
16523 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16524 soname_spec='${libname}${release}${major}$shared_ext'
16525 shlibpath_overrides_runpath=yes
16526 shlibpath_var=DYLD_LIBRARY_PATH
16527 shrext_cmds='.dylib'
16528 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16529 if test "$GCC" = yes; then
16530 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"`
16532 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16534 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16542 soname_spec='${libname}${release}${shared_ext}$major'
16543 shlibpath_var=LD_LIBRARY_PATH
16554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16555 soname_spec='${libname}${release}${shared_ext}$major'
16556 shlibpath_var=LD_LIBRARY_PATH
16557 shlibpath_overrides_runpath=no
16558 hardcode_into_libs=yes
16559 dynamic_linker='GNU ld.so'
16562 freebsd* | dragonfly*)
16563 # DragonFly does not have aout. When/if they implement a new
16564 # versioning mechanism, adjust this.
16565 if test -x /usr/bin/objformat; then
16566 objformat=`/usr/bin/objformat`
16569 freebsd[123]*) objformat=aout ;;
16570 *) objformat=elf ;;
16573 version_type=freebsd-$objformat
16574 case $version_type in
16576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16581 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16585 shlibpath_var=LD_LIBRARY_PATH
16588 shlibpath_overrides_runpath=yes
16590 freebsd3.[01]* | freebsdelf3.[01]*)
16591 shlibpath_overrides_runpath=yes
16592 hardcode_into_libs=yes
16594 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16595 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16596 shlibpath_overrides_runpath=no
16597 hardcode_into_libs=yes
16599 freebsd*) # from 4.6 on
16600 shlibpath_overrides_runpath=yes
16601 hardcode_into_libs=yes
16610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16611 soname_spec='${libname}${release}${shared_ext}$major'
16612 shlibpath_var=LD_LIBRARY_PATH
16613 hardcode_into_libs=yes
16616 hpux9* | hpux10* | hpux11*)
16617 # Give a soname corresponding to the major version so that dld.sl refuses to
16618 # link against other versions.
16625 hardcode_into_libs=yes
16626 dynamic_linker="$host_os dld.so"
16627 shlibpath_var=LD_LIBRARY_PATH
16628 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16630 soname_spec='${libname}${release}${shared_ext}$major'
16631 if test "X$HPUX_IA64_MODE" = X32; then
16632 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16634 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16636 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16640 hardcode_into_libs=yes
16641 dynamic_linker="$host_os dld.sl"
16642 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16643 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16645 soname_spec='${libname}${release}${shared_ext}$major'
16646 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16647 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16651 dynamic_linker="$host_os dld.sl"
16652 shlibpath_var=SHLIB_PATH
16653 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16655 soname_spec='${libname}${release}${shared_ext}$major'
16658 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16659 postinstall_cmds='chmod 555 $lib'
16666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16667 soname_spec='${libname}${release}${shared_ext}$major'
16668 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16669 shlibpath_var=LD_LIBRARY_PATH
16670 shlibpath_overrides_runpath=no
16671 hardcode_into_libs=yes
16674 irix5* | irix6* | nonstopux*)
16676 nonstopux*) version_type=nonstopux ;;
16678 if test "$lt_cv_prog_gnu_ld" = yes; then
16686 soname_spec='${libname}${release}${shared_ext}$major'
16687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16689 irix5* | nonstopux*)
16690 libsuff= shlibsuff=
16693 case $LD in # libtool.m4 will add one of these switches to LD
16694 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16695 libsuff= shlibsuff= libmagic=32-bit;;
16696 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16697 libsuff=32 shlibsuff=N32 libmagic=N32;;
16698 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16699 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16700 *) libsuff= shlibsuff= libmagic=never-match;;
16704 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16705 shlibpath_overrides_runpath=no
16706 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16707 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16708 hardcode_into_libs=yes
16711 # No shared lib support for Linux oldld, aout, or coff.
16712 linux*oldld* | linux*aout* | linux*coff*)
16716 # This must be Linux ELF.
16721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16722 soname_spec='${libname}${release}${shared_ext}$major'
16723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16724 shlibpath_var=LD_LIBRARY_PATH
16725 shlibpath_overrides_runpath=no
16726 # This implies no fast_install, which is unacceptable.
16727 # Some rework will be needed to allow for fast_install
16728 # before this can be enabled.
16729 hardcode_into_libs=yes
16731 # Append ld.so.conf contents to the search path
16732 if test -f /etc/ld.so.conf; then
16733 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' ' '`
16734 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16737 # We used to test for /lib/ld.so.1 and disable shared libraries on
16738 # powerpc, because MkLinux only supported shared libraries with the
16739 # GNU dynamic linker. Since this was broken with cross compilers,
16740 # most powerpc-linux boxes support dynamic linking these days and
16741 # people can always --disable-shared, the test was removed, and we
16742 # assume the GNU/Linux dynamic linker is in use.
16743 dynamic_linker='GNU/Linux ld.so'
16750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16751 soname_spec='${libname}${release}${shared_ext}$major'
16752 shlibpath_var=LD_LIBRARY_PATH
16753 shlibpath_overrides_runpath=no
16754 hardcode_into_libs=yes
16755 dynamic_linker='GNU ld.so'
16762 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16765 dynamic_linker='NetBSD (a.out) ld.so'
16767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16768 soname_spec='${libname}${release}${shared_ext}$major'
16769 dynamic_linker='NetBSD ld.elf_so'
16771 shlibpath_var=LD_LIBRARY_PATH
16772 shlibpath_overrides_runpath=yes
16773 hardcode_into_libs=yes
16778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16779 shlibpath_var=LD_LIBRARY_PATH
16780 shlibpath_overrides_runpath=yes
16787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16788 soname_spec='${libname}${release}${shared_ext}$major'
16789 shlibpath_var=LD_LIBRARY_PATH
16790 shlibpath_overrides_runpath=yes
16795 sys_lib_dlsearch_path_spec="/usr/lib"
16797 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16799 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16800 *) need_version=no ;;
16802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16803 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16804 shlibpath_var=LD_LIBRARY_PATH
16805 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16807 openbsd2.[89] | openbsd2.[89].*)
16808 shlibpath_overrides_runpath=no
16811 shlibpath_overrides_runpath=yes
16815 shlibpath_overrides_runpath=yes
16820 libname_spec='$name'
16823 library_names_spec='$libname${shared_ext} $libname.a'
16824 dynamic_linker='OS/2 ld.exe'
16825 shlibpath_var=LIBPATH
16828 osf3* | osf4* | osf5*)
16832 soname_spec='${libname}${release}${shared_ext}$major'
16833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16834 shlibpath_var=LD_LIBRARY_PATH
16835 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16836 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16844 soname_spec='${libname}${release}${shared_ext}$major'
16845 shlibpath_var=LD_LIBRARY_PATH
16846 shlibpath_overrides_runpath=yes
16847 hardcode_into_libs=yes
16848 # ldd complains unless libraries are executable
16849 postinstall_cmds='chmod +x $lib'
16854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16855 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16856 shlibpath_var=LD_LIBRARY_PATH
16857 shlibpath_overrides_runpath=yes
16858 if test "$with_gnu_ld" = yes; then
16866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16867 soname_spec='${libname}${release}${shared_ext}$major'
16868 shlibpath_var=LD_LIBRARY_PATH
16869 case $host_vendor in
16871 shlibpath_overrides_runpath=no
16873 export_dynamic_flag_spec='${wl}-Blargedynsym'
16874 runpath_var=LD_RUN_PATH
16882 shlibpath_overrides_runpath=no
16883 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16889 if test -d /usr/nec ;then
16891 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16892 soname_spec='$libname${shared_ext}.$major'
16893 shlibpath_var=LD_LIBRARY_PATH
16897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16898 version_type=freebsd-elf
16901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16902 soname_spec='${libname}${release}${shared_ext}$major'
16903 shlibpath_var=LD_LIBRARY_PATH
16904 hardcode_into_libs=yes
16905 if test "$with_gnu_ld" = yes; then
16906 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16907 shlibpath_overrides_runpath=no
16909 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16910 shlibpath_overrides_runpath=yes
16913 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16917 sys_lib_dlsearch_path_spec='/usr/lib'
16922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16923 soname_spec='${libname}${release}${shared_ext}$major'
16924 shlibpath_var=LD_LIBRARY_PATH
16931 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16932 echo "${ECHO_T}$dynamic_linker" >&6; }
16933 test "$dynamic_linker" = no && can_build_shared=no
16935 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16936 if test "$GCC" = yes; then
16937 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16940 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16941 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16943 if test -n "$hardcode_libdir_flag_spec" || \
16944 test -n "$runpath_var" || \
16945 test "X$hardcode_automatic" = "Xyes" ; then
16947 # We can hardcode non-existant directories.
16948 if test "$hardcode_direct" != no &&
16949 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16950 # have to relink, otherwise we might link with an installed library
16951 # when we should be linking with a yet-to-be-installed one
16952 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16953 test "$hardcode_minus_L" != no; then
16954 # Linking always hardcodes the temporary library directory.
16955 hardcode_action=relink
16957 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16958 hardcode_action=immediate
16961 # We cannot hardcode anything, or else we can only hardcode existing
16963 hardcode_action=unsupported
16965 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16966 echo "${ECHO_T}$hardcode_action" >&6; }
16968 if test "$hardcode_action" = relink; then
16969 # Fast installation is not supported
16970 enable_fast_install=no
16971 elif test "$shlibpath_overrides_runpath" = yes ||
16972 test "$enable_shared" = no; then
16973 # Fast installation is not necessary
16974 enable_fast_install=needless
16979 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16980 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16981 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16982 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16983 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16984 { echo "$as_me:$LINENO: result: yes" >&5
16985 echo "${ECHO_T}yes" >&6; }
16987 # FIXME - insert some real tests, host_os isn't really good enough
16990 if test -n "$STRIP" ; then
16991 striplib="$STRIP -x"
16992 { echo "$as_me:$LINENO: result: yes" >&5
16993 echo "${ECHO_T}yes" >&6; }
16995 { echo "$as_me:$LINENO: result: no" >&5
16996 echo "${ECHO_T}no" >&6; }
17000 { echo "$as_me:$LINENO: result: no" >&5
17001 echo "${ECHO_T}no" >&6; }
17006 if test "x$enable_dlopen" != xyes; then
17007 enable_dlopen=unknown
17008 enable_dlopen_self=unknown
17009 enable_dlopen_self_static=unknown
17016 lt_cv_dlopen="load_add_on"
17018 lt_cv_dlopen_self=yes
17022 lt_cv_dlopen="LoadLibrary"
17027 lt_cv_dlopen="dlopen"
17032 # if libdl is installed we need to link against it
17033 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17034 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17035 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17036 echo $ECHO_N "(cached) $ECHO_C" >&6
17038 ac_check_lib_save_LIBS=$LIBS
17040 cat >conftest.$ac_ext <<_ACEOF
17043 cat confdefs.h >>conftest.$ac_ext
17044 cat >>conftest.$ac_ext <<_ACEOF
17045 /* end confdefs.h. */
17047 /* Override any GCC internal prototype to avoid an error.
17048 Use char because int might match the return type of a GCC
17049 builtin and then its argument prototype would still apply. */
17062 rm -f conftest.$ac_objext conftest$ac_exeext
17063 if { (ac_try="$ac_link"
17064 case "(($ac_try" in
17065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066 *) ac_try_echo=$ac_try;;
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069 (eval "$ac_link") 2>conftest.er1
17071 grep -v '^ *+' conftest.er1 >conftest.err
17073 cat conftest.err >&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); } &&
17076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17077 { (case "(($ac_try" in
17078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079 *) ac_try_echo=$ac_try;;
17081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17082 (eval "$ac_try") 2>&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); }; } &&
17086 { ac_try='test -s conftest$ac_exeext'
17087 { (case "(($ac_try" in
17088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089 *) ac_try_echo=$ac_try;;
17091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092 (eval "$ac_try") 2>&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); }; }; then
17096 ac_cv_lib_dl_dlopen=yes
17098 echo "$as_me: failed program was:" >&5
17099 sed 's/^/| /' conftest.$ac_ext >&5
17101 ac_cv_lib_dl_dlopen=no
17104 rm -f core conftest.err conftest.$ac_objext \
17105 conftest$ac_exeext conftest.$ac_ext
17106 LIBS=$ac_check_lib_save_LIBS
17108 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17109 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17110 if test $ac_cv_lib_dl_dlopen = yes; then
17111 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17114 lt_cv_dlopen="dyld"
17116 lt_cv_dlopen_self=yes
17123 { echo "$as_me:$LINENO: checking for shl_load" >&5
17124 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17125 if test "${ac_cv_func_shl_load+set}" = set; then
17126 echo $ECHO_N "(cached) $ECHO_C" >&6
17128 cat >conftest.$ac_ext <<_ACEOF
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h. */
17134 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17136 #define shl_load innocuous_shl_load
17138 /* System header to define __stub macros and hopefully few prototypes,
17139 which can conflict with char shl_load (); below.
17140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17141 <limits.h> exists even on freestanding compilers. */
17144 # include <limits.h>
17146 # include <assert.h>
17151 /* Override any GCC internal prototype to avoid an error.
17152 Use char because int might match the return type of a GCC
17153 builtin and then its argument prototype would still apply. */
17158 /* The GNU C library defines this for functions which it implements
17159 to always fail with ENOSYS. Some functions are actually named
17160 something starting with __ and the normal name is an alias. */
17161 #if defined __stub_shl_load || defined __stub___shl_load
17168 return shl_load ();
17173 rm -f conftest.$ac_objext conftest$ac_exeext
17174 if { (ac_try="$ac_link"
17175 case "(($ac_try" in
17176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177 *) ac_try_echo=$ac_try;;
17179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180 (eval "$ac_link") 2>conftest.er1
17182 grep -v '^ *+' conftest.er1 >conftest.err
17184 cat conftest.err >&5
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); } &&
17187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17188 { (case "(($ac_try" in
17189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17190 *) ac_try_echo=$ac_try;;
17192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17193 (eval "$ac_try") 2>&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); }; } &&
17197 { ac_try='test -s conftest$ac_exeext'
17198 { (case "(($ac_try" in
17199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200 *) ac_try_echo=$ac_try;;
17202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17203 (eval "$ac_try") 2>&5
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); }; }; then
17207 ac_cv_func_shl_load=yes
17209 echo "$as_me: failed program was:" >&5
17210 sed 's/^/| /' conftest.$ac_ext >&5
17212 ac_cv_func_shl_load=no
17215 rm -f core conftest.err conftest.$ac_objext \
17216 conftest$ac_exeext conftest.$ac_ext
17218 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17219 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17220 if test $ac_cv_func_shl_load = yes; then
17221 lt_cv_dlopen="shl_load"
17223 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17224 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17225 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17226 echo $ECHO_N "(cached) $ECHO_C" >&6
17228 ac_check_lib_save_LIBS=$LIBS
17230 cat >conftest.$ac_ext <<_ACEOF
17233 cat confdefs.h >>conftest.$ac_ext
17234 cat >>conftest.$ac_ext <<_ACEOF
17235 /* end confdefs.h. */
17237 /* Override any GCC internal prototype to avoid an error.
17238 Use char because int might match the return type of a GCC
17239 builtin and then its argument prototype would still apply. */
17247 return shl_load ();
17252 rm -f conftest.$ac_objext conftest$ac_exeext
17253 if { (ac_try="$ac_link"
17254 case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_link") 2>conftest.er1
17261 grep -v '^ *+' conftest.er1 >conftest.err
17263 cat conftest.err >&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } &&
17266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17267 { (case "(($ac_try" in
17268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269 *) ac_try_echo=$ac_try;;
17271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272 (eval "$ac_try") 2>&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); }; } &&
17276 { ac_try='test -s conftest$ac_exeext'
17277 { (case "(($ac_try" in
17278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279 *) ac_try_echo=$ac_try;;
17281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17282 (eval "$ac_try") 2>&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; }; then
17286 ac_cv_lib_dld_shl_load=yes
17288 echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17291 ac_cv_lib_dld_shl_load=no
17294 rm -f core conftest.err conftest.$ac_objext \
17295 conftest$ac_exeext conftest.$ac_ext
17296 LIBS=$ac_check_lib_save_LIBS
17298 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17299 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17300 if test $ac_cv_lib_dld_shl_load = yes; then
17301 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17303 { echo "$as_me:$LINENO: checking for dlopen" >&5
17304 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17305 if test "${ac_cv_func_dlopen+set}" = set; then
17306 echo $ECHO_N "(cached) $ECHO_C" >&6
17308 cat >conftest.$ac_ext <<_ACEOF
17311 cat confdefs.h >>conftest.$ac_ext
17312 cat >>conftest.$ac_ext <<_ACEOF
17313 /* end confdefs.h. */
17314 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17316 #define dlopen innocuous_dlopen
17318 /* System header to define __stub macros and hopefully few prototypes,
17319 which can conflict with char dlopen (); below.
17320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17321 <limits.h> exists even on freestanding compilers. */
17324 # include <limits.h>
17326 # include <assert.h>
17331 /* Override any GCC internal prototype to avoid an error.
17332 Use char because int might match the return type of a GCC
17333 builtin and then its argument prototype would still apply. */
17338 /* The GNU C library defines this for functions which it implements
17339 to always fail with ENOSYS. Some functions are actually named
17340 something starting with __ and the normal name is an alias. */
17341 #if defined __stub_dlopen || defined __stub___dlopen
17353 rm -f conftest.$ac_objext conftest$ac_exeext
17354 if { (ac_try="$ac_link"
17355 case "(($ac_try" in
17356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357 *) ac_try_echo=$ac_try;;
17359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17360 (eval "$ac_link") 2>conftest.er1
17362 grep -v '^ *+' conftest.er1 >conftest.err
17364 cat conftest.err >&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); } &&
17367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17368 { (case "(($ac_try" in
17369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17370 *) ac_try_echo=$ac_try;;
17372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17373 (eval "$ac_try") 2>&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; } &&
17377 { ac_try='test -s conftest$ac_exeext'
17378 { (case "(($ac_try" in
17379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17380 *) ac_try_echo=$ac_try;;
17382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17383 (eval "$ac_try") 2>&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); }; }; then
17387 ac_cv_func_dlopen=yes
17389 echo "$as_me: failed program was:" >&5
17390 sed 's/^/| /' conftest.$ac_ext >&5
17392 ac_cv_func_dlopen=no
17395 rm -f core conftest.err conftest.$ac_objext \
17396 conftest$ac_exeext conftest.$ac_ext
17398 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17399 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17400 if test $ac_cv_func_dlopen = yes; then
17401 lt_cv_dlopen="dlopen"
17403 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17404 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17405 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17406 echo $ECHO_N "(cached) $ECHO_C" >&6
17408 ac_check_lib_save_LIBS=$LIBS
17410 cat >conftest.$ac_ext <<_ACEOF
17413 cat confdefs.h >>conftest.$ac_ext
17414 cat >>conftest.$ac_ext <<_ACEOF
17415 /* end confdefs.h. */
17417 /* Override any GCC internal prototype to avoid an error.
17418 Use char because int might match the return type of a GCC
17419 builtin and then its argument prototype would still apply. */
17432 rm -f conftest.$ac_objext conftest$ac_exeext
17433 if { (ac_try="$ac_link"
17434 case "(($ac_try" in
17435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17436 *) ac_try_echo=$ac_try;;
17438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17439 (eval "$ac_link") 2>conftest.er1
17441 grep -v '^ *+' conftest.er1 >conftest.err
17443 cat conftest.err >&5
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); } &&
17446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17447 { (case "(($ac_try" in
17448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449 *) ac_try_echo=$ac_try;;
17451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17452 (eval "$ac_try") 2>&5
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; } &&
17456 { ac_try='test -s conftest$ac_exeext'
17457 { (case "(($ac_try" in
17458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17459 *) ac_try_echo=$ac_try;;
17461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17462 (eval "$ac_try") 2>&5
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; }; then
17466 ac_cv_lib_dl_dlopen=yes
17468 echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17471 ac_cv_lib_dl_dlopen=no
17474 rm -f core conftest.err conftest.$ac_objext \
17475 conftest$ac_exeext conftest.$ac_ext
17476 LIBS=$ac_check_lib_save_LIBS
17478 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17479 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17480 if test $ac_cv_lib_dl_dlopen = yes; then
17481 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17483 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17484 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17485 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17486 echo $ECHO_N "(cached) $ECHO_C" >&6
17488 ac_check_lib_save_LIBS=$LIBS
17489 LIBS="-lsvld $LIBS"
17490 cat >conftest.$ac_ext <<_ACEOF
17493 cat confdefs.h >>conftest.$ac_ext
17494 cat >>conftest.$ac_ext <<_ACEOF
17495 /* end confdefs.h. */
17497 /* Override any GCC internal prototype to avoid an error.
17498 Use char because int might match the return type of a GCC
17499 builtin and then its argument prototype would still apply. */
17512 rm -f conftest.$ac_objext conftest$ac_exeext
17513 if { (ac_try="$ac_link"
17514 case "(($ac_try" in
17515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17516 *) ac_try_echo=$ac_try;;
17518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17519 (eval "$ac_link") 2>conftest.er1
17521 grep -v '^ *+' conftest.er1 >conftest.err
17523 cat conftest.err >&5
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } &&
17526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17527 { (case "(($ac_try" in
17528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529 *) ac_try_echo=$ac_try;;
17531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17532 (eval "$ac_try") 2>&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); }; } &&
17536 { ac_try='test -s conftest$ac_exeext'
17537 { (case "(($ac_try" in
17538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539 *) ac_try_echo=$ac_try;;
17541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542 (eval "$ac_try") 2>&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); }; }; then
17546 ac_cv_lib_svld_dlopen=yes
17548 echo "$as_me: failed program was:" >&5
17549 sed 's/^/| /' conftest.$ac_ext >&5
17551 ac_cv_lib_svld_dlopen=no
17554 rm -f core conftest.err conftest.$ac_objext \
17555 conftest$ac_exeext conftest.$ac_ext
17556 LIBS=$ac_check_lib_save_LIBS
17558 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17559 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17560 if test $ac_cv_lib_svld_dlopen = yes; then
17561 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17563 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17564 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17565 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17566 echo $ECHO_N "(cached) $ECHO_C" >&6
17568 ac_check_lib_save_LIBS=$LIBS
17570 cat >conftest.$ac_ext <<_ACEOF
17573 cat confdefs.h >>conftest.$ac_ext
17574 cat >>conftest.$ac_ext <<_ACEOF
17575 /* end confdefs.h. */
17577 /* Override any GCC internal prototype to avoid an error.
17578 Use char because int might match the return type of a GCC
17579 builtin and then its argument prototype would still apply. */
17587 return dld_link ();
17592 rm -f conftest.$ac_objext conftest$ac_exeext
17593 if { (ac_try="$ac_link"
17594 case "(($ac_try" in
17595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596 *) ac_try_echo=$ac_try;;
17598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599 (eval "$ac_link") 2>conftest.er1
17601 grep -v '^ *+' conftest.er1 >conftest.err
17603 cat conftest.err >&5
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); } &&
17606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17607 { (case "(($ac_try" in
17608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609 *) ac_try_echo=$ac_try;;
17611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612 (eval "$ac_try") 2>&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; } &&
17616 { ac_try='test -s conftest$ac_exeext'
17617 { (case "(($ac_try" in
17618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17619 *) ac_try_echo=$ac_try;;
17621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17622 (eval "$ac_try") 2>&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); }; }; then
17626 ac_cv_lib_dld_dld_link=yes
17628 echo "$as_me: failed program was:" >&5
17629 sed 's/^/| /' conftest.$ac_ext >&5
17631 ac_cv_lib_dld_dld_link=no
17634 rm -f core conftest.err conftest.$ac_objext \
17635 conftest$ac_exeext conftest.$ac_ext
17636 LIBS=$ac_check_lib_save_LIBS
17638 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17639 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17640 if test $ac_cv_lib_dld_dld_link = yes; then
17641 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17662 if test "x$lt_cv_dlopen" != xno; then
17668 case $lt_cv_dlopen in
17670 save_CPPFLAGS="$CPPFLAGS"
17671 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17673 save_LDFLAGS="$LDFLAGS"
17674 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17677 LIBS="$lt_cv_dlopen_libs $LIBS"
17679 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17680 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17681 if test "${lt_cv_dlopen_self+set}" = set; then
17682 echo $ECHO_N "(cached) $ECHO_C" >&6
17684 if test "$cross_compiling" = yes; then :
17685 lt_cv_dlopen_self=cross
17687 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17688 lt_status=$lt_dlunknown
17689 cat > conftest.$ac_ext <<EOF
17690 #line 17690 "configure"
17691 #include "confdefs.h"
17700 # define LT_DLGLOBAL RTLD_GLOBAL
17703 # define LT_DLGLOBAL DL_GLOBAL
17705 # define LT_DLGLOBAL 0
17709 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17710 find out it does not work in some platform. */
17711 #ifndef LT_DLLAZY_OR_NOW
17713 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17716 # define LT_DLLAZY_OR_NOW DL_LAZY
17719 # define LT_DLLAZY_OR_NOW RTLD_NOW
17722 # define LT_DLLAZY_OR_NOW DL_NOW
17724 # define LT_DLLAZY_OR_NOW 0
17732 extern "C" void exit (int);
17735 void fnord() { int i=42;}
17738 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17739 int status = $lt_dlunknown;
17743 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17744 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17745 /* dlclose (self); */
17753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17754 (eval $ac_link) 2>&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17758 (./conftest; exit; ) >&5 2>/dev/null
17760 case x$lt_status in
17761 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17762 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17763 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17766 # compilation failed
17767 lt_cv_dlopen_self=no
17774 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17775 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17777 if test "x$lt_cv_dlopen_self" = xyes; then
17778 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17779 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17780 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17781 if test "${lt_cv_dlopen_self_static+set}" = set; then
17782 echo $ECHO_N "(cached) $ECHO_C" >&6
17784 if test "$cross_compiling" = yes; then :
17785 lt_cv_dlopen_self_static=cross
17787 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17788 lt_status=$lt_dlunknown
17789 cat > conftest.$ac_ext <<EOF
17790 #line 17790 "configure"
17791 #include "confdefs.h"
17800 # define LT_DLGLOBAL RTLD_GLOBAL
17803 # define LT_DLGLOBAL DL_GLOBAL
17805 # define LT_DLGLOBAL 0
17809 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17810 find out it does not work in some platform. */
17811 #ifndef LT_DLLAZY_OR_NOW
17813 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17816 # define LT_DLLAZY_OR_NOW DL_LAZY
17819 # define LT_DLLAZY_OR_NOW RTLD_NOW
17822 # define LT_DLLAZY_OR_NOW DL_NOW
17824 # define LT_DLLAZY_OR_NOW 0
17832 extern "C" void exit (int);
17835 void fnord() { int i=42;}
17838 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17839 int status = $lt_dlunknown;
17843 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17844 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17845 /* dlclose (self); */
17853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17854 (eval $ac_link) 2>&5
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17858 (./conftest; exit; ) >&5 2>/dev/null
17860 case x$lt_status in
17861 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17862 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17863 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17866 # compilation failed
17867 lt_cv_dlopen_self_static=no
17874 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17875 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17878 CPPFLAGS="$save_CPPFLAGS"
17879 LDFLAGS="$save_LDFLAGS"
17884 case $lt_cv_dlopen_self in
17885 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17886 *) enable_dlopen_self=unknown ;;
17889 case $lt_cv_dlopen_self_static in
17890 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17891 *) enable_dlopen_self_static=unknown ;;
17896 # Report which library types will actually be built
17897 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17898 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17899 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17900 echo "${ECHO_T}$can_build_shared" >&6; }
17902 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17903 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17904 test "$can_build_shared" = "no" && enable_shared=no
17906 # On AIX, shared libraries and static libraries use the same namespace, and
17907 # are all built from PIC.
17910 test "$enable_shared" = yes && enable_static=no
17911 if test -n "$RANLIB"; then
17912 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17913 postinstall_cmds='$RANLIB $lib'
17918 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17919 test "$enable_shared" = yes && enable_static=no
17923 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17924 echo "${ECHO_T}$enable_shared" >&6; }
17926 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17927 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17928 # Make sure either enable_shared or enable_static is yes.
17929 test "$enable_shared" = yes || enable_static=yes
17930 { echo "$as_me:$LINENO: result: $enable_static" >&5
17931 echo "${ECHO_T}$enable_static" >&6; }
17933 # The else clause should only fire when bootstrapping the
17934 # libtool distribution, otherwise you forgot to ship ltmain.sh
17935 # with your package, and you will get complaints that there are
17936 # no rules to generate ltmain.sh.
17937 if test -f "$ltmain"; then
17938 # See if we are running on zsh, and set the options which allow our commands through
17939 # without removal of \ escapes.
17940 if test -n "${ZSH_VERSION+set}" ; then
17941 setopt NO_GLOB_SUBST
17943 # Now quote all the things that may contain metacharacters while being
17944 # careful not to overquote the AC_SUBSTed values. We take copies of the
17945 # variables and quote the copies for generation of the libtool script.
17946 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17948 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17949 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17950 deplibs_check_method reload_flag reload_cmds need_locks \
17951 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17952 lt_cv_sys_global_symbol_to_c_name_address \
17953 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17954 old_postinstall_cmds old_postuninstall_cmds \
17958 lt_prog_compiler_wl \
17959 lt_prog_compiler_pic \
17960 lt_prog_compiler_static \
17961 lt_prog_compiler_no_builtin_flag \
17962 export_dynamic_flag_spec \
17963 thread_safe_flag_spec \
17964 whole_archive_flag_spec \
17965 enable_shared_with_static_runtimes \
17967 old_archive_from_new_cmds \
17972 compiler_lib_search_path \
17974 archive_expsym_cmds \
17976 postuninstall_cmds \
17977 old_archive_from_expsyms_cmds \
17978 allow_undefined_flag \
17979 no_undefined_flag \
17980 export_symbols_cmds \
17981 hardcode_libdir_flag_spec \
17982 hardcode_libdir_flag_spec_ld \
17983 hardcode_libdir_separator \
17984 hardcode_automatic \
17986 module_expsym_cmds \
17987 lt_cv_prog_compiler_c_o \
17989 include_expsyms; do
17992 old_archive_cmds | \
17993 old_archive_from_new_cmds | \
17995 archive_expsym_cmds | \
17997 module_expsym_cmds | \
17998 old_archive_from_expsyms_cmds | \
17999 export_symbols_cmds | \
18000 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18001 postinstall_cmds | postuninstall_cmds | \
18002 old_postinstall_cmds | old_postuninstall_cmds | \
18003 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18004 # Double-quote double-evaled strings.
18005 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18008 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18014 *'\$0 --fallback-echo"')
18015 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18019 cfgfile="${ofile}T"
18020 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18022 { echo "$as_me:$LINENO: creating $ofile" >&5
18023 echo "$as_me: creating $ofile" >&6;}
18025 cat <<__EOF__ >> "$cfgfile"
18028 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18029 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18030 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18032 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18033 # Free Software Foundation, Inc.
18035 # This file is part of GNU Libtool:
18036 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18038 # This program is free software; you can redistribute it and/or modify
18039 # it under the terms of the GNU General Public License as published by
18040 # the Free Software Foundation; either version 2 of the License, or
18041 # (at your option) any later version.
18043 # This program is distributed in the hope that it will be useful, but
18044 # WITHOUT ANY WARRANTY; without even the implied warranty of
18045 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18046 # General Public License for more details.
18048 # You should have received a copy of the GNU General Public License
18049 # along with this program; if not, write to the Free Software
18050 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18052 # As a special exception to the GNU General Public License, if you
18053 # distribute this file as part of a program that contains a
18054 # configuration script generated by Autoconf, you may include it under
18055 # the same distribution terms that you use for the rest of that program.
18057 # A sed program that does not truncate output.
18060 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18061 Xsed="$SED -e 1s/^X//"
18063 # The HP-UX ksh and POSIX shell print the target directory to stdout
18064 # if CDPATH is set.
18065 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18067 # The names of the tagged configurations supported by this script.
18070 # ### BEGIN LIBTOOL CONFIG
18072 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18074 # Shell to use when invoking shell scripts.
18077 # Whether or not to build shared libraries.
18078 build_libtool_libs=$enable_shared
18080 # Whether or not to build static libraries.
18081 build_old_libs=$enable_static
18083 # Whether or not to add -lc for building shared libraries.
18084 build_libtool_need_lc=$archive_cmds_need_lc
18086 # Whether or not to disallow shared libs when runtime libs are static
18087 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18089 # Whether or not to optimize for fast installation.
18090 fast_install=$enable_fast_install
18093 host_alias=$host_alias
18097 # The build system.
18098 build_alias=$build_alias
18102 # An echo program that does not interpret backslashes.
18107 AR_FLAGS=$lt_AR_FLAGS
18112 # LTCC compiler flags.
18113 LTCFLAGS=$lt_LTCFLAGS
18115 # A language-specific compiler.
18118 # Is the compiler the GNU C compiler?
18124 # The linker used to build libraries.
18127 # Whether we need hard or soft links.
18130 # A BSD-compatible nm program.
18133 # A symbol stripping program
18136 # Used to examine libraries when file_magic_cmd begins "file"
18137 MAGIC_CMD=$MAGIC_CMD
18139 # Used on cygwin: DLL creation program.
18142 # Used on cygwin: object dumper.
18145 # Used on cygwin: assembler.
18148 # The name of the directory that contains temporary libtool files.
18151 # How to create reloadable object files.
18152 reload_flag=$lt_reload_flag
18153 reload_cmds=$lt_reload_cmds
18155 # How to pass a linker flag through the compiler.
18156 wl=$lt_lt_prog_compiler_wl
18158 # Object file suffix (normally "o").
18159 objext="$ac_objext"
18161 # Old archive suffix (normally "a").
18164 # Shared library suffix (normally ".so").
18165 shrext_cmds='$shrext_cmds'
18167 # Executable file suffix (normally "").
18170 # Additional compiler flags for building library objects.
18171 pic_flag=$lt_lt_prog_compiler_pic
18174 # What is the maximum length of a command?
18175 max_cmd_len=$lt_cv_sys_max_cmd_len
18177 # Does compiler simultaneously support -c and -o options?
18178 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18180 # Must we lock files when doing compilation?
18181 need_locks=$lt_need_locks
18183 # Do we need the lib prefix for modules?
18184 need_lib_prefix=$need_lib_prefix
18186 # Do we need a version for libraries?
18187 need_version=$need_version
18189 # Whether dlopen is supported.
18190 dlopen_support=$enable_dlopen
18192 # Whether dlopen of programs is supported.
18193 dlopen_self=$enable_dlopen_self
18195 # Whether dlopen of statically linked programs is supported.
18196 dlopen_self_static=$enable_dlopen_self_static
18198 # Compiler flag to prevent dynamic linking.
18199 link_static_flag=$lt_lt_prog_compiler_static
18201 # Compiler flag to turn off builtin functions.
18202 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18204 # Compiler flag to allow reflexive dlopens.
18205 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18207 # Compiler flag to generate shared objects directly from archives.
18208 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18210 # Compiler flag to generate thread-safe objects.
18211 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18213 # Library versioning type.
18214 version_type=$version_type
18216 # Format of library name prefix.
18217 libname_spec=$lt_libname_spec
18219 # List of archive names. First name is the real one, the rest are links.
18220 # The last name is the one that the linker finds with -lNAME.
18221 library_names_spec=$lt_library_names_spec
18223 # The coded name of the library, if different from the real name.
18224 soname_spec=$lt_soname_spec
18226 # Commands used to build and install an old-style archive.
18228 old_archive_cmds=$lt_old_archive_cmds
18229 old_postinstall_cmds=$lt_old_postinstall_cmds
18230 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18232 # Create an old-style archive from a shared archive.
18233 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18235 # Create a temporary old-style archive to link instead of a shared archive.
18236 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18238 # Commands used to build and install a shared archive.
18239 archive_cmds=$lt_archive_cmds
18240 archive_expsym_cmds=$lt_archive_expsym_cmds
18241 postinstall_cmds=$lt_postinstall_cmds
18242 postuninstall_cmds=$lt_postuninstall_cmds
18244 # Commands used to build a loadable module (assumed same as above if empty)
18245 module_cmds=$lt_module_cmds
18246 module_expsym_cmds=$lt_module_expsym_cmds
18248 # Commands to strip libraries.
18249 old_striplib=$lt_old_striplib
18250 striplib=$lt_striplib
18252 # Dependencies to place before the objects being linked to create a
18254 predep_objects=$lt_predep_objects
18256 # Dependencies to place after the objects being linked to create a
18258 postdep_objects=$lt_postdep_objects
18260 # Dependencies to place before the objects being linked to create a
18262 predeps=$lt_predeps
18264 # Dependencies to place after the objects being linked to create a
18266 postdeps=$lt_postdeps
18268 # The library search path used internally by the compiler when linking
18269 # a shared library.
18270 compiler_lib_search_path=$lt_compiler_lib_search_path
18272 # Method to check whether dependent libraries are shared objects.
18273 deplibs_check_method=$lt_deplibs_check_method
18275 # Command to use when deplibs_check_method == file_magic.
18276 file_magic_cmd=$lt_file_magic_cmd
18278 # Flag that allows shared libraries with undefined symbols to be built.
18279 allow_undefined_flag=$lt_allow_undefined_flag
18281 # Flag that forces no undefined symbols.
18282 no_undefined_flag=$lt_no_undefined_flag
18284 # Commands used to finish a libtool library installation in a directory.
18285 finish_cmds=$lt_finish_cmds
18287 # Same as above, but a single script fragment to be evaled but not shown.
18288 finish_eval=$lt_finish_eval
18290 # Take the output of nm and produce a listing of raw symbols and C names.
18291 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18293 # Transform the output of nm in a proper C declaration
18294 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18296 # Transform the output of nm in a C name address pair
18297 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18299 # This is the shared library runtime path variable.
18300 runpath_var=$runpath_var
18302 # This is the shared library path variable.
18303 shlibpath_var=$shlibpath_var
18305 # Is shlibpath searched before the hard-coded library search path?
18306 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18308 # How to hardcode a shared library path into an executable.
18309 hardcode_action=$hardcode_action
18311 # Whether we should hardcode library paths into libraries.
18312 hardcode_into_libs=$hardcode_into_libs
18314 # Flag to hardcode \$libdir into a binary during linking.
18315 # This must work even if \$libdir does not exist.
18316 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18318 # If ld is used when linking, flag to hardcode \$libdir into
18319 # a binary during linking. This must work even if \$libdir does
18321 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18323 # Whether we need a single -rpath flag with a separated argument.
18324 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18326 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18327 # resulting binary.
18328 hardcode_direct=$hardcode_direct
18330 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18331 # resulting binary.
18332 hardcode_minus_L=$hardcode_minus_L
18334 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18335 # the resulting binary.
18336 hardcode_shlibpath_var=$hardcode_shlibpath_var
18338 # Set to yes if building a shared library automatically hardcodes DIR into the library
18339 # and all subsequent libraries and executables linked against it.
18340 hardcode_automatic=$hardcode_automatic
18342 # Variables whose values should be saved in libtool wrapper scripts and
18343 # restored at relink time.
18344 variables_saved_for_relink="$variables_saved_for_relink"
18346 # Whether libtool must link a program against all its dependency libraries.
18347 link_all_deplibs=$link_all_deplibs
18349 # Compile-time system search path for libraries
18350 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18352 # Run-time system search path for libraries
18353 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18355 # Fix the shell variable \$srcfile for the compiler.
18356 fix_srcfile_path="$fix_srcfile_path"
18358 # Set to yes if exported symbols are required.
18359 always_export_symbols=$always_export_symbols
18361 # The commands to list exported symbols.
18362 export_symbols_cmds=$lt_export_symbols_cmds
18364 # The commands to extract the exported symbol list from a shared archive.
18365 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18367 # Symbols that should not be listed in the preloaded symbols.
18368 exclude_expsyms=$lt_exclude_expsyms
18370 # Symbols that must always be exported.
18371 include_expsyms=$lt_include_expsyms
18373 # ### END LIBTOOL CONFIG
18380 cat <<\EOF >> "$cfgfile"
18382 # AIX sometimes has problems with the GCC collect2 program. For some
18383 # reason, if we set the COLLECT_NAMES environment variable, the problems
18384 # vanish in a puff of smoke.
18385 if test "X${COLLECT_NAMES+set}" != Xset; then
18387 export COLLECT_NAMES
18393 # We use sed instead of cat because bash on DJGPP gets confused if
18394 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18395 # text mode, it properly converts lines to CR/LF. This bash problem
18396 # is reportedly fixed, but why not run on old versions too?
18397 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18399 mv -f "$cfgfile" "$ofile" || \
18400 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18404 # If there is no Makefile yet, we rely on a make rule to execute
18405 # `config.status --recheck' to rerun these tests and create the
18406 # libtool script then.
18407 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18408 if test -f "$ltmain_in"; then
18409 test -f Makefile && make "$ltmain"
18415 ac_cpp='$CPP $CPPFLAGS'
18416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18423 # Check whether --with-tags was given.
18424 if test "${with_tags+set}" = set; then
18425 withval=$with_tags; tagnames="$withval"
18429 if test -f "$ltmain" && test -n "$tagnames"; then
18430 if test ! -f "${ofile}"; then
18431 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18432 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18435 if test -z "$LTCC"; then
18436 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18437 if test -z "$LTCC"; then
18438 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18439 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18441 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18442 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18445 if test -z "$LTCFLAGS"; then
18446 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18449 # Extract list of available tagged configurations in $ofile.
18450 # Note that this assumes the entire list is on one line.
18451 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18453 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18454 for tagname in $tagnames; do
18456 # Check whether tagname contains only valid characters
18457 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18459 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18460 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18461 { (exit 1); exit 1; }; }
18465 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18467 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18468 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18469 { (exit 1); exit 1; }; }
18472 # Update the list of available tags.
18473 if test -n "$tagname"; then
18474 echo appending configuration tag \"$tagname\" to $ofile
18478 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18479 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18480 (test "X$CXX" != "Xg++"))) ; then
18482 ac_cpp='$CXXCPP $CPPFLAGS'
18483 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18484 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18485 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18490 archive_cmds_need_lc_CXX=no
18491 allow_undefined_flag_CXX=
18492 always_export_symbols_CXX=no
18493 archive_expsym_cmds_CXX=
18494 export_dynamic_flag_spec_CXX=
18495 hardcode_direct_CXX=no
18496 hardcode_libdir_flag_spec_CXX=
18497 hardcode_libdir_flag_spec_ld_CXX=
18498 hardcode_libdir_separator_CXX=
18499 hardcode_minus_L_CXX=no
18500 hardcode_shlibpath_var_CXX=unsupported
18501 hardcode_automatic_CXX=no
18503 module_expsym_cmds_CXX=
18504 link_all_deplibs_CXX=unknown
18505 old_archive_cmds_CXX=$old_archive_cmds
18506 no_undefined_flag_CXX=
18507 whole_archive_flag_spec_CXX=
18508 enable_shared_with_static_runtimes_CXX=no
18510 # Dependencies to place before and after the object being linked:
18511 predep_objects_CXX=
18512 postdep_objects_CXX=
18515 compiler_lib_search_path_CXX=
18517 # Source file extension for C++ test sources.
18520 # Object file extension for compiled C++ test sources.
18524 # Code to be used in simple compile tests
18525 lt_simple_compile_test_code="int some_variable = 0;\n"
18527 # Code to be used in simple link tests
18528 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18530 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18532 # If no C compiler was specified, use CC.
18535 # If no C compiler flags were specified, use CFLAGS.
18536 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18538 # Allow CC to be a program name with arguments.
18542 # save warnings/boilerplate of simple test code
18543 ac_outfile=conftest.$ac_objext
18544 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18545 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18546 _lt_compiler_boilerplate=`cat conftest.err`
18549 ac_outfile=conftest.$ac_objext
18550 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18551 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18552 _lt_linker_boilerplate=`cat conftest.err`
18556 # Allow CC to be a program name with arguments.
18561 lt_save_with_gnu_ld=$with_gnu_ld
18562 lt_save_path_LD=$lt_cv_path_LD
18563 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18564 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18566 $as_unset lt_cv_prog_gnu_ld
18568 if test -n "${lt_cv_path_LDCXX+set}"; then
18569 lt_cv_path_LD=$lt_cv_path_LDCXX
18571 $as_unset lt_cv_path_LD
18573 test -z "${LDCXX+set}" || LD=$LDCXX
18577 for cc_temp in $compiler""; do
18579 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18580 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18585 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18588 # We don't want -fno-exception wen compiling C++ code, so set the
18589 # no_builtin_flag separately
18590 if test "$GXX" = yes; then
18591 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18593 lt_prog_compiler_no_builtin_flag_CXX=
18596 if test "$GXX" = yes; then
18597 # Set up default GNU C++ configuration
18600 # Check whether --with-gnu-ld was given.
18601 if test "${with_gnu_ld+set}" = set; then
18602 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18608 if test "$GCC" = yes; then
18609 # Check if gcc -print-prog-name=ld gives a path.
18610 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18611 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18614 # gcc leaves a trailing carriage return which upsets mingw
18615 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18617 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18620 # Accept absolute paths.
18622 re_direlt='/[^/][^/]*/\.\./'
18623 # Canonicalize the pathname of ld
18624 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18625 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18626 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18628 test -z "$LD" && LD="$ac_prog"
18631 # If it fails, then pretend we aren't using GCC.
18635 # If it is relative, then search for the first ld in PATH.
18636 with_gnu_ld=unknown
18639 elif test "$with_gnu_ld" = yes; then
18640 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18641 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18643 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18644 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18646 if test "${lt_cv_path_LD+set}" = set; then
18647 echo $ECHO_N "(cached) $ECHO_C" >&6
18649 if test -z "$LD"; then
18650 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18651 for ac_dir in $PATH; do
18653 test -z "$ac_dir" && ac_dir=.
18654 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18655 lt_cv_path_LD="$ac_dir/$ac_prog"
18656 # Check to see if the program is GNU ld. I'd rather use --version,
18657 # but apparently some variants of GNU ld only accept -v.
18658 # Break only if it was the GNU/non-GNU ld that we prefer.
18659 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18660 *GNU* | *'with BFD'*)
18661 test "$with_gnu_ld" != no && break
18664 test "$with_gnu_ld" != yes && break
18671 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18675 LD="$lt_cv_path_LD"
18676 if test -n "$LD"; then
18677 { echo "$as_me:$LINENO: result: $LD" >&5
18678 echo "${ECHO_T}$LD" >&6; }
18680 { echo "$as_me:$LINENO: result: no" >&5
18681 echo "${ECHO_T}no" >&6; }
18683 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18684 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18685 { (exit 1); exit 1; }; }
18686 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18687 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18688 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18689 echo $ECHO_N "(cached) $ECHO_C" >&6
18691 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18692 case `$LD -v 2>&1 </dev/null` in
18693 *GNU* | *'with BFD'*)
18694 lt_cv_prog_gnu_ld=yes
18697 lt_cv_prog_gnu_ld=no
18701 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18702 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18703 with_gnu_ld=$lt_cv_prog_gnu_ld
18707 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18708 # archiving commands below assume that GNU ld is being used.
18709 if test "$with_gnu_ld" = yes; then
18710 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18711 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'
18713 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18714 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18716 # If archive_cmds runs LD, not CC, wlarc should be empty
18717 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18718 # investigate it a little bit more. (MM)
18721 # ancient GNU ld didn't support --whole-archive et. al.
18722 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18723 grep 'no-whole-archive' > /dev/null; then
18724 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18726 whole_archive_flag_spec_CXX=
18732 # A generic and very simple default shared library creation
18733 # command for GNU C++ for the case where it uses the native
18734 # linker, instead of GNU ld. If possible, this setting should
18735 # overridden to take advantage of the native linker features on
18736 # the platform it is being used on.
18737 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18740 # Commands to make compiler produce verbose output that lists
18741 # what "hidden" libraries, object files and flags are used when
18742 # linking a shared library.
18743 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18751 # PORTME: fill in a description of your system's C++ link characteristics
18752 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18753 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18757 # FIXME: insert proper C++ library support
18761 if test "$host_cpu" = ia64; then
18762 # On IA64, the linker does run time linking by default, so we don't
18763 # have to do anything special.
18764 aix_use_runtimelinking=no
18765 exp_sym_flag='-Bexport'
18768 aix_use_runtimelinking=no
18770 # Test if we are trying to use run time linking or normal
18771 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18772 # need to do runtime linking.
18773 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18774 for ld_flag in $LDFLAGS; do
18777 aix_use_runtimelinking=yes
18785 exp_sym_flag='-bexport'
18786 no_entry_flag='-bnoentry'
18789 # When large executables or shared objects are built, AIX ld can
18790 # have problems creating the table of contents. If linking a library
18791 # or program results in "error TOC overflow" add -mminimal-toc to
18792 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18793 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18795 archive_cmds_CXX=''
18796 hardcode_direct_CXX=yes
18797 hardcode_libdir_separator_CXX=':'
18798 link_all_deplibs_CXX=yes
18800 if test "$GXX" = yes; then
18801 case $host_os in aix4.[012]|aix4.[012].*)
18802 # We only want to do this on AIX 4.2 and lower, the check
18803 # below for broken collect2 doesn't work under 4.3+
18804 collect2name=`${CC} -print-prog-name=collect2`
18805 if test -f "$collect2name" && \
18806 strings "$collect2name" | grep resolve_lib_name >/dev/null
18808 # We have reworked collect2
18809 hardcode_direct_CXX=yes
18811 # We have old collect2
18812 hardcode_direct_CXX=unsupported
18813 # It fails to find uninstalled libraries when the uninstalled
18814 # path is not listed in the libpath. Setting hardcode_minus_L
18815 # to unsupported forces relinking
18816 hardcode_minus_L_CXX=yes
18817 hardcode_libdir_flag_spec_CXX='-L$libdir'
18818 hardcode_libdir_separator_CXX=
18822 shared_flag='-shared'
18823 if test "$aix_use_runtimelinking" = yes; then
18824 shared_flag="$shared_flag "'${wl}-G'
18828 if test "$host_cpu" = ia64; then
18829 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18830 # chokes on -Wl,-G. The following line is correct:
18833 if test "$aix_use_runtimelinking" = yes; then
18834 shared_flag='${wl}-G'
18836 shared_flag='${wl}-bM:SRE'
18841 # It seems that -bexpall does not export symbols beginning with
18842 # underscore (_), so it is better to generate a list of symbols to export.
18843 always_export_symbols_CXX=yes
18844 if test "$aix_use_runtimelinking" = yes; then
18845 # Warning - without using the other runtime loading flags (-brtl),
18846 # -berok will link without error, but may produce a broken library.
18847 allow_undefined_flag_CXX='-berok'
18848 # Determine the default libpath from the value encoded in an empty executable.
18849 cat >conftest.$ac_ext <<_ACEOF
18852 cat confdefs.h >>conftest.$ac_ext
18853 cat >>conftest.$ac_ext <<_ACEOF
18854 /* end confdefs.h. */
18864 rm -f conftest.$ac_objext conftest$ac_exeext
18865 if { (ac_try="$ac_link"
18866 case "(($ac_try" in
18867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868 *) ac_try_echo=$ac_try;;
18870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871 (eval "$ac_link") 2>conftest.er1
18873 grep -v '^ *+' conftest.er1 >conftest.err
18875 cat conftest.err >&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } &&
18878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18879 { (case "(($ac_try" in
18880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881 *) ac_try_echo=$ac_try;;
18883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884 (eval "$ac_try") 2>&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; } &&
18888 { ac_try='test -s conftest$ac_exeext'
18889 { (case "(($ac_try" in
18890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891 *) ac_try_echo=$ac_try;;
18893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894 (eval "$ac_try") 2>&5
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; }; then
18899 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18901 # Check for a 64-bit object if we didn't find anything.
18902 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; }
18905 echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18911 rm -f core conftest.err conftest.$ac_objext \
18912 conftest$ac_exeext conftest.$ac_ext
18913 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18915 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18917 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"
18919 if test "$host_cpu" = ia64; then
18920 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18921 allow_undefined_flag_CXX="-z nodefs"
18922 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"
18924 # Determine the default libpath from the value encoded in an empty executable.
18925 cat >conftest.$ac_ext <<_ACEOF
18928 cat confdefs.h >>conftest.$ac_ext
18929 cat >>conftest.$ac_ext <<_ACEOF
18930 /* end confdefs.h. */
18940 rm -f conftest.$ac_objext conftest$ac_exeext
18941 if { (ac_try="$ac_link"
18942 case "(($ac_try" in
18943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18944 *) ac_try_echo=$ac_try;;
18946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18947 (eval "$ac_link") 2>conftest.er1
18949 grep -v '^ *+' conftest.er1 >conftest.err
18951 cat conftest.err >&5
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); } &&
18954 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18955 { (case "(($ac_try" in
18956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957 *) ac_try_echo=$ac_try;;
18959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18960 (eval "$ac_try") 2>&5
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); }; } &&
18964 { ac_try='test -s conftest$ac_exeext'
18965 { (case "(($ac_try" in
18966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18967 *) ac_try_echo=$ac_try;;
18969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18970 (eval "$ac_try") 2>&5
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); }; }; then
18975 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18977 # Check for a 64-bit object if we didn't find anything.
18978 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; }
18981 echo "$as_me: failed program was:" >&5
18982 sed 's/^/| /' conftest.$ac_ext >&5
18987 rm -f core conftest.err conftest.$ac_objext \
18988 conftest$ac_exeext conftest.$ac_ext
18989 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18991 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18992 # Warning - without using the other run time loading flags,
18993 # -berok will link without error, but may produce a broken library.
18994 no_undefined_flag_CXX=' ${wl}-bernotok'
18995 allow_undefined_flag_CXX=' ${wl}-berok'
18996 # Exported symbols can be pulled into shared objects from archives
18997 whole_archive_flag_spec_CXX='$convenience'
18998 archive_cmds_need_lc_CXX=yes
18999 # This is similar to how AIX traditionally builds its shared libraries.
19000 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'
19006 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19007 allow_undefined_flag_CXX=unsupported
19008 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19009 # support --undefined. This deserves some investigation. FIXME
19010 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19017 case $cc_basename in
19019 # FIXME: insert proper C++ library support
19025 cygwin* | mingw* | pw32*)
19026 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19027 # as there is no search path for DLLs.
19028 hardcode_libdir_flag_spec_CXX='-L$libdir'
19029 allow_undefined_flag_CXX=unsupported
19030 always_export_symbols_CXX=no
19031 enable_shared_with_static_runtimes_CXX=yes
19033 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19034 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'
19035 # If the export-symbols file already is a .def file (1st line
19036 # is EXPORTS), use it as is; otherwise, prepend...
19037 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19038 cp $export_symbols $output_objdir/$soname.def;
19040 echo EXPORTS > $output_objdir/$soname.def;
19041 cat $export_symbols >> $output_objdir/$soname.def;
19043 $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'
19048 darwin* | rhapsody*)
19050 rhapsody* | darwin1.[012])
19051 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19054 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19055 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19057 case ${MACOSX_DEPLOYMENT_TARGET} in
19059 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19062 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19068 archive_cmds_need_lc_CXX=no
19069 hardcode_direct_CXX=no
19070 hardcode_automatic_CXX=yes
19071 hardcode_shlibpath_var_CXX=unsupported
19072 whole_archive_flag_spec_CXX=''
19073 link_all_deplibs_CXX=yes
19075 if test "$GXX" = yes ; then
19076 lt_int_apple_cc_single_mod=no
19077 output_verbose_link_cmd='echo'
19078 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19079 lt_int_apple_cc_single_mod=yes
19081 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19082 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19084 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'
19086 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19087 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19088 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19089 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}'
19091 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}'
19093 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}'
19095 case $cc_basename in
19097 output_verbose_link_cmd='echo'
19098 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'
19099 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19100 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19101 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}'
19102 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}'
19112 case $cc_basename in
19114 # FIXME: insert proper C++ library support
19118 # Green Hills C++ Compiler
19119 # FIXME: insert proper C++ library support
19123 # FIXME: insert proper C++ library support
19129 # C++ shared libraries reported to be fairly broken before switch to ELF
19133 archive_cmds_need_lc_CXX=no
19135 freebsd* | kfreebsd*-gnu | dragonfly*)
19136 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19143 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19144 hardcode_libdir_separator_CXX=:
19145 export_dynamic_flag_spec_CXX='${wl}-E'
19146 hardcode_direct_CXX=yes
19147 hardcode_minus_L_CXX=yes # Not in the search PATH,
19148 # but as the default
19149 # location of the library.
19151 case $cc_basename in
19153 # FIXME: insert proper C++ library support
19157 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'
19158 # Commands to make compiler produce verbose output that lists
19159 # what "hidden" libraries, object files and flags are used when
19160 # linking a shared library.
19162 # There doesn't appear to be a way to prevent this compiler from
19163 # explicitly linking system object files so we need to strip them
19164 # from the output so that they don't get included in the library
19166 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'
19169 if test "$GXX" = yes; then
19170 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'
19172 # FIXME: insert proper C++ library support
19179 if test $with_gnu_ld = no; then
19180 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19181 hardcode_libdir_separator_CXX=:
19185 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19188 export_dynamic_flag_spec_CXX='${wl}-E'
19194 hardcode_direct_CXX=no
19195 hardcode_shlibpath_var_CXX=no
19198 hardcode_direct_CXX=yes
19199 hardcode_minus_L_CXX=yes # Not in the search PATH,
19200 # but as the default
19201 # location of the library.
19205 case $cc_basename in
19207 # FIXME: insert proper C++ library support
19213 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19216 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19219 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19222 # Commands to make compiler produce verbose output that lists
19223 # what "hidden" libraries, object files and flags are used when
19224 # linking a shared library.
19226 # There doesn't appear to be a way to prevent this compiler from
19227 # explicitly linking system object files so we need to strip them
19228 # from the output so that they don't get included in the library
19230 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'
19233 if test "$GXX" = yes; then
19234 if test $with_gnu_ld = no; then
19237 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19240 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19243 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'
19248 # FIXME: insert proper C++ library support
19255 hardcode_direct_CXX=no
19256 hardcode_shlibpath_var_CXX=no
19257 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19258 export_dynamic_flag_spec_CXX='${wl}-E'
19259 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19260 # Instead, shared libraries are loaded at an image base (0x10000000 by
19261 # default) and relocated if they conflict, which is a slow very memory
19262 # consuming and fragmenting process. To avoid this, we pick a random,
19263 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19264 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19265 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'
19266 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'
19269 case $cc_basename in
19272 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'
19274 # Archives containing C++ object files must be created using
19275 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19276 # necessary to make sure instantiated templates are included
19278 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19281 if test "$GXX" = yes; then
19282 if test "$with_gnu_ld" = no; then
19283 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'
19285 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'
19288 link_all_deplibs_CXX=yes
19291 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19292 hardcode_libdir_separator_CXX=:
19295 case $cc_basename in
19297 # Kuck and Associates, Inc. (KAI) C++ Compiler
19299 # KCC will only create a shared library if the output file
19300 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19301 # to its proper name (with version) after linking.
19302 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'
19303 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'
19304 # Commands to make compiler produce verbose output that lists
19305 # what "hidden" libraries, object files and flags are used when
19306 # linking a shared library.
19308 # There doesn't appear to be a way to prevent this compiler from
19309 # explicitly linking system object files so we need to strip them
19310 # from the output so that they don't get included in the library
19312 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'
19314 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19315 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19317 # Archives containing C++ object files must be created using
19318 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19319 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19324 # version 8.0 and above of icpc choke on multiply defined symbols
19325 # if we add $predep_objects and $postdep_objects, however 7.1 and
19326 # earlier do not add the objects themselves.
19327 case `$CC -V 2>&1` in
19329 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19330 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'
19332 *) # Version 8.0 or newer
19335 ia64*) tmp_idyn=' -i_dynamic';;
19337 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19338 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'
19341 archive_cmds_need_lc_CXX=no
19342 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19343 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19344 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19347 # Portland Group C++ compiler
19348 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19349 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'
19351 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19352 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19353 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'
19357 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19358 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'
19360 runpath_var=LD_RUN_PATH
19361 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19362 hardcode_libdir_separator_CXX=:
19364 # Commands to make compiler produce verbose output that lists
19365 # what "hidden" libraries, object files and flags are used when
19366 # linking a shared library.
19368 # There doesn't appear to be a way to prevent this compiler from
19369 # explicitly linking system object files so we need to strip them
19370 # from the output so that they don't get included in the library
19372 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'
19377 # FIXME: insert proper C++ library support
19381 # FIXME: insert proper C++ library support
19385 case $cc_basename in
19387 # FIXME: insert proper C++ library support
19391 # FIXME: insert proper C++ library support
19397 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19398 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19400 hardcode_libdir_flag_spec_CXX='-R$libdir'
19401 hardcode_direct_CXX=yes
19402 hardcode_shlibpath_var_CXX=no
19404 # Workaround some broken pre-1.5 toolchains
19405 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19408 # C++ shared libraries are fairly broken
19412 hardcode_direct_CXX=yes
19413 hardcode_shlibpath_var_CXX=no
19414 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19415 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19416 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19417 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19418 export_dynamic_flag_spec_CXX='${wl}-E'
19419 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19421 output_verbose_link_cmd='echo'
19424 case $cc_basename in
19426 # Kuck and Associates, Inc. (KAI) C++ Compiler
19428 # KCC will only create a shared library if the output file
19429 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19430 # to its proper name (with version) after linking.
19431 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'
19433 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19434 hardcode_libdir_separator_CXX=:
19436 # Archives containing C++ object files must be created using
19437 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19438 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19442 # Rational C++ 2.4.1
19443 # FIXME: insert proper C++ library support
19447 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19448 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'
19450 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19451 hardcode_libdir_separator_CXX=:
19453 # Commands to make compiler produce verbose output that lists
19454 # what "hidden" libraries, object files and flags are used when
19455 # linking a shared library.
19457 # There doesn't appear to be a way to prevent this compiler from
19458 # explicitly linking system object files so we need to strip them
19459 # from the output so that they don't get included in the library
19461 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'
19464 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19465 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19466 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'
19468 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19469 hardcode_libdir_separator_CXX=:
19471 # Commands to make compiler produce verbose output that lists
19472 # what "hidden" libraries, object files and flags are used when
19473 # linking a shared library.
19474 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19477 # FIXME: insert proper C++ library support
19484 case $cc_basename in
19486 # Kuck and Associates, Inc. (KAI) C++ Compiler
19488 # KCC will only create a shared library if the output file
19489 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19490 # to its proper name (with version) after linking.
19491 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'
19493 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19494 hardcode_libdir_separator_CXX=:
19496 # Archives containing C++ object files must be created using
19497 # the KAI C++ compiler.
19498 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19501 # Rational C++ 2.4.1
19502 # FIXME: insert proper C++ library support
19506 allow_undefined_flag_CXX=' -expect_unresolved \*'
19507 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'
19508 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19509 echo "-hidden">> $lib.exp~
19510 $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~
19513 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19514 hardcode_libdir_separator_CXX=:
19516 # Commands to make compiler produce verbose output that lists
19517 # what "hidden" libraries, object files and flags are used when
19518 # linking a shared library.
19520 # There doesn't appear to be a way to prevent this compiler from
19521 # explicitly linking system object files so we need to strip them
19522 # from the output so that they don't get included in the library
19524 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'
19527 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19528 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19529 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'
19531 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19532 hardcode_libdir_separator_CXX=:
19534 # Commands to make compiler produce verbose output that lists
19535 # what "hidden" libraries, object files and flags are used when
19536 # linking a shared library.
19537 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19540 # FIXME: insert proper C++ library support
19547 # FIXME: insert proper C++ library support
19551 case $cc_basename in
19554 # FIXME: insert proper C++ library support
19559 # FIXME: insert proper C++ library support
19563 # FIXME: insert proper C++ library support
19569 case $cc_basename in
19571 # Sun C++ 4.2, 5.x and Centerline C++
19572 archive_cmds_need_lc_CXX=yes
19573 no_undefined_flag_CXX=' -zdefs'
19574 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19575 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19576 $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'
19578 hardcode_libdir_flag_spec_CXX='-R$libdir'
19579 hardcode_shlibpath_var_CXX=no
19581 solaris2.[0-5] | solaris2.[0-5].*) ;;
19583 # The C++ compiler is used as linker so we must use $wl
19584 # flag to pass the commands to the underlying system
19585 # linker. We must also pass each convience library through
19586 # to the system linker between allextract/defaultextract.
19587 # The C++ compiler will combine linker options so we
19588 # cannot just pass the convience library names through
19590 # Supported since Solaris 2.6 (maybe 2.5.1?)
19591 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'
19594 link_all_deplibs_CXX=yes
19596 output_verbose_link_cmd='echo'
19598 # Archives containing C++ object files must be created using
19599 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19600 # necessary to make sure instantiated templates are included
19602 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19605 # Green Hills C++ Compiler
19606 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19608 # The C++ compiler must be used to create the archive.
19609 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19612 # GNU C++ compiler with Solaris linker
19613 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19614 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19615 if $CC --version | grep -v '^2\.7' > /dev/null; then
19616 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19617 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19618 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19620 # Commands to make compiler produce verbose output that lists
19621 # what "hidden" libraries, object files and flags are used when
19622 # linking a shared library.
19623 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19625 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19627 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19628 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19629 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19631 # Commands to make compiler produce verbose output that lists
19632 # what "hidden" libraries, object files and flags are used when
19633 # linking a shared library.
19634 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19637 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19642 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19643 no_undefined_flag_CXX='${wl}-z,text'
19644 archive_cmds_need_lc_CXX=no
19645 hardcode_shlibpath_var_CXX=no
19646 runpath_var='LD_RUN_PATH'
19648 case $cc_basename in
19650 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19651 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19654 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19655 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19659 sysv5* | sco3.2v5* | sco5v6*)
19660 # Note: We can NOT use -z defs as we might desire, because we do not
19661 # link with -lc, and that would cause any symbols used from libc to
19662 # always be unresolved, which means just about no library would
19663 # ever link correctly. If we're not using GNU ld we use -z text
19664 # though, which does catch some bad symbols but isn't as heavy-handed
19666 # For security reasons, it is highly recommended that you always
19667 # use absolute paths for naming shared libraries, and exclude the
19668 # DT_RUNPATH tag from executables and libraries. But doing so
19669 # requires that you compile everything twice, which is a pain.
19670 # So that behaviour is only enabled if SCOABSPATH is set to a
19671 # non-empty value in the environment. Most likely only useful for
19672 # creating official distributions of packages.
19673 # This is a hack until libtool officially supports absolute path
19674 # names for shared libraries.
19675 no_undefined_flag_CXX='${wl}-z,text'
19676 allow_undefined_flag_CXX='${wl}-z,nodefs'
19677 archive_cmds_need_lc_CXX=no
19678 hardcode_shlibpath_var_CXX=no
19679 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19680 hardcode_libdir_separator_CXX=':'
19681 link_all_deplibs_CXX=yes
19682 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19683 runpath_var='LD_RUN_PATH'
19685 case $cc_basename in
19687 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19688 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19691 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19692 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19697 case $cc_basename in
19699 # NonStop-UX NCC 3.20
19700 # FIXME: insert proper C++ library support
19704 # FIXME: insert proper C++ library support
19710 # FIXME: insert proper C++ library support
19714 # FIXME: insert proper C++ library support
19718 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19719 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19720 test "$ld_shlibs_CXX" = no && can_build_shared=no
19726 cat > conftest.$ac_ext <<EOF
19730 Foo (void) { a = 0; }
19736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19737 (eval $ac_compile) 2>&5
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); }; then
19741 # Parse the compiler output and extract the necessary
19742 # objects, libraries and library flags.
19744 # Sentinel used to keep track of whether or not we are before
19745 # the conftest object file.
19746 pre_test_object_deps_done=no
19748 # The `*' in the case matches for architectures that use `case' in
19749 # $output_verbose_cmd can trigger glob expansion during the loop
19750 # eval without this substitution.
19751 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19753 for p in `eval $output_verbose_link_cmd`; do
19757 # Some compilers place space between "-{L,R}" and the path.
19758 # Remove the space.
19759 if test $p = "-L" \
19760 || test $p = "-R"; then
19767 if test "$pre_test_object_deps_done" = no; then
19770 # Internal compiler library paths should come after those
19771 # provided the user. The postdeps already come after the
19772 # user supplied libs so there is no need to process them.
19773 if test -z "$compiler_lib_search_path_CXX"; then
19774 compiler_lib_search_path_CXX="${prev}${p}"
19776 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19779 # The "-l" case would never come before the object being
19780 # linked, so don't bother handling this case.
19783 if test -z "$postdeps_CXX"; then
19784 postdeps_CXX="${prev}${p}"
19786 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19792 # This assumes that the test object file only shows up
19793 # once in the compiler output.
19794 if test "$p" = "conftest.$objext"; then
19795 pre_test_object_deps_done=yes
19799 if test "$pre_test_object_deps_done" = no; then
19800 if test -z "$predep_objects_CXX"; then
19801 predep_objects_CXX="$p"
19803 predep_objects_CXX="$predep_objects_CXX $p"
19806 if test -z "$postdep_objects_CXX"; then
19807 postdep_objects_CXX="$p"
19809 postdep_objects_CXX="$postdep_objects_CXX $p"
19814 *) ;; # Ignore the rest.
19822 echo "libtool.m4: error: problem compiling CXX test program"
19825 $rm -f confest.$objext
19827 # PORTME: override above test on systems where it is broken
19830 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19831 # hack all around it, let's just trust "g++" to DTRT.
19832 predep_objects_CXX=
19833 postdep_objects_CXX=
19838 case $cc_basename in
19840 # Adding this requires a known-good setup of shared libraries for
19841 # Sun compiler versions before 5.6, else PIC objects from an old
19842 # archive will be linked into the output, leading to subtle bugs.
19843 postdeps_CXX='-lCstd -lCrun'
19850 case " $postdeps_CXX " in
19851 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19854 lt_prog_compiler_wl_CXX=
19855 lt_prog_compiler_pic_CXX=
19856 lt_prog_compiler_static_CXX=
19858 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19859 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19861 # C++ specific cases for pic, static, wl, etc.
19862 if test "$GXX" = yes; then
19863 lt_prog_compiler_wl_CXX='-Wl,'
19864 lt_prog_compiler_static_CXX='-static'
19868 # All AIX code is PIC.
19869 if test "$host_cpu" = ia64; then
19870 # AIX 5 now supports IA64 processor
19871 lt_prog_compiler_static_CXX='-Bstatic'
19875 # FIXME: we need at least 68020 code to build shared libraries, but
19876 # adding the `-m68020' flag to GCC prevents building anything better,
19878 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19880 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19881 # PIC is the default for these OSes.
19883 mingw* | os2* | pw32*)
19884 # This hack is so that the source file can tell whether it is being
19885 # built for inclusion in a dll (and should export symbols for example).
19886 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19888 darwin* | rhapsody*)
19889 # PIC is the default on this platform
19890 # Common symbols not allowed in MH_DYLIB files
19891 lt_prog_compiler_pic_CXX='-fno-common'
19894 # DJGPP does not support shared libraries at all
19895 lt_prog_compiler_pic_CXX=
19898 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19899 # Instead, we relocate shared libraries at runtime.
19902 if test -d /usr/nec; then
19903 lt_prog_compiler_pic_CXX=-Kconform_pic
19907 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19908 # not for PA HP-UX.
19913 lt_prog_compiler_pic_CXX='-fPIC'
19918 lt_prog_compiler_pic_CXX='-fPIC'
19924 # All AIX code is PIC.
19925 if test "$host_cpu" = ia64; then
19926 # AIX 5 now supports IA64 processor
19927 lt_prog_compiler_static_CXX='-Bstatic'
19929 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19933 case $cc_basename in
19935 # Green Hills C++ Compiler
19936 # _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"
19941 # PIC is the default on this platform
19942 # Common symbols not allowed in MH_DYLIB files
19943 case $cc_basename in
19945 lt_prog_compiler_pic_CXX='-qnocommon'
19946 lt_prog_compiler_wl_CXX='-Wl,'
19951 case $cc_basename in
19953 lt_prog_compiler_pic_CXX='-KPIC'
19956 # Green Hills C++ Compiler
19957 lt_prog_compiler_pic_CXX='-pic'
19963 freebsd* | kfreebsd*-gnu | dragonfly*)
19964 # FreeBSD uses GNU C++
19966 hpux9* | hpux10* | hpux11*)
19967 case $cc_basename in
19969 lt_prog_compiler_wl_CXX='-Wl,'
19970 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19971 if test "$host_cpu" != ia64; then
19972 lt_prog_compiler_pic_CXX='+Z'
19976 lt_prog_compiler_wl_CXX='-Wl,'
19977 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19983 lt_prog_compiler_pic_CXX='+Z'
19992 # This is c89, which is MS Visual C++ (no shared libs)
19993 # Anyone wants to do a port?
19995 irix5* | irix6* | nonstopux*)
19996 case $cc_basename in
19998 lt_prog_compiler_wl_CXX='-Wl,'
19999 lt_prog_compiler_static_CXX='-non_shared'
20000 # CC pic flag -KPIC is the default.
20007 case $cc_basename in
20010 lt_prog_compiler_wl_CXX='--backend -Wl,'
20011 lt_prog_compiler_pic_CXX='-fPIC'
20015 lt_prog_compiler_wl_CXX='-Wl,'
20016 lt_prog_compiler_pic_CXX='-KPIC'
20017 lt_prog_compiler_static_CXX='-static'
20020 # Portland Group C++ compiler.
20021 lt_prog_compiler_wl_CXX='-Wl,'
20022 lt_prog_compiler_pic_CXX='-fpic'
20023 lt_prog_compiler_static_CXX='-Bstatic'
20027 # Make sure the PIC flag is empty. It appears that all Alpha
20028 # Linux and Compaq Tru64 Unix objects are PIC.
20029 lt_prog_compiler_pic_CXX=
20030 lt_prog_compiler_static_CXX='-non_shared'
20041 case $cc_basename in
20043 lt_prog_compiler_pic_CXX='-W c,exportall'
20051 osf3* | osf4* | osf5*)
20052 case $cc_basename in
20054 lt_prog_compiler_wl_CXX='--backend -Wl,'
20057 # Rational C++ 2.4.1
20058 lt_prog_compiler_pic_CXX='-pic'
20061 # Digital/Compaq C++
20062 lt_prog_compiler_wl_CXX='-Wl,'
20063 # Make sure the PIC flag is empty. It appears that all Alpha
20064 # Linux and Compaq Tru64 Unix objects are PIC.
20065 lt_prog_compiler_pic_CXX=
20066 lt_prog_compiler_static_CXX='-non_shared'
20075 case $cc_basename in
20077 # Sun C++ 4.2, 5.x and Centerline C++
20078 lt_prog_compiler_pic_CXX='-KPIC'
20079 lt_prog_compiler_static_CXX='-Bstatic'
20080 lt_prog_compiler_wl_CXX='-Qoption ld '
20083 # Green Hills C++ Compiler
20084 lt_prog_compiler_pic_CXX='-PIC'
20091 case $cc_basename in
20094 lt_prog_compiler_pic_CXX='-pic'
20095 lt_prog_compiler_static_CXX='-Bstatic'
20099 lt_prog_compiler_pic_CXX='-pic'
20106 case $cc_basename in
20108 # NonStop-UX NCC 3.20
20109 lt_prog_compiler_pic_CXX='-KPIC'
20115 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20116 case $cc_basename in
20118 lt_prog_compiler_wl_CXX='-Wl,'
20119 lt_prog_compiler_pic_CXX='-KPIC'
20120 lt_prog_compiler_static_CXX='-Bstatic'
20127 lt_prog_compiler_can_build_shared_CXX=no
20132 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20133 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20136 # Check to make sure the PIC flag actually works.
20138 if test -n "$lt_prog_compiler_pic_CXX"; then
20140 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20141 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20142 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20143 echo $ECHO_N "(cached) $ECHO_C" >&6
20145 lt_prog_compiler_pic_works_CXX=no
20146 ac_outfile=conftest.$ac_objext
20147 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20148 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20149 # Insert the option either (1) after the last *FLAGS variable, or
20150 # (2) before a word containing "conftest.", or (3) at the end.
20151 # Note that $ac_compile itself does not contain backslashes and begins
20152 # with a dollar sign (not a hyphen), so the echo should work correctly.
20153 # The option is referenced via a variable to avoid confusing sed.
20154 lt_compile=`echo "$ac_compile" | $SED \
20155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20157 -e 's:$: $lt_compiler_flag:'`
20158 (eval echo "\"\$as_me:20158: $lt_compile\"" >&5)
20159 (eval "$lt_compile" 2>conftest.err)
20161 cat conftest.err >&5
20162 echo "$as_me:20162: \$? = $ac_status" >&5
20163 if (exit $ac_status) && test -s "$ac_outfile"; then
20164 # The compiler can only warn and ignore the option if not recognized
20165 # So say no if there are warnings other than the usual output.
20166 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20168 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20169 lt_prog_compiler_pic_works_CXX=yes
20175 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20176 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20178 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20179 case $lt_prog_compiler_pic_CXX in
20181 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20184 lt_prog_compiler_pic_CXX=
20185 lt_prog_compiler_can_build_shared_CXX=no
20190 # For platforms which do not support PIC, -DPIC is meaningless:
20192 lt_prog_compiler_pic_CXX=
20195 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20200 # Check to make sure the static flag actually works.
20202 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20203 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20204 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20205 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20206 echo $ECHO_N "(cached) $ECHO_C" >&6
20208 lt_prog_compiler_static_works_CXX=no
20209 save_LDFLAGS="$LDFLAGS"
20210 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20211 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20212 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20213 # The linker can only warn and ignore the option if not recognized
20214 # So say no if there are warnings
20215 if test -s conftest.err; then
20216 # Append any errors to the config.log.
20217 cat conftest.err 1>&5
20218 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20219 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20220 if diff conftest.exp conftest.er2 >/dev/null; then
20221 lt_prog_compiler_static_works_CXX=yes
20224 lt_prog_compiler_static_works_CXX=yes
20228 LDFLAGS="$save_LDFLAGS"
20231 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20232 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20234 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20237 lt_prog_compiler_static_CXX=
20241 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20242 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20243 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20244 echo $ECHO_N "(cached) $ECHO_C" >&6
20246 lt_cv_prog_compiler_c_o_CXX=no
20247 $rm -r conftest 2>/dev/null
20251 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20253 lt_compiler_flag="-o out/conftest2.$ac_objext"
20254 # Insert the option either (1) after the last *FLAGS variable, or
20255 # (2) before a word containing "conftest.", or (3) at the end.
20256 # Note that $ac_compile itself does not contain backslashes and begins
20257 # with a dollar sign (not a hyphen), so the echo should work correctly.
20258 lt_compile=`echo "$ac_compile" | $SED \
20259 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20261 -e 's:$: $lt_compiler_flag:'`
20262 (eval echo "\"\$as_me:20262: $lt_compile\"" >&5)
20263 (eval "$lt_compile" 2>out/conftest.err)
20265 cat out/conftest.err >&5
20266 echo "$as_me:20266: \$? = $ac_status" >&5
20267 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20269 # The compiler can only warn and ignore the option if not recognized
20270 # So say no if there are warnings
20271 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20272 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20273 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20274 lt_cv_prog_compiler_c_o_CXX=yes
20279 # SGI C++ compiler will create directory out/ii_files/ for
20280 # template instantiation
20281 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20282 $rm out/* && rmdir out
20288 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20289 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20292 hard_links="nottested"
20293 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20294 # do not overwrite the value of need_locks provided by the user
20295 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20296 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20299 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20301 ln conftest.a conftest.b 2>&5 || hard_links=no
20302 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20303 { echo "$as_me:$LINENO: result: $hard_links" >&5
20304 echo "${ECHO_T}$hard_links" >&6; }
20305 if test "$hard_links" = no; then
20306 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20307 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20314 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20315 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20317 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20320 # If we're using GNU nm, then we don't want the "-C" option.
20321 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20322 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20323 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'
20325 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'
20329 export_symbols_cmds_CXX="$ltdll_cmds"
20332 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'
20335 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20339 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20340 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20341 test "$ld_shlibs_CXX" = no && can_build_shared=no
20344 # Do we need to explicitly link libc?
20346 case "x$archive_cmds_need_lc_CXX" in
20348 # Assume -lc should be added
20349 archive_cmds_need_lc_CXX=yes
20351 if test "$enable_shared" = yes && test "$GCC" = yes; then
20352 case $archive_cmds_CXX in
20354 # FIXME: we may have to deal with multi-command sequences.
20357 # Test whether the compiler implicitly links with -lc since on some
20358 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20359 # to ld, don't add -lc before -lgcc.
20360 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20361 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20363 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20366 (eval $ac_compile) 2>&5
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); } 2>conftest.err; then
20372 libobjs=conftest.$ac_objext
20374 wl=$lt_prog_compiler_wl_CXX
20375 pic_flag=$lt_prog_compiler_pic_CXX
20381 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20382 allow_undefined_flag_CXX=
20383 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20384 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); }
20389 archive_cmds_need_lc_CXX=no
20391 archive_cmds_need_lc_CXX=yes
20393 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20395 cat conftest.err 1>&5
20398 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20399 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20406 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20407 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20408 library_names_spec=
20409 libname_spec='lib$name'
20413 postuninstall_cmds=
20417 shlibpath_overrides_runpath=unknown
20419 dynamic_linker="$host_os ld.so"
20420 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20421 if test "$GCC" = yes; then
20422 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20423 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20424 # if the path contains ";" then we assume it to be the separator
20425 # otherwise default to the standard path separator (i.e. ":") - it is
20426 # assumed that no part of a normal pathname contains ";" but that should
20427 # okay in the real world where ";" in dirpaths is itself problematic.
20428 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20433 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20435 need_lib_prefix=unknown
20436 hardcode_into_libs=no
20438 # when you set need_version to no, make sure it does not cause -set_version
20439 # flags to be left without arguments
20440 need_version=unknown
20445 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20446 shlibpath_var=LIBPATH
20448 # AIX 3 has no versioning support, so we append a major version to the name.
20449 soname_spec='${libname}${release}${shared_ext}$major'
20456 hardcode_into_libs=yes
20457 if test "$host_cpu" = ia64; then
20458 # AIX 5 supports IA64
20459 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20460 shlibpath_var=LD_LIBRARY_PATH
20462 # With GCC up to 2.95.x, collect2 would create an import file
20463 # for dependence libraries. The import file would start with
20464 # the line `#! .'. This would cause the generated library to
20465 # depend on `.', always an invalid library. This was fixed in
20466 # development snapshots of GCC prior to 3.0.
20468 aix4 | aix4.[01] | aix4.[01].*)
20469 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20471 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20474 can_build_shared=no
20478 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20479 # soname into executable. Probably we can add versioning support to
20480 # collect2, so additional links can be useful in future.
20481 if test "$aix_use_runtimelinking" = yes; then
20482 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20483 # instead of lib<name>.a to let people know that these are not
20484 # typical AIX shared libraries.
20485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20487 # We preserve .a as extension for shared libraries through AIX4.2
20488 # and later when we are not doing run time linking.
20489 library_names_spec='${libname}${release}.a $libname.a'
20490 soname_spec='${libname}${release}${shared_ext}$major'
20492 shlibpath_var=LIBPATH
20497 library_names_spec='$libname.ixlibrary $libname.a'
20498 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20499 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'
20503 library_names_spec='${libname}${shared_ext}'
20504 dynamic_linker="$host_os ld.so"
20505 shlibpath_var=LIBRARY_PATH
20511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20512 soname_spec='${libname}${release}${shared_ext}$major'
20513 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20514 shlibpath_var=LD_LIBRARY_PATH
20515 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20516 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20517 # the default ld.so.conf also contains /usr/contrib/lib and
20518 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20519 # libtool to hard-code these into programs
20522 cygwin* | mingw* | pw32*)
20523 version_type=windows
20528 case $GCC,$host_os in
20529 yes,cygwin* | yes,mingw* | yes,pw32*)
20530 library_names_spec='$libname.dll.a'
20531 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20532 postinstall_cmds='base_file=`basename \${file}`~
20533 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20534 dldir=$destdir/`dirname \$dlpath`~
20535 test -d \$dldir || mkdir -p \$dldir~
20536 $install_prog $dir/$dlname \$dldir/$dlname~
20537 chmod a+x \$dldir/$dlname'
20538 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20539 dlpath=$dir/\$dldll~
20541 shlibpath_overrides_runpath=yes
20545 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20546 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20547 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20550 # MinGW DLLs use traditional 'lib' prefix
20551 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20552 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20553 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20554 # It is most probably a Windows format PATH printed by
20555 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20556 # path with ; separators, and with drive letters. We can handle the
20557 # drive letters (cygwin fileutils understands them), so leave them,
20558 # especially as we might pass files found there to a mingw objdump,
20559 # which wouldn't understand a cygwinified path. Ahh.
20560 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20562 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20566 # pw32 DLLs use 'pw' prefix rather than 'lib'
20567 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20573 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20576 dynamic_linker='Win32 ld.exe'
20577 # FIXME: first we should search . and the directory the executable is in
20581 darwin* | rhapsody*)
20582 dynamic_linker="$host_os dyld"
20583 version_type=darwin
20586 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20587 soname_spec='${libname}${release}${major}$shared_ext'
20588 shlibpath_overrides_runpath=yes
20589 shlibpath_var=DYLD_LIBRARY_PATH
20590 shrext_cmds='.dylib'
20591 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20592 if test "$GCC" = yes; then
20593 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"`
20595 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20597 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20605 soname_spec='${libname}${release}${shared_ext}$major'
20606 shlibpath_var=LD_LIBRARY_PATH
20617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20618 soname_spec='${libname}${release}${shared_ext}$major'
20619 shlibpath_var=LD_LIBRARY_PATH
20620 shlibpath_overrides_runpath=no
20621 hardcode_into_libs=yes
20622 dynamic_linker='GNU ld.so'
20625 freebsd* | dragonfly*)
20626 # DragonFly does not have aout. When/if they implement a new
20627 # versioning mechanism, adjust this.
20628 if test -x /usr/bin/objformat; then
20629 objformat=`/usr/bin/objformat`
20632 freebsd[123]*) objformat=aout ;;
20633 *) objformat=elf ;;
20636 version_type=freebsd-$objformat
20637 case $version_type in
20639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20644 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20648 shlibpath_var=LD_LIBRARY_PATH
20651 shlibpath_overrides_runpath=yes
20653 freebsd3.[01]* | freebsdelf3.[01]*)
20654 shlibpath_overrides_runpath=yes
20655 hardcode_into_libs=yes
20657 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20658 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20659 shlibpath_overrides_runpath=no
20660 hardcode_into_libs=yes
20662 freebsd*) # from 4.6 on
20663 shlibpath_overrides_runpath=yes
20664 hardcode_into_libs=yes
20673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20674 soname_spec='${libname}${release}${shared_ext}$major'
20675 shlibpath_var=LD_LIBRARY_PATH
20676 hardcode_into_libs=yes
20679 hpux9* | hpux10* | hpux11*)
20680 # Give a soname corresponding to the major version so that dld.sl refuses to
20681 # link against other versions.
20688 hardcode_into_libs=yes
20689 dynamic_linker="$host_os dld.so"
20690 shlibpath_var=LD_LIBRARY_PATH
20691 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20693 soname_spec='${libname}${release}${shared_ext}$major'
20694 if test "X$HPUX_IA64_MODE" = X32; then
20695 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20697 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20699 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20703 hardcode_into_libs=yes
20704 dynamic_linker="$host_os dld.sl"
20705 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20706 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20708 soname_spec='${libname}${release}${shared_ext}$major'
20709 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20710 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20714 dynamic_linker="$host_os dld.sl"
20715 shlibpath_var=SHLIB_PATH
20716 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20718 soname_spec='${libname}${release}${shared_ext}$major'
20721 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20722 postinstall_cmds='chmod 555 $lib'
20729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20730 soname_spec='${libname}${release}${shared_ext}$major'
20731 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20732 shlibpath_var=LD_LIBRARY_PATH
20733 shlibpath_overrides_runpath=no
20734 hardcode_into_libs=yes
20737 irix5* | irix6* | nonstopux*)
20739 nonstopux*) version_type=nonstopux ;;
20741 if test "$lt_cv_prog_gnu_ld" = yes; then
20749 soname_spec='${libname}${release}${shared_ext}$major'
20750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20752 irix5* | nonstopux*)
20753 libsuff= shlibsuff=
20756 case $LD in # libtool.m4 will add one of these switches to LD
20757 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20758 libsuff= shlibsuff= libmagic=32-bit;;
20759 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20760 libsuff=32 shlibsuff=N32 libmagic=N32;;
20761 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20762 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20763 *) libsuff= shlibsuff= libmagic=never-match;;
20767 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20768 shlibpath_overrides_runpath=no
20769 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20770 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20771 hardcode_into_libs=yes
20774 # No shared lib support for Linux oldld, aout, or coff.
20775 linux*oldld* | linux*aout* | linux*coff*)
20779 # This must be Linux ELF.
20784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20785 soname_spec='${libname}${release}${shared_ext}$major'
20786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20787 shlibpath_var=LD_LIBRARY_PATH
20788 shlibpath_overrides_runpath=no
20789 # This implies no fast_install, which is unacceptable.
20790 # Some rework will be needed to allow for fast_install
20791 # before this can be enabled.
20792 hardcode_into_libs=yes
20794 # Append ld.so.conf contents to the search path
20795 if test -f /etc/ld.so.conf; then
20796 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' ' '`
20797 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20800 # We used to test for /lib/ld.so.1 and disable shared libraries on
20801 # powerpc, because MkLinux only supported shared libraries with the
20802 # GNU dynamic linker. Since this was broken with cross compilers,
20803 # most powerpc-linux boxes support dynamic linking these days and
20804 # people can always --disable-shared, the test was removed, and we
20805 # assume the GNU/Linux dynamic linker is in use.
20806 dynamic_linker='GNU/Linux ld.so'
20813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20814 soname_spec='${libname}${release}${shared_ext}$major'
20815 shlibpath_var=LD_LIBRARY_PATH
20816 shlibpath_overrides_runpath=no
20817 hardcode_into_libs=yes
20818 dynamic_linker='GNU ld.so'
20825 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20828 dynamic_linker='NetBSD (a.out) ld.so'
20830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20831 soname_spec='${libname}${release}${shared_ext}$major'
20832 dynamic_linker='NetBSD ld.elf_so'
20834 shlibpath_var=LD_LIBRARY_PATH
20835 shlibpath_overrides_runpath=yes
20836 hardcode_into_libs=yes
20841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20842 shlibpath_var=LD_LIBRARY_PATH
20843 shlibpath_overrides_runpath=yes
20850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20851 soname_spec='${libname}${release}${shared_ext}$major'
20852 shlibpath_var=LD_LIBRARY_PATH
20853 shlibpath_overrides_runpath=yes
20858 sys_lib_dlsearch_path_spec="/usr/lib"
20860 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20862 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20863 *) need_version=no ;;
20865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20867 shlibpath_var=LD_LIBRARY_PATH
20868 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20870 openbsd2.[89] | openbsd2.[89].*)
20871 shlibpath_overrides_runpath=no
20874 shlibpath_overrides_runpath=yes
20878 shlibpath_overrides_runpath=yes
20883 libname_spec='$name'
20886 library_names_spec='$libname${shared_ext} $libname.a'
20887 dynamic_linker='OS/2 ld.exe'
20888 shlibpath_var=LIBPATH
20891 osf3* | osf4* | osf5*)
20895 soname_spec='${libname}${release}${shared_ext}$major'
20896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20897 shlibpath_var=LD_LIBRARY_PATH
20898 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20899 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20907 soname_spec='${libname}${release}${shared_ext}$major'
20908 shlibpath_var=LD_LIBRARY_PATH
20909 shlibpath_overrides_runpath=yes
20910 hardcode_into_libs=yes
20911 # ldd complains unless libraries are executable
20912 postinstall_cmds='chmod +x $lib'
20917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20918 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20919 shlibpath_var=LD_LIBRARY_PATH
20920 shlibpath_overrides_runpath=yes
20921 if test "$with_gnu_ld" = yes; then
20929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20930 soname_spec='${libname}${release}${shared_ext}$major'
20931 shlibpath_var=LD_LIBRARY_PATH
20932 case $host_vendor in
20934 shlibpath_overrides_runpath=no
20936 export_dynamic_flag_spec='${wl}-Blargedynsym'
20937 runpath_var=LD_RUN_PATH
20945 shlibpath_overrides_runpath=no
20946 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20952 if test -d /usr/nec ;then
20954 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20955 soname_spec='$libname${shared_ext}.$major'
20956 shlibpath_var=LD_LIBRARY_PATH
20960 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20961 version_type=freebsd-elf
20964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20965 soname_spec='${libname}${release}${shared_ext}$major'
20966 shlibpath_var=LD_LIBRARY_PATH
20967 hardcode_into_libs=yes
20968 if test "$with_gnu_ld" = yes; then
20969 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20970 shlibpath_overrides_runpath=no
20972 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20973 shlibpath_overrides_runpath=yes
20976 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20980 sys_lib_dlsearch_path_spec='/usr/lib'
20985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20986 soname_spec='${libname}${release}${shared_ext}$major'
20987 shlibpath_var=LD_LIBRARY_PATH
20994 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20995 echo "${ECHO_T}$dynamic_linker" >&6; }
20996 test "$dynamic_linker" = no && can_build_shared=no
20998 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20999 if test "$GCC" = yes; then
21000 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21003 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21004 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21005 hardcode_action_CXX=
21006 if test -n "$hardcode_libdir_flag_spec_CXX" || \
21007 test -n "$runpath_var_CXX" || \
21008 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21010 # We can hardcode non-existant directories.
21011 if test "$hardcode_direct_CXX" != no &&
21012 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21013 # have to relink, otherwise we might link with an installed library
21014 # when we should be linking with a yet-to-be-installed one
21015 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21016 test "$hardcode_minus_L_CXX" != no; then
21017 # Linking always hardcodes the temporary library directory.
21018 hardcode_action_CXX=relink
21020 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21021 hardcode_action_CXX=immediate
21024 # We cannot hardcode anything, or else we can only hardcode existing
21026 hardcode_action_CXX=unsupported
21028 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21029 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21031 if test "$hardcode_action_CXX" = relink; then
21032 # Fast installation is not supported
21033 enable_fast_install=no
21034 elif test "$shlibpath_overrides_runpath" = yes ||
21035 test "$enable_shared" = no; then
21036 # Fast installation is not necessary
21037 enable_fast_install=needless
21041 # The else clause should only fire when bootstrapping the
21042 # libtool distribution, otherwise you forgot to ship ltmain.sh
21043 # with your package, and you will get complaints that there are
21044 # no rules to generate ltmain.sh.
21045 if test -f "$ltmain"; then
21046 # See if we are running on zsh, and set the options which allow our commands through
21047 # without removal of \ escapes.
21048 if test -n "${ZSH_VERSION+set}" ; then
21049 setopt NO_GLOB_SUBST
21051 # Now quote all the things that may contain metacharacters while being
21052 # careful not to overquote the AC_SUBSTed values. We take copies of the
21053 # variables and quote the copies for generation of the libtool script.
21054 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21056 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21057 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21058 deplibs_check_method reload_flag reload_cmds need_locks \
21059 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21060 lt_cv_sys_global_symbol_to_c_name_address \
21061 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21062 old_postinstall_cmds old_postuninstall_cmds \
21066 lt_prog_compiler_wl_CXX \
21067 lt_prog_compiler_pic_CXX \
21068 lt_prog_compiler_static_CXX \
21069 lt_prog_compiler_no_builtin_flag_CXX \
21070 export_dynamic_flag_spec_CXX \
21071 thread_safe_flag_spec_CXX \
21072 whole_archive_flag_spec_CXX \
21073 enable_shared_with_static_runtimes_CXX \
21074 old_archive_cmds_CXX \
21075 old_archive_from_new_cmds_CXX \
21076 predep_objects_CXX \
21077 postdep_objects_CXX \
21080 compiler_lib_search_path_CXX \
21082 archive_expsym_cmds_CXX \
21083 postinstall_cmds_CXX \
21084 postuninstall_cmds_CXX \
21085 old_archive_from_expsyms_cmds_CXX \
21086 allow_undefined_flag_CXX \
21087 no_undefined_flag_CXX \
21088 export_symbols_cmds_CXX \
21089 hardcode_libdir_flag_spec_CXX \
21090 hardcode_libdir_flag_spec_ld_CXX \
21091 hardcode_libdir_separator_CXX \
21092 hardcode_automatic_CXX \
21094 module_expsym_cmds_CXX \
21095 lt_cv_prog_compiler_c_o_CXX \
21096 exclude_expsyms_CXX \
21097 include_expsyms_CXX; do
21100 old_archive_cmds_CXX | \
21101 old_archive_from_new_cmds_CXX | \
21102 archive_cmds_CXX | \
21103 archive_expsym_cmds_CXX | \
21104 module_cmds_CXX | \
21105 module_expsym_cmds_CXX | \
21106 old_archive_from_expsyms_cmds_CXX | \
21107 export_symbols_cmds_CXX | \
21108 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21109 postinstall_cmds | postuninstall_cmds | \
21110 old_postinstall_cmds | old_postuninstall_cmds | \
21111 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21112 # Double-quote double-evaled strings.
21113 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21116 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21122 *'\$0 --fallback-echo"')
21123 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21129 cat <<__EOF__ >> "$cfgfile"
21130 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21132 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21134 # Shell to use when invoking shell scripts.
21137 # Whether or not to build shared libraries.
21138 build_libtool_libs=$enable_shared
21140 # Whether or not to build static libraries.
21141 build_old_libs=$enable_static
21143 # Whether or not to add -lc for building shared libraries.
21144 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21146 # Whether or not to disallow shared libs when runtime libs are static
21147 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21149 # Whether or not to optimize for fast installation.
21150 fast_install=$enable_fast_install
21153 host_alias=$host_alias
21157 # The build system.
21158 build_alias=$build_alias
21162 # An echo program that does not interpret backslashes.
21167 AR_FLAGS=$lt_AR_FLAGS
21172 # LTCC compiler flags.
21173 LTCFLAGS=$lt_LTCFLAGS
21175 # A language-specific compiler.
21176 CC=$lt_compiler_CXX
21178 # Is the compiler the GNU C compiler?
21184 # The linker used to build libraries.
21187 # Whether we need hard or soft links.
21190 # A BSD-compatible nm program.
21193 # A symbol stripping program
21196 # Used to examine libraries when file_magic_cmd begins "file"
21197 MAGIC_CMD=$MAGIC_CMD
21199 # Used on cygwin: DLL creation program.
21202 # Used on cygwin: object dumper.
21205 # Used on cygwin: assembler.
21208 # The name of the directory that contains temporary libtool files.
21211 # How to create reloadable object files.
21212 reload_flag=$lt_reload_flag
21213 reload_cmds=$lt_reload_cmds
21215 # How to pass a linker flag through the compiler.
21216 wl=$lt_lt_prog_compiler_wl_CXX
21218 # Object file suffix (normally "o").
21219 objext="$ac_objext"
21221 # Old archive suffix (normally "a").
21224 # Shared library suffix (normally ".so").
21225 shrext_cmds='$shrext_cmds'
21227 # Executable file suffix (normally "").
21230 # Additional compiler flags for building library objects.
21231 pic_flag=$lt_lt_prog_compiler_pic_CXX
21234 # What is the maximum length of a command?
21235 max_cmd_len=$lt_cv_sys_max_cmd_len
21237 # Does compiler simultaneously support -c and -o options?
21238 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21240 # Must we lock files when doing compilation?
21241 need_locks=$lt_need_locks
21243 # Do we need the lib prefix for modules?
21244 need_lib_prefix=$need_lib_prefix
21246 # Do we need a version for libraries?
21247 need_version=$need_version
21249 # Whether dlopen is supported.
21250 dlopen_support=$enable_dlopen
21252 # Whether dlopen of programs is supported.
21253 dlopen_self=$enable_dlopen_self
21255 # Whether dlopen of statically linked programs is supported.
21256 dlopen_self_static=$enable_dlopen_self_static
21258 # Compiler flag to prevent dynamic linking.
21259 link_static_flag=$lt_lt_prog_compiler_static_CXX
21261 # Compiler flag to turn off builtin functions.
21262 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21264 # Compiler flag to allow reflexive dlopens.
21265 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21267 # Compiler flag to generate shared objects directly from archives.
21268 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21270 # Compiler flag to generate thread-safe objects.
21271 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21273 # Library versioning type.
21274 version_type=$version_type
21276 # Format of library name prefix.
21277 libname_spec=$lt_libname_spec
21279 # List of archive names. First name is the real one, the rest are links.
21280 # The last name is the one that the linker finds with -lNAME.
21281 library_names_spec=$lt_library_names_spec
21283 # The coded name of the library, if different from the real name.
21284 soname_spec=$lt_soname_spec
21286 # Commands used to build and install an old-style archive.
21288 old_archive_cmds=$lt_old_archive_cmds_CXX
21289 old_postinstall_cmds=$lt_old_postinstall_cmds
21290 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21292 # Create an old-style archive from a shared archive.
21293 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21295 # Create a temporary old-style archive to link instead of a shared archive.
21296 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21298 # Commands used to build and install a shared archive.
21299 archive_cmds=$lt_archive_cmds_CXX
21300 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21301 postinstall_cmds=$lt_postinstall_cmds
21302 postuninstall_cmds=$lt_postuninstall_cmds
21304 # Commands used to build a loadable module (assumed same as above if empty)
21305 module_cmds=$lt_module_cmds_CXX
21306 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21308 # Commands to strip libraries.
21309 old_striplib=$lt_old_striplib
21310 striplib=$lt_striplib
21312 # Dependencies to place before the objects being linked to create a
21314 predep_objects=$lt_predep_objects_CXX
21316 # Dependencies to place after the objects being linked to create a
21318 postdep_objects=$lt_postdep_objects_CXX
21320 # Dependencies to place before the objects being linked to create a
21322 predeps=$lt_predeps_CXX
21324 # Dependencies to place after the objects being linked to create a
21326 postdeps=$lt_postdeps_CXX
21328 # The library search path used internally by the compiler when linking
21329 # a shared library.
21330 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21332 # Method to check whether dependent libraries are shared objects.
21333 deplibs_check_method=$lt_deplibs_check_method
21335 # Command to use when deplibs_check_method == file_magic.
21336 file_magic_cmd=$lt_file_magic_cmd
21338 # Flag that allows shared libraries with undefined symbols to be built.
21339 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21341 # Flag that forces no undefined symbols.
21342 no_undefined_flag=$lt_no_undefined_flag_CXX
21344 # Commands used to finish a libtool library installation in a directory.
21345 finish_cmds=$lt_finish_cmds
21347 # Same as above, but a single script fragment to be evaled but not shown.
21348 finish_eval=$lt_finish_eval
21350 # Take the output of nm and produce a listing of raw symbols and C names.
21351 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21353 # Transform the output of nm in a proper C declaration
21354 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21356 # Transform the output of nm in a C name address pair
21357 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21359 # This is the shared library runtime path variable.
21360 runpath_var=$runpath_var
21362 # This is the shared library path variable.
21363 shlibpath_var=$shlibpath_var
21365 # Is shlibpath searched before the hard-coded library search path?
21366 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21368 # How to hardcode a shared library path into an executable.
21369 hardcode_action=$hardcode_action_CXX
21371 # Whether we should hardcode library paths into libraries.
21372 hardcode_into_libs=$hardcode_into_libs
21374 # Flag to hardcode \$libdir into a binary during linking.
21375 # This must work even if \$libdir does not exist.
21376 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21378 # If ld is used when linking, flag to hardcode \$libdir into
21379 # a binary during linking. This must work even if \$libdir does
21381 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21383 # Whether we need a single -rpath flag with a separated argument.
21384 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21386 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21387 # resulting binary.
21388 hardcode_direct=$hardcode_direct_CXX
21390 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21391 # resulting binary.
21392 hardcode_minus_L=$hardcode_minus_L_CXX
21394 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21395 # the resulting binary.
21396 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21398 # Set to yes if building a shared library automatically hardcodes DIR into the library
21399 # and all subsequent libraries and executables linked against it.
21400 hardcode_automatic=$hardcode_automatic_CXX
21402 # Variables whose values should be saved in libtool wrapper scripts and
21403 # restored at relink time.
21404 variables_saved_for_relink="$variables_saved_for_relink"
21406 # Whether libtool must link a program against all its dependency libraries.
21407 link_all_deplibs=$link_all_deplibs_CXX
21409 # Compile-time system search path for libraries
21410 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21412 # Run-time system search path for libraries
21413 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21415 # Fix the shell variable \$srcfile for the compiler.
21416 fix_srcfile_path="$fix_srcfile_path_CXX"
21418 # Set to yes if exported symbols are required.
21419 always_export_symbols=$always_export_symbols_CXX
21421 # The commands to list exported symbols.
21422 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21424 # The commands to extract the exported symbol list from a shared archive.
21425 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21427 # Symbols that should not be listed in the preloaded symbols.
21428 exclude_expsyms=$lt_exclude_expsyms_CXX
21430 # Symbols that must always be exported.
21431 include_expsyms=$lt_include_expsyms_CXX
21433 # ### END LIBTOOL TAG CONFIG: $tagname
21439 # If there is no Makefile yet, we rely on a make rule to execute
21440 # `config.status --recheck' to rerun these tests and create the
21441 # libtool script then.
21442 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21443 if test -f "$ltmain_in"; then
21444 test -f Makefile && make "$ltmain"
21450 ac_cpp='$CPP $CPPFLAGS'
21451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21459 with_gnu_ldcxx=$with_gnu_ld
21460 with_gnu_ld=$lt_save_with_gnu_ld
21461 lt_cv_path_LDCXX=$lt_cv_path_LD
21462 lt_cv_path_LD=$lt_save_path_LD
21463 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21464 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21472 if test -n "$F77" && test "X$F77" != "Xno"; then
21475 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21476 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21477 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21480 archive_cmds_need_lc_F77=no
21481 allow_undefined_flag_F77=
21482 always_export_symbols_F77=no
21483 archive_expsym_cmds_F77=
21484 export_dynamic_flag_spec_F77=
21485 hardcode_direct_F77=no
21486 hardcode_libdir_flag_spec_F77=
21487 hardcode_libdir_flag_spec_ld_F77=
21488 hardcode_libdir_separator_F77=
21489 hardcode_minus_L_F77=no
21490 hardcode_automatic_F77=no
21492 module_expsym_cmds_F77=
21493 link_all_deplibs_F77=unknown
21494 old_archive_cmds_F77=$old_archive_cmds
21495 no_undefined_flag_F77=
21496 whole_archive_flag_spec_F77=
21497 enable_shared_with_static_runtimes_F77=no
21499 # Source file extension for f77 test sources.
21502 # Object file extension for compiled f77 test sources.
21506 # Code to be used in simple compile tests
21507 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21509 # Code to be used in simple link tests
21510 lt_simple_link_test_code=" program t\n end\n"
21512 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21514 # If no C compiler was specified, use CC.
21517 # If no C compiler flags were specified, use CFLAGS.
21518 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21520 # Allow CC to be a program name with arguments.
21524 # save warnings/boilerplate of simple test code
21525 ac_outfile=conftest.$ac_objext
21526 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21527 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21528 _lt_compiler_boilerplate=`cat conftest.err`
21531 ac_outfile=conftest.$ac_objext
21532 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21533 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21534 _lt_linker_boilerplate=`cat conftest.err`
21538 # Allow CC to be a program name with arguments.
21543 for cc_temp in $compiler""; do
21545 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21546 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21551 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21554 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21555 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21556 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21557 echo "${ECHO_T}$can_build_shared" >&6; }
21559 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21560 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21561 test "$can_build_shared" = "no" && enable_shared=no
21563 # On AIX, shared libraries and static libraries use the same namespace, and
21564 # are all built from PIC.
21567 test "$enable_shared" = yes && enable_static=no
21568 if test -n "$RANLIB"; then
21569 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21570 postinstall_cmds='$RANLIB $lib'
21574 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21575 test "$enable_shared" = yes && enable_static=no
21579 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21580 echo "${ECHO_T}$enable_shared" >&6; }
21582 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21583 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21584 # Make sure either enable_shared or enable_static is yes.
21585 test "$enable_shared" = yes || enable_static=yes
21586 { echo "$as_me:$LINENO: result: $enable_static" >&5
21587 echo "${ECHO_T}$enable_static" >&6; }
21592 lt_prog_compiler_wl_F77=
21593 lt_prog_compiler_pic_F77=
21594 lt_prog_compiler_static_F77=
21596 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21597 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21599 if test "$GCC" = yes; then
21600 lt_prog_compiler_wl_F77='-Wl,'
21601 lt_prog_compiler_static_F77='-static'
21605 # All AIX code is PIC.
21606 if test "$host_cpu" = ia64; then
21607 # AIX 5 now supports IA64 processor
21608 lt_prog_compiler_static_F77='-Bstatic'
21613 # FIXME: we need at least 68020 code to build shared libraries, but
21614 # adding the `-m68020' flag to GCC prevents building anything better,
21616 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21619 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21620 # PIC is the default for these OSes.
21623 mingw* | pw32* | os2*)
21624 # This hack is so that the source file can tell whether it is being
21625 # built for inclusion in a dll (and should export symbols for example).
21626 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21629 darwin* | rhapsody*)
21630 # PIC is the default on this platform
21631 # Common symbols not allowed in MH_DYLIB files
21632 lt_prog_compiler_pic_F77='-fno-common'
21636 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21637 # Instead, we relocate shared libraries at runtime.
21641 # Just because we use GCC doesn't mean we suddenly get shared libraries
21642 # on systems that don't support them.
21643 lt_prog_compiler_can_build_shared_F77=no
21648 if test -d /usr/nec; then
21649 lt_prog_compiler_pic_F77=-Kconform_pic
21654 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21655 # not for PA HP-UX.
21661 lt_prog_compiler_pic_F77='-fPIC'
21667 lt_prog_compiler_pic_F77='-fPIC'
21671 # PORTME Check for flag to pass linker flags through the system compiler.
21674 lt_prog_compiler_wl_F77='-Wl,'
21675 if test "$host_cpu" = ia64; then
21676 # AIX 5 now supports IA64 processor
21677 lt_prog_compiler_static_F77='-Bstatic'
21679 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21683 # PIC is the default on this platform
21684 # Common symbols not allowed in MH_DYLIB files
21685 case $cc_basename in
21687 lt_prog_compiler_pic_F77='-qnocommon'
21688 lt_prog_compiler_wl_F77='-Wl,'
21693 mingw* | pw32* | os2*)
21694 # This hack is so that the source file can tell whether it is being
21695 # built for inclusion in a dll (and should export symbols for example).
21696 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21699 hpux9* | hpux10* | hpux11*)
21700 lt_prog_compiler_wl_F77='-Wl,'
21701 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21702 # not for PA HP-UX.
21708 lt_prog_compiler_pic_F77='+Z'
21711 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21712 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21715 irix5* | irix6* | nonstopux*)
21716 lt_prog_compiler_wl_F77='-Wl,'
21717 # PIC (with -KPIC) is the default.
21718 lt_prog_compiler_static_F77='-non_shared'
21722 lt_prog_compiler_pic_F77='-KPIC'
21723 lt_prog_compiler_static_F77='-Bstatic'
21727 case $cc_basename in
21729 lt_prog_compiler_wl_F77='-Wl,'
21730 lt_prog_compiler_pic_F77='-KPIC'
21731 lt_prog_compiler_static_F77='-static'
21733 pgcc* | pgf77* | pgf90* | pgf95*)
21734 # Portland Group compilers (*not* the Pentium gcc compiler,
21735 # which looks to be a dead project)
21736 lt_prog_compiler_wl_F77='-Wl,'
21737 lt_prog_compiler_pic_F77='-fpic'
21738 lt_prog_compiler_static_F77='-Bstatic'
21741 lt_prog_compiler_wl_F77='-Wl,'
21742 # All Alpha code is PIC.
21743 lt_prog_compiler_static_F77='-non_shared'
21748 osf3* | osf4* | osf5*)
21749 lt_prog_compiler_wl_F77='-Wl,'
21750 # All OSF/1 code is PIC.
21751 lt_prog_compiler_static_F77='-non_shared'
21755 lt_prog_compiler_pic_F77='-KPIC'
21756 lt_prog_compiler_static_F77='-Bstatic'
21757 case $cc_basename in
21758 f77* | f90* | f95*)
21759 lt_prog_compiler_wl_F77='-Qoption ld ';;
21761 lt_prog_compiler_wl_F77='-Wl,';;
21766 lt_prog_compiler_wl_F77='-Qoption ld '
21767 lt_prog_compiler_pic_F77='-PIC'
21768 lt_prog_compiler_static_F77='-Bstatic'
21771 sysv4 | sysv4.2uw2* | sysv4.3*)
21772 lt_prog_compiler_wl_F77='-Wl,'
21773 lt_prog_compiler_pic_F77='-KPIC'
21774 lt_prog_compiler_static_F77='-Bstatic'
21778 if test -d /usr/nec ;then
21779 lt_prog_compiler_pic_F77='-Kconform_pic'
21780 lt_prog_compiler_static_F77='-Bstatic'
21784 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21785 lt_prog_compiler_wl_F77='-Wl,'
21786 lt_prog_compiler_pic_F77='-KPIC'
21787 lt_prog_compiler_static_F77='-Bstatic'
21791 lt_prog_compiler_wl_F77='-Wl,'
21792 lt_prog_compiler_can_build_shared_F77=no
21796 lt_prog_compiler_pic_F77='-pic'
21797 lt_prog_compiler_static_F77='-Bstatic'
21801 lt_prog_compiler_can_build_shared_F77=no
21806 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21807 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21810 # Check to make sure the PIC flag actually works.
21812 if test -n "$lt_prog_compiler_pic_F77"; then
21814 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21815 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21816 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21817 echo $ECHO_N "(cached) $ECHO_C" >&6
21819 lt_prog_compiler_pic_works_F77=no
21820 ac_outfile=conftest.$ac_objext
21821 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21822 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21823 # Insert the option either (1) after the last *FLAGS variable, or
21824 # (2) before a word containing "conftest.", or (3) at the end.
21825 # Note that $ac_compile itself does not contain backslashes and begins
21826 # with a dollar sign (not a hyphen), so the echo should work correctly.
21827 # The option is referenced via a variable to avoid confusing sed.
21828 lt_compile=`echo "$ac_compile" | $SED \
21829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21831 -e 's:$: $lt_compiler_flag:'`
21832 (eval echo "\"\$as_me:21832: $lt_compile\"" >&5)
21833 (eval "$lt_compile" 2>conftest.err)
21835 cat conftest.err >&5
21836 echo "$as_me:21836: \$? = $ac_status" >&5
21837 if (exit $ac_status) && test -s "$ac_outfile"; then
21838 # The compiler can only warn and ignore the option if not recognized
21839 # So say no if there are warnings other than the usual output.
21840 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21842 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21843 lt_prog_compiler_pic_works_F77=yes
21849 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21850 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21852 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21853 case $lt_prog_compiler_pic_F77 in
21855 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21858 lt_prog_compiler_pic_F77=
21859 lt_prog_compiler_can_build_shared_F77=no
21864 # For platforms which do not support PIC, -DPIC is meaningless:
21866 lt_prog_compiler_pic_F77=
21869 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21874 # Check to make sure the static flag actually works.
21876 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21877 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21878 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21879 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21880 echo $ECHO_N "(cached) $ECHO_C" >&6
21882 lt_prog_compiler_static_works_F77=no
21883 save_LDFLAGS="$LDFLAGS"
21884 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21885 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21886 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21887 # The linker can only warn and ignore the option if not recognized
21888 # So say no if there are warnings
21889 if test -s conftest.err; then
21890 # Append any errors to the config.log.
21891 cat conftest.err 1>&5
21892 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21893 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21894 if diff conftest.exp conftest.er2 >/dev/null; then
21895 lt_prog_compiler_static_works_F77=yes
21898 lt_prog_compiler_static_works_F77=yes
21902 LDFLAGS="$save_LDFLAGS"
21905 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21906 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21908 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21911 lt_prog_compiler_static_F77=
21915 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21916 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21917 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21918 echo $ECHO_N "(cached) $ECHO_C" >&6
21920 lt_cv_prog_compiler_c_o_F77=no
21921 $rm -r conftest 2>/dev/null
21925 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21927 lt_compiler_flag="-o out/conftest2.$ac_objext"
21928 # Insert the option either (1) after the last *FLAGS variable, or
21929 # (2) before a word containing "conftest.", or (3) at the end.
21930 # Note that $ac_compile itself does not contain backslashes and begins
21931 # with a dollar sign (not a hyphen), so the echo should work correctly.
21932 lt_compile=`echo "$ac_compile" | $SED \
21933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21935 -e 's:$: $lt_compiler_flag:'`
21936 (eval echo "\"\$as_me:21936: $lt_compile\"" >&5)
21937 (eval "$lt_compile" 2>out/conftest.err)
21939 cat out/conftest.err >&5
21940 echo "$as_me:21940: \$? = $ac_status" >&5
21941 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21943 # The compiler can only warn and ignore the option if not recognized
21944 # So say no if there are warnings
21945 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21946 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21947 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21948 lt_cv_prog_compiler_c_o_F77=yes
21953 # SGI C++ compiler will create directory out/ii_files/ for
21954 # template instantiation
21955 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21956 $rm out/* && rmdir out
21962 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21963 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21966 hard_links="nottested"
21967 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21968 # do not overwrite the value of need_locks provided by the user
21969 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21970 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21973 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21975 ln conftest.a conftest.b 2>&5 || hard_links=no
21976 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21977 { echo "$as_me:$LINENO: result: $hard_links" >&5
21978 echo "${ECHO_T}$hard_links" >&6; }
21979 if test "$hard_links" = no; then
21980 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21981 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21988 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21989 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21992 allow_undefined_flag_F77=
21993 enable_shared_with_static_runtimes_F77=no
21995 archive_expsym_cmds_F77=
21996 old_archive_From_new_cmds_F77=
21997 old_archive_from_expsyms_cmds_F77=
21998 export_dynamic_flag_spec_F77=
21999 whole_archive_flag_spec_F77=
22000 thread_safe_flag_spec_F77=
22001 hardcode_libdir_flag_spec_F77=
22002 hardcode_libdir_flag_spec_ld_F77=
22003 hardcode_libdir_separator_F77=
22004 hardcode_direct_F77=no
22005 hardcode_minus_L_F77=no
22006 hardcode_shlibpath_var_F77=unsupported
22007 link_all_deplibs_F77=unknown
22008 hardcode_automatic_F77=no
22010 module_expsym_cmds_F77=
22011 always_export_symbols_F77=no
22012 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22013 # include_expsyms should be a list of space-separated symbols to be *always*
22014 # included in the symbol list
22015 include_expsyms_F77=
22016 # exclude_expsyms can be an extended regexp of symbols to exclude
22017 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22018 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22019 # as well as any symbol that contains `d'.
22020 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22021 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22022 # platforms (ab)use it in PIC code, but their linkers get confused if
22023 # the symbol is explicitly referenced. Since portable code cannot
22024 # rely on this symbol name, it's probably fine to never include it in
22025 # preloaded symbol tables.
22026 extract_expsyms_cmds=
22027 # Just being paranoid about ensuring that cc_basename is set.
22028 for cc_temp in $compiler""; do
22030 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22031 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22036 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22039 cygwin* | mingw* | pw32*)
22040 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22041 # When not using gcc, we currently assume that we are using
22042 # Microsoft Visual C++.
22043 if test "$GCC" != yes; then
22048 # we just hope/assume this is gcc and not c89 (= MSVC++)
22057 if test "$with_gnu_ld" = yes; then
22058 # If archive_cmds runs LD, not CC, wlarc should be empty
22061 # Set some defaults for GNU ld with shared library support. These
22062 # are reset later if shared libraries are not supported. Putting them
22063 # here allows them to be overridden if necessary.
22064 runpath_var=LD_RUN_PATH
22065 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22066 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22067 # ancient GNU ld didn't support --whole-archive et. al.
22068 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22069 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22071 whole_archive_flag_spec_F77=
22073 supports_anon_versioning=no
22074 case `$LD -v 2>/dev/null` in
22075 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22076 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22077 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22078 *\ 2.11.*) ;; # other 2.11 versions
22079 *) supports_anon_versioning=yes ;;
22082 # See if GNU ld supports shared libraries.
22084 aix3* | aix4* | aix5*)
22085 # On AIX/PPC, the GNU linker is very broken
22086 if test "$host_cpu" != ia64; then
22090 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22091 *** to be unable to reliably create shared libraries on AIX.
22092 *** Therefore, libtool is disabling shared libraries support. If you
22093 *** really care for shared libraries, you may want to modify your PATH
22094 *** so that a non-GNU linker is found, and then restart.
22101 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)'
22102 hardcode_libdir_flag_spec_F77='-L$libdir'
22103 hardcode_minus_L_F77=yes
22105 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22106 # that the semantics of dynamic libraries on AmigaOS, at least up
22107 # to version 4, is to share data among multiple programs linked
22108 # with the same dynamic library. Since this doesn't match the
22109 # behavior of shared libraries on other platforms, we can't use
22115 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22116 allow_undefined_flag_F77=unsupported
22117 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22118 # support --undefined. This deserves some investigation. FIXME
22119 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22125 cygwin* | mingw* | pw32*)
22126 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22127 # as there is no search path for DLLs.
22128 hardcode_libdir_flag_spec_F77='-L$libdir'
22129 allow_undefined_flag_F77=unsupported
22130 always_export_symbols_F77=no
22131 enable_shared_with_static_runtimes_F77=yes
22132 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22134 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22135 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22136 # If the export-symbols file already is a .def file (1st line
22137 # is EXPORTS), use it as is; otherwise, prepend...
22138 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22139 cp $export_symbols $output_objdir/$soname.def;
22141 echo EXPORTS > $output_objdir/$soname.def;
22142 cat $export_symbols >> $output_objdir/$soname.def;
22144 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22151 hardcode_direct_F77=no
22152 hardcode_shlibpath_var_F77=no
22153 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22154 export_dynamic_flag_spec_F77='${wl}-E'
22155 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22156 # Instead, shared libraries are loaded at an image base (0x10000000 by
22157 # default) and relocated if they conflict, which is a slow very memory
22158 # consuming and fragmenting process. To avoid this, we pick a random,
22159 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22160 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22161 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'
22162 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'
22166 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22168 case $cc_basename,$host_cpu in
22169 pgcc*) # Portland Group C compiler
22170 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'
22171 tmp_addflag=' $pic_flag'
22173 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22174 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'
22175 tmp_addflag=' $pic_flag -Mnomain' ;;
22176 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22177 tmp_addflag=' -i_dynamic' ;;
22178 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22179 tmp_addflag=' -i_dynamic -nofor_main' ;;
22180 ifc* | ifort*) # Intel Fortran compiler
22181 tmp_addflag=' -nofor_main' ;;
22183 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22185 if test $supports_anon_versioning = yes; then
22186 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22187 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22188 $echo "local: *; };" >> $output_objdir/$libname.ver~
22189 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22197 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22198 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22201 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22202 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22207 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22211 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22212 *** create shared libraries on Solaris systems. Therefore, libtool
22213 *** is disabling shared libraries support. We urge you to upgrade GNU
22214 *** binutils to release 2.9.1 or newer. Another option is to modify
22215 *** your PATH or compiler configuration so that the native linker is
22216 *** used, and then restart.
22219 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22220 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22221 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22227 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22228 case `$LD -v 2>&1` in
22229 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22233 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22234 *** reliably create shared libraries on SCO systems. Therefore, libtool
22235 *** is disabling shared libraries support. We urge you to upgrade GNU
22236 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22237 *** your PATH or compiler configuration so that the native linker is
22238 *** used, and then restart.
22243 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22244 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22245 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22246 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22255 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22257 hardcode_direct_F77=yes
22258 hardcode_shlibpath_var_F77=no
22262 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22263 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22264 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22271 if test "$ld_shlibs_F77" = no; then
22273 hardcode_libdir_flag_spec_F77=
22274 export_dynamic_flag_spec_F77=
22275 whole_archive_flag_spec_F77=
22278 # PORTME fill in a description of your system's linker (not GNU ld)
22281 allow_undefined_flag_F77=unsupported
22282 always_export_symbols_F77=yes
22283 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'
22284 # Note: this linker hardcodes the directories in LIBPATH if there
22285 # are no directories specified by -L.
22286 hardcode_minus_L_F77=yes
22287 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22288 # Neither direct hardcoding nor static linking is supported with a
22290 hardcode_direct_F77=unsupported
22295 if test "$host_cpu" = ia64; then
22296 # On IA64, the linker does run time linking by default, so we don't
22297 # have to do anything special.
22298 aix_use_runtimelinking=no
22299 exp_sym_flag='-Bexport'
22302 # If we're using GNU nm, then we don't want the "-C" option.
22303 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22304 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22305 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'
22307 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'
22309 aix_use_runtimelinking=no
22311 # Test if we are trying to use run time linking or normal
22312 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22313 # need to do runtime linking.
22314 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22315 for ld_flag in $LDFLAGS; do
22316 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22317 aix_use_runtimelinking=yes
22324 exp_sym_flag='-bexport'
22325 no_entry_flag='-bnoentry'
22328 # When large executables or shared objects are built, AIX ld can
22329 # have problems creating the table of contents. If linking a library
22330 # or program results in "error TOC overflow" add -mminimal-toc to
22331 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22332 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22334 archive_cmds_F77=''
22335 hardcode_direct_F77=yes
22336 hardcode_libdir_separator_F77=':'
22337 link_all_deplibs_F77=yes
22339 if test "$GCC" = yes; then
22340 case $host_os in aix4.[012]|aix4.[012].*)
22341 # We only want to do this on AIX 4.2 and lower, the check
22342 # below for broken collect2 doesn't work under 4.3+
22343 collect2name=`${CC} -print-prog-name=collect2`
22344 if test -f "$collect2name" && \
22345 strings "$collect2name" | grep resolve_lib_name >/dev/null
22347 # We have reworked collect2
22348 hardcode_direct_F77=yes
22350 # We have old collect2
22351 hardcode_direct_F77=unsupported
22352 # It fails to find uninstalled libraries when the uninstalled
22353 # path is not listed in the libpath. Setting hardcode_minus_L
22354 # to unsupported forces relinking
22355 hardcode_minus_L_F77=yes
22356 hardcode_libdir_flag_spec_F77='-L$libdir'
22357 hardcode_libdir_separator_F77=
22361 shared_flag='-shared'
22362 if test "$aix_use_runtimelinking" = yes; then
22363 shared_flag="$shared_flag "'${wl}-G'
22367 if test "$host_cpu" = ia64; then
22368 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22369 # chokes on -Wl,-G. The following line is correct:
22372 if test "$aix_use_runtimelinking" = yes; then
22373 shared_flag='${wl}-G'
22375 shared_flag='${wl}-bM:SRE'
22380 # It seems that -bexpall does not export symbols beginning with
22381 # underscore (_), so it is better to generate a list of symbols to export.
22382 always_export_symbols_F77=yes
22383 if test "$aix_use_runtimelinking" = yes; then
22384 # Warning - without using the other runtime loading flags (-brtl),
22385 # -berok will link without error, but may produce a broken library.
22386 allow_undefined_flag_F77='-berok'
22387 # Determine the default libpath from the value encoded in an empty executable.
22388 cat >conftest.$ac_ext <<_ACEOF
22393 rm -f conftest.$ac_objext conftest$ac_exeext
22394 if { (ac_try="$ac_link"
22395 case "(($ac_try" in
22396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397 *) ac_try_echo=$ac_try;;
22399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22400 (eval "$ac_link") 2>conftest.er1
22402 grep -v '^ *+' conftest.er1 >conftest.err
22404 cat conftest.err >&5
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); } &&
22407 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22408 { (case "(($ac_try" in
22409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22410 *) ac_try_echo=$ac_try;;
22412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22413 (eval "$ac_try") 2>&5
22415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416 (exit $ac_status); }; } &&
22417 { ac_try='test -s conftest$ac_exeext'
22418 { (case "(($ac_try" in
22419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22420 *) ac_try_echo=$ac_try;;
22422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22423 (eval "$ac_try") 2>&5
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); }; }; then
22428 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22430 # Check for a 64-bit object if we didn't find anything.
22431 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; }
22434 echo "$as_me: failed program was:" >&5
22435 sed 's/^/| /' conftest.$ac_ext >&5
22440 rm -f core conftest.err conftest.$ac_objext \
22441 conftest$ac_exeext conftest.$ac_ext
22442 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22444 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22445 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"
22447 if test "$host_cpu" = ia64; then
22448 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22449 allow_undefined_flag_F77="-z nodefs"
22450 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"
22452 # Determine the default libpath from the value encoded in an empty executable.
22453 cat >conftest.$ac_ext <<_ACEOF
22458 rm -f conftest.$ac_objext conftest$ac_exeext
22459 if { (ac_try="$ac_link"
22460 case "(($ac_try" in
22461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22462 *) ac_try_echo=$ac_try;;
22464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22465 (eval "$ac_link") 2>conftest.er1
22467 grep -v '^ *+' conftest.er1 >conftest.err
22469 cat conftest.err >&5
22470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471 (exit $ac_status); } &&
22472 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22473 { (case "(($ac_try" in
22474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22475 *) ac_try_echo=$ac_try;;
22477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22478 (eval "$ac_try") 2>&5
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); }; } &&
22482 { ac_try='test -s conftest$ac_exeext'
22483 { (case "(($ac_try" in
22484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22485 *) ac_try_echo=$ac_try;;
22487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22488 (eval "$ac_try") 2>&5
22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); }; }; then
22493 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22495 # Check for a 64-bit object if we didn't find anything.
22496 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; }
22499 echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22505 rm -f core conftest.err conftest.$ac_objext \
22506 conftest$ac_exeext conftest.$ac_ext
22507 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22509 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22510 # Warning - without using the other run time loading flags,
22511 # -berok will link without error, but may produce a broken library.
22512 no_undefined_flag_F77=' ${wl}-bernotok'
22513 allow_undefined_flag_F77=' ${wl}-berok'
22514 # Exported symbols can be pulled into shared objects from archives
22515 whole_archive_flag_spec_F77='$convenience'
22516 archive_cmds_need_lc_F77=yes
22517 # This is similar to how AIX traditionally builds its shared libraries.
22518 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'
22524 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)'
22525 hardcode_libdir_flag_spec_F77='-L$libdir'
22526 hardcode_minus_L_F77=yes
22527 # see comment about different semantics on the GNU ld section
22532 export_dynamic_flag_spec_F77=-rdynamic
22535 cygwin* | mingw* | pw32*)
22536 # When not using gcc, we currently assume that we are using
22537 # Microsoft Visual C++.
22538 # hardcode_libdir_flag_spec is actually meaningless, as there is
22539 # no search path for DLLs.
22540 hardcode_libdir_flag_spec_F77=' '
22541 allow_undefined_flag_F77=unsupported
22542 # Tell ltmain to make .lib files, not .a files.
22544 # Tell ltmain to make .dll files, not .so files.
22546 # FIXME: Setting linknames here is a bad hack.
22547 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22548 # The linker will automatically build a .lib file if we build a DLL.
22549 old_archive_From_new_cmds_F77='true'
22550 # FIXME: Should let the user specify the lib program.
22551 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22552 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22553 enable_shared_with_static_runtimes_F77=yes
22556 darwin* | rhapsody*)
22558 rhapsody* | darwin1.[012])
22559 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22562 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22563 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22565 case ${MACOSX_DEPLOYMENT_TARGET} in
22567 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22570 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22576 archive_cmds_need_lc_F77=no
22577 hardcode_direct_F77=no
22578 hardcode_automatic_F77=yes
22579 hardcode_shlibpath_var_F77=unsupported
22580 whole_archive_flag_spec_F77=''
22581 link_all_deplibs_F77=yes
22582 if test "$GCC" = yes ; then
22583 output_verbose_link_cmd='echo'
22584 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22585 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22586 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22587 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}'
22588 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}'
22590 case $cc_basename in
22592 output_verbose_link_cmd='echo'
22593 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22594 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22595 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22596 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}'
22597 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}'
22607 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22608 hardcode_libdir_flag_spec_F77='-L$libdir'
22609 hardcode_shlibpath_var_F77=no
22616 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22617 # support. Future versions do this automatically, but an explicit c++rt0.o
22618 # does not break anything, and helps significantly (at the cost of a little
22621 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22622 hardcode_libdir_flag_spec_F77='-R$libdir'
22623 hardcode_direct_F77=yes
22624 hardcode_shlibpath_var_F77=no
22627 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22629 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22630 hardcode_direct_F77=yes
22631 hardcode_minus_L_F77=yes
22632 hardcode_shlibpath_var_F77=no
22635 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22636 freebsd* | kfreebsd*-gnu | dragonfly*)
22637 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22638 hardcode_libdir_flag_spec_F77='-R$libdir'
22639 hardcode_direct_F77=yes
22640 hardcode_shlibpath_var_F77=no
22644 if test "$GCC" = yes; then
22645 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'
22647 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'
22649 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22650 hardcode_libdir_separator_F77=:
22651 hardcode_direct_F77=yes
22653 # hardcode_minus_L: Not really in the search PATH,
22654 # but as the default location of the library.
22655 hardcode_minus_L_F77=yes
22656 export_dynamic_flag_spec_F77='${wl}-E'
22660 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22661 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22663 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22665 if test "$with_gnu_ld" = no; then
22666 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22667 hardcode_libdir_separator_F77=:
22669 hardcode_direct_F77=yes
22670 export_dynamic_flag_spec_F77='${wl}-E'
22672 # hardcode_minus_L: Not really in the search PATH,
22673 # but as the default location of the library.
22674 hardcode_minus_L_F77=yes
22679 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22682 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22685 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22688 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22694 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22697 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22700 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22704 if test "$with_gnu_ld" = no; then
22705 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22706 hardcode_libdir_separator_F77=:
22710 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22711 hardcode_direct_F77=no
22712 hardcode_shlibpath_var_F77=no
22715 hardcode_direct_F77=yes
22716 export_dynamic_flag_spec_F77='${wl}-E'
22718 # hardcode_minus_L: Not really in the search PATH,
22719 # but as the default location of the library.
22720 hardcode_minus_L_F77=yes
22726 irix5* | irix6* | nonstopux*)
22727 if test "$GCC" = yes; then
22728 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'
22730 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'
22731 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22733 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22734 hardcode_libdir_separator_F77=:
22735 link_all_deplibs_F77=yes
22739 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22740 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22742 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22744 hardcode_libdir_flag_spec_F77='-R$libdir'
22745 hardcode_direct_F77=yes
22746 hardcode_shlibpath_var_F77=no
22750 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22751 hardcode_direct_F77=yes
22752 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22753 hardcode_libdir_separator_F77=:
22754 hardcode_shlibpath_var_F77=no
22758 hardcode_direct_F77=yes
22759 hardcode_shlibpath_var_F77=no
22760 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22761 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22762 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22763 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22764 export_dynamic_flag_spec_F77='${wl}-E'
22767 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22768 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22769 hardcode_libdir_flag_spec_F77='-R$libdir'
22772 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22773 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22780 hardcode_libdir_flag_spec_F77='-L$libdir'
22781 hardcode_minus_L_F77=yes
22782 allow_undefined_flag_F77=unsupported
22783 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'
22784 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22788 if test "$GCC" = yes; then
22789 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22790 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'
22792 allow_undefined_flag_F77=' -expect_unresolved \*'
22793 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'
22795 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22796 hardcode_libdir_separator_F77=:
22799 osf4* | osf5*) # as osf3* with the addition of -msym flag
22800 if test "$GCC" = yes; then
22801 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22802 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'
22803 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22805 allow_undefined_flag_F77=' -expect_unresolved \*'
22806 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'
22807 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~
22808 $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'
22810 # Both c and cxx compiler support -rpath directly
22811 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22813 hardcode_libdir_separator_F77=:
22817 no_undefined_flag_F77=' -z text'
22818 if test "$GCC" = yes; then
22820 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22821 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22822 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22825 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22826 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22827 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22829 hardcode_libdir_flag_spec_F77='-R$libdir'
22830 hardcode_shlibpath_var_F77=no
22832 solaris2.[0-5] | solaris2.[0-5].*) ;;
22834 # The compiler driver will combine linker options so we
22835 # cannot just pass the convience library names through
22836 # without $wl, iff we do not link with $LD.
22837 # Luckily, gcc supports the same syntax we need for Sun Studio.
22838 # Supported since Solaris 2.6 (maybe 2.5.1?)
22841 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22843 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' ;;
22846 link_all_deplibs_F77=yes
22850 if test "x$host_vendor" = xsequent; then
22851 # Use $CC to link under sequent, because it throws in some extra .o
22852 # files that make .init and .fini sections work.
22853 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22855 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22857 hardcode_libdir_flag_spec_F77='-L$libdir'
22858 hardcode_direct_F77=yes
22859 hardcode_minus_L_F77=yes
22860 hardcode_shlibpath_var_F77=no
22864 case $host_vendor in
22866 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22867 hardcode_direct_F77=yes # is this really true???
22870 ## LD is ld it makes a PLAMLIB
22871 ## CC just makes a GrossModule.
22872 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22873 reload_cmds_F77='$CC -r -o $output$reload_objs'
22874 hardcode_direct_F77=no
22877 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22878 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22881 runpath_var='LD_RUN_PATH'
22882 hardcode_shlibpath_var_F77=no
22886 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22887 hardcode_shlibpath_var_F77=no
22888 export_dynamic_flag_spec_F77='-Bexport'
22892 if test -d /usr/nec; then
22893 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22894 hardcode_shlibpath_var_F77=no
22895 runpath_var=LD_RUN_PATH
22896 hardcode_runpath_var=yes
22901 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22902 no_undefined_flag_F77='${wl}-z,text'
22903 archive_cmds_need_lc_F77=no
22904 hardcode_shlibpath_var_F77=no
22905 runpath_var='LD_RUN_PATH'
22907 if test "$GCC" = yes; then
22908 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22909 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22911 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22912 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22916 sysv5* | sco3.2v5* | sco5v6*)
22917 # Note: We can NOT use -z defs as we might desire, because we do not
22918 # link with -lc, and that would cause any symbols used from libc to
22919 # always be unresolved, which means just about no library would
22920 # ever link correctly. If we're not using GNU ld we use -z text
22921 # though, which does catch some bad symbols but isn't as heavy-handed
22923 no_undefined_flag_F77='${wl}-z,text'
22924 allow_undefined_flag_F77='${wl}-z,nodefs'
22925 archive_cmds_need_lc_F77=no
22926 hardcode_shlibpath_var_F77=no
22927 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22928 hardcode_libdir_separator_F77=':'
22929 link_all_deplibs_F77=yes
22930 export_dynamic_flag_spec_F77='${wl}-Bexport'
22931 runpath_var='LD_RUN_PATH'
22933 if test "$GCC" = yes; then
22934 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22935 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22937 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22938 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22943 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22944 hardcode_libdir_flag_spec_F77='-L$libdir'
22945 hardcode_shlibpath_var_F77=no
22954 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22955 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22956 test "$ld_shlibs_F77" = no && can_build_shared=no
22959 # Do we need to explicitly link libc?
22961 case "x$archive_cmds_need_lc_F77" in
22963 # Assume -lc should be added
22964 archive_cmds_need_lc_F77=yes
22966 if test "$enable_shared" = yes && test "$GCC" = yes; then
22967 case $archive_cmds_F77 in
22969 # FIXME: we may have to deal with multi-command sequences.
22972 # Test whether the compiler implicitly links with -lc since on some
22973 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22974 # to ld, don't add -lc before -lgcc.
22975 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22976 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22978 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22981 (eval $ac_compile) 2>&5
22983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984 (exit $ac_status); } 2>conftest.err; then
22987 libobjs=conftest.$ac_objext
22989 wl=$lt_prog_compiler_wl_F77
22990 pic_flag=$lt_prog_compiler_pic_F77
22996 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22997 allow_undefined_flag_F77=
22998 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22999 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); }
23004 archive_cmds_need_lc_F77=no
23006 archive_cmds_need_lc_F77=yes
23008 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23010 cat conftest.err 1>&5
23013 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23014 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
23021 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23022 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23023 library_names_spec=
23024 libname_spec='lib$name'
23028 postuninstall_cmds=
23032 shlibpath_overrides_runpath=unknown
23034 dynamic_linker="$host_os ld.so"
23035 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23036 if test "$GCC" = yes; then
23037 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23038 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23039 # if the path contains ";" then we assume it to be the separator
23040 # otherwise default to the standard path separator (i.e. ":") - it is
23041 # assumed that no part of a normal pathname contains ";" but that should
23042 # okay in the real world where ";" in dirpaths is itself problematic.
23043 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23045 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23048 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23050 need_lib_prefix=unknown
23051 hardcode_into_libs=no
23053 # when you set need_version to no, make sure it does not cause -set_version
23054 # flags to be left without arguments
23055 need_version=unknown
23060 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23061 shlibpath_var=LIBPATH
23063 # AIX 3 has no versioning support, so we append a major version to the name.
23064 soname_spec='${libname}${release}${shared_ext}$major'
23071 hardcode_into_libs=yes
23072 if test "$host_cpu" = ia64; then
23073 # AIX 5 supports IA64
23074 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23075 shlibpath_var=LD_LIBRARY_PATH
23077 # With GCC up to 2.95.x, collect2 would create an import file
23078 # for dependence libraries. The import file would start with
23079 # the line `#! .'. This would cause the generated library to
23080 # depend on `.', always an invalid library. This was fixed in
23081 # development snapshots of GCC prior to 3.0.
23083 aix4 | aix4.[01] | aix4.[01].*)
23084 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23086 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23089 can_build_shared=no
23093 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23094 # soname into executable. Probably we can add versioning support to
23095 # collect2, so additional links can be useful in future.
23096 if test "$aix_use_runtimelinking" = yes; then
23097 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23098 # instead of lib<name>.a to let people know that these are not
23099 # typical AIX shared libraries.
23100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23102 # We preserve .a as extension for shared libraries through AIX4.2
23103 # and later when we are not doing run time linking.
23104 library_names_spec='${libname}${release}.a $libname.a'
23105 soname_spec='${libname}${release}${shared_ext}$major'
23107 shlibpath_var=LIBPATH
23112 library_names_spec='$libname.ixlibrary $libname.a'
23113 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23114 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'
23118 library_names_spec='${libname}${shared_ext}'
23119 dynamic_linker="$host_os ld.so"
23120 shlibpath_var=LIBRARY_PATH
23126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23127 soname_spec='${libname}${release}${shared_ext}$major'
23128 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23129 shlibpath_var=LD_LIBRARY_PATH
23130 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23131 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23132 # the default ld.so.conf also contains /usr/contrib/lib and
23133 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23134 # libtool to hard-code these into programs
23137 cygwin* | mingw* | pw32*)
23138 version_type=windows
23143 case $GCC,$host_os in
23144 yes,cygwin* | yes,mingw* | yes,pw32*)
23145 library_names_spec='$libname.dll.a'
23146 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23147 postinstall_cmds='base_file=`basename \${file}`~
23148 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23149 dldir=$destdir/`dirname \$dlpath`~
23150 test -d \$dldir || mkdir -p \$dldir~
23151 $install_prog $dir/$dlname \$dldir/$dlname~
23152 chmod a+x \$dldir/$dlname'
23153 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23154 dlpath=$dir/\$dldll~
23156 shlibpath_overrides_runpath=yes
23160 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23161 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23162 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23165 # MinGW DLLs use traditional 'lib' prefix
23166 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23167 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23168 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23169 # It is most probably a Windows format PATH printed by
23170 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23171 # path with ; separators, and with drive letters. We can handle the
23172 # drive letters (cygwin fileutils understands them), so leave them,
23173 # especially as we might pass files found there to a mingw objdump,
23174 # which wouldn't understand a cygwinified path. Ahh.
23175 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23177 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23181 # pw32 DLLs use 'pw' prefix rather than 'lib'
23182 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23188 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23191 dynamic_linker='Win32 ld.exe'
23192 # FIXME: first we should search . and the directory the executable is in
23196 darwin* | rhapsody*)
23197 dynamic_linker="$host_os dyld"
23198 version_type=darwin
23201 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23202 soname_spec='${libname}${release}${major}$shared_ext'
23203 shlibpath_overrides_runpath=yes
23204 shlibpath_var=DYLD_LIBRARY_PATH
23205 shrext_cmds='.dylib'
23206 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23207 if test "$GCC" = yes; then
23208 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"`
23210 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23212 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23220 soname_spec='${libname}${release}${shared_ext}$major'
23221 shlibpath_var=LD_LIBRARY_PATH
23232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23233 soname_spec='${libname}${release}${shared_ext}$major'
23234 shlibpath_var=LD_LIBRARY_PATH
23235 shlibpath_overrides_runpath=no
23236 hardcode_into_libs=yes
23237 dynamic_linker='GNU ld.so'
23240 freebsd* | dragonfly*)
23241 # DragonFly does not have aout. When/if they implement a new
23242 # versioning mechanism, adjust this.
23243 if test -x /usr/bin/objformat; then
23244 objformat=`/usr/bin/objformat`
23247 freebsd[123]*) objformat=aout ;;
23248 *) objformat=elf ;;
23251 version_type=freebsd-$objformat
23252 case $version_type in
23254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23259 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23263 shlibpath_var=LD_LIBRARY_PATH
23266 shlibpath_overrides_runpath=yes
23268 freebsd3.[01]* | freebsdelf3.[01]*)
23269 shlibpath_overrides_runpath=yes
23270 hardcode_into_libs=yes
23272 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23273 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23274 shlibpath_overrides_runpath=no
23275 hardcode_into_libs=yes
23277 freebsd*) # from 4.6 on
23278 shlibpath_overrides_runpath=yes
23279 hardcode_into_libs=yes
23288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23289 soname_spec='${libname}${release}${shared_ext}$major'
23290 shlibpath_var=LD_LIBRARY_PATH
23291 hardcode_into_libs=yes
23294 hpux9* | hpux10* | hpux11*)
23295 # Give a soname corresponding to the major version so that dld.sl refuses to
23296 # link against other versions.
23303 hardcode_into_libs=yes
23304 dynamic_linker="$host_os dld.so"
23305 shlibpath_var=LD_LIBRARY_PATH
23306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23308 soname_spec='${libname}${release}${shared_ext}$major'
23309 if test "X$HPUX_IA64_MODE" = X32; then
23310 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23312 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23314 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23318 hardcode_into_libs=yes
23319 dynamic_linker="$host_os dld.sl"
23320 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23321 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23323 soname_spec='${libname}${release}${shared_ext}$major'
23324 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23325 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23329 dynamic_linker="$host_os dld.sl"
23330 shlibpath_var=SHLIB_PATH
23331 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23333 soname_spec='${libname}${release}${shared_ext}$major'
23336 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23337 postinstall_cmds='chmod 555 $lib'
23344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23345 soname_spec='${libname}${release}${shared_ext}$major'
23346 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23347 shlibpath_var=LD_LIBRARY_PATH
23348 shlibpath_overrides_runpath=no
23349 hardcode_into_libs=yes
23352 irix5* | irix6* | nonstopux*)
23354 nonstopux*) version_type=nonstopux ;;
23356 if test "$lt_cv_prog_gnu_ld" = yes; then
23364 soname_spec='${libname}${release}${shared_ext}$major'
23365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23367 irix5* | nonstopux*)
23368 libsuff= shlibsuff=
23371 case $LD in # libtool.m4 will add one of these switches to LD
23372 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23373 libsuff= shlibsuff= libmagic=32-bit;;
23374 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23375 libsuff=32 shlibsuff=N32 libmagic=N32;;
23376 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23377 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23378 *) libsuff= shlibsuff= libmagic=never-match;;
23382 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23383 shlibpath_overrides_runpath=no
23384 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23385 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23386 hardcode_into_libs=yes
23389 # No shared lib support for Linux oldld, aout, or coff.
23390 linux*oldld* | linux*aout* | linux*coff*)
23394 # This must be Linux ELF.
23399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23400 soname_spec='${libname}${release}${shared_ext}$major'
23401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23402 shlibpath_var=LD_LIBRARY_PATH
23403 shlibpath_overrides_runpath=no
23404 # This implies no fast_install, which is unacceptable.
23405 # Some rework will be needed to allow for fast_install
23406 # before this can be enabled.
23407 hardcode_into_libs=yes
23409 # Append ld.so.conf contents to the search path
23410 if test -f /etc/ld.so.conf; then
23411 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' ' '`
23412 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23415 # We used to test for /lib/ld.so.1 and disable shared libraries on
23416 # powerpc, because MkLinux only supported shared libraries with the
23417 # GNU dynamic linker. Since this was broken with cross compilers,
23418 # most powerpc-linux boxes support dynamic linking these days and
23419 # people can always --disable-shared, the test was removed, and we
23420 # assume the GNU/Linux dynamic linker is in use.
23421 dynamic_linker='GNU/Linux ld.so'
23428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23429 soname_spec='${libname}${release}${shared_ext}$major'
23430 shlibpath_var=LD_LIBRARY_PATH
23431 shlibpath_overrides_runpath=no
23432 hardcode_into_libs=yes
23433 dynamic_linker='GNU ld.so'
23440 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23443 dynamic_linker='NetBSD (a.out) ld.so'
23445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23446 soname_spec='${libname}${release}${shared_ext}$major'
23447 dynamic_linker='NetBSD ld.elf_so'
23449 shlibpath_var=LD_LIBRARY_PATH
23450 shlibpath_overrides_runpath=yes
23451 hardcode_into_libs=yes
23456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23457 shlibpath_var=LD_LIBRARY_PATH
23458 shlibpath_overrides_runpath=yes
23465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23466 soname_spec='${libname}${release}${shared_ext}$major'
23467 shlibpath_var=LD_LIBRARY_PATH
23468 shlibpath_overrides_runpath=yes
23473 sys_lib_dlsearch_path_spec="/usr/lib"
23475 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23477 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23478 *) need_version=no ;;
23480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23481 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23482 shlibpath_var=LD_LIBRARY_PATH
23483 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23485 openbsd2.[89] | openbsd2.[89].*)
23486 shlibpath_overrides_runpath=no
23489 shlibpath_overrides_runpath=yes
23493 shlibpath_overrides_runpath=yes
23498 libname_spec='$name'
23501 library_names_spec='$libname${shared_ext} $libname.a'
23502 dynamic_linker='OS/2 ld.exe'
23503 shlibpath_var=LIBPATH
23506 osf3* | osf4* | osf5*)
23510 soname_spec='${libname}${release}${shared_ext}$major'
23511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23512 shlibpath_var=LD_LIBRARY_PATH
23513 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23514 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23522 soname_spec='${libname}${release}${shared_ext}$major'
23523 shlibpath_var=LD_LIBRARY_PATH
23524 shlibpath_overrides_runpath=yes
23525 hardcode_into_libs=yes
23526 # ldd complains unless libraries are executable
23527 postinstall_cmds='chmod +x $lib'
23532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23533 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23534 shlibpath_var=LD_LIBRARY_PATH
23535 shlibpath_overrides_runpath=yes
23536 if test "$with_gnu_ld" = yes; then
23544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23545 soname_spec='${libname}${release}${shared_ext}$major'
23546 shlibpath_var=LD_LIBRARY_PATH
23547 case $host_vendor in
23549 shlibpath_overrides_runpath=no
23551 export_dynamic_flag_spec='${wl}-Blargedynsym'
23552 runpath_var=LD_RUN_PATH
23560 shlibpath_overrides_runpath=no
23561 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23567 if test -d /usr/nec ;then
23569 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23570 soname_spec='$libname${shared_ext}.$major'
23571 shlibpath_var=LD_LIBRARY_PATH
23575 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23576 version_type=freebsd-elf
23579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23580 soname_spec='${libname}${release}${shared_ext}$major'
23581 shlibpath_var=LD_LIBRARY_PATH
23582 hardcode_into_libs=yes
23583 if test "$with_gnu_ld" = yes; then
23584 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23585 shlibpath_overrides_runpath=no
23587 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23588 shlibpath_overrides_runpath=yes
23591 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23595 sys_lib_dlsearch_path_spec='/usr/lib'
23600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23601 soname_spec='${libname}${release}${shared_ext}$major'
23602 shlibpath_var=LD_LIBRARY_PATH
23609 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23610 echo "${ECHO_T}$dynamic_linker" >&6; }
23611 test "$dynamic_linker" = no && can_build_shared=no
23613 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23614 if test "$GCC" = yes; then
23615 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23618 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23619 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23620 hardcode_action_F77=
23621 if test -n "$hardcode_libdir_flag_spec_F77" || \
23622 test -n "$runpath_var_F77" || \
23623 test "X$hardcode_automatic_F77" = "Xyes" ; then
23625 # We can hardcode non-existant directories.
23626 if test "$hardcode_direct_F77" != no &&
23627 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23628 # have to relink, otherwise we might link with an installed library
23629 # when we should be linking with a yet-to-be-installed one
23630 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23631 test "$hardcode_minus_L_F77" != no; then
23632 # Linking always hardcodes the temporary library directory.
23633 hardcode_action_F77=relink
23635 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23636 hardcode_action_F77=immediate
23639 # We cannot hardcode anything, or else we can only hardcode existing
23641 hardcode_action_F77=unsupported
23643 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23644 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23646 if test "$hardcode_action_F77" = relink; then
23647 # Fast installation is not supported
23648 enable_fast_install=no
23649 elif test "$shlibpath_overrides_runpath" = yes ||
23650 test "$enable_shared" = no; then
23651 # Fast installation is not necessary
23652 enable_fast_install=needless
23656 # The else clause should only fire when bootstrapping the
23657 # libtool distribution, otherwise you forgot to ship ltmain.sh
23658 # with your package, and you will get complaints that there are
23659 # no rules to generate ltmain.sh.
23660 if test -f "$ltmain"; then
23661 # See if we are running on zsh, and set the options which allow our commands through
23662 # without removal of \ escapes.
23663 if test -n "${ZSH_VERSION+set}" ; then
23664 setopt NO_GLOB_SUBST
23666 # Now quote all the things that may contain metacharacters while being
23667 # careful not to overquote the AC_SUBSTed values. We take copies of the
23668 # variables and quote the copies for generation of the libtool script.
23669 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23671 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23672 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23673 deplibs_check_method reload_flag reload_cmds need_locks \
23674 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23675 lt_cv_sys_global_symbol_to_c_name_address \
23676 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23677 old_postinstall_cmds old_postuninstall_cmds \
23681 lt_prog_compiler_wl_F77 \
23682 lt_prog_compiler_pic_F77 \
23683 lt_prog_compiler_static_F77 \
23684 lt_prog_compiler_no_builtin_flag_F77 \
23685 export_dynamic_flag_spec_F77 \
23686 thread_safe_flag_spec_F77 \
23687 whole_archive_flag_spec_F77 \
23688 enable_shared_with_static_runtimes_F77 \
23689 old_archive_cmds_F77 \
23690 old_archive_from_new_cmds_F77 \
23691 predep_objects_F77 \
23692 postdep_objects_F77 \
23695 compiler_lib_search_path_F77 \
23697 archive_expsym_cmds_F77 \
23698 postinstall_cmds_F77 \
23699 postuninstall_cmds_F77 \
23700 old_archive_from_expsyms_cmds_F77 \
23701 allow_undefined_flag_F77 \
23702 no_undefined_flag_F77 \
23703 export_symbols_cmds_F77 \
23704 hardcode_libdir_flag_spec_F77 \
23705 hardcode_libdir_flag_spec_ld_F77 \
23706 hardcode_libdir_separator_F77 \
23707 hardcode_automatic_F77 \
23709 module_expsym_cmds_F77 \
23710 lt_cv_prog_compiler_c_o_F77 \
23711 exclude_expsyms_F77 \
23712 include_expsyms_F77; do
23715 old_archive_cmds_F77 | \
23716 old_archive_from_new_cmds_F77 | \
23717 archive_cmds_F77 | \
23718 archive_expsym_cmds_F77 | \
23719 module_cmds_F77 | \
23720 module_expsym_cmds_F77 | \
23721 old_archive_from_expsyms_cmds_F77 | \
23722 export_symbols_cmds_F77 | \
23723 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23724 postinstall_cmds | postuninstall_cmds | \
23725 old_postinstall_cmds | old_postuninstall_cmds | \
23726 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23727 # Double-quote double-evaled strings.
23728 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23731 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23737 *'\$0 --fallback-echo"')
23738 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23744 cat <<__EOF__ >> "$cfgfile"
23745 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23747 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23749 # Shell to use when invoking shell scripts.
23752 # Whether or not to build shared libraries.
23753 build_libtool_libs=$enable_shared
23755 # Whether or not to build static libraries.
23756 build_old_libs=$enable_static
23758 # Whether or not to add -lc for building shared libraries.
23759 build_libtool_need_lc=$archive_cmds_need_lc_F77
23761 # Whether or not to disallow shared libs when runtime libs are static
23762 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23764 # Whether or not to optimize for fast installation.
23765 fast_install=$enable_fast_install
23768 host_alias=$host_alias
23772 # The build system.
23773 build_alias=$build_alias
23777 # An echo program that does not interpret backslashes.
23782 AR_FLAGS=$lt_AR_FLAGS
23787 # LTCC compiler flags.
23788 LTCFLAGS=$lt_LTCFLAGS
23790 # A language-specific compiler.
23791 CC=$lt_compiler_F77
23793 # Is the compiler the GNU C compiler?
23799 # The linker used to build libraries.
23802 # Whether we need hard or soft links.
23805 # A BSD-compatible nm program.
23808 # A symbol stripping program
23811 # Used to examine libraries when file_magic_cmd begins "file"
23812 MAGIC_CMD=$MAGIC_CMD
23814 # Used on cygwin: DLL creation program.
23817 # Used on cygwin: object dumper.
23820 # Used on cygwin: assembler.
23823 # The name of the directory that contains temporary libtool files.
23826 # How to create reloadable object files.
23827 reload_flag=$lt_reload_flag
23828 reload_cmds=$lt_reload_cmds
23830 # How to pass a linker flag through the compiler.
23831 wl=$lt_lt_prog_compiler_wl_F77
23833 # Object file suffix (normally "o").
23834 objext="$ac_objext"
23836 # Old archive suffix (normally "a").
23839 # Shared library suffix (normally ".so").
23840 shrext_cmds='$shrext_cmds'
23842 # Executable file suffix (normally "").
23845 # Additional compiler flags for building library objects.
23846 pic_flag=$lt_lt_prog_compiler_pic_F77
23849 # What is the maximum length of a command?
23850 max_cmd_len=$lt_cv_sys_max_cmd_len
23852 # Does compiler simultaneously support -c and -o options?
23853 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23855 # Must we lock files when doing compilation?
23856 need_locks=$lt_need_locks
23858 # Do we need the lib prefix for modules?
23859 need_lib_prefix=$need_lib_prefix
23861 # Do we need a version for libraries?
23862 need_version=$need_version
23864 # Whether dlopen is supported.
23865 dlopen_support=$enable_dlopen
23867 # Whether dlopen of programs is supported.
23868 dlopen_self=$enable_dlopen_self
23870 # Whether dlopen of statically linked programs is supported.
23871 dlopen_self_static=$enable_dlopen_self_static
23873 # Compiler flag to prevent dynamic linking.
23874 link_static_flag=$lt_lt_prog_compiler_static_F77
23876 # Compiler flag to turn off builtin functions.
23877 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23879 # Compiler flag to allow reflexive dlopens.
23880 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23882 # Compiler flag to generate shared objects directly from archives.
23883 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23885 # Compiler flag to generate thread-safe objects.
23886 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23888 # Library versioning type.
23889 version_type=$version_type
23891 # Format of library name prefix.
23892 libname_spec=$lt_libname_spec
23894 # List of archive names. First name is the real one, the rest are links.
23895 # The last name is the one that the linker finds with -lNAME.
23896 library_names_spec=$lt_library_names_spec
23898 # The coded name of the library, if different from the real name.
23899 soname_spec=$lt_soname_spec
23901 # Commands used to build and install an old-style archive.
23903 old_archive_cmds=$lt_old_archive_cmds_F77
23904 old_postinstall_cmds=$lt_old_postinstall_cmds
23905 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23907 # Create an old-style archive from a shared archive.
23908 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23910 # Create a temporary old-style archive to link instead of a shared archive.
23911 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23913 # Commands used to build and install a shared archive.
23914 archive_cmds=$lt_archive_cmds_F77
23915 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23916 postinstall_cmds=$lt_postinstall_cmds
23917 postuninstall_cmds=$lt_postuninstall_cmds
23919 # Commands used to build a loadable module (assumed same as above if empty)
23920 module_cmds=$lt_module_cmds_F77
23921 module_expsym_cmds=$lt_module_expsym_cmds_F77
23923 # Commands to strip libraries.
23924 old_striplib=$lt_old_striplib
23925 striplib=$lt_striplib
23927 # Dependencies to place before the objects being linked to create a
23929 predep_objects=$lt_predep_objects_F77
23931 # Dependencies to place after the objects being linked to create a
23933 postdep_objects=$lt_postdep_objects_F77
23935 # Dependencies to place before the objects being linked to create a
23937 predeps=$lt_predeps_F77
23939 # Dependencies to place after the objects being linked to create a
23941 postdeps=$lt_postdeps_F77
23943 # The library search path used internally by the compiler when linking
23944 # a shared library.
23945 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23947 # Method to check whether dependent libraries are shared objects.
23948 deplibs_check_method=$lt_deplibs_check_method
23950 # Command to use when deplibs_check_method == file_magic.
23951 file_magic_cmd=$lt_file_magic_cmd
23953 # Flag that allows shared libraries with undefined symbols to be built.
23954 allow_undefined_flag=$lt_allow_undefined_flag_F77
23956 # Flag that forces no undefined symbols.
23957 no_undefined_flag=$lt_no_undefined_flag_F77
23959 # Commands used to finish a libtool library installation in a directory.
23960 finish_cmds=$lt_finish_cmds
23962 # Same as above, but a single script fragment to be evaled but not shown.
23963 finish_eval=$lt_finish_eval
23965 # Take the output of nm and produce a listing of raw symbols and C names.
23966 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23968 # Transform the output of nm in a proper C declaration
23969 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23971 # Transform the output of nm in a C name address pair
23972 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23974 # This is the shared library runtime path variable.
23975 runpath_var=$runpath_var
23977 # This is the shared library path variable.
23978 shlibpath_var=$shlibpath_var
23980 # Is shlibpath searched before the hard-coded library search path?
23981 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23983 # How to hardcode a shared library path into an executable.
23984 hardcode_action=$hardcode_action_F77
23986 # Whether we should hardcode library paths into libraries.
23987 hardcode_into_libs=$hardcode_into_libs
23989 # Flag to hardcode \$libdir into a binary during linking.
23990 # This must work even if \$libdir does not exist.
23991 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23993 # If ld is used when linking, flag to hardcode \$libdir into
23994 # a binary during linking. This must work even if \$libdir does
23996 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23998 # Whether we need a single -rpath flag with a separated argument.
23999 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24001 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24002 # resulting binary.
24003 hardcode_direct=$hardcode_direct_F77
24005 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24006 # resulting binary.
24007 hardcode_minus_L=$hardcode_minus_L_F77
24009 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24010 # the resulting binary.
24011 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24013 # Set to yes if building a shared library automatically hardcodes DIR into the library
24014 # and all subsequent libraries and executables linked against it.
24015 hardcode_automatic=$hardcode_automatic_F77
24017 # Variables whose values should be saved in libtool wrapper scripts and
24018 # restored at relink time.
24019 variables_saved_for_relink="$variables_saved_for_relink"
24021 # Whether libtool must link a program against all its dependency libraries.
24022 link_all_deplibs=$link_all_deplibs_F77
24024 # Compile-time system search path for libraries
24025 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24027 # Run-time system search path for libraries
24028 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24030 # Fix the shell variable \$srcfile for the compiler.
24031 fix_srcfile_path="$fix_srcfile_path_F77"
24033 # Set to yes if exported symbols are required.
24034 always_export_symbols=$always_export_symbols_F77
24036 # The commands to list exported symbols.
24037 export_symbols_cmds=$lt_export_symbols_cmds_F77
24039 # The commands to extract the exported symbol list from a shared archive.
24040 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24042 # Symbols that should not be listed in the preloaded symbols.
24043 exclude_expsyms=$lt_exclude_expsyms_F77
24045 # Symbols that must always be exported.
24046 include_expsyms=$lt_include_expsyms_F77
24048 # ### END LIBTOOL TAG CONFIG: $tagname
24054 # If there is no Makefile yet, we rely on a make rule to execute
24055 # `config.status --recheck' to rerun these tests and create the
24056 # libtool script then.
24057 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24058 if test -f "$ltmain_in"; then
24059 test -f Makefile && make "$ltmain"
24065 ac_cpp='$CPP $CPPFLAGS'
24066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24078 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24080 ac_cpp='$CPP $CPPFLAGS'
24081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24086 # Source file extension for Java test sources.
24089 # Object file extension for compiled Java test sources.
24093 # Code to be used in simple compile tests
24094 lt_simple_compile_test_code="class foo {}\n"
24096 # Code to be used in simple link tests
24097 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24099 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24101 # If no C compiler was specified, use CC.
24104 # If no C compiler flags were specified, use CFLAGS.
24105 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24107 # Allow CC to be a program name with arguments.
24111 # save warnings/boilerplate of simple test code
24112 ac_outfile=conftest.$ac_objext
24113 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24114 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24115 _lt_compiler_boilerplate=`cat conftest.err`
24118 ac_outfile=conftest.$ac_objext
24119 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24120 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24121 _lt_linker_boilerplate=`cat conftest.err`
24125 # Allow CC to be a program name with arguments.
24130 for cc_temp in $compiler""; do
24132 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24133 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24138 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24141 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24142 archive_cmds_need_lc_GCJ=no
24144 old_archive_cmds_GCJ=$old_archive_cmds
24147 lt_prog_compiler_no_builtin_flag_GCJ=
24149 if test "$GCC" = yes; then
24150 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24153 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24154 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24155 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24156 echo $ECHO_N "(cached) $ECHO_C" >&6
24158 lt_cv_prog_compiler_rtti_exceptions=no
24159 ac_outfile=conftest.$ac_objext
24160 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24161 lt_compiler_flag="-fno-rtti -fno-exceptions"
24162 # Insert the option either (1) after the last *FLAGS variable, or
24163 # (2) before a word containing "conftest.", or (3) at the end.
24164 # Note that $ac_compile itself does not contain backslashes and begins
24165 # with a dollar sign (not a hyphen), so the echo should work correctly.
24166 # The option is referenced via a variable to avoid confusing sed.
24167 lt_compile=`echo "$ac_compile" | $SED \
24168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24170 -e 's:$: $lt_compiler_flag:'`
24171 (eval echo "\"\$as_me:24171: $lt_compile\"" >&5)
24172 (eval "$lt_compile" 2>conftest.err)
24174 cat conftest.err >&5
24175 echo "$as_me:24175: \$? = $ac_status" >&5
24176 if (exit $ac_status) && test -s "$ac_outfile"; then
24177 # The compiler can only warn and ignore the option if not recognized
24178 # So say no if there are warnings other than the usual output.
24179 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24181 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24182 lt_cv_prog_compiler_rtti_exceptions=yes
24188 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24189 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24191 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24192 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24199 lt_prog_compiler_wl_GCJ=
24200 lt_prog_compiler_pic_GCJ=
24201 lt_prog_compiler_static_GCJ=
24203 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24204 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24206 if test "$GCC" = yes; then
24207 lt_prog_compiler_wl_GCJ='-Wl,'
24208 lt_prog_compiler_static_GCJ='-static'
24212 # All AIX code is PIC.
24213 if test "$host_cpu" = ia64; then
24214 # AIX 5 now supports IA64 processor
24215 lt_prog_compiler_static_GCJ='-Bstatic'
24220 # FIXME: we need at least 68020 code to build shared libraries, but
24221 # adding the `-m68020' flag to GCC prevents building anything better,
24223 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24226 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24227 # PIC is the default for these OSes.
24230 mingw* | pw32* | os2*)
24231 # This hack is so that the source file can tell whether it is being
24232 # built for inclusion in a dll (and should export symbols for example).
24233 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24236 darwin* | rhapsody*)
24237 # PIC is the default on this platform
24238 # Common symbols not allowed in MH_DYLIB files
24239 lt_prog_compiler_pic_GCJ='-fno-common'
24243 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24244 # Instead, we relocate shared libraries at runtime.
24248 # Just because we use GCC doesn't mean we suddenly get shared libraries
24249 # on systems that don't support them.
24250 lt_prog_compiler_can_build_shared_GCJ=no
24255 if test -d /usr/nec; then
24256 lt_prog_compiler_pic_GCJ=-Kconform_pic
24261 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24262 # not for PA HP-UX.
24268 lt_prog_compiler_pic_GCJ='-fPIC'
24274 lt_prog_compiler_pic_GCJ='-fPIC'
24278 # PORTME Check for flag to pass linker flags through the system compiler.
24281 lt_prog_compiler_wl_GCJ='-Wl,'
24282 if test "$host_cpu" = ia64; then
24283 # AIX 5 now supports IA64 processor
24284 lt_prog_compiler_static_GCJ='-Bstatic'
24286 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24290 # PIC is the default on this platform
24291 # Common symbols not allowed in MH_DYLIB files
24292 case $cc_basename in
24294 lt_prog_compiler_pic_GCJ='-qnocommon'
24295 lt_prog_compiler_wl_GCJ='-Wl,'
24300 mingw* | pw32* | os2*)
24301 # This hack is so that the source file can tell whether it is being
24302 # built for inclusion in a dll (and should export symbols for example).
24303 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24306 hpux9* | hpux10* | hpux11*)
24307 lt_prog_compiler_wl_GCJ='-Wl,'
24308 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24309 # not for PA HP-UX.
24315 lt_prog_compiler_pic_GCJ='+Z'
24318 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24319 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24322 irix5* | irix6* | nonstopux*)
24323 lt_prog_compiler_wl_GCJ='-Wl,'
24324 # PIC (with -KPIC) is the default.
24325 lt_prog_compiler_static_GCJ='-non_shared'
24329 lt_prog_compiler_pic_GCJ='-KPIC'
24330 lt_prog_compiler_static_GCJ='-Bstatic'
24334 case $cc_basename in
24336 lt_prog_compiler_wl_GCJ='-Wl,'
24337 lt_prog_compiler_pic_GCJ='-KPIC'
24338 lt_prog_compiler_static_GCJ='-static'
24340 pgcc* | pgf77* | pgf90* | pgf95*)
24341 # Portland Group compilers (*not* the Pentium gcc compiler,
24342 # which looks to be a dead project)
24343 lt_prog_compiler_wl_GCJ='-Wl,'
24344 lt_prog_compiler_pic_GCJ='-fpic'
24345 lt_prog_compiler_static_GCJ='-Bstatic'
24348 lt_prog_compiler_wl_GCJ='-Wl,'
24349 # All Alpha code is PIC.
24350 lt_prog_compiler_static_GCJ='-non_shared'
24355 osf3* | osf4* | osf5*)
24356 lt_prog_compiler_wl_GCJ='-Wl,'
24357 # All OSF/1 code is PIC.
24358 lt_prog_compiler_static_GCJ='-non_shared'
24362 lt_prog_compiler_pic_GCJ='-KPIC'
24363 lt_prog_compiler_static_GCJ='-Bstatic'
24364 case $cc_basename in
24365 f77* | f90* | f95*)
24366 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24368 lt_prog_compiler_wl_GCJ='-Wl,';;
24373 lt_prog_compiler_wl_GCJ='-Qoption ld '
24374 lt_prog_compiler_pic_GCJ='-PIC'
24375 lt_prog_compiler_static_GCJ='-Bstatic'
24378 sysv4 | sysv4.2uw2* | sysv4.3*)
24379 lt_prog_compiler_wl_GCJ='-Wl,'
24380 lt_prog_compiler_pic_GCJ='-KPIC'
24381 lt_prog_compiler_static_GCJ='-Bstatic'
24385 if test -d /usr/nec ;then
24386 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24387 lt_prog_compiler_static_GCJ='-Bstatic'
24391 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24392 lt_prog_compiler_wl_GCJ='-Wl,'
24393 lt_prog_compiler_pic_GCJ='-KPIC'
24394 lt_prog_compiler_static_GCJ='-Bstatic'
24398 lt_prog_compiler_wl_GCJ='-Wl,'
24399 lt_prog_compiler_can_build_shared_GCJ=no
24403 lt_prog_compiler_pic_GCJ='-pic'
24404 lt_prog_compiler_static_GCJ='-Bstatic'
24408 lt_prog_compiler_can_build_shared_GCJ=no
24413 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24414 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24417 # Check to make sure the PIC flag actually works.
24419 if test -n "$lt_prog_compiler_pic_GCJ"; then
24421 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24422 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24423 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24424 echo $ECHO_N "(cached) $ECHO_C" >&6
24426 lt_prog_compiler_pic_works_GCJ=no
24427 ac_outfile=conftest.$ac_objext
24428 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24429 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24430 # Insert the option either (1) after the last *FLAGS variable, or
24431 # (2) before a word containing "conftest.", or (3) at the end.
24432 # Note that $ac_compile itself does not contain backslashes and begins
24433 # with a dollar sign (not a hyphen), so the echo should work correctly.
24434 # The option is referenced via a variable to avoid confusing sed.
24435 lt_compile=`echo "$ac_compile" | $SED \
24436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24438 -e 's:$: $lt_compiler_flag:'`
24439 (eval echo "\"\$as_me:24439: $lt_compile\"" >&5)
24440 (eval "$lt_compile" 2>conftest.err)
24442 cat conftest.err >&5
24443 echo "$as_me:24443: \$? = $ac_status" >&5
24444 if (exit $ac_status) && test -s "$ac_outfile"; then
24445 # The compiler can only warn and ignore the option if not recognized
24446 # So say no if there are warnings other than the usual output.
24447 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24448 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24449 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24450 lt_prog_compiler_pic_works_GCJ=yes
24456 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24457 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24459 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24460 case $lt_prog_compiler_pic_GCJ in
24462 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24465 lt_prog_compiler_pic_GCJ=
24466 lt_prog_compiler_can_build_shared_GCJ=no
24471 # For platforms which do not support PIC, -DPIC is meaningless:
24473 lt_prog_compiler_pic_GCJ=
24476 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24481 # Check to make sure the static flag actually works.
24483 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24484 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24485 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24486 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24487 echo $ECHO_N "(cached) $ECHO_C" >&6
24489 lt_prog_compiler_static_works_GCJ=no
24490 save_LDFLAGS="$LDFLAGS"
24491 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24492 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24493 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24494 # The linker can only warn and ignore the option if not recognized
24495 # So say no if there are warnings
24496 if test -s conftest.err; then
24497 # Append any errors to the config.log.
24498 cat conftest.err 1>&5
24499 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24501 if diff conftest.exp conftest.er2 >/dev/null; then
24502 lt_prog_compiler_static_works_GCJ=yes
24505 lt_prog_compiler_static_works_GCJ=yes
24509 LDFLAGS="$save_LDFLAGS"
24512 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24513 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24515 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24518 lt_prog_compiler_static_GCJ=
24522 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24523 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24524 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24525 echo $ECHO_N "(cached) $ECHO_C" >&6
24527 lt_cv_prog_compiler_c_o_GCJ=no
24528 $rm -r conftest 2>/dev/null
24532 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24534 lt_compiler_flag="-o out/conftest2.$ac_objext"
24535 # Insert the option either (1) after the last *FLAGS variable, or
24536 # (2) before a word containing "conftest.", or (3) at the end.
24537 # Note that $ac_compile itself does not contain backslashes and begins
24538 # with a dollar sign (not a hyphen), so the echo should work correctly.
24539 lt_compile=`echo "$ac_compile" | $SED \
24540 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24542 -e 's:$: $lt_compiler_flag:'`
24543 (eval echo "\"\$as_me:24543: $lt_compile\"" >&5)
24544 (eval "$lt_compile" 2>out/conftest.err)
24546 cat out/conftest.err >&5
24547 echo "$as_me:24547: \$? = $ac_status" >&5
24548 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24550 # The compiler can only warn and ignore the option if not recognized
24551 # So say no if there are warnings
24552 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24553 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24554 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24555 lt_cv_prog_compiler_c_o_GCJ=yes
24560 # SGI C++ compiler will create directory out/ii_files/ for
24561 # template instantiation
24562 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24563 $rm out/* && rmdir out
24569 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24570 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24573 hard_links="nottested"
24574 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24575 # do not overwrite the value of need_locks provided by the user
24576 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24577 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24580 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24582 ln conftest.a conftest.b 2>&5 || hard_links=no
24583 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24584 { echo "$as_me:$LINENO: result: $hard_links" >&5
24585 echo "${ECHO_T}$hard_links" >&6; }
24586 if test "$hard_links" = no; then
24587 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24588 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24595 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24596 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24599 allow_undefined_flag_GCJ=
24600 enable_shared_with_static_runtimes_GCJ=no
24602 archive_expsym_cmds_GCJ=
24603 old_archive_From_new_cmds_GCJ=
24604 old_archive_from_expsyms_cmds_GCJ=
24605 export_dynamic_flag_spec_GCJ=
24606 whole_archive_flag_spec_GCJ=
24607 thread_safe_flag_spec_GCJ=
24608 hardcode_libdir_flag_spec_GCJ=
24609 hardcode_libdir_flag_spec_ld_GCJ=
24610 hardcode_libdir_separator_GCJ=
24611 hardcode_direct_GCJ=no
24612 hardcode_minus_L_GCJ=no
24613 hardcode_shlibpath_var_GCJ=unsupported
24614 link_all_deplibs_GCJ=unknown
24615 hardcode_automatic_GCJ=no
24617 module_expsym_cmds_GCJ=
24618 always_export_symbols_GCJ=no
24619 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24620 # include_expsyms should be a list of space-separated symbols to be *always*
24621 # included in the symbol list
24622 include_expsyms_GCJ=
24623 # exclude_expsyms can be an extended regexp of symbols to exclude
24624 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24625 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24626 # as well as any symbol that contains `d'.
24627 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24628 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24629 # platforms (ab)use it in PIC code, but their linkers get confused if
24630 # the symbol is explicitly referenced. Since portable code cannot
24631 # rely on this symbol name, it's probably fine to never include it in
24632 # preloaded symbol tables.
24633 extract_expsyms_cmds=
24634 # Just being paranoid about ensuring that cc_basename is set.
24635 for cc_temp in $compiler""; do
24637 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24638 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24643 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24646 cygwin* | mingw* | pw32*)
24647 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24648 # When not using gcc, we currently assume that we are using
24649 # Microsoft Visual C++.
24650 if test "$GCC" != yes; then
24655 # we just hope/assume this is gcc and not c89 (= MSVC++)
24664 if test "$with_gnu_ld" = yes; then
24665 # If archive_cmds runs LD, not CC, wlarc should be empty
24668 # Set some defaults for GNU ld with shared library support. These
24669 # are reset later if shared libraries are not supported. Putting them
24670 # here allows them to be overridden if necessary.
24671 runpath_var=LD_RUN_PATH
24672 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24673 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24674 # ancient GNU ld didn't support --whole-archive et. al.
24675 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24676 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24678 whole_archive_flag_spec_GCJ=
24680 supports_anon_versioning=no
24681 case `$LD -v 2>/dev/null` in
24682 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24683 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24684 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24685 *\ 2.11.*) ;; # other 2.11 versions
24686 *) supports_anon_versioning=yes ;;
24689 # See if GNU ld supports shared libraries.
24691 aix3* | aix4* | aix5*)
24692 # On AIX/PPC, the GNU linker is very broken
24693 if test "$host_cpu" != ia64; then
24697 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24698 *** to be unable to reliably create shared libraries on AIX.
24699 *** Therefore, libtool is disabling shared libraries support. If you
24700 *** really care for shared libraries, you may want to modify your PATH
24701 *** so that a non-GNU linker is found, and then restart.
24708 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)'
24709 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24710 hardcode_minus_L_GCJ=yes
24712 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24713 # that the semantics of dynamic libraries on AmigaOS, at least up
24714 # to version 4, is to share data among multiple programs linked
24715 # with the same dynamic library. Since this doesn't match the
24716 # behavior of shared libraries on other platforms, we can't use
24722 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24723 allow_undefined_flag_GCJ=unsupported
24724 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24725 # support --undefined. This deserves some investigation. FIXME
24726 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24732 cygwin* | mingw* | pw32*)
24733 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24734 # as there is no search path for DLLs.
24735 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24736 allow_undefined_flag_GCJ=unsupported
24737 always_export_symbols_GCJ=no
24738 enable_shared_with_static_runtimes_GCJ=yes
24739 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24741 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24742 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24743 # If the export-symbols file already is a .def file (1st line
24744 # is EXPORTS), use it as is; otherwise, prepend...
24745 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24746 cp $export_symbols $output_objdir/$soname.def;
24748 echo EXPORTS > $output_objdir/$soname.def;
24749 cat $export_symbols >> $output_objdir/$soname.def;
24751 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24758 hardcode_direct_GCJ=no
24759 hardcode_shlibpath_var_GCJ=no
24760 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24761 export_dynamic_flag_spec_GCJ='${wl}-E'
24762 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24763 # Instead, shared libraries are loaded at an image base (0x10000000 by
24764 # default) and relocated if they conflict, which is a slow very memory
24765 # consuming and fragmenting process. To avoid this, we pick a random,
24766 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24767 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24768 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'
24769 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'
24773 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24775 case $cc_basename,$host_cpu in
24776 pgcc*) # Portland Group C compiler
24777 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'
24778 tmp_addflag=' $pic_flag'
24780 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24781 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'
24782 tmp_addflag=' $pic_flag -Mnomain' ;;
24783 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24784 tmp_addflag=' -i_dynamic' ;;
24785 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24786 tmp_addflag=' -i_dynamic -nofor_main' ;;
24787 ifc* | ifort*) # Intel Fortran compiler
24788 tmp_addflag=' -nofor_main' ;;
24790 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24792 if test $supports_anon_versioning = yes; then
24793 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24794 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24795 $echo "local: *; };" >> $output_objdir/$libname.ver~
24796 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24804 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24805 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24808 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24809 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24814 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24818 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24819 *** create shared libraries on Solaris systems. Therefore, libtool
24820 *** is disabling shared libraries support. We urge you to upgrade GNU
24821 *** binutils to release 2.9.1 or newer. Another option is to modify
24822 *** your PATH or compiler configuration so that the native linker is
24823 *** used, and then restart.
24826 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24827 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24828 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24834 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24835 case `$LD -v 2>&1` in
24836 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24840 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24841 *** reliably create shared libraries on SCO systems. Therefore, libtool
24842 *** is disabling shared libraries support. We urge you to upgrade GNU
24843 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24844 *** your PATH or compiler configuration so that the native linker is
24845 *** used, and then restart.
24850 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24851 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24852 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24853 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24862 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24864 hardcode_direct_GCJ=yes
24865 hardcode_shlibpath_var_GCJ=no
24869 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24870 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24871 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24878 if test "$ld_shlibs_GCJ" = no; then
24880 hardcode_libdir_flag_spec_GCJ=
24881 export_dynamic_flag_spec_GCJ=
24882 whole_archive_flag_spec_GCJ=
24885 # PORTME fill in a description of your system's linker (not GNU ld)
24888 allow_undefined_flag_GCJ=unsupported
24889 always_export_symbols_GCJ=yes
24890 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'
24891 # Note: this linker hardcodes the directories in LIBPATH if there
24892 # are no directories specified by -L.
24893 hardcode_minus_L_GCJ=yes
24894 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24895 # Neither direct hardcoding nor static linking is supported with a
24897 hardcode_direct_GCJ=unsupported
24902 if test "$host_cpu" = ia64; then
24903 # On IA64, the linker does run time linking by default, so we don't
24904 # have to do anything special.
24905 aix_use_runtimelinking=no
24906 exp_sym_flag='-Bexport'
24909 # If we're using GNU nm, then we don't want the "-C" option.
24910 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24911 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24912 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'
24914 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'
24916 aix_use_runtimelinking=no
24918 # Test if we are trying to use run time linking or normal
24919 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24920 # need to do runtime linking.
24921 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24922 for ld_flag in $LDFLAGS; do
24923 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24924 aix_use_runtimelinking=yes
24931 exp_sym_flag='-bexport'
24932 no_entry_flag='-bnoentry'
24935 # When large executables or shared objects are built, AIX ld can
24936 # have problems creating the table of contents. If linking a library
24937 # or program results in "error TOC overflow" add -mminimal-toc to
24938 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24939 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24941 archive_cmds_GCJ=''
24942 hardcode_direct_GCJ=yes
24943 hardcode_libdir_separator_GCJ=':'
24944 link_all_deplibs_GCJ=yes
24946 if test "$GCC" = yes; then
24947 case $host_os in aix4.[012]|aix4.[012].*)
24948 # We only want to do this on AIX 4.2 and lower, the check
24949 # below for broken collect2 doesn't work under 4.3+
24950 collect2name=`${CC} -print-prog-name=collect2`
24951 if test -f "$collect2name" && \
24952 strings "$collect2name" | grep resolve_lib_name >/dev/null
24954 # We have reworked collect2
24955 hardcode_direct_GCJ=yes
24957 # We have old collect2
24958 hardcode_direct_GCJ=unsupported
24959 # It fails to find uninstalled libraries when the uninstalled
24960 # path is not listed in the libpath. Setting hardcode_minus_L
24961 # to unsupported forces relinking
24962 hardcode_minus_L_GCJ=yes
24963 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24964 hardcode_libdir_separator_GCJ=
24968 shared_flag='-shared'
24969 if test "$aix_use_runtimelinking" = yes; then
24970 shared_flag="$shared_flag "'${wl}-G'
24974 if test "$host_cpu" = ia64; then
24975 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24976 # chokes on -Wl,-G. The following line is correct:
24979 if test "$aix_use_runtimelinking" = yes; then
24980 shared_flag='${wl}-G'
24982 shared_flag='${wl}-bM:SRE'
24987 # It seems that -bexpall does not export symbols beginning with
24988 # underscore (_), so it is better to generate a list of symbols to export.
24989 always_export_symbols_GCJ=yes
24990 if test "$aix_use_runtimelinking" = yes; then
24991 # Warning - without using the other runtime loading flags (-brtl),
24992 # -berok will link without error, but may produce a broken library.
24993 allow_undefined_flag_GCJ='-berok'
24994 # Determine the default libpath from the value encoded in an empty executable.
24995 cat >conftest.$ac_ext <<_ACEOF
24998 cat confdefs.h >>conftest.$ac_ext
24999 cat >>conftest.$ac_ext <<_ACEOF
25000 /* end confdefs.h. */
25010 rm -f conftest.$ac_objext conftest$ac_exeext
25011 if { (ac_try="$ac_link"
25012 case "(($ac_try" in
25013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25014 *) ac_try_echo=$ac_try;;
25016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25017 (eval "$ac_link") 2>conftest.er1
25019 grep -v '^ *+' conftest.er1 >conftest.err
25021 cat conftest.err >&5
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); } &&
25024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25025 { (case "(($ac_try" in
25026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25027 *) ac_try_echo=$ac_try;;
25029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25030 (eval "$ac_try") 2>&5
25032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033 (exit $ac_status); }; } &&
25034 { ac_try='test -s conftest$ac_exeext'
25035 { (case "(($ac_try" in
25036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25037 *) ac_try_echo=$ac_try;;
25039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25040 (eval "$ac_try") 2>&5
25042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); }; }; then
25045 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25047 # Check for a 64-bit object if we didn't find anything.
25048 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; }
25051 echo "$as_me: failed program was:" >&5
25052 sed 's/^/| /' conftest.$ac_ext >&5
25057 rm -f core conftest.err conftest.$ac_objext \
25058 conftest$ac_exeext conftest.$ac_ext
25059 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25061 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25062 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"
25064 if test "$host_cpu" = ia64; then
25065 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25066 allow_undefined_flag_GCJ="-z nodefs"
25067 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"
25069 # Determine the default libpath from the value encoded in an empty executable.
25070 cat >conftest.$ac_ext <<_ACEOF
25073 cat confdefs.h >>conftest.$ac_ext
25074 cat >>conftest.$ac_ext <<_ACEOF
25075 /* end confdefs.h. */
25085 rm -f conftest.$ac_objext conftest$ac_exeext
25086 if { (ac_try="$ac_link"
25087 case "(($ac_try" in
25088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25089 *) ac_try_echo=$ac_try;;
25091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25092 (eval "$ac_link") 2>conftest.er1
25094 grep -v '^ *+' conftest.er1 >conftest.err
25096 cat conftest.err >&5
25097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098 (exit $ac_status); } &&
25099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25100 { (case "(($ac_try" in
25101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25102 *) ac_try_echo=$ac_try;;
25104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25105 (eval "$ac_try") 2>&5
25107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108 (exit $ac_status); }; } &&
25109 { ac_try='test -s conftest$ac_exeext'
25110 { (case "(($ac_try" in
25111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25112 *) ac_try_echo=$ac_try;;
25114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25115 (eval "$ac_try") 2>&5
25117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118 (exit $ac_status); }; }; then
25120 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25122 # Check for a 64-bit object if we didn't find anything.
25123 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; }
25126 echo "$as_me: failed program was:" >&5
25127 sed 's/^/| /' conftest.$ac_ext >&5
25132 rm -f core conftest.err conftest.$ac_objext \
25133 conftest$ac_exeext conftest.$ac_ext
25134 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25136 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25137 # Warning - without using the other run time loading flags,
25138 # -berok will link without error, but may produce a broken library.
25139 no_undefined_flag_GCJ=' ${wl}-bernotok'
25140 allow_undefined_flag_GCJ=' ${wl}-berok'
25141 # Exported symbols can be pulled into shared objects from archives
25142 whole_archive_flag_spec_GCJ='$convenience'
25143 archive_cmds_need_lc_GCJ=yes
25144 # This is similar to how AIX traditionally builds its shared libraries.
25145 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'
25151 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)'
25152 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25153 hardcode_minus_L_GCJ=yes
25154 # see comment about different semantics on the GNU ld section
25159 export_dynamic_flag_spec_GCJ=-rdynamic
25162 cygwin* | mingw* | pw32*)
25163 # When not using gcc, we currently assume that we are using
25164 # Microsoft Visual C++.
25165 # hardcode_libdir_flag_spec is actually meaningless, as there is
25166 # no search path for DLLs.
25167 hardcode_libdir_flag_spec_GCJ=' '
25168 allow_undefined_flag_GCJ=unsupported
25169 # Tell ltmain to make .lib files, not .a files.
25171 # Tell ltmain to make .dll files, not .so files.
25173 # FIXME: Setting linknames here is a bad hack.
25174 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25175 # The linker will automatically build a .lib file if we build a DLL.
25176 old_archive_From_new_cmds_GCJ='true'
25177 # FIXME: Should let the user specify the lib program.
25178 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25179 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25180 enable_shared_with_static_runtimes_GCJ=yes
25183 darwin* | rhapsody*)
25185 rhapsody* | darwin1.[012])
25186 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25189 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25190 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25192 case ${MACOSX_DEPLOYMENT_TARGET} in
25194 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25197 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25203 archive_cmds_need_lc_GCJ=no
25204 hardcode_direct_GCJ=no
25205 hardcode_automatic_GCJ=yes
25206 hardcode_shlibpath_var_GCJ=unsupported
25207 whole_archive_flag_spec_GCJ=''
25208 link_all_deplibs_GCJ=yes
25209 if test "$GCC" = yes ; then
25210 output_verbose_link_cmd='echo'
25211 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25212 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25213 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25214 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}'
25215 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}'
25217 case $cc_basename in
25219 output_verbose_link_cmd='echo'
25220 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25221 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25222 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25223 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}'
25224 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}'
25234 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25235 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25236 hardcode_shlibpath_var_GCJ=no
25243 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25244 # support. Future versions do this automatically, but an explicit c++rt0.o
25245 # does not break anything, and helps significantly (at the cost of a little
25248 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25249 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25250 hardcode_direct_GCJ=yes
25251 hardcode_shlibpath_var_GCJ=no
25254 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25256 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25257 hardcode_direct_GCJ=yes
25258 hardcode_minus_L_GCJ=yes
25259 hardcode_shlibpath_var_GCJ=no
25262 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25263 freebsd* | kfreebsd*-gnu | dragonfly*)
25264 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25265 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25266 hardcode_direct_GCJ=yes
25267 hardcode_shlibpath_var_GCJ=no
25271 if test "$GCC" = yes; then
25272 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'
25274 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'
25276 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25277 hardcode_libdir_separator_GCJ=:
25278 hardcode_direct_GCJ=yes
25280 # hardcode_minus_L: Not really in the search PATH,
25281 # but as the default location of the library.
25282 hardcode_minus_L_GCJ=yes
25283 export_dynamic_flag_spec_GCJ='${wl}-E'
25287 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25288 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25290 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25292 if test "$with_gnu_ld" = no; then
25293 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25294 hardcode_libdir_separator_GCJ=:
25296 hardcode_direct_GCJ=yes
25297 export_dynamic_flag_spec_GCJ='${wl}-E'
25299 # hardcode_minus_L: Not really in the search PATH,
25300 # but as the default location of the library.
25301 hardcode_minus_L_GCJ=yes
25306 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25309 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25312 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25315 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25321 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25324 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25327 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25331 if test "$with_gnu_ld" = no; then
25332 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25333 hardcode_libdir_separator_GCJ=:
25337 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25338 hardcode_direct_GCJ=no
25339 hardcode_shlibpath_var_GCJ=no
25342 hardcode_direct_GCJ=yes
25343 export_dynamic_flag_spec_GCJ='${wl}-E'
25345 # hardcode_minus_L: Not really in the search PATH,
25346 # but as the default location of the library.
25347 hardcode_minus_L_GCJ=yes
25353 irix5* | irix6* | nonstopux*)
25354 if test "$GCC" = yes; then
25355 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'
25357 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'
25358 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25360 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25361 hardcode_libdir_separator_GCJ=:
25362 link_all_deplibs_GCJ=yes
25366 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25367 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25369 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25371 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25372 hardcode_direct_GCJ=yes
25373 hardcode_shlibpath_var_GCJ=no
25377 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25378 hardcode_direct_GCJ=yes
25379 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25380 hardcode_libdir_separator_GCJ=:
25381 hardcode_shlibpath_var_GCJ=no
25385 hardcode_direct_GCJ=yes
25386 hardcode_shlibpath_var_GCJ=no
25387 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25388 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25389 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25390 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25391 export_dynamic_flag_spec_GCJ='${wl}-E'
25394 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25395 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25396 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25399 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25400 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25407 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25408 hardcode_minus_L_GCJ=yes
25409 allow_undefined_flag_GCJ=unsupported
25410 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'
25411 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25415 if test "$GCC" = yes; then
25416 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25417 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'
25419 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25420 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'
25422 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25423 hardcode_libdir_separator_GCJ=:
25426 osf4* | osf5*) # as osf3* with the addition of -msym flag
25427 if test "$GCC" = yes; then
25428 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25429 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'
25430 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25432 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25433 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'
25434 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~
25435 $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'
25437 # Both c and cxx compiler support -rpath directly
25438 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25440 hardcode_libdir_separator_GCJ=:
25444 no_undefined_flag_GCJ=' -z text'
25445 if test "$GCC" = yes; then
25447 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25448 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25449 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25452 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25453 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25454 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25456 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25457 hardcode_shlibpath_var_GCJ=no
25459 solaris2.[0-5] | solaris2.[0-5].*) ;;
25461 # The compiler driver will combine linker options so we
25462 # cannot just pass the convience library names through
25463 # without $wl, iff we do not link with $LD.
25464 # Luckily, gcc supports the same syntax we need for Sun Studio.
25465 # Supported since Solaris 2.6 (maybe 2.5.1?)
25468 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25470 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' ;;
25473 link_all_deplibs_GCJ=yes
25477 if test "x$host_vendor" = xsequent; then
25478 # Use $CC to link under sequent, because it throws in some extra .o
25479 # files that make .init and .fini sections work.
25480 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25482 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25484 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25485 hardcode_direct_GCJ=yes
25486 hardcode_minus_L_GCJ=yes
25487 hardcode_shlibpath_var_GCJ=no
25491 case $host_vendor in
25493 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25494 hardcode_direct_GCJ=yes # is this really true???
25497 ## LD is ld it makes a PLAMLIB
25498 ## CC just makes a GrossModule.
25499 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25500 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25501 hardcode_direct_GCJ=no
25504 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25505 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25508 runpath_var='LD_RUN_PATH'
25509 hardcode_shlibpath_var_GCJ=no
25513 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25514 hardcode_shlibpath_var_GCJ=no
25515 export_dynamic_flag_spec_GCJ='-Bexport'
25519 if test -d /usr/nec; then
25520 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25521 hardcode_shlibpath_var_GCJ=no
25522 runpath_var=LD_RUN_PATH
25523 hardcode_runpath_var=yes
25528 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25529 no_undefined_flag_GCJ='${wl}-z,text'
25530 archive_cmds_need_lc_GCJ=no
25531 hardcode_shlibpath_var_GCJ=no
25532 runpath_var='LD_RUN_PATH'
25534 if test "$GCC" = yes; then
25535 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25536 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25538 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25539 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25543 sysv5* | sco3.2v5* | sco5v6*)
25544 # Note: We can NOT use -z defs as we might desire, because we do not
25545 # link with -lc, and that would cause any symbols used from libc to
25546 # always be unresolved, which means just about no library would
25547 # ever link correctly. If we're not using GNU ld we use -z text
25548 # though, which does catch some bad symbols but isn't as heavy-handed
25550 no_undefined_flag_GCJ='${wl}-z,text'
25551 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25552 archive_cmds_need_lc_GCJ=no
25553 hardcode_shlibpath_var_GCJ=no
25554 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25555 hardcode_libdir_separator_GCJ=':'
25556 link_all_deplibs_GCJ=yes
25557 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25558 runpath_var='LD_RUN_PATH'
25560 if test "$GCC" = yes; then
25561 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25562 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25564 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25565 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25570 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25571 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25572 hardcode_shlibpath_var_GCJ=no
25581 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25582 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25583 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25586 # Do we need to explicitly link libc?
25588 case "x$archive_cmds_need_lc_GCJ" in
25590 # Assume -lc should be added
25591 archive_cmds_need_lc_GCJ=yes
25593 if test "$enable_shared" = yes && test "$GCC" = yes; then
25594 case $archive_cmds_GCJ in
25596 # FIXME: we may have to deal with multi-command sequences.
25599 # Test whether the compiler implicitly links with -lc since on some
25600 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25601 # to ld, don't add -lc before -lgcc.
25602 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25603 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25605 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25608 (eval $ac_compile) 2>&5
25610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25611 (exit $ac_status); } 2>conftest.err; then
25614 libobjs=conftest.$ac_objext
25616 wl=$lt_prog_compiler_wl_GCJ
25617 pic_flag=$lt_prog_compiler_pic_GCJ
25623 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25624 allow_undefined_flag_GCJ=
25625 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25626 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629 (exit $ac_status); }
25631 archive_cmds_need_lc_GCJ=no
25633 archive_cmds_need_lc_GCJ=yes
25635 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25637 cat conftest.err 1>&5
25640 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25641 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25648 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25649 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25650 library_names_spec=
25651 libname_spec='lib$name'
25655 postuninstall_cmds=
25659 shlibpath_overrides_runpath=unknown
25661 dynamic_linker="$host_os ld.so"
25662 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25663 if test "$GCC" = yes; then
25664 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25665 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25666 # if the path contains ";" then we assume it to be the separator
25667 # otherwise default to the standard path separator (i.e. ":") - it is
25668 # assumed that no part of a normal pathname contains ";" but that should
25669 # okay in the real world where ";" in dirpaths is itself problematic.
25670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25672 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25675 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25677 need_lib_prefix=unknown
25678 hardcode_into_libs=no
25680 # when you set need_version to no, make sure it does not cause -set_version
25681 # flags to be left without arguments
25682 need_version=unknown
25687 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25688 shlibpath_var=LIBPATH
25690 # AIX 3 has no versioning support, so we append a major version to the name.
25691 soname_spec='${libname}${release}${shared_ext}$major'
25698 hardcode_into_libs=yes
25699 if test "$host_cpu" = ia64; then
25700 # AIX 5 supports IA64
25701 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25702 shlibpath_var=LD_LIBRARY_PATH
25704 # With GCC up to 2.95.x, collect2 would create an import file
25705 # for dependence libraries. The import file would start with
25706 # the line `#! .'. This would cause the generated library to
25707 # depend on `.', always an invalid library. This was fixed in
25708 # development snapshots of GCC prior to 3.0.
25710 aix4 | aix4.[01] | aix4.[01].*)
25711 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25713 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25716 can_build_shared=no
25720 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25721 # soname into executable. Probably we can add versioning support to
25722 # collect2, so additional links can be useful in future.
25723 if test "$aix_use_runtimelinking" = yes; then
25724 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25725 # instead of lib<name>.a to let people know that these are not
25726 # typical AIX shared libraries.
25727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25729 # We preserve .a as extension for shared libraries through AIX4.2
25730 # and later when we are not doing run time linking.
25731 library_names_spec='${libname}${release}.a $libname.a'
25732 soname_spec='${libname}${release}${shared_ext}$major'
25734 shlibpath_var=LIBPATH
25739 library_names_spec='$libname.ixlibrary $libname.a'
25740 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25741 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'
25745 library_names_spec='${libname}${shared_ext}'
25746 dynamic_linker="$host_os ld.so"
25747 shlibpath_var=LIBRARY_PATH
25753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25754 soname_spec='${libname}${release}${shared_ext}$major'
25755 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25756 shlibpath_var=LD_LIBRARY_PATH
25757 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25758 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25759 # the default ld.so.conf also contains /usr/contrib/lib and
25760 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25761 # libtool to hard-code these into programs
25764 cygwin* | mingw* | pw32*)
25765 version_type=windows
25770 case $GCC,$host_os in
25771 yes,cygwin* | yes,mingw* | yes,pw32*)
25772 library_names_spec='$libname.dll.a'
25773 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25774 postinstall_cmds='base_file=`basename \${file}`~
25775 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25776 dldir=$destdir/`dirname \$dlpath`~
25777 test -d \$dldir || mkdir -p \$dldir~
25778 $install_prog $dir/$dlname \$dldir/$dlname~
25779 chmod a+x \$dldir/$dlname'
25780 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25781 dlpath=$dir/\$dldll~
25783 shlibpath_overrides_runpath=yes
25787 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25788 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25789 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25792 # MinGW DLLs use traditional 'lib' prefix
25793 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25794 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25795 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25796 # It is most probably a Windows format PATH printed by
25797 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25798 # path with ; separators, and with drive letters. We can handle the
25799 # drive letters (cygwin fileutils understands them), so leave them,
25800 # especially as we might pass files found there to a mingw objdump,
25801 # which wouldn't understand a cygwinified path. Ahh.
25802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25808 # pw32 DLLs use 'pw' prefix rather than 'lib'
25809 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25815 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25818 dynamic_linker='Win32 ld.exe'
25819 # FIXME: first we should search . and the directory the executable is in
25823 darwin* | rhapsody*)
25824 dynamic_linker="$host_os dyld"
25825 version_type=darwin
25828 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25829 soname_spec='${libname}${release}${major}$shared_ext'
25830 shlibpath_overrides_runpath=yes
25831 shlibpath_var=DYLD_LIBRARY_PATH
25832 shrext_cmds='.dylib'
25833 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25834 if test "$GCC" = yes; then
25835 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"`
25837 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25839 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25847 soname_spec='${libname}${release}${shared_ext}$major'
25848 shlibpath_var=LD_LIBRARY_PATH
25859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25860 soname_spec='${libname}${release}${shared_ext}$major'
25861 shlibpath_var=LD_LIBRARY_PATH
25862 shlibpath_overrides_runpath=no
25863 hardcode_into_libs=yes
25864 dynamic_linker='GNU ld.so'
25867 freebsd* | dragonfly*)
25868 # DragonFly does not have aout. When/if they implement a new
25869 # versioning mechanism, adjust this.
25870 if test -x /usr/bin/objformat; then
25871 objformat=`/usr/bin/objformat`
25874 freebsd[123]*) objformat=aout ;;
25875 *) objformat=elf ;;
25878 version_type=freebsd-$objformat
25879 case $version_type in
25881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25890 shlibpath_var=LD_LIBRARY_PATH
25893 shlibpath_overrides_runpath=yes
25895 freebsd3.[01]* | freebsdelf3.[01]*)
25896 shlibpath_overrides_runpath=yes
25897 hardcode_into_libs=yes
25899 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25900 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25901 shlibpath_overrides_runpath=no
25902 hardcode_into_libs=yes
25904 freebsd*) # from 4.6 on
25905 shlibpath_overrides_runpath=yes
25906 hardcode_into_libs=yes
25915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25916 soname_spec='${libname}${release}${shared_ext}$major'
25917 shlibpath_var=LD_LIBRARY_PATH
25918 hardcode_into_libs=yes
25921 hpux9* | hpux10* | hpux11*)
25922 # Give a soname corresponding to the major version so that dld.sl refuses to
25923 # link against other versions.
25930 hardcode_into_libs=yes
25931 dynamic_linker="$host_os dld.so"
25932 shlibpath_var=LD_LIBRARY_PATH
25933 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25935 soname_spec='${libname}${release}${shared_ext}$major'
25936 if test "X$HPUX_IA64_MODE" = X32; then
25937 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25939 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25945 hardcode_into_libs=yes
25946 dynamic_linker="$host_os dld.sl"
25947 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25950 soname_spec='${libname}${release}${shared_ext}$major'
25951 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25956 dynamic_linker="$host_os dld.sl"
25957 shlibpath_var=SHLIB_PATH
25958 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25960 soname_spec='${libname}${release}${shared_ext}$major'
25963 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25964 postinstall_cmds='chmod 555 $lib'
25971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25972 soname_spec='${libname}${release}${shared_ext}$major'
25973 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25974 shlibpath_var=LD_LIBRARY_PATH
25975 shlibpath_overrides_runpath=no
25976 hardcode_into_libs=yes
25979 irix5* | irix6* | nonstopux*)
25981 nonstopux*) version_type=nonstopux ;;
25983 if test "$lt_cv_prog_gnu_ld" = yes; then
25991 soname_spec='${libname}${release}${shared_ext}$major'
25992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25994 irix5* | nonstopux*)
25995 libsuff= shlibsuff=
25998 case $LD in # libtool.m4 will add one of these switches to LD
25999 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26000 libsuff= shlibsuff= libmagic=32-bit;;
26001 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26002 libsuff=32 shlibsuff=N32 libmagic=N32;;
26003 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26004 libsuff=64 shlibsuff=64 libmagic=64-bit;;
26005 *) libsuff= shlibsuff= libmagic=never-match;;
26009 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26010 shlibpath_overrides_runpath=no
26011 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26012 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26013 hardcode_into_libs=yes
26016 # No shared lib support for Linux oldld, aout, or coff.
26017 linux*oldld* | linux*aout* | linux*coff*)
26021 # This must be Linux ELF.
26026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26027 soname_spec='${libname}${release}${shared_ext}$major'
26028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26029 shlibpath_var=LD_LIBRARY_PATH
26030 shlibpath_overrides_runpath=no
26031 # This implies no fast_install, which is unacceptable.
26032 # Some rework will be needed to allow for fast_install
26033 # before this can be enabled.
26034 hardcode_into_libs=yes
26036 # Append ld.so.conf contents to the search path
26037 if test -f /etc/ld.so.conf; then
26038 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' ' '`
26039 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26042 # We used to test for /lib/ld.so.1 and disable shared libraries on
26043 # powerpc, because MkLinux only supported shared libraries with the
26044 # GNU dynamic linker. Since this was broken with cross compilers,
26045 # most powerpc-linux boxes support dynamic linking these days and
26046 # people can always --disable-shared, the test was removed, and we
26047 # assume the GNU/Linux dynamic linker is in use.
26048 dynamic_linker='GNU/Linux ld.so'
26055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26056 soname_spec='${libname}${release}${shared_ext}$major'
26057 shlibpath_var=LD_LIBRARY_PATH
26058 shlibpath_overrides_runpath=no
26059 hardcode_into_libs=yes
26060 dynamic_linker='GNU ld.so'
26067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26070 dynamic_linker='NetBSD (a.out) ld.so'
26072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26073 soname_spec='${libname}${release}${shared_ext}$major'
26074 dynamic_linker='NetBSD ld.elf_so'
26076 shlibpath_var=LD_LIBRARY_PATH
26077 shlibpath_overrides_runpath=yes
26078 hardcode_into_libs=yes
26083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26084 shlibpath_var=LD_LIBRARY_PATH
26085 shlibpath_overrides_runpath=yes
26092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26093 soname_spec='${libname}${release}${shared_ext}$major'
26094 shlibpath_var=LD_LIBRARY_PATH
26095 shlibpath_overrides_runpath=yes
26100 sys_lib_dlsearch_path_spec="/usr/lib"
26102 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26104 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26105 *) need_version=no ;;
26107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26109 shlibpath_var=LD_LIBRARY_PATH
26110 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26112 openbsd2.[89] | openbsd2.[89].*)
26113 shlibpath_overrides_runpath=no
26116 shlibpath_overrides_runpath=yes
26120 shlibpath_overrides_runpath=yes
26125 libname_spec='$name'
26128 library_names_spec='$libname${shared_ext} $libname.a'
26129 dynamic_linker='OS/2 ld.exe'
26130 shlibpath_var=LIBPATH
26133 osf3* | osf4* | osf5*)
26137 soname_spec='${libname}${release}${shared_ext}$major'
26138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26139 shlibpath_var=LD_LIBRARY_PATH
26140 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26141 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26149 soname_spec='${libname}${release}${shared_ext}$major'
26150 shlibpath_var=LD_LIBRARY_PATH
26151 shlibpath_overrides_runpath=yes
26152 hardcode_into_libs=yes
26153 # ldd complains unless libraries are executable
26154 postinstall_cmds='chmod +x $lib'
26159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26160 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26161 shlibpath_var=LD_LIBRARY_PATH
26162 shlibpath_overrides_runpath=yes
26163 if test "$with_gnu_ld" = yes; then
26171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26172 soname_spec='${libname}${release}${shared_ext}$major'
26173 shlibpath_var=LD_LIBRARY_PATH
26174 case $host_vendor in
26176 shlibpath_overrides_runpath=no
26178 export_dynamic_flag_spec='${wl}-Blargedynsym'
26179 runpath_var=LD_RUN_PATH
26187 shlibpath_overrides_runpath=no
26188 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26194 if test -d /usr/nec ;then
26196 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26197 soname_spec='$libname${shared_ext}.$major'
26198 shlibpath_var=LD_LIBRARY_PATH
26202 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26203 version_type=freebsd-elf
26206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26207 soname_spec='${libname}${release}${shared_ext}$major'
26208 shlibpath_var=LD_LIBRARY_PATH
26209 hardcode_into_libs=yes
26210 if test "$with_gnu_ld" = yes; then
26211 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26212 shlibpath_overrides_runpath=no
26214 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26215 shlibpath_overrides_runpath=yes
26218 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26222 sys_lib_dlsearch_path_spec='/usr/lib'
26227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26228 soname_spec='${libname}${release}${shared_ext}$major'
26229 shlibpath_var=LD_LIBRARY_PATH
26236 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26237 echo "${ECHO_T}$dynamic_linker" >&6; }
26238 test "$dynamic_linker" = no && can_build_shared=no
26240 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26241 if test "$GCC" = yes; then
26242 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26245 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26246 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26247 hardcode_action_GCJ=
26248 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26249 test -n "$runpath_var_GCJ" || \
26250 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26252 # We can hardcode non-existant directories.
26253 if test "$hardcode_direct_GCJ" != no &&
26254 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26255 # have to relink, otherwise we might link with an installed library
26256 # when we should be linking with a yet-to-be-installed one
26257 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26258 test "$hardcode_minus_L_GCJ" != no; then
26259 # Linking always hardcodes the temporary library directory.
26260 hardcode_action_GCJ=relink
26262 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26263 hardcode_action_GCJ=immediate
26266 # We cannot hardcode anything, or else we can only hardcode existing
26268 hardcode_action_GCJ=unsupported
26270 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26271 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26273 if test "$hardcode_action_GCJ" = relink; then
26274 # Fast installation is not supported
26275 enable_fast_install=no
26276 elif test "$shlibpath_overrides_runpath" = yes ||
26277 test "$enable_shared" = no; then
26278 # Fast installation is not necessary
26279 enable_fast_install=needless
26283 # The else clause should only fire when bootstrapping the
26284 # libtool distribution, otherwise you forgot to ship ltmain.sh
26285 # with your package, and you will get complaints that there are
26286 # no rules to generate ltmain.sh.
26287 if test -f "$ltmain"; then
26288 # See if we are running on zsh, and set the options which allow our commands through
26289 # without removal of \ escapes.
26290 if test -n "${ZSH_VERSION+set}" ; then
26291 setopt NO_GLOB_SUBST
26293 # Now quote all the things that may contain metacharacters while being
26294 # careful not to overquote the AC_SUBSTed values. We take copies of the
26295 # variables and quote the copies for generation of the libtool script.
26296 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26298 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26299 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26300 deplibs_check_method reload_flag reload_cmds need_locks \
26301 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26302 lt_cv_sys_global_symbol_to_c_name_address \
26303 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26304 old_postinstall_cmds old_postuninstall_cmds \
26308 lt_prog_compiler_wl_GCJ \
26309 lt_prog_compiler_pic_GCJ \
26310 lt_prog_compiler_static_GCJ \
26311 lt_prog_compiler_no_builtin_flag_GCJ \
26312 export_dynamic_flag_spec_GCJ \
26313 thread_safe_flag_spec_GCJ \
26314 whole_archive_flag_spec_GCJ \
26315 enable_shared_with_static_runtimes_GCJ \
26316 old_archive_cmds_GCJ \
26317 old_archive_from_new_cmds_GCJ \
26318 predep_objects_GCJ \
26319 postdep_objects_GCJ \
26322 compiler_lib_search_path_GCJ \
26324 archive_expsym_cmds_GCJ \
26325 postinstall_cmds_GCJ \
26326 postuninstall_cmds_GCJ \
26327 old_archive_from_expsyms_cmds_GCJ \
26328 allow_undefined_flag_GCJ \
26329 no_undefined_flag_GCJ \
26330 export_symbols_cmds_GCJ \
26331 hardcode_libdir_flag_spec_GCJ \
26332 hardcode_libdir_flag_spec_ld_GCJ \
26333 hardcode_libdir_separator_GCJ \
26334 hardcode_automatic_GCJ \
26336 module_expsym_cmds_GCJ \
26337 lt_cv_prog_compiler_c_o_GCJ \
26338 exclude_expsyms_GCJ \
26339 include_expsyms_GCJ; do
26342 old_archive_cmds_GCJ | \
26343 old_archive_from_new_cmds_GCJ | \
26344 archive_cmds_GCJ | \
26345 archive_expsym_cmds_GCJ | \
26346 module_cmds_GCJ | \
26347 module_expsym_cmds_GCJ | \
26348 old_archive_from_expsyms_cmds_GCJ | \
26349 export_symbols_cmds_GCJ | \
26350 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26351 postinstall_cmds | postuninstall_cmds | \
26352 old_postinstall_cmds | old_postuninstall_cmds | \
26353 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26354 # Double-quote double-evaled strings.
26355 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26358 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26364 *'\$0 --fallback-echo"')
26365 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26371 cat <<__EOF__ >> "$cfgfile"
26372 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26374 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26376 # Shell to use when invoking shell scripts.
26379 # Whether or not to build shared libraries.
26380 build_libtool_libs=$enable_shared
26382 # Whether or not to build static libraries.
26383 build_old_libs=$enable_static
26385 # Whether or not to add -lc for building shared libraries.
26386 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26388 # Whether or not to disallow shared libs when runtime libs are static
26389 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26391 # Whether or not to optimize for fast installation.
26392 fast_install=$enable_fast_install
26395 host_alias=$host_alias
26399 # The build system.
26400 build_alias=$build_alias
26404 # An echo program that does not interpret backslashes.
26409 AR_FLAGS=$lt_AR_FLAGS
26414 # LTCC compiler flags.
26415 LTCFLAGS=$lt_LTCFLAGS
26417 # A language-specific compiler.
26418 CC=$lt_compiler_GCJ
26420 # Is the compiler the GNU C compiler?
26426 # The linker used to build libraries.
26429 # Whether we need hard or soft links.
26432 # A BSD-compatible nm program.
26435 # A symbol stripping program
26438 # Used to examine libraries when file_magic_cmd begins "file"
26439 MAGIC_CMD=$MAGIC_CMD
26441 # Used on cygwin: DLL creation program.
26444 # Used on cygwin: object dumper.
26447 # Used on cygwin: assembler.
26450 # The name of the directory that contains temporary libtool files.
26453 # How to create reloadable object files.
26454 reload_flag=$lt_reload_flag
26455 reload_cmds=$lt_reload_cmds
26457 # How to pass a linker flag through the compiler.
26458 wl=$lt_lt_prog_compiler_wl_GCJ
26460 # Object file suffix (normally "o").
26461 objext="$ac_objext"
26463 # Old archive suffix (normally "a").
26466 # Shared library suffix (normally ".so").
26467 shrext_cmds='$shrext_cmds'
26469 # Executable file suffix (normally "").
26472 # Additional compiler flags for building library objects.
26473 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26476 # What is the maximum length of a command?
26477 max_cmd_len=$lt_cv_sys_max_cmd_len
26479 # Does compiler simultaneously support -c and -o options?
26480 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26482 # Must we lock files when doing compilation?
26483 need_locks=$lt_need_locks
26485 # Do we need the lib prefix for modules?
26486 need_lib_prefix=$need_lib_prefix
26488 # Do we need a version for libraries?
26489 need_version=$need_version
26491 # Whether dlopen is supported.
26492 dlopen_support=$enable_dlopen
26494 # Whether dlopen of programs is supported.
26495 dlopen_self=$enable_dlopen_self
26497 # Whether dlopen of statically linked programs is supported.
26498 dlopen_self_static=$enable_dlopen_self_static
26500 # Compiler flag to prevent dynamic linking.
26501 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26503 # Compiler flag to turn off builtin functions.
26504 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26506 # Compiler flag to allow reflexive dlopens.
26507 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26509 # Compiler flag to generate shared objects directly from archives.
26510 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26512 # Compiler flag to generate thread-safe objects.
26513 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26515 # Library versioning type.
26516 version_type=$version_type
26518 # Format of library name prefix.
26519 libname_spec=$lt_libname_spec
26521 # List of archive names. First name is the real one, the rest are links.
26522 # The last name is the one that the linker finds with -lNAME.
26523 library_names_spec=$lt_library_names_spec
26525 # The coded name of the library, if different from the real name.
26526 soname_spec=$lt_soname_spec
26528 # Commands used to build and install an old-style archive.
26530 old_archive_cmds=$lt_old_archive_cmds_GCJ
26531 old_postinstall_cmds=$lt_old_postinstall_cmds
26532 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26534 # Create an old-style archive from a shared archive.
26535 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26537 # Create a temporary old-style archive to link instead of a shared archive.
26538 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26540 # Commands used to build and install a shared archive.
26541 archive_cmds=$lt_archive_cmds_GCJ
26542 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26543 postinstall_cmds=$lt_postinstall_cmds
26544 postuninstall_cmds=$lt_postuninstall_cmds
26546 # Commands used to build a loadable module (assumed same as above if empty)
26547 module_cmds=$lt_module_cmds_GCJ
26548 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26550 # Commands to strip libraries.
26551 old_striplib=$lt_old_striplib
26552 striplib=$lt_striplib
26554 # Dependencies to place before the objects being linked to create a
26556 predep_objects=$lt_predep_objects_GCJ
26558 # Dependencies to place after the objects being linked to create a
26560 postdep_objects=$lt_postdep_objects_GCJ
26562 # Dependencies to place before the objects being linked to create a
26564 predeps=$lt_predeps_GCJ
26566 # Dependencies to place after the objects being linked to create a
26568 postdeps=$lt_postdeps_GCJ
26570 # The library search path used internally by the compiler when linking
26571 # a shared library.
26572 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26574 # Method to check whether dependent libraries are shared objects.
26575 deplibs_check_method=$lt_deplibs_check_method
26577 # Command to use when deplibs_check_method == file_magic.
26578 file_magic_cmd=$lt_file_magic_cmd
26580 # Flag that allows shared libraries with undefined symbols to be built.
26581 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26583 # Flag that forces no undefined symbols.
26584 no_undefined_flag=$lt_no_undefined_flag_GCJ
26586 # Commands used to finish a libtool library installation in a directory.
26587 finish_cmds=$lt_finish_cmds
26589 # Same as above, but a single script fragment to be evaled but not shown.
26590 finish_eval=$lt_finish_eval
26592 # Take the output of nm and produce a listing of raw symbols and C names.
26593 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26595 # Transform the output of nm in a proper C declaration
26596 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26598 # Transform the output of nm in a C name address pair
26599 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26601 # This is the shared library runtime path variable.
26602 runpath_var=$runpath_var
26604 # This is the shared library path variable.
26605 shlibpath_var=$shlibpath_var
26607 # Is shlibpath searched before the hard-coded library search path?
26608 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26610 # How to hardcode a shared library path into an executable.
26611 hardcode_action=$hardcode_action_GCJ
26613 # Whether we should hardcode library paths into libraries.
26614 hardcode_into_libs=$hardcode_into_libs
26616 # Flag to hardcode \$libdir into a binary during linking.
26617 # This must work even if \$libdir does not exist.
26618 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26620 # If ld is used when linking, flag to hardcode \$libdir into
26621 # a binary during linking. This must work even if \$libdir does
26623 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26625 # Whether we need a single -rpath flag with a separated argument.
26626 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26628 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26629 # resulting binary.
26630 hardcode_direct=$hardcode_direct_GCJ
26632 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26633 # resulting binary.
26634 hardcode_minus_L=$hardcode_minus_L_GCJ
26636 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26637 # the resulting binary.
26638 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26640 # Set to yes if building a shared library automatically hardcodes DIR into the library
26641 # and all subsequent libraries and executables linked against it.
26642 hardcode_automatic=$hardcode_automatic_GCJ
26644 # Variables whose values should be saved in libtool wrapper scripts and
26645 # restored at relink time.
26646 variables_saved_for_relink="$variables_saved_for_relink"
26648 # Whether libtool must link a program against all its dependency libraries.
26649 link_all_deplibs=$link_all_deplibs_GCJ
26651 # Compile-time system search path for libraries
26652 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26654 # Run-time system search path for libraries
26655 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26657 # Fix the shell variable \$srcfile for the compiler.
26658 fix_srcfile_path="$fix_srcfile_path_GCJ"
26660 # Set to yes if exported symbols are required.
26661 always_export_symbols=$always_export_symbols_GCJ
26663 # The commands to list exported symbols.
26664 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26666 # The commands to extract the exported symbol list from a shared archive.
26667 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26669 # Symbols that should not be listed in the preloaded symbols.
26670 exclude_expsyms=$lt_exclude_expsyms_GCJ
26672 # Symbols that must always be exported.
26673 include_expsyms=$lt_include_expsyms_GCJ
26675 # ### END LIBTOOL TAG CONFIG: $tagname
26681 # If there is no Makefile yet, we rely on a make rule to execute
26682 # `config.status --recheck' to rerun these tests and create the
26683 # libtool script then.
26684 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26685 if test -f "$ltmain_in"; then
26686 test -f Makefile && make "$ltmain"
26692 ac_cpp='$CPP $CPPFLAGS'
26693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26706 ac_cpp='$CPP $CPPFLAGS'
26707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26712 # Source file extension for RC test sources.
26715 # Object file extension for compiled RC test sources.
26719 # Code to be used in simple compile tests
26720 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26722 # Code to be used in simple link tests
26723 lt_simple_link_test_code="$lt_simple_compile_test_code"
26725 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26727 # If no C compiler was specified, use CC.
26730 # If no C compiler flags were specified, use CFLAGS.
26731 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26733 # Allow CC to be a program name with arguments.
26737 # save warnings/boilerplate of simple test code
26738 ac_outfile=conftest.$ac_objext
26739 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26740 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26741 _lt_compiler_boilerplate=`cat conftest.err`
26744 ac_outfile=conftest.$ac_objext
26745 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26746 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26747 _lt_linker_boilerplate=`cat conftest.err`
26751 # Allow CC to be a program name with arguments.
26756 for cc_temp in $compiler""; do
26758 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26759 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26764 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26766 lt_cv_prog_compiler_c_o_RC=yes
26768 # The else clause should only fire when bootstrapping the
26769 # libtool distribution, otherwise you forgot to ship ltmain.sh
26770 # with your package, and you will get complaints that there are
26771 # no rules to generate ltmain.sh.
26772 if test -f "$ltmain"; then
26773 # See if we are running on zsh, and set the options which allow our commands through
26774 # without removal of \ escapes.
26775 if test -n "${ZSH_VERSION+set}" ; then
26776 setopt NO_GLOB_SUBST
26778 # Now quote all the things that may contain metacharacters while being
26779 # careful not to overquote the AC_SUBSTed values. We take copies of the
26780 # variables and quote the copies for generation of the libtool script.
26781 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26783 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26784 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26785 deplibs_check_method reload_flag reload_cmds need_locks \
26786 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26787 lt_cv_sys_global_symbol_to_c_name_address \
26788 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26789 old_postinstall_cmds old_postuninstall_cmds \
26793 lt_prog_compiler_wl_RC \
26794 lt_prog_compiler_pic_RC \
26795 lt_prog_compiler_static_RC \
26796 lt_prog_compiler_no_builtin_flag_RC \
26797 export_dynamic_flag_spec_RC \
26798 thread_safe_flag_spec_RC \
26799 whole_archive_flag_spec_RC \
26800 enable_shared_with_static_runtimes_RC \
26801 old_archive_cmds_RC \
26802 old_archive_from_new_cmds_RC \
26803 predep_objects_RC \
26804 postdep_objects_RC \
26807 compiler_lib_search_path_RC \
26809 archive_expsym_cmds_RC \
26810 postinstall_cmds_RC \
26811 postuninstall_cmds_RC \
26812 old_archive_from_expsyms_cmds_RC \
26813 allow_undefined_flag_RC \
26814 no_undefined_flag_RC \
26815 export_symbols_cmds_RC \
26816 hardcode_libdir_flag_spec_RC \
26817 hardcode_libdir_flag_spec_ld_RC \
26818 hardcode_libdir_separator_RC \
26819 hardcode_automatic_RC \
26821 module_expsym_cmds_RC \
26822 lt_cv_prog_compiler_c_o_RC \
26823 exclude_expsyms_RC \
26824 include_expsyms_RC; do
26827 old_archive_cmds_RC | \
26828 old_archive_from_new_cmds_RC | \
26829 archive_cmds_RC | \
26830 archive_expsym_cmds_RC | \
26832 module_expsym_cmds_RC | \
26833 old_archive_from_expsyms_cmds_RC | \
26834 export_symbols_cmds_RC | \
26835 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26836 postinstall_cmds | postuninstall_cmds | \
26837 old_postinstall_cmds | old_postuninstall_cmds | \
26838 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26839 # Double-quote double-evaled strings.
26840 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26843 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26849 *'\$0 --fallback-echo"')
26850 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26856 cat <<__EOF__ >> "$cfgfile"
26857 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26859 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26861 # Shell to use when invoking shell scripts.
26864 # Whether or not to build shared libraries.
26865 build_libtool_libs=$enable_shared
26867 # Whether or not to build static libraries.
26868 build_old_libs=$enable_static
26870 # Whether or not to add -lc for building shared libraries.
26871 build_libtool_need_lc=$archive_cmds_need_lc_RC
26873 # Whether or not to disallow shared libs when runtime libs are static
26874 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26876 # Whether or not to optimize for fast installation.
26877 fast_install=$enable_fast_install
26880 host_alias=$host_alias
26884 # The build system.
26885 build_alias=$build_alias
26889 # An echo program that does not interpret backslashes.
26894 AR_FLAGS=$lt_AR_FLAGS
26899 # LTCC compiler flags.
26900 LTCFLAGS=$lt_LTCFLAGS
26902 # A language-specific compiler.
26905 # Is the compiler the GNU C compiler?
26911 # The linker used to build libraries.
26914 # Whether we need hard or soft links.
26917 # A BSD-compatible nm program.
26920 # A symbol stripping program
26923 # Used to examine libraries when file_magic_cmd begins "file"
26924 MAGIC_CMD=$MAGIC_CMD
26926 # Used on cygwin: DLL creation program.
26929 # Used on cygwin: object dumper.
26932 # Used on cygwin: assembler.
26935 # The name of the directory that contains temporary libtool files.
26938 # How to create reloadable object files.
26939 reload_flag=$lt_reload_flag
26940 reload_cmds=$lt_reload_cmds
26942 # How to pass a linker flag through the compiler.
26943 wl=$lt_lt_prog_compiler_wl_RC
26945 # Object file suffix (normally "o").
26946 objext="$ac_objext"
26948 # Old archive suffix (normally "a").
26951 # Shared library suffix (normally ".so").
26952 shrext_cmds='$shrext_cmds'
26954 # Executable file suffix (normally "").
26957 # Additional compiler flags for building library objects.
26958 pic_flag=$lt_lt_prog_compiler_pic_RC
26961 # What is the maximum length of a command?
26962 max_cmd_len=$lt_cv_sys_max_cmd_len
26964 # Does compiler simultaneously support -c and -o options?
26965 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26967 # Must we lock files when doing compilation?
26968 need_locks=$lt_need_locks
26970 # Do we need the lib prefix for modules?
26971 need_lib_prefix=$need_lib_prefix
26973 # Do we need a version for libraries?
26974 need_version=$need_version
26976 # Whether dlopen is supported.
26977 dlopen_support=$enable_dlopen
26979 # Whether dlopen of programs is supported.
26980 dlopen_self=$enable_dlopen_self
26982 # Whether dlopen of statically linked programs is supported.
26983 dlopen_self_static=$enable_dlopen_self_static
26985 # Compiler flag to prevent dynamic linking.
26986 link_static_flag=$lt_lt_prog_compiler_static_RC
26988 # Compiler flag to turn off builtin functions.
26989 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26991 # Compiler flag to allow reflexive dlopens.
26992 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26994 # Compiler flag to generate shared objects directly from archives.
26995 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26997 # Compiler flag to generate thread-safe objects.
26998 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27000 # Library versioning type.
27001 version_type=$version_type
27003 # Format of library name prefix.
27004 libname_spec=$lt_libname_spec
27006 # List of archive names. First name is the real one, the rest are links.
27007 # The last name is the one that the linker finds with -lNAME.
27008 library_names_spec=$lt_library_names_spec
27010 # The coded name of the library, if different from the real name.
27011 soname_spec=$lt_soname_spec
27013 # Commands used to build and install an old-style archive.
27015 old_archive_cmds=$lt_old_archive_cmds_RC
27016 old_postinstall_cmds=$lt_old_postinstall_cmds
27017 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27019 # Create an old-style archive from a shared archive.
27020 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27022 # Create a temporary old-style archive to link instead of a shared archive.
27023 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27025 # Commands used to build and install a shared archive.
27026 archive_cmds=$lt_archive_cmds_RC
27027 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27028 postinstall_cmds=$lt_postinstall_cmds
27029 postuninstall_cmds=$lt_postuninstall_cmds
27031 # Commands used to build a loadable module (assumed same as above if empty)
27032 module_cmds=$lt_module_cmds_RC
27033 module_expsym_cmds=$lt_module_expsym_cmds_RC
27035 # Commands to strip libraries.
27036 old_striplib=$lt_old_striplib
27037 striplib=$lt_striplib
27039 # Dependencies to place before the objects being linked to create a
27041 predep_objects=$lt_predep_objects_RC
27043 # Dependencies to place after the objects being linked to create a
27045 postdep_objects=$lt_postdep_objects_RC
27047 # Dependencies to place before the objects being linked to create a
27049 predeps=$lt_predeps_RC
27051 # Dependencies to place after the objects being linked to create a
27053 postdeps=$lt_postdeps_RC
27055 # The library search path used internally by the compiler when linking
27056 # a shared library.
27057 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27059 # Method to check whether dependent libraries are shared objects.
27060 deplibs_check_method=$lt_deplibs_check_method
27062 # Command to use when deplibs_check_method == file_magic.
27063 file_magic_cmd=$lt_file_magic_cmd
27065 # Flag that allows shared libraries with undefined symbols to be built.
27066 allow_undefined_flag=$lt_allow_undefined_flag_RC
27068 # Flag that forces no undefined symbols.
27069 no_undefined_flag=$lt_no_undefined_flag_RC
27071 # Commands used to finish a libtool library installation in a directory.
27072 finish_cmds=$lt_finish_cmds
27074 # Same as above, but a single script fragment to be evaled but not shown.
27075 finish_eval=$lt_finish_eval
27077 # Take the output of nm and produce a listing of raw symbols and C names.
27078 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27080 # Transform the output of nm in a proper C declaration
27081 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27083 # Transform the output of nm in a C name address pair
27084 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27086 # This is the shared library runtime path variable.
27087 runpath_var=$runpath_var
27089 # This is the shared library path variable.
27090 shlibpath_var=$shlibpath_var
27092 # Is shlibpath searched before the hard-coded library search path?
27093 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27095 # How to hardcode a shared library path into an executable.
27096 hardcode_action=$hardcode_action_RC
27098 # Whether we should hardcode library paths into libraries.
27099 hardcode_into_libs=$hardcode_into_libs
27101 # Flag to hardcode \$libdir into a binary during linking.
27102 # This must work even if \$libdir does not exist.
27103 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27105 # If ld is used when linking, flag to hardcode \$libdir into
27106 # a binary during linking. This must work even if \$libdir does
27108 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27110 # Whether we need a single -rpath flag with a separated argument.
27111 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27113 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27114 # resulting binary.
27115 hardcode_direct=$hardcode_direct_RC
27117 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27118 # resulting binary.
27119 hardcode_minus_L=$hardcode_minus_L_RC
27121 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27122 # the resulting binary.
27123 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27125 # Set to yes if building a shared library automatically hardcodes DIR into the library
27126 # and all subsequent libraries and executables linked against it.
27127 hardcode_automatic=$hardcode_automatic_RC
27129 # Variables whose values should be saved in libtool wrapper scripts and
27130 # restored at relink time.
27131 variables_saved_for_relink="$variables_saved_for_relink"
27133 # Whether libtool must link a program against all its dependency libraries.
27134 link_all_deplibs=$link_all_deplibs_RC
27136 # Compile-time system search path for libraries
27137 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27139 # Run-time system search path for libraries
27140 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27142 # Fix the shell variable \$srcfile for the compiler.
27143 fix_srcfile_path="$fix_srcfile_path_RC"
27145 # Set to yes if exported symbols are required.
27146 always_export_symbols=$always_export_symbols_RC
27148 # The commands to list exported symbols.
27149 export_symbols_cmds=$lt_export_symbols_cmds_RC
27151 # The commands to extract the exported symbol list from a shared archive.
27152 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27154 # Symbols that should not be listed in the preloaded symbols.
27155 exclude_expsyms=$lt_exclude_expsyms_RC
27157 # Symbols that must always be exported.
27158 include_expsyms=$lt_include_expsyms_RC
27160 # ### END LIBTOOL TAG CONFIG: $tagname
27166 # If there is no Makefile yet, we rely on a make rule to execute
27167 # `config.status --recheck' to rerun these tests and create the
27168 # libtool script then.
27169 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27170 if test -f "$ltmain_in"; then
27171 test -f Makefile && make "$ltmain"
27177 ac_cpp='$CPP $CPPFLAGS'
27178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27187 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27188 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27189 { (exit 1); exit 1; }; }
27193 # Append the new tag name to the list of available tags.
27194 if test -n "$tagname" ; then
27195 available_tags="$available_tags $tagname"
27201 # Now substitute the updated list of available tags.
27202 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27203 mv "${ofile}T" "$ofile"
27207 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27208 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27209 { (exit 1); exit 1; }; }
27215 # This can be used to rebuild libtool when needed
27216 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27218 # Always use our own libtool.
27219 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27221 # Prevent multiple expansion
27243 if test "$lt_cv_dlopen_self" = "yes" ; then
27245 cat >>confdefs.h <<\_ACEOF
27246 #define CAN_DLOPEN_SELF 1
27252 if test "$WITH_LLVMGCCDIR" = "default" ; then
27253 LLVMGCC="llvm-gcc${EXEEXT}"
27254 LLVMGXX="llvm-g++${EXEEXT}"
27255 LLVMGCCCOMMAND="$LLVMGCC"
27256 LLVMGXXCOMMAND="$LLVMGXX"
27257 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27259 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27261 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27262 set dummy $LLVMGCC; ac_word=$2
27263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27265 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27266 echo $ECHO_N "(cached) $ECHO_C" >&6
27270 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27274 for as_dir in $PATH
27277 test -z "$as_dir" && as_dir=.
27278 for ac_exec_ext in '' $ac_executable_extensions; do
27279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27280 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27291 LLVMGCC=$ac_cv_path_LLVMGCC
27292 if test -n "$LLVMGCC"; then
27293 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27294 echo "${ECHO_T}$LLVMGCC" >&6; }
27296 { echo "$as_me:$LINENO: result: no" >&5
27297 echo "${ECHO_T}no" >&6; }
27301 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27302 set dummy $LLVMGXX; ac_word=$2
27303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27305 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27306 echo $ECHO_N "(cached) $ECHO_C" >&6
27310 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27314 for as_dir in $PATH
27317 test -z "$as_dir" && as_dir=.
27318 for ac_exec_ext in '' $ac_executable_extensions; do
27319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27320 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27331 LLVMGXX=$ac_cv_path_LLVMGXX
27332 if test -n "$LLVMGXX"; then
27333 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27334 echo "${ECHO_T}$LLVMGXX" >&6; }
27336 { echo "$as_me:$LINENO: result: no" >&5
27337 echo "${ECHO_T}no" >&6; }
27342 if test -z "$LLVMGCC"; then
27343 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27344 LLVMGCCCOMMAND="$LLVMGCC"
27346 if test -z "$LLVMGXX"; then
27347 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27348 LLVMGXXCOMMAND="$LLVMGXX"
27355 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27357 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27362 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27363 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27376 if test "$GCC" != "yes" && test "$ICC" != "yes"
27378 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27379 echo "$as_me: error: gcc|icc required but not found" >&2;}
27380 { (exit 1); exit 1; }; }
27383 if test "$GXX" != "yes" && test "$IXX" != "yes"
27385 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27386 echo "$as_me: error: g++|icc required but not found" >&2;}
27387 { (exit 1); exit 1; }; }
27390 if test "$GCC" = "yes"
27392 cat >conftest.$ac_ext <<_ACEOF
27393 #if !defined(__GNUC__) || __GNUC__ < 3
27394 #error Unsupported GCC version
27398 rm -f conftest.$ac_objext
27399 if { (ac_try="$ac_compile"
27400 case "(($ac_try" in
27401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27402 *) ac_try_echo=$ac_try;;
27404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27405 (eval "$ac_compile") 2>conftest.er1
27407 grep -v '^ *+' conftest.er1 >conftest.err
27409 cat conftest.err >&5
27410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411 (exit $ac_status); } &&
27412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27413 { (case "(($ac_try" in
27414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415 *) ac_try_echo=$ac_try;;
27417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27418 (eval "$ac_try") 2>&5
27420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27421 (exit $ac_status); }; } &&
27422 { ac_try='test -s conftest.$ac_objext'
27423 { (case "(($ac_try" in
27424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27425 *) ac_try_echo=$ac_try;;
27427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27428 (eval "$ac_try") 2>&5
27430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431 (exit $ac_status); }; }; then
27434 echo "$as_me: failed program was:" >&5
27435 sed 's/^/| /' conftest.$ac_ext >&5
27437 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27438 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27439 { (exit 1); exit 1; }; }
27442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27445 if test -z "$llvm_cv_gnu_make_command"
27447 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27448 echo "$as_me: error: GNU Make required but not found" >&2;}
27449 { (exit 1); exit 1; }; }
27452 { echo "$as_me:$LINENO: result: ok" >&5
27453 echo "${ECHO_T}ok" >&6; }
27457 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27458 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27459 if test "${ac_cv_lib_m_sin+set}" = set; then
27460 echo $ECHO_N "(cached) $ECHO_C" >&6
27462 ac_check_lib_save_LIBS=$LIBS
27464 cat >conftest.$ac_ext <<_ACEOF
27467 cat confdefs.h >>conftest.$ac_ext
27468 cat >>conftest.$ac_ext <<_ACEOF
27469 /* end confdefs.h. */
27471 /* Override any GCC internal prototype to avoid an error.
27472 Use char because int might match the return type of a GCC
27473 builtin and then its argument prototype would still apply. */
27486 rm -f conftest.$ac_objext conftest$ac_exeext
27487 if { (ac_try="$ac_link"
27488 case "(($ac_try" in
27489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27490 *) ac_try_echo=$ac_try;;
27492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27493 (eval "$ac_link") 2>conftest.er1
27495 grep -v '^ *+' conftest.er1 >conftest.err
27497 cat conftest.err >&5
27498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499 (exit $ac_status); } &&
27500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27501 { (case "(($ac_try" in
27502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27503 *) ac_try_echo=$ac_try;;
27505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27506 (eval "$ac_try") 2>&5
27508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27509 (exit $ac_status); }; } &&
27510 { ac_try='test -s conftest$ac_exeext'
27511 { (case "(($ac_try" in
27512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27513 *) ac_try_echo=$ac_try;;
27515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27516 (eval "$ac_try") 2>&5
27518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519 (exit $ac_status); }; }; then
27520 ac_cv_lib_m_sin=yes
27522 echo "$as_me: failed program was:" >&5
27523 sed 's/^/| /' conftest.$ac_ext >&5
27528 rm -f core conftest.err conftest.$ac_objext \
27529 conftest$ac_exeext conftest.$ac_ext
27530 LIBS=$ac_check_lib_save_LIBS
27532 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27533 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27534 if test $ac_cv_lib_m_sin = yes; then
27535 cat >>confdefs.h <<_ACEOF
27536 #define HAVE_LIBM 1
27543 if test "$llvm_cv_os_type" = "MingW" ; then
27545 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27546 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27547 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27548 echo $ECHO_N "(cached) $ECHO_C" >&6
27550 ac_check_lib_save_LIBS=$LIBS
27551 LIBS="-limagehlp $LIBS"
27552 cat >conftest.$ac_ext <<_ACEOF
27555 cat confdefs.h >>conftest.$ac_ext
27556 cat >>conftest.$ac_ext <<_ACEOF
27557 /* end confdefs.h. */
27568 rm -f conftest.$ac_objext conftest$ac_exeext
27569 if { (ac_try="$ac_link"
27570 case "(($ac_try" in
27571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27572 *) ac_try_echo=$ac_try;;
27574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27575 (eval "$ac_link") 2>conftest.er1
27577 grep -v '^ *+' conftest.er1 >conftest.err
27579 cat conftest.err >&5
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); } &&
27582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27583 { (case "(($ac_try" in
27584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27585 *) ac_try_echo=$ac_try;;
27587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27588 (eval "$ac_try") 2>&5
27590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591 (exit $ac_status); }; } &&
27592 { ac_try='test -s conftest$ac_exeext'
27593 { (case "(($ac_try" in
27594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27595 *) ac_try_echo=$ac_try;;
27597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27598 (eval "$ac_try") 2>&5
27600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27601 (exit $ac_status); }; }; then
27602 ac_cv_lib_imagehlp_main=yes
27604 echo "$as_me: failed program was:" >&5
27605 sed 's/^/| /' conftest.$ac_ext >&5
27607 ac_cv_lib_imagehlp_main=no
27610 rm -f core conftest.err conftest.$ac_objext \
27611 conftest$ac_exeext conftest.$ac_ext
27612 LIBS=$ac_check_lib_save_LIBS
27614 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27615 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27616 if test $ac_cv_lib_imagehlp_main = yes; then
27617 cat >>confdefs.h <<_ACEOF
27618 #define HAVE_LIBIMAGEHLP 1
27621 LIBS="-limagehlp $LIBS"
27626 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27627 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27628 if test "${ac_cv_lib_psapi_main+set}" = set; then
27629 echo $ECHO_N "(cached) $ECHO_C" >&6
27631 ac_check_lib_save_LIBS=$LIBS
27632 LIBS="-lpsapi $LIBS"
27633 cat >conftest.$ac_ext <<_ACEOF
27636 cat confdefs.h >>conftest.$ac_ext
27637 cat >>conftest.$ac_ext <<_ACEOF
27638 /* end confdefs.h. */
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_lib_psapi_main=yes
27685 echo "$as_me: failed program was:" >&5
27686 sed 's/^/| /' conftest.$ac_ext >&5
27688 ac_cv_lib_psapi_main=no
27691 rm -f core conftest.err conftest.$ac_objext \
27692 conftest$ac_exeext conftest.$ac_ext
27693 LIBS=$ac_check_lib_save_LIBS
27695 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27696 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27697 if test $ac_cv_lib_psapi_main = yes; then
27698 cat >>confdefs.h <<_ACEOF
27699 #define HAVE_LIBPSAPI 1
27702 LIBS="-lpsapi $LIBS"
27708 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27709 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27710 if test "${ac_cv_search_dlopen+set}" = set; then
27711 echo $ECHO_N "(cached) $ECHO_C" >&6
27713 ac_func_search_save_LIBS=$LIBS
27714 cat >conftest.$ac_ext <<_ACEOF
27717 cat confdefs.h >>conftest.$ac_ext
27718 cat >>conftest.$ac_ext <<_ACEOF
27719 /* end confdefs.h. */
27721 /* Override any GCC internal prototype to avoid an error.
27722 Use char because int might match the return type of a GCC
27723 builtin and then its argument prototype would still apply. */
27736 for ac_lib in '' dl; do
27737 if test -z "$ac_lib"; then
27738 ac_res="none required"
27741 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27743 rm -f conftest.$ac_objext conftest$ac_exeext
27744 if { (ac_try="$ac_link"
27745 case "(($ac_try" in
27746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27747 *) ac_try_echo=$ac_try;;
27749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27750 (eval "$ac_link") 2>conftest.er1
27752 grep -v '^ *+' conftest.er1 >conftest.err
27754 cat conftest.err >&5
27755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27756 (exit $ac_status); } &&
27757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27758 { (case "(($ac_try" in
27759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27760 *) ac_try_echo=$ac_try;;
27762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27763 (eval "$ac_try") 2>&5
27765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766 (exit $ac_status); }; } &&
27767 { ac_try='test -s conftest$ac_exeext'
27768 { (case "(($ac_try" in
27769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27770 *) ac_try_echo=$ac_try;;
27772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27773 (eval "$ac_try") 2>&5
27775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776 (exit $ac_status); }; }; then
27777 ac_cv_search_dlopen=$ac_res
27779 echo "$as_me: failed program was:" >&5
27780 sed 's/^/| /' conftest.$ac_ext >&5
27785 rm -f core conftest.err conftest.$ac_objext \
27787 if test "${ac_cv_search_dlopen+set}" = set; then
27791 if test "${ac_cv_search_dlopen+set}" = set; then
27794 ac_cv_search_dlopen=no
27796 rm conftest.$ac_ext
27797 LIBS=$ac_func_search_save_LIBS
27799 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27800 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27801 ac_res=$ac_cv_search_dlopen
27802 if test "$ac_res" != no; then
27803 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27805 cat >>confdefs.h <<\_ACEOF
27806 #define HAVE_DLOPEN 1
27810 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27811 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27815 if test "$llvm_cv_enable_libffi" = "yes" ; then
27816 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27817 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27818 if test "${ac_cv_search_ffi_call+set}" = set; then
27819 echo $ECHO_N "(cached) $ECHO_C" >&6
27821 ac_func_search_save_LIBS=$LIBS
27822 cat >conftest.$ac_ext <<_ACEOF
27825 cat confdefs.h >>conftest.$ac_ext
27826 cat >>conftest.$ac_ext <<_ACEOF
27827 /* end confdefs.h. */
27829 /* Override any GCC internal prototype to avoid an error.
27830 Use char because int might match the return type of a GCC
27831 builtin and then its argument prototype would still apply. */
27839 return ffi_call ();
27844 for ac_lib in '' ffi; do
27845 if test -z "$ac_lib"; then
27846 ac_res="none required"
27849 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27851 rm -f conftest.$ac_objext conftest$ac_exeext
27852 if { (ac_try="$ac_link"
27853 case "(($ac_try" in
27854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27855 *) ac_try_echo=$ac_try;;
27857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27858 (eval "$ac_link") 2>conftest.er1
27860 grep -v '^ *+' conftest.er1 >conftest.err
27862 cat conftest.err >&5
27863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864 (exit $ac_status); } &&
27865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27866 { (case "(($ac_try" in
27867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27868 *) ac_try_echo=$ac_try;;
27870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27871 (eval "$ac_try") 2>&5
27873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874 (exit $ac_status); }; } &&
27875 { ac_try='test -s conftest$ac_exeext'
27876 { (case "(($ac_try" in
27877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27878 *) ac_try_echo=$ac_try;;
27880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27881 (eval "$ac_try") 2>&5
27883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884 (exit $ac_status); }; }; then
27885 ac_cv_search_ffi_call=$ac_res
27887 echo "$as_me: failed program was:" >&5
27888 sed 's/^/| /' conftest.$ac_ext >&5
27893 rm -f core conftest.err conftest.$ac_objext \
27895 if test "${ac_cv_search_ffi_call+set}" = set; then
27899 if test "${ac_cv_search_ffi_call+set}" = set; then
27902 ac_cv_search_ffi_call=no
27904 rm conftest.$ac_ext
27905 LIBS=$ac_func_search_save_LIBS
27907 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27908 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27909 ac_res=$ac_cv_search_ffi_call
27910 if test "$ac_res" != no; then
27911 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27913 cat >>confdefs.h <<\_ACEOF
27914 #define HAVE_FFI_CALL 1
27918 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27919 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27924 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27925 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27926 if test "${ac_cv_search_mallinfo+set}" = set; then
27927 echo $ECHO_N "(cached) $ECHO_C" >&6
27929 ac_func_search_save_LIBS=$LIBS
27930 cat >conftest.$ac_ext <<_ACEOF
27933 cat confdefs.h >>conftest.$ac_ext
27934 cat >>conftest.$ac_ext <<_ACEOF
27935 /* end confdefs.h. */
27937 /* Override any GCC internal prototype to avoid an error.
27938 Use char because int might match the return type of a GCC
27939 builtin and then its argument prototype would still apply. */
27947 return mallinfo ();
27952 for ac_lib in '' malloc; do
27953 if test -z "$ac_lib"; then
27954 ac_res="none required"
27957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27959 rm -f conftest.$ac_objext conftest$ac_exeext
27960 if { (ac_try="$ac_link"
27961 case "(($ac_try" in
27962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27963 *) ac_try_echo=$ac_try;;
27965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27966 (eval "$ac_link") 2>conftest.er1
27968 grep -v '^ *+' conftest.er1 >conftest.err
27970 cat conftest.err >&5
27971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972 (exit $ac_status); } &&
27973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27974 { (case "(($ac_try" in
27975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27976 *) ac_try_echo=$ac_try;;
27978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27979 (eval "$ac_try") 2>&5
27981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982 (exit $ac_status); }; } &&
27983 { ac_try='test -s conftest$ac_exeext'
27984 { (case "(($ac_try" in
27985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27986 *) ac_try_echo=$ac_try;;
27988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27989 (eval "$ac_try") 2>&5
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992 (exit $ac_status); }; }; then
27993 ac_cv_search_mallinfo=$ac_res
27995 echo "$as_me: failed program was:" >&5
27996 sed 's/^/| /' conftest.$ac_ext >&5
28001 rm -f core conftest.err conftest.$ac_objext \
28003 if test "${ac_cv_search_mallinfo+set}" = set; then
28007 if test "${ac_cv_search_mallinfo+set}" = set; then
28010 ac_cv_search_mallinfo=no
28012 rm conftest.$ac_ext
28013 LIBS=$ac_func_search_save_LIBS
28015 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28016 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28017 ac_res=$ac_cv_search_mallinfo
28018 if test "$ac_res" != no; then
28019 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28021 cat >>confdefs.h <<\_ACEOF
28022 #define HAVE_MALLINFO 1
28028 if test "$ENABLE_THREADS" -eq 1 ; then
28029 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_init" >&5
28030 echo $ECHO_N "checking for library containing pthread_mutex_init... $ECHO_C" >&6; }
28031 if test "${ac_cv_search_pthread_mutex_init+set}" = set; then
28032 echo $ECHO_N "(cached) $ECHO_C" >&6
28034 ac_func_search_save_LIBS=$LIBS
28035 cat >conftest.$ac_ext <<_ACEOF
28038 cat confdefs.h >>conftest.$ac_ext
28039 cat >>conftest.$ac_ext <<_ACEOF
28040 /* end confdefs.h. */
28042 /* Override any GCC internal prototype to avoid an error.
28043 Use char because int might match the return type of a GCC
28044 builtin and then its argument prototype would still apply. */
28048 char pthread_mutex_init ();
28052 return pthread_mutex_init ();
28057 for ac_lib in '' pthread; do
28058 if test -z "$ac_lib"; then
28059 ac_res="none required"
28062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28064 rm -f conftest.$ac_objext conftest$ac_exeext
28065 if { (ac_try="$ac_link"
28066 case "(($ac_try" in
28067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28068 *) ac_try_echo=$ac_try;;
28070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28071 (eval "$ac_link") 2>conftest.er1
28073 grep -v '^ *+' conftest.er1 >conftest.err
28075 cat conftest.err >&5
28076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077 (exit $ac_status); } &&
28078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28079 { (case "(($ac_try" in
28080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28081 *) ac_try_echo=$ac_try;;
28083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28084 (eval "$ac_try") 2>&5
28086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087 (exit $ac_status); }; } &&
28088 { ac_try='test -s conftest$ac_exeext'
28089 { (case "(($ac_try" in
28090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28091 *) ac_try_echo=$ac_try;;
28093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28094 (eval "$ac_try") 2>&5
28096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097 (exit $ac_status); }; }; then
28098 ac_cv_search_pthread_mutex_init=$ac_res
28100 echo "$as_me: failed program was:" >&5
28101 sed 's/^/| /' conftest.$ac_ext >&5
28106 rm -f core conftest.err conftest.$ac_objext \
28108 if test "${ac_cv_search_pthread_mutex_init+set}" = set; then
28112 if test "${ac_cv_search_pthread_mutex_init+set}" = set; then
28115 ac_cv_search_pthread_mutex_init=no
28117 rm conftest.$ac_ext
28118 LIBS=$ac_func_search_save_LIBS
28120 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_init" >&5
28121 echo "${ECHO_T}$ac_cv_search_pthread_mutex_init" >&6; }
28122 ac_res=$ac_cv_search_pthread_mutex_init
28123 if test "$ac_res" != no; then
28124 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28126 cat >>confdefs.h <<\_ACEOF
28127 #define HAVE_PTHREAD 1
28132 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28133 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28134 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28135 echo $ECHO_N "(cached) $ECHO_C" >&6
28137 ac_func_search_save_LIBS=$LIBS
28138 cat >conftest.$ac_ext <<_ACEOF
28141 cat confdefs.h >>conftest.$ac_ext
28142 cat >>conftest.$ac_ext <<_ACEOF
28143 /* end confdefs.h. */
28145 /* Override any GCC internal prototype to avoid an error.
28146 Use char because int might match the return type of a GCC
28147 builtin and then its argument prototype would still apply. */
28151 char pthread_mutex_lock ();
28155 return pthread_mutex_lock ();
28160 for ac_lib in '' pthread; do
28161 if test -z "$ac_lib"; then
28162 ac_res="none required"
28165 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28167 rm -f conftest.$ac_objext conftest$ac_exeext
28168 if { (ac_try="$ac_link"
28169 case "(($ac_try" in
28170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28171 *) ac_try_echo=$ac_try;;
28173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28174 (eval "$ac_link") 2>conftest.er1
28176 grep -v '^ *+' conftest.er1 >conftest.err
28178 cat conftest.err >&5
28179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28180 (exit $ac_status); } &&
28181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28182 { (case "(($ac_try" in
28183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28184 *) ac_try_echo=$ac_try;;
28186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28187 (eval "$ac_try") 2>&5
28189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190 (exit $ac_status); }; } &&
28191 { ac_try='test -s conftest$ac_exeext'
28192 { (case "(($ac_try" in
28193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28194 *) ac_try_echo=$ac_try;;
28196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28197 (eval "$ac_try") 2>&5
28199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200 (exit $ac_status); }; }; then
28201 ac_cv_search_pthread_mutex_lock=$ac_res
28203 echo "$as_me: failed program was:" >&5
28204 sed 's/^/| /' conftest.$ac_ext >&5
28209 rm -f core conftest.err conftest.$ac_objext \
28211 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28215 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28218 ac_cv_search_pthread_mutex_lock=no
28220 rm conftest.$ac_ext
28221 LIBS=$ac_func_search_save_LIBS
28223 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28224 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28225 ac_res=$ac_cv_search_pthread_mutex_lock
28226 if test "$ac_res" != no; then
28227 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28229 cat >>confdefs.h <<\_ACEOF
28230 #define HAVE_PTHREAD_MUTEX_LOCK 1
28235 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28236 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28237 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28238 echo $ECHO_N "(cached) $ECHO_C" >&6
28240 ac_func_search_save_LIBS=$LIBS
28241 cat >conftest.$ac_ext <<_ACEOF
28244 cat confdefs.h >>conftest.$ac_ext
28245 cat >>conftest.$ac_ext <<_ACEOF
28246 /* end confdefs.h. */
28248 /* Override any GCC internal prototype to avoid an error.
28249 Use char because int might match the return type of a GCC
28250 builtin and then its argument prototype would still apply. */
28254 char pthread_rwlock_init ();
28258 return pthread_rwlock_init ();
28263 for ac_lib in '' pthread; do
28264 if test -z "$ac_lib"; then
28265 ac_res="none required"
28268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28270 rm -f conftest.$ac_objext conftest$ac_exeext
28271 if { (ac_try="$ac_link"
28272 case "(($ac_try" in
28273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28274 *) ac_try_echo=$ac_try;;
28276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28277 (eval "$ac_link") 2>conftest.er1
28279 grep -v '^ *+' conftest.er1 >conftest.err
28281 cat conftest.err >&5
28282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283 (exit $ac_status); } &&
28284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28285 { (case "(($ac_try" in
28286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28287 *) ac_try_echo=$ac_try;;
28289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28290 (eval "$ac_try") 2>&5
28292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28293 (exit $ac_status); }; } &&
28294 { ac_try='test -s conftest$ac_exeext'
28295 { (case "(($ac_try" in
28296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28297 *) ac_try_echo=$ac_try;;
28299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28300 (eval "$ac_try") 2>&5
28302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28303 (exit $ac_status); }; }; then
28304 ac_cv_search_pthread_rwlock_init=$ac_res
28306 echo "$as_me: failed program was:" >&5
28307 sed 's/^/| /' conftest.$ac_ext >&5
28312 rm -f core conftest.err conftest.$ac_objext \
28314 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28318 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28321 ac_cv_search_pthread_rwlock_init=no
28323 rm conftest.$ac_ext
28324 LIBS=$ac_func_search_save_LIBS
28326 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28327 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28328 ac_res=$ac_cv_search_pthread_rwlock_init
28329 if test "$ac_res" != no; then
28330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28332 cat >>confdefs.h <<\_ACEOF
28333 #define HAVE_PTHREAD_RWLOCK_INIT 1
28338 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28339 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28340 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28341 echo $ECHO_N "(cached) $ECHO_C" >&6
28343 ac_func_search_save_LIBS=$LIBS
28344 cat >conftest.$ac_ext <<_ACEOF
28347 cat confdefs.h >>conftest.$ac_ext
28348 cat >>conftest.$ac_ext <<_ACEOF
28349 /* end confdefs.h. */
28351 /* Override any GCC internal prototype to avoid an error.
28352 Use char because int might match the return type of a GCC
28353 builtin and then its argument prototype would still apply. */
28357 char pthread_getspecific ();
28361 return pthread_getspecific ();
28366 for ac_lib in '' pthread; do
28367 if test -z "$ac_lib"; then
28368 ac_res="none required"
28371 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28373 rm -f conftest.$ac_objext conftest$ac_exeext
28374 if { (ac_try="$ac_link"
28375 case "(($ac_try" in
28376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28377 *) ac_try_echo=$ac_try;;
28379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28380 (eval "$ac_link") 2>conftest.er1
28382 grep -v '^ *+' conftest.er1 >conftest.err
28384 cat conftest.err >&5
28385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28386 (exit $ac_status); } &&
28387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28388 { (case "(($ac_try" in
28389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28390 *) ac_try_echo=$ac_try;;
28392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28393 (eval "$ac_try") 2>&5
28395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28396 (exit $ac_status); }; } &&
28397 { ac_try='test -s conftest$ac_exeext'
28398 { (case "(($ac_try" in
28399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28400 *) ac_try_echo=$ac_try;;
28402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28403 (eval "$ac_try") 2>&5
28405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406 (exit $ac_status); }; }; then
28407 ac_cv_search_pthread_getspecific=$ac_res
28409 echo "$as_me: failed program was:" >&5
28410 sed 's/^/| /' conftest.$ac_ext >&5
28415 rm -f core conftest.err conftest.$ac_objext \
28417 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28421 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28424 ac_cv_search_pthread_getspecific=no
28426 rm conftest.$ac_ext
28427 LIBS=$ac_func_search_save_LIBS
28429 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28430 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28431 ac_res=$ac_cv_search_pthread_getspecific
28432 if test "$ac_res" != no; then
28433 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28435 cat >>confdefs.h <<\_ACEOF
28436 #define HAVE_PTHREAD_GETSPECIFIC 1
28444 # Check whether --with-udis86 was given.
28445 if test "${with_udis86+set}" = set; then
28446 withval=$with_udis86;
28451 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28454 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28455 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28456 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28457 echo $ECHO_N "(cached) $ECHO_C" >&6
28459 ac_check_lib_save_LIBS=$LIBS
28460 LIBS="-ludis86 $LIBS"
28461 cat >conftest.$ac_ext <<_ACEOF
28464 cat confdefs.h >>conftest.$ac_ext
28465 cat >>conftest.$ac_ext <<_ACEOF
28466 /* end confdefs.h. */
28468 /* Override any GCC internal prototype to avoid an error.
28469 Use char because int might match the return type of a GCC
28470 builtin and then its argument prototype would still apply. */
28483 rm -f conftest.$ac_objext conftest$ac_exeext
28484 if { (ac_try="$ac_link"
28485 case "(($ac_try" in
28486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28487 *) ac_try_echo=$ac_try;;
28489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28490 (eval "$ac_link") 2>conftest.er1
28492 grep -v '^ *+' conftest.er1 >conftest.err
28494 cat conftest.err >&5
28495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28496 (exit $ac_status); } &&
28497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28498 { (case "(($ac_try" in
28499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28500 *) ac_try_echo=$ac_try;;
28502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28503 (eval "$ac_try") 2>&5
28505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506 (exit $ac_status); }; } &&
28507 { ac_try='test -s conftest$ac_exeext'
28508 { (case "(($ac_try" in
28509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28510 *) ac_try_echo=$ac_try;;
28512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28513 (eval "$ac_try") 2>&5
28515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28516 (exit $ac_status); }; }; then
28517 ac_cv_lib_udis86_ud_init=yes
28519 echo "$as_me: failed program was:" >&5
28520 sed 's/^/| /' conftest.$ac_ext >&5
28522 ac_cv_lib_udis86_ud_init=no
28525 rm -f core conftest.err conftest.$ac_objext \
28526 conftest$ac_exeext conftest.$ac_ext
28527 LIBS=$ac_check_lib_save_LIBS
28529 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28530 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28531 if test $ac_cv_lib_udis86_ud_init = yes; then
28532 cat >>confdefs.h <<_ACEOF
28533 #define HAVE_LIBUDIS86 1
28536 LIBS="-ludis86 $LIBS"
28540 echo "Error! You need to have libudis86 around."
28552 cat >>confdefs.h <<_ACEOF
28553 #define USE_UDIS86 $USE_UDIS86
28558 # Check whether --with-oprofile was given.
28559 if test "${with_oprofile+set}" = set; then
28560 withval=$with_oprofile;
28564 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28565 no) llvm_cv_oppath=
28568 *) llvm_cv_oppath="${withval}/lib/oprofile"
28569 CPPFLAGS="-I${withval}/include";;
28571 if test -n "$llvm_cv_oppath" ; then
28572 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28573 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
28574 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
28575 if test "${ac_cv_search_bfd_init+set}" = set; then
28576 echo $ECHO_N "(cached) $ECHO_C" >&6
28578 ac_func_search_save_LIBS=$LIBS
28579 cat >conftest.$ac_ext <<_ACEOF
28582 cat confdefs.h >>conftest.$ac_ext
28583 cat >>conftest.$ac_ext <<_ACEOF
28584 /* end confdefs.h. */
28586 /* Override any GCC internal prototype to avoid an error.
28587 Use char because int might match the return type of a GCC
28588 builtin and then its argument prototype would still apply. */
28596 return bfd_init ();
28601 for ac_lib in '' bfd; do
28602 if test -z "$ac_lib"; then
28603 ac_res="none required"
28606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28608 rm -f conftest.$ac_objext conftest$ac_exeext
28609 if { (ac_try="$ac_link"
28610 case "(($ac_try" in
28611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612 *) ac_try_echo=$ac_try;;
28614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615 (eval "$ac_link") 2>conftest.er1
28617 grep -v '^ *+' conftest.er1 >conftest.err
28619 cat conftest.err >&5
28620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28621 (exit $ac_status); } &&
28622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28623 { (case "(($ac_try" in
28624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28625 *) ac_try_echo=$ac_try;;
28627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28628 (eval "$ac_try") 2>&5
28630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28631 (exit $ac_status); }; } &&
28632 { ac_try='test -s conftest$ac_exeext'
28633 { (case "(($ac_try" in
28634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28635 *) ac_try_echo=$ac_try;;
28637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28638 (eval "$ac_try") 2>&5
28640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641 (exit $ac_status); }; }; then
28642 ac_cv_search_bfd_init=$ac_res
28644 echo "$as_me: failed program was:" >&5
28645 sed 's/^/| /' conftest.$ac_ext >&5
28650 rm -f core conftest.err conftest.$ac_objext \
28652 if test "${ac_cv_search_bfd_init+set}" = set; then
28656 if test "${ac_cv_search_bfd_init+set}" = set; then
28659 ac_cv_search_bfd_init=no
28661 rm conftest.$ac_ext
28662 LIBS=$ac_func_search_save_LIBS
28664 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
28665 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
28666 ac_res=$ac_cv_search_bfd_init
28667 if test "$ac_res" != no; then
28668 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28672 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28673 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28674 if test "${ac_cv_search_op_open_agent+set}" = set; then
28675 echo $ECHO_N "(cached) $ECHO_C" >&6
28677 ac_func_search_save_LIBS=$LIBS
28678 cat >conftest.$ac_ext <<_ACEOF
28681 cat confdefs.h >>conftest.$ac_ext
28682 cat >>conftest.$ac_ext <<_ACEOF
28683 /* end confdefs.h. */
28685 /* Override any GCC internal prototype to avoid an error.
28686 Use char because int might match the return type of a GCC
28687 builtin and then its argument prototype would still apply. */
28691 char op_open_agent ();
28695 return op_open_agent ();
28700 for ac_lib in '' opagent; do
28701 if test -z "$ac_lib"; then
28702 ac_res="none required"
28705 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28707 rm -f conftest.$ac_objext conftest$ac_exeext
28708 if { (ac_try="$ac_link"
28709 case "(($ac_try" in
28710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28711 *) ac_try_echo=$ac_try;;
28713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28714 (eval "$ac_link") 2>conftest.er1
28716 grep -v '^ *+' conftest.er1 >conftest.err
28718 cat conftest.err >&5
28719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720 (exit $ac_status); } &&
28721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28722 { (case "(($ac_try" in
28723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28724 *) ac_try_echo=$ac_try;;
28726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28727 (eval "$ac_try") 2>&5
28729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730 (exit $ac_status); }; } &&
28731 { ac_try='test -s conftest$ac_exeext'
28732 { (case "(($ac_try" in
28733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28734 *) ac_try_echo=$ac_try;;
28736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28737 (eval "$ac_try") 2>&5
28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); }; }; then
28741 ac_cv_search_op_open_agent=$ac_res
28743 echo "$as_me: failed program was:" >&5
28744 sed 's/^/| /' conftest.$ac_ext >&5
28749 rm -f core conftest.err conftest.$ac_objext \
28751 if test "${ac_cv_search_op_open_agent+set}" = set; then
28755 if test "${ac_cv_search_op_open_agent+set}" = set; then
28758 ac_cv_search_op_open_agent=no
28760 rm conftest.$ac_ext
28761 LIBS=$ac_func_search_save_LIBS
28763 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28764 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28765 ac_res=$ac_cv_search_op_open_agent
28766 if test "$ac_res" != no; then
28767 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28771 echo "Error! You need to have libopagent around."
28776 if test "${ac_cv_header_opagent_h+set}" = set; then
28777 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28778 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28779 if test "${ac_cv_header_opagent_h+set}" = set; then
28780 echo $ECHO_N "(cached) $ECHO_C" >&6
28782 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28783 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28785 # Is the header compilable?
28786 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28787 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28788 cat >conftest.$ac_ext <<_ACEOF
28791 cat confdefs.h >>conftest.$ac_ext
28792 cat >>conftest.$ac_ext <<_ACEOF
28793 /* end confdefs.h. */
28794 $ac_includes_default
28795 #include <opagent.h>
28797 rm -f conftest.$ac_objext
28798 if { (ac_try="$ac_compile"
28799 case "(($ac_try" in
28800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28801 *) ac_try_echo=$ac_try;;
28803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28804 (eval "$ac_compile") 2>conftest.er1
28806 grep -v '^ *+' conftest.er1 >conftest.err
28808 cat conftest.err >&5
28809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810 (exit $ac_status); } &&
28811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28812 { (case "(($ac_try" in
28813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28814 *) ac_try_echo=$ac_try;;
28816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28817 (eval "$ac_try") 2>&5
28819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820 (exit $ac_status); }; } &&
28821 { ac_try='test -s conftest.$ac_objext'
28822 { (case "(($ac_try" in
28823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28824 *) ac_try_echo=$ac_try;;
28826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28827 (eval "$ac_try") 2>&5
28829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830 (exit $ac_status); }; }; then
28831 ac_header_compiler=yes
28833 echo "$as_me: failed program was:" >&5
28834 sed 's/^/| /' conftest.$ac_ext >&5
28836 ac_header_compiler=no
28839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28840 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28841 echo "${ECHO_T}$ac_header_compiler" >&6; }
28843 # Is the header present?
28844 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28845 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28846 cat >conftest.$ac_ext <<_ACEOF
28849 cat confdefs.h >>conftest.$ac_ext
28850 cat >>conftest.$ac_ext <<_ACEOF
28851 /* end confdefs.h. */
28852 #include <opagent.h>
28854 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
28862 grep -v '^ *+' conftest.er1 >conftest.err
28864 cat conftest.err >&5
28865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866 (exit $ac_status); } >/dev/null; then
28867 if test -s conftest.err; then
28868 ac_cpp_err=$ac_c_preproc_warn_flag
28869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28876 if test -z "$ac_cpp_err"; then
28877 ac_header_preproc=yes
28879 echo "$as_me: failed program was:" >&5
28880 sed 's/^/| /' conftest.$ac_ext >&5
28882 ac_header_preproc=no
28885 rm -f conftest.err conftest.$ac_ext
28886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28887 echo "${ECHO_T}$ac_header_preproc" >&6; }
28889 # So? What about this header?
28890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28892 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28893 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28894 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28895 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28896 ac_header_preproc=yes
28899 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28900 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28901 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28902 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28903 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28904 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28905 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28906 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28907 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28908 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28909 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28910 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28912 ## ----------------------------------- ##
28913 ## Report this to llvmbugs@cs.uiuc.edu ##
28914 ## ----------------------------------- ##
28916 ) | sed "s/^/$as_me: WARNING: /" >&2
28919 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28920 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28921 if test "${ac_cv_header_opagent_h+set}" = set; then
28922 echo $ECHO_N "(cached) $ECHO_C" >&6
28924 ac_cv_header_opagent_h=$ac_header_preproc
28926 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28927 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28930 if test $ac_cv_header_opagent_h = yes; then
28934 echo "Error! You need to have opagent.h around."
28950 cat >>confdefs.h <<_ACEOF
28951 #define USE_OPROFILE $USE_OPROFILE
28961 ac_header_dirent=no
28962 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28963 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28964 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28965 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28967 echo $ECHO_N "(cached) $ECHO_C" >&6
28969 cat >conftest.$ac_ext <<_ACEOF
28972 cat confdefs.h >>conftest.$ac_ext
28973 cat >>conftest.$ac_ext <<_ACEOF
28974 /* end confdefs.h. */
28975 #include <sys/types.h>
28987 rm -f conftest.$ac_objext
28988 if { (ac_try="$ac_compile"
28989 case "(($ac_try" in
28990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28991 *) ac_try_echo=$ac_try;;
28993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28994 (eval "$ac_compile") 2>conftest.er1
28996 grep -v '^ *+' conftest.er1 >conftest.err
28998 cat conftest.err >&5
28999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29000 (exit $ac_status); } &&
29001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29002 { (case "(($ac_try" in
29003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29004 *) ac_try_echo=$ac_try;;
29006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29007 (eval "$ac_try") 2>&5
29009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010 (exit $ac_status); }; } &&
29011 { ac_try='test -s conftest.$ac_objext'
29012 { (case "(($ac_try" in
29013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29014 *) ac_try_echo=$ac_try;;
29016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29017 (eval "$ac_try") 2>&5
29019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29020 (exit $ac_status); }; }; then
29021 eval "$as_ac_Header=yes"
29023 echo "$as_me: failed program was:" >&5
29024 sed 's/^/| /' conftest.$ac_ext >&5
29026 eval "$as_ac_Header=no"
29029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29031 ac_res=`eval echo '${'$as_ac_Header'}'`
29032 { echo "$as_me:$LINENO: result: $ac_res" >&5
29033 echo "${ECHO_T}$ac_res" >&6; }
29034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29035 cat >>confdefs.h <<_ACEOF
29036 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29039 ac_header_dirent=$ac_hdr; break
29043 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29044 if test $ac_header_dirent = dirent.h; then
29045 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29046 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29047 if test "${ac_cv_search_opendir+set}" = set; then
29048 echo $ECHO_N "(cached) $ECHO_C" >&6
29050 ac_func_search_save_LIBS=$LIBS
29051 cat >conftest.$ac_ext <<_ACEOF
29054 cat confdefs.h >>conftest.$ac_ext
29055 cat >>conftest.$ac_ext <<_ACEOF
29056 /* end confdefs.h. */
29058 /* Override any GCC internal prototype to avoid an error.
29059 Use char because int might match the return type of a GCC
29060 builtin and then its argument prototype would still apply. */
29073 for ac_lib in '' dir; do
29074 if test -z "$ac_lib"; then
29075 ac_res="none required"
29078 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29080 rm -f conftest.$ac_objext conftest$ac_exeext
29081 if { (ac_try="$ac_link"
29082 case "(($ac_try" in
29083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29084 *) ac_try_echo=$ac_try;;
29086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29087 (eval "$ac_link") 2>conftest.er1
29089 grep -v '^ *+' conftest.er1 >conftest.err
29091 cat conftest.err >&5
29092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093 (exit $ac_status); } &&
29094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29095 { (case "(($ac_try" in
29096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29097 *) ac_try_echo=$ac_try;;
29099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29100 (eval "$ac_try") 2>&5
29102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29103 (exit $ac_status); }; } &&
29104 { ac_try='test -s conftest$ac_exeext'
29105 { (case "(($ac_try" in
29106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29107 *) ac_try_echo=$ac_try;;
29109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29110 (eval "$ac_try") 2>&5
29112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29113 (exit $ac_status); }; }; then
29114 ac_cv_search_opendir=$ac_res
29116 echo "$as_me: failed program was:" >&5
29117 sed 's/^/| /' conftest.$ac_ext >&5
29122 rm -f core conftest.err conftest.$ac_objext \
29124 if test "${ac_cv_search_opendir+set}" = set; then
29128 if test "${ac_cv_search_opendir+set}" = set; then
29131 ac_cv_search_opendir=no
29133 rm conftest.$ac_ext
29134 LIBS=$ac_func_search_save_LIBS
29136 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29137 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29138 ac_res=$ac_cv_search_opendir
29139 if test "$ac_res" != no; then
29140 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29145 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29146 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29147 if test "${ac_cv_search_opendir+set}" = set; then
29148 echo $ECHO_N "(cached) $ECHO_C" >&6
29150 ac_func_search_save_LIBS=$LIBS
29151 cat >conftest.$ac_ext <<_ACEOF
29154 cat confdefs.h >>conftest.$ac_ext
29155 cat >>conftest.$ac_ext <<_ACEOF
29156 /* end confdefs.h. */
29158 /* Override any GCC internal prototype to avoid an error.
29159 Use char because int might match the return type of a GCC
29160 builtin and then its argument prototype would still apply. */
29173 for ac_lib in '' x; do
29174 if test -z "$ac_lib"; then
29175 ac_res="none required"
29178 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29180 rm -f conftest.$ac_objext conftest$ac_exeext
29181 if { (ac_try="$ac_link"
29182 case "(($ac_try" in
29183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29184 *) ac_try_echo=$ac_try;;
29186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29187 (eval "$ac_link") 2>conftest.er1
29189 grep -v '^ *+' conftest.er1 >conftest.err
29191 cat conftest.err >&5
29192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193 (exit $ac_status); } &&
29194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29195 { (case "(($ac_try" in
29196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29197 *) ac_try_echo=$ac_try;;
29199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29200 (eval "$ac_try") 2>&5
29202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203 (exit $ac_status); }; } &&
29204 { ac_try='test -s conftest$ac_exeext'
29205 { (case "(($ac_try" in
29206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29207 *) ac_try_echo=$ac_try;;
29209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29210 (eval "$ac_try") 2>&5
29212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213 (exit $ac_status); }; }; then
29214 ac_cv_search_opendir=$ac_res
29216 echo "$as_me: failed program was:" >&5
29217 sed 's/^/| /' conftest.$ac_ext >&5
29222 rm -f core conftest.err conftest.$ac_objext \
29224 if test "${ac_cv_search_opendir+set}" = set; then
29228 if test "${ac_cv_search_opendir+set}" = set; then
29231 ac_cv_search_opendir=no
29233 rm conftest.$ac_ext
29234 LIBS=$ac_func_search_save_LIBS
29236 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29237 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29238 ac_res=$ac_cv_search_opendir
29239 if test "$ac_res" != no; then
29240 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29246 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29247 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29248 if test "${ac_cv_header_mmap_anon+set}" = set; then
29249 echo $ECHO_N "(cached) $ECHO_C" >&6
29252 ac_cpp='$CPP $CPPFLAGS'
29253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29257 cat >conftest.$ac_ext <<_ACEOF
29260 cat confdefs.h >>conftest.$ac_ext
29261 cat >>conftest.$ac_ext <<_ACEOF
29262 /* end confdefs.h. */
29263 #include <sys/mman.h>
29264 #include <unistd.h>
29269 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29274 rm -f conftest.$ac_objext
29275 if { (ac_try="$ac_compile"
29276 case "(($ac_try" in
29277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29278 *) ac_try_echo=$ac_try;;
29280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29281 (eval "$ac_compile") 2>conftest.er1
29283 grep -v '^ *+' conftest.er1 >conftest.err
29285 cat conftest.err >&5
29286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287 (exit $ac_status); } &&
29288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29289 { (case "(($ac_try" in
29290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29291 *) ac_try_echo=$ac_try;;
29293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29294 (eval "$ac_try") 2>&5
29296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297 (exit $ac_status); }; } &&
29298 { ac_try='test -s conftest.$ac_objext'
29299 { (case "(($ac_try" in
29300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301 *) ac_try_echo=$ac_try;;
29303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304 (eval "$ac_try") 2>&5
29306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307 (exit $ac_status); }; }; then
29308 ac_cv_header_mmap_anon=yes
29310 echo "$as_me: failed program was:" >&5
29311 sed 's/^/| /' conftest.$ac_ext >&5
29313 ac_cv_header_mmap_anon=no
29316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29318 ac_cpp='$CPP $CPPFLAGS'
29319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29325 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29326 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29327 if test "$ac_cv_header_mmap_anon" = yes; then
29329 cat >>confdefs.h <<\_ACEOF
29330 #define HAVE_MMAP_ANONYMOUS 1
29335 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29336 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29337 if test "${ac_cv_header_stat_broken+set}" = set; then
29338 echo $ECHO_N "(cached) $ECHO_C" >&6
29340 cat >conftest.$ac_ext <<_ACEOF
29343 cat confdefs.h >>conftest.$ac_ext
29344 cat >>conftest.$ac_ext <<_ACEOF
29345 /* end confdefs.h. */
29346 #include <sys/types.h>
29347 #include <sys/stat.h>
29349 #if defined S_ISBLK && defined S_IFDIR
29350 # if S_ISBLK (S_IFDIR)
29355 #if defined S_ISBLK && defined S_IFCHR
29356 # if S_ISBLK (S_IFCHR)
29361 #if defined S_ISLNK && defined S_IFREG
29362 # if S_ISLNK (S_IFREG)
29367 #if defined S_ISSOCK && defined S_IFREG
29368 # if S_ISSOCK (S_IFREG)
29374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29375 $EGREP "You lose" >/dev/null 2>&1; then
29376 ac_cv_header_stat_broken=yes
29378 ac_cv_header_stat_broken=no
29383 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29384 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29385 if test $ac_cv_header_stat_broken = yes; then
29387 cat >>confdefs.h <<\_ACEOF
29388 #define STAT_MACROS_BROKEN 1
29393 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29394 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29395 if test "${ac_cv_header_stdc+set}" = set; then
29396 echo $ECHO_N "(cached) $ECHO_C" >&6
29398 cat >conftest.$ac_ext <<_ACEOF
29401 cat confdefs.h >>conftest.$ac_ext
29402 cat >>conftest.$ac_ext <<_ACEOF
29403 /* end confdefs.h. */
29404 #include <stdlib.h>
29405 #include <stdarg.h>
29406 #include <string.h>
29417 rm -f conftest.$ac_objext
29418 if { (ac_try="$ac_compile"
29419 case "(($ac_try" in
29420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29421 *) ac_try_echo=$ac_try;;
29423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29424 (eval "$ac_compile") 2>conftest.er1
29426 grep -v '^ *+' conftest.er1 >conftest.err
29428 cat conftest.err >&5
29429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29430 (exit $ac_status); } &&
29431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29432 { (case "(($ac_try" in
29433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29434 *) ac_try_echo=$ac_try;;
29436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29437 (eval "$ac_try") 2>&5
29439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29440 (exit $ac_status); }; } &&
29441 { ac_try='test -s conftest.$ac_objext'
29442 { (case "(($ac_try" in
29443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29444 *) ac_try_echo=$ac_try;;
29446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29447 (eval "$ac_try") 2>&5
29449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450 (exit $ac_status); }; }; then
29451 ac_cv_header_stdc=yes
29453 echo "$as_me: failed program was:" >&5
29454 sed 's/^/| /' conftest.$ac_ext >&5
29456 ac_cv_header_stdc=no
29459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29461 if test $ac_cv_header_stdc = yes; then
29462 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29463 cat >conftest.$ac_ext <<_ACEOF
29466 cat confdefs.h >>conftest.$ac_ext
29467 cat >>conftest.$ac_ext <<_ACEOF
29468 /* end confdefs.h. */
29469 #include <string.h>
29472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29473 $EGREP "memchr" >/dev/null 2>&1; then
29476 ac_cv_header_stdc=no
29482 if test $ac_cv_header_stdc = yes; then
29483 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29484 cat >conftest.$ac_ext <<_ACEOF
29487 cat confdefs.h >>conftest.$ac_ext
29488 cat >>conftest.$ac_ext <<_ACEOF
29489 /* end confdefs.h. */
29490 #include <stdlib.h>
29493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29494 $EGREP "free" >/dev/null 2>&1; then
29497 ac_cv_header_stdc=no
29503 if test $ac_cv_header_stdc = yes; then
29504 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29505 if test "$cross_compiling" = yes; then
29508 cat >conftest.$ac_ext <<_ACEOF
29511 cat confdefs.h >>conftest.$ac_ext
29512 cat >>conftest.$ac_ext <<_ACEOF
29513 /* end confdefs.h. */
29515 #include <stdlib.h>
29516 #if ((' ' & 0x0FF) == 0x020)
29517 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29518 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29520 # define ISLOWER(c) \
29521 (('a' <= (c) && (c) <= 'i') \
29522 || ('j' <= (c) && (c) <= 'r') \
29523 || ('s' <= (c) && (c) <= 'z'))
29524 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29527 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29532 for (i = 0; i < 256; i++)
29533 if (XOR (islower (i), ISLOWER (i))
29534 || toupper (i) != TOUPPER (i))
29539 rm -f conftest$ac_exeext
29540 if { (ac_try="$ac_link"
29541 case "(($ac_try" in
29542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29543 *) ac_try_echo=$ac_try;;
29545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29546 (eval "$ac_link") 2>&5
29548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29550 { (case "(($ac_try" in
29551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29552 *) ac_try_echo=$ac_try;;
29554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29555 (eval "$ac_try") 2>&5
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); }; }; then
29561 echo "$as_me: program exited with status $ac_status" >&5
29562 echo "$as_me: failed program was:" >&5
29563 sed 's/^/| /' conftest.$ac_ext >&5
29565 ( exit $ac_status )
29566 ac_cv_header_stdc=no
29568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29574 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29575 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29576 if test $ac_cv_header_stdc = yes; then
29578 cat >>confdefs.h <<\_ACEOF
29579 #define STDC_HEADERS 1
29584 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29585 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29586 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29587 echo $ECHO_N "(cached) $ECHO_C" >&6
29589 cat >conftest.$ac_ext <<_ACEOF
29592 cat confdefs.h >>conftest.$ac_ext
29593 cat >>conftest.$ac_ext <<_ACEOF
29594 /* end confdefs.h. */
29595 #include <sys/types.h>
29596 #include <sys/wait.h>
29597 #ifndef WEXITSTATUS
29598 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29601 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29609 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29614 rm -f conftest.$ac_objext
29615 if { (ac_try="$ac_compile"
29616 case "(($ac_try" in
29617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29618 *) ac_try_echo=$ac_try;;
29620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29621 (eval "$ac_compile") 2>conftest.er1
29623 grep -v '^ *+' conftest.er1 >conftest.err
29625 cat conftest.err >&5
29626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627 (exit $ac_status); } &&
29628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29629 { (case "(($ac_try" in
29630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29631 *) ac_try_echo=$ac_try;;
29633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29634 (eval "$ac_try") 2>&5
29636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637 (exit $ac_status); }; } &&
29638 { ac_try='test -s conftest.$ac_objext'
29639 { (case "(($ac_try" in
29640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29641 *) ac_try_echo=$ac_try;;
29643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29644 (eval "$ac_try") 2>&5
29646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647 (exit $ac_status); }; }; then
29648 ac_cv_header_sys_wait_h=yes
29650 echo "$as_me: failed program was:" >&5
29651 sed 's/^/| /' conftest.$ac_ext >&5
29653 ac_cv_header_sys_wait_h=no
29656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29658 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29659 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29660 if test $ac_cv_header_sys_wait_h = yes; then
29662 cat >>confdefs.h <<\_ACEOF
29663 #define HAVE_SYS_WAIT_H 1
29668 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29669 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29670 if test "${ac_cv_header_time+set}" = set; then
29671 echo $ECHO_N "(cached) $ECHO_C" >&6
29673 cat >conftest.$ac_ext <<_ACEOF
29676 cat confdefs.h >>conftest.$ac_ext
29677 cat >>conftest.$ac_ext <<_ACEOF
29678 /* end confdefs.h. */
29679 #include <sys/types.h>
29680 #include <sys/time.h>
29686 if ((struct tm *) 0)
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_cv_header_time=yes
29728 echo "$as_me: failed program was:" >&5
29729 sed 's/^/| /' conftest.$ac_ext >&5
29731 ac_cv_header_time=no
29734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29736 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29737 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29738 if test $ac_cv_header_time = yes; then
29740 cat >>confdefs.h <<\_ACEOF
29741 #define TIME_WITH_SYS_TIME 1
29753 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29760 echo $ECHO_N "(cached) $ECHO_C" >&6
29762 ac_res=`eval echo '${'$as_ac_Header'}'`
29763 { echo "$as_me:$LINENO: result: $ac_res" >&5
29764 echo "${ECHO_T}$ac_res" >&6; }
29766 # Is the header compilable?
29767 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29769 cat >conftest.$ac_ext <<_ACEOF
29772 cat confdefs.h >>conftest.$ac_ext
29773 cat >>conftest.$ac_ext <<_ACEOF
29774 /* end confdefs.h. */
29775 $ac_includes_default
29776 #include <$ac_header>
29778 rm -f conftest.$ac_objext
29779 if { (ac_try="$ac_compile"
29780 case "(($ac_try" in
29781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29782 *) ac_try_echo=$ac_try;;
29784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29785 (eval "$ac_compile") 2>conftest.er1
29787 grep -v '^ *+' conftest.er1 >conftest.err
29789 cat conftest.err >&5
29790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791 (exit $ac_status); } &&
29792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29793 { (case "(($ac_try" in
29794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29795 *) ac_try_echo=$ac_try;;
29797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29798 (eval "$ac_try") 2>&5
29800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801 (exit $ac_status); }; } &&
29802 { ac_try='test -s conftest.$ac_objext'
29803 { (case "(($ac_try" in
29804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29805 *) ac_try_echo=$ac_try;;
29807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29808 (eval "$ac_try") 2>&5
29810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811 (exit $ac_status); }; }; then
29812 ac_header_compiler=yes
29814 echo "$as_me: failed program was:" >&5
29815 sed 's/^/| /' conftest.$ac_ext >&5
29817 ac_header_compiler=no
29820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29821 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29822 echo "${ECHO_T}$ac_header_compiler" >&6; }
29824 # Is the header present?
29825 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29827 cat >conftest.$ac_ext <<_ACEOF
29830 cat confdefs.h >>conftest.$ac_ext
29831 cat >>conftest.$ac_ext <<_ACEOF
29832 /* end confdefs.h. */
29833 #include <$ac_header>
29835 if { (ac_try="$ac_cpp conftest.$ac_ext"
29836 case "(($ac_try" in
29837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29838 *) ac_try_echo=$ac_try;;
29840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29843 grep -v '^ *+' conftest.er1 >conftest.err
29845 cat conftest.err >&5
29846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847 (exit $ac_status); } >/dev/null; then
29848 if test -s conftest.err; then
29849 ac_cpp_err=$ac_c_preproc_warn_flag
29850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29857 if test -z "$ac_cpp_err"; then
29858 ac_header_preproc=yes
29860 echo "$as_me: failed program was:" >&5
29861 sed 's/^/| /' conftest.$ac_ext >&5
29863 ac_header_preproc=no
29866 rm -f conftest.err conftest.$ac_ext
29867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29868 echo "${ECHO_T}$ac_header_preproc" >&6; }
29870 # So? What about this header?
29871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29877 ac_header_preproc=yes
29880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29887 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29893 ## ----------------------------------- ##
29894 ## Report this to llvmbugs@cs.uiuc.edu ##
29895 ## ----------------------------------- ##
29897 ) | sed "s/^/$as_me: WARNING: /" >&2
29900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29903 echo $ECHO_N "(cached) $ECHO_C" >&6
29905 eval "$as_ac_Header=\$ac_header_preproc"
29907 ac_res=`eval echo '${'$as_ac_Header'}'`
29908 { echo "$as_me:$LINENO: result: $ac_res" >&5
29909 echo "${ECHO_T}$ac_res" >&6; }
29912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29913 cat >>confdefs.h <<_ACEOF
29914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29927 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29934 echo $ECHO_N "(cached) $ECHO_C" >&6
29936 ac_res=`eval echo '${'$as_ac_Header'}'`
29937 { echo "$as_me:$LINENO: result: $ac_res" >&5
29938 echo "${ECHO_T}$ac_res" >&6; }
29940 # Is the header compilable?
29941 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29943 cat >conftest.$ac_ext <<_ACEOF
29946 cat confdefs.h >>conftest.$ac_ext
29947 cat >>conftest.$ac_ext <<_ACEOF
29948 /* end confdefs.h. */
29949 $ac_includes_default
29950 #include <$ac_header>
29952 rm -f conftest.$ac_objext
29953 if { (ac_try="$ac_compile"
29954 case "(($ac_try" in
29955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29956 *) ac_try_echo=$ac_try;;
29958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29959 (eval "$ac_compile") 2>conftest.er1
29961 grep -v '^ *+' conftest.er1 >conftest.err
29963 cat conftest.err >&5
29964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29965 (exit $ac_status); } &&
29966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29967 { (case "(($ac_try" in
29968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29969 *) ac_try_echo=$ac_try;;
29971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29972 (eval "$ac_try") 2>&5
29974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975 (exit $ac_status); }; } &&
29976 { ac_try='test -s conftest.$ac_objext'
29977 { (case "(($ac_try" in
29978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29979 *) ac_try_echo=$ac_try;;
29981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29982 (eval "$ac_try") 2>&5
29984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29985 (exit $ac_status); }; }; then
29986 ac_header_compiler=yes
29988 echo "$as_me: failed program was:" >&5
29989 sed 's/^/| /' conftest.$ac_ext >&5
29991 ac_header_compiler=no
29994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29996 echo "${ECHO_T}$ac_header_compiler" >&6; }
29998 # Is the header present?
29999 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30001 cat >conftest.$ac_ext <<_ACEOF
30004 cat confdefs.h >>conftest.$ac_ext
30005 cat >>conftest.$ac_ext <<_ACEOF
30006 /* end confdefs.h. */
30007 #include <$ac_header>
30009 if { (ac_try="$ac_cpp conftest.$ac_ext"
30010 case "(($ac_try" in
30011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30012 *) ac_try_echo=$ac_try;;
30014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30017 grep -v '^ *+' conftest.er1 >conftest.err
30019 cat conftest.err >&5
30020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021 (exit $ac_status); } >/dev/null; then
30022 if test -s conftest.err; then
30023 ac_cpp_err=$ac_c_preproc_warn_flag
30024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30031 if test -z "$ac_cpp_err"; then
30032 ac_header_preproc=yes
30034 echo "$as_me: failed program was:" >&5
30035 sed 's/^/| /' conftest.$ac_ext >&5
30037 ac_header_preproc=no
30040 rm -f conftest.err conftest.$ac_ext
30041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30042 echo "${ECHO_T}$ac_header_preproc" >&6; }
30044 # So? What about this header?
30045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30051 ac_header_preproc=yes
30054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30061 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30067 ## ----------------------------------- ##
30068 ## Report this to llvmbugs@cs.uiuc.edu ##
30069 ## ----------------------------------- ##
30071 ) | sed "s/^/$as_me: WARNING: /" >&2
30074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30077 echo $ECHO_N "(cached) $ECHO_C" >&6
30079 eval "$as_ac_Header=\$ac_header_preproc"
30081 ac_res=`eval echo '${'$as_ac_Header'}'`
30082 { echo "$as_me:$LINENO: result: $ac_res" >&5
30083 echo "${ECHO_T}$ac_res" >&6; }
30086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30087 cat >>confdefs.h <<_ACEOF
30088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30097 for ac_header in utime.h windows.h
30099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30104 echo $ECHO_N "(cached) $ECHO_C" >&6
30106 ac_res=`eval echo '${'$as_ac_Header'}'`
30107 { echo "$as_me:$LINENO: result: $ac_res" >&5
30108 echo "${ECHO_T}$ac_res" >&6; }
30110 # Is the header compilable?
30111 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30113 cat >conftest.$ac_ext <<_ACEOF
30116 cat confdefs.h >>conftest.$ac_ext
30117 cat >>conftest.$ac_ext <<_ACEOF
30118 /* end confdefs.h. */
30119 $ac_includes_default
30120 #include <$ac_header>
30122 rm -f conftest.$ac_objext
30123 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
30131 grep -v '^ *+' conftest.er1 >conftest.err
30133 cat conftest.err >&5
30134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135 (exit $ac_status); } &&
30136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30137 { (case "(($ac_try" in
30138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30139 *) ac_try_echo=$ac_try;;
30141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30142 (eval "$ac_try") 2>&5
30144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30145 (exit $ac_status); }; } &&
30146 { ac_try='test -s conftest.$ac_objext'
30147 { (case "(($ac_try" in
30148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30149 *) ac_try_echo=$ac_try;;
30151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30152 (eval "$ac_try") 2>&5
30154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30155 (exit $ac_status); }; }; then
30156 ac_header_compiler=yes
30158 echo "$as_me: failed program was:" >&5
30159 sed 's/^/| /' conftest.$ac_ext >&5
30161 ac_header_compiler=no
30164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30165 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30166 echo "${ECHO_T}$ac_header_compiler" >&6; }
30168 # Is the header present?
30169 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30171 cat >conftest.$ac_ext <<_ACEOF
30174 cat confdefs.h >>conftest.$ac_ext
30175 cat >>conftest.$ac_ext <<_ACEOF
30176 /* end confdefs.h. */
30177 #include <$ac_header>
30179 if { (ac_try="$ac_cpp conftest.$ac_ext"
30180 case "(($ac_try" in
30181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30182 *) ac_try_echo=$ac_try;;
30184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30187 grep -v '^ *+' conftest.er1 >conftest.err
30189 cat conftest.err >&5
30190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30191 (exit $ac_status); } >/dev/null; then
30192 if test -s conftest.err; then
30193 ac_cpp_err=$ac_c_preproc_warn_flag
30194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30201 if test -z "$ac_cpp_err"; then
30202 ac_header_preproc=yes
30204 echo "$as_me: failed program was:" >&5
30205 sed 's/^/| /' conftest.$ac_ext >&5
30207 ac_header_preproc=no
30210 rm -f conftest.err conftest.$ac_ext
30211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30212 echo "${ECHO_T}$ac_header_preproc" >&6; }
30214 # So? What about this header?
30215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30220 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30221 ac_header_preproc=yes
30224 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30226 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30227 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30228 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30229 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30230 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30231 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30234 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30235 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30237 ## ----------------------------------- ##
30238 ## Report this to llvmbugs@cs.uiuc.edu ##
30239 ## ----------------------------------- ##
30241 ) | sed "s/^/$as_me: WARNING: /" >&2
30244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30247 echo $ECHO_N "(cached) $ECHO_C" >&6
30249 eval "$as_ac_Header=\$ac_header_preproc"
30251 ac_res=`eval echo '${'$as_ac_Header'}'`
30252 { echo "$as_me:$LINENO: result: $ac_res" >&5
30253 echo "${ECHO_T}$ac_res" >&6; }
30256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30257 cat >>confdefs.h <<_ACEOF
30258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30269 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30276 echo $ECHO_N "(cached) $ECHO_C" >&6
30278 ac_res=`eval echo '${'$as_ac_Header'}'`
30279 { echo "$as_me:$LINENO: result: $ac_res" >&5
30280 echo "${ECHO_T}$ac_res" >&6; }
30282 # Is the header compilable?
30283 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30285 cat >conftest.$ac_ext <<_ACEOF
30288 cat confdefs.h >>conftest.$ac_ext
30289 cat >>conftest.$ac_ext <<_ACEOF
30290 /* end confdefs.h. */
30291 $ac_includes_default
30292 #include <$ac_header>
30294 rm -f conftest.$ac_objext
30295 if { (ac_try="$ac_compile"
30296 case "(($ac_try" in
30297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30298 *) ac_try_echo=$ac_try;;
30300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30301 (eval "$ac_compile") 2>conftest.er1
30303 grep -v '^ *+' conftest.er1 >conftest.err
30305 cat conftest.err >&5
30306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30307 (exit $ac_status); } &&
30308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30309 { (case "(($ac_try" in
30310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30311 *) ac_try_echo=$ac_try;;
30313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30314 (eval "$ac_try") 2>&5
30316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317 (exit $ac_status); }; } &&
30318 { ac_try='test -s conftest.$ac_objext'
30319 { (case "(($ac_try" in
30320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30321 *) ac_try_echo=$ac_try;;
30323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30324 (eval "$ac_try") 2>&5
30326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327 (exit $ac_status); }; }; then
30328 ac_header_compiler=yes
30330 echo "$as_me: failed program was:" >&5
30331 sed 's/^/| /' conftest.$ac_ext >&5
30333 ac_header_compiler=no
30336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30337 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30338 echo "${ECHO_T}$ac_header_compiler" >&6; }
30340 # Is the header present?
30341 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30343 cat >conftest.$ac_ext <<_ACEOF
30346 cat confdefs.h >>conftest.$ac_ext
30347 cat >>conftest.$ac_ext <<_ACEOF
30348 /* end confdefs.h. */
30349 #include <$ac_header>
30351 if { (ac_try="$ac_cpp conftest.$ac_ext"
30352 case "(($ac_try" in
30353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30354 *) ac_try_echo=$ac_try;;
30356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30359 grep -v '^ *+' conftest.er1 >conftest.err
30361 cat conftest.err >&5
30362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363 (exit $ac_status); } >/dev/null; then
30364 if test -s conftest.err; then
30365 ac_cpp_err=$ac_c_preproc_warn_flag
30366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30373 if test -z "$ac_cpp_err"; then
30374 ac_header_preproc=yes
30376 echo "$as_me: failed program was:" >&5
30377 sed 's/^/| /' conftest.$ac_ext >&5
30379 ac_header_preproc=no
30382 rm -f conftest.err conftest.$ac_ext
30383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30384 echo "${ECHO_T}$ac_header_preproc" >&6; }
30386 # So? What about this header?
30387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30393 ac_header_preproc=yes
30396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30403 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30409 ## ----------------------------------- ##
30410 ## Report this to llvmbugs@cs.uiuc.edu ##
30411 ## ----------------------------------- ##
30413 ) | sed "s/^/$as_me: WARNING: /" >&2
30416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30419 echo $ECHO_N "(cached) $ECHO_C" >&6
30421 eval "$as_ac_Header=\$ac_header_preproc"
30423 ac_res=`eval echo '${'$as_ac_Header'}'`
30424 { echo "$as_me:$LINENO: result: $ac_res" >&5
30425 echo "${ECHO_T}$ac_res" >&6; }
30428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30429 cat >>confdefs.h <<_ACEOF
30430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30441 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30448 echo $ECHO_N "(cached) $ECHO_C" >&6
30450 ac_res=`eval echo '${'$as_ac_Header'}'`
30451 { echo "$as_me:$LINENO: result: $ac_res" >&5
30452 echo "${ECHO_T}$ac_res" >&6; }
30454 # Is the header compilable?
30455 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30457 cat >conftest.$ac_ext <<_ACEOF
30460 cat confdefs.h >>conftest.$ac_ext
30461 cat >>conftest.$ac_ext <<_ACEOF
30462 /* end confdefs.h. */
30463 $ac_includes_default
30464 #include <$ac_header>
30466 rm -f conftest.$ac_objext
30467 if { (ac_try="$ac_compile"
30468 case "(($ac_try" in
30469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30470 *) ac_try_echo=$ac_try;;
30472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30473 (eval "$ac_compile") 2>conftest.er1
30475 grep -v '^ *+' conftest.er1 >conftest.err
30477 cat conftest.err >&5
30478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479 (exit $ac_status); } &&
30480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30481 { (case "(($ac_try" in
30482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30483 *) ac_try_echo=$ac_try;;
30485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30486 (eval "$ac_try") 2>&5
30488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489 (exit $ac_status); }; } &&
30490 { ac_try='test -s conftest.$ac_objext'
30491 { (case "(($ac_try" in
30492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30493 *) ac_try_echo=$ac_try;;
30495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30496 (eval "$ac_try") 2>&5
30498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499 (exit $ac_status); }; }; then
30500 ac_header_compiler=yes
30502 echo "$as_me: failed program was:" >&5
30503 sed 's/^/| /' conftest.$ac_ext >&5
30505 ac_header_compiler=no
30508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30509 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30510 echo "${ECHO_T}$ac_header_compiler" >&6; }
30512 # Is the header present?
30513 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30515 cat >conftest.$ac_ext <<_ACEOF
30518 cat confdefs.h >>conftest.$ac_ext
30519 cat >>conftest.$ac_ext <<_ACEOF
30520 /* end confdefs.h. */
30521 #include <$ac_header>
30523 if { (ac_try="$ac_cpp conftest.$ac_ext"
30524 case "(($ac_try" in
30525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30526 *) ac_try_echo=$ac_try;;
30528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30531 grep -v '^ *+' conftest.er1 >conftest.err
30533 cat conftest.err >&5
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535 (exit $ac_status); } >/dev/null; then
30536 if test -s conftest.err; then
30537 ac_cpp_err=$ac_c_preproc_warn_flag
30538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30545 if test -z "$ac_cpp_err"; then
30546 ac_header_preproc=yes
30548 echo "$as_me: failed program was:" >&5
30549 sed 's/^/| /' conftest.$ac_ext >&5
30551 ac_header_preproc=no
30554 rm -f conftest.err conftest.$ac_ext
30555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30556 echo "${ECHO_T}$ac_header_preproc" >&6; }
30558 # So? What about this header?
30559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30565 ac_header_preproc=yes
30568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30575 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30581 ## ----------------------------------- ##
30582 ## Report this to llvmbugs@cs.uiuc.edu ##
30583 ## ----------------------------------- ##
30585 ) | sed "s/^/$as_me: WARNING: /" >&2
30588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30591 echo $ECHO_N "(cached) $ECHO_C" >&6
30593 eval "$as_ac_Header=\$ac_header_preproc"
30595 ac_res=`eval echo '${'$as_ac_Header'}'`
30596 { echo "$as_me:$LINENO: result: $ac_res" >&5
30597 echo "${ECHO_T}$ac_res" >&6; }
30600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30601 cat >>confdefs.h <<_ACEOF
30602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30609 if test "$ENABLE_THREADS" -eq 1 ; then
30611 for ac_header in pthread.h
30613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30618 echo $ECHO_N "(cached) $ECHO_C" >&6
30620 ac_res=`eval echo '${'$as_ac_Header'}'`
30621 { echo "$as_me:$LINENO: result: $ac_res" >&5
30622 echo "${ECHO_T}$ac_res" >&6; }
30624 # Is the header compilable?
30625 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30627 cat >conftest.$ac_ext <<_ACEOF
30630 cat confdefs.h >>conftest.$ac_ext
30631 cat >>conftest.$ac_ext <<_ACEOF
30632 /* end confdefs.h. */
30633 $ac_includes_default
30634 #include <$ac_header>
30636 rm -f conftest.$ac_objext
30637 if { (ac_try="$ac_compile"
30638 case "(($ac_try" in
30639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30640 *) ac_try_echo=$ac_try;;
30642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30643 (eval "$ac_compile") 2>conftest.er1
30645 grep -v '^ *+' conftest.er1 >conftest.err
30647 cat conftest.err >&5
30648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30649 (exit $ac_status); } &&
30650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30651 { (case "(($ac_try" in
30652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30653 *) ac_try_echo=$ac_try;;
30655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30656 (eval "$ac_try") 2>&5
30658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659 (exit $ac_status); }; } &&
30660 { ac_try='test -s conftest.$ac_objext'
30661 { (case "(($ac_try" in
30662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30663 *) ac_try_echo=$ac_try;;
30665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30666 (eval "$ac_try") 2>&5
30668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669 (exit $ac_status); }; }; then
30670 ac_header_compiler=yes
30672 echo "$as_me: failed program was:" >&5
30673 sed 's/^/| /' conftest.$ac_ext >&5
30675 ac_header_compiler=no
30678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30679 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30680 echo "${ECHO_T}$ac_header_compiler" >&6; }
30682 # Is the header present?
30683 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30685 cat >conftest.$ac_ext <<_ACEOF
30688 cat confdefs.h >>conftest.$ac_ext
30689 cat >>conftest.$ac_ext <<_ACEOF
30690 /* end confdefs.h. */
30691 #include <$ac_header>
30693 if { (ac_try="$ac_cpp conftest.$ac_ext"
30694 case "(($ac_try" in
30695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30696 *) ac_try_echo=$ac_try;;
30698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30701 grep -v '^ *+' conftest.er1 >conftest.err
30703 cat conftest.err >&5
30704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705 (exit $ac_status); } >/dev/null; then
30706 if test -s conftest.err; then
30707 ac_cpp_err=$ac_c_preproc_warn_flag
30708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30715 if test -z "$ac_cpp_err"; then
30716 ac_header_preproc=yes
30718 echo "$as_me: failed program was:" >&5
30719 sed 's/^/| /' conftest.$ac_ext >&5
30721 ac_header_preproc=no
30724 rm -f conftest.err conftest.$ac_ext
30725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30726 echo "${ECHO_T}$ac_header_preproc" >&6; }
30728 # So? What about this header?
30729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30735 ac_header_preproc=yes
30738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30741 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30745 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30751 ## ----------------------------------- ##
30752 ## Report this to llvmbugs@cs.uiuc.edu ##
30753 ## ----------------------------------- ##
30755 ) | sed "s/^/$as_me: WARNING: /" >&2
30758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30761 echo $ECHO_N "(cached) $ECHO_C" >&6
30763 eval "$as_ac_Header=\$ac_header_preproc"
30765 ac_res=`eval echo '${'$as_ac_Header'}'`
30766 { echo "$as_me:$LINENO: result: $ac_res" >&5
30767 echo "${ECHO_T}$ac_res" >&6; }
30770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30771 cat >>confdefs.h <<_ACEOF
30772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30788 if test "$llvm_cv_enable_libffi" = "yes" ; then
30791 for ac_header in ffi.h ffi/ffi.h
30793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30798 echo $ECHO_N "(cached) $ECHO_C" >&6
30800 ac_res=`eval echo '${'$as_ac_Header'}'`
30801 { echo "$as_me:$LINENO: result: $ac_res" >&5
30802 echo "${ECHO_T}$ac_res" >&6; }
30804 # Is the header compilable?
30805 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30807 cat >conftest.$ac_ext <<_ACEOF
30810 cat confdefs.h >>conftest.$ac_ext
30811 cat >>conftest.$ac_ext <<_ACEOF
30812 /* end confdefs.h. */
30813 $ac_includes_default
30814 #include <$ac_header>
30816 rm -f conftest.$ac_objext
30817 if { (ac_try="$ac_compile"
30818 case "(($ac_try" in
30819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820 *) ac_try_echo=$ac_try;;
30822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823 (eval "$ac_compile") 2>conftest.er1
30825 grep -v '^ *+' conftest.er1 >conftest.err
30827 cat conftest.err >&5
30828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30829 (exit $ac_status); } &&
30830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30831 { (case "(($ac_try" in
30832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30833 *) ac_try_echo=$ac_try;;
30835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30836 (eval "$ac_try") 2>&5
30838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30839 (exit $ac_status); }; } &&
30840 { ac_try='test -s conftest.$ac_objext'
30841 { (case "(($ac_try" in
30842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30843 *) ac_try_echo=$ac_try;;
30845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30846 (eval "$ac_try") 2>&5
30848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30849 (exit $ac_status); }; }; then
30850 ac_header_compiler=yes
30852 echo "$as_me: failed program was:" >&5
30853 sed 's/^/| /' conftest.$ac_ext >&5
30855 ac_header_compiler=no
30858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30859 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30860 echo "${ECHO_T}$ac_header_compiler" >&6; }
30862 # Is the header present?
30863 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30865 cat >conftest.$ac_ext <<_ACEOF
30868 cat confdefs.h >>conftest.$ac_ext
30869 cat >>conftest.$ac_ext <<_ACEOF
30870 /* end confdefs.h. */
30871 #include <$ac_header>
30873 if { (ac_try="$ac_cpp conftest.$ac_ext"
30874 case "(($ac_try" in
30875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30876 *) ac_try_echo=$ac_try;;
30878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30881 grep -v '^ *+' conftest.er1 >conftest.err
30883 cat conftest.err >&5
30884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885 (exit $ac_status); } >/dev/null; then
30886 if test -s conftest.err; then
30887 ac_cpp_err=$ac_c_preproc_warn_flag
30888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30895 if test -z "$ac_cpp_err"; then
30896 ac_header_preproc=yes
30898 echo "$as_me: failed program was:" >&5
30899 sed 's/^/| /' conftest.$ac_ext >&5
30901 ac_header_preproc=no
30904 rm -f conftest.err conftest.$ac_ext
30905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30906 echo "${ECHO_T}$ac_header_preproc" >&6; }
30908 # So? What about this header?
30909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30915 ac_header_preproc=yes
30918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30925 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30931 ## ----------------------------------- ##
30932 ## Report this to llvmbugs@cs.uiuc.edu ##
30933 ## ----------------------------------- ##
30935 ) | sed "s/^/$as_me: WARNING: /" >&2
30938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30941 echo $ECHO_N "(cached) $ECHO_C" >&6
30943 eval "$as_ac_Header=\$ac_header_preproc"
30945 ac_res=`eval echo '${'$as_ac_Header'}'`
30946 { echo "$as_me:$LINENO: result: $ac_res" >&5
30947 echo "${ECHO_T}$ac_res" >&6; }
30950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30951 cat >>confdefs.h <<_ACEOF
30952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30963 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30964 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30965 if test "${ac_cv_huge_val_sanity+set}" = set; then
30966 echo $ECHO_N "(cached) $ECHO_C" >&6
30970 ac_cpp='$CXXCPP $CPPFLAGS'
30971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30976 if test "$cross_compiling" = yes; then
30977 ac_cv_huge_val_sanity=yes
30979 cat >conftest.$ac_ext <<_ACEOF
30982 cat confdefs.h >>conftest.$ac_ext
30983 cat >>conftest.$ac_ext <<_ACEOF
30984 /* end confdefs.h. */
30989 double x = HUGE_VAL; return x != x;
30994 rm -f conftest$ac_exeext
30995 if { (ac_try="$ac_link"
30996 case "(($ac_try" in
30997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30998 *) ac_try_echo=$ac_try;;
31000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31001 (eval "$ac_link") 2>&5
31003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
31014 ac_cv_huge_val_sanity=yes
31016 echo "$as_me: program exited with status $ac_status" >&5
31017 echo "$as_me: failed program was:" >&5
31018 sed 's/^/| /' conftest.$ac_ext >&5
31020 ( exit $ac_status )
31021 ac_cv_huge_val_sanity=no
31023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31028 ac_cpp='$CPP $CPPFLAGS'
31029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31035 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31036 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31037 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31040 { echo "$as_me:$LINENO: checking for pid_t" >&5
31041 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31042 if test "${ac_cv_type_pid_t+set}" = set; then
31043 echo $ECHO_N "(cached) $ECHO_C" >&6
31045 cat >conftest.$ac_ext <<_ACEOF
31048 cat confdefs.h >>conftest.$ac_ext
31049 cat >>conftest.$ac_ext <<_ACEOF
31050 /* end confdefs.h. */
31051 $ac_includes_default
31052 typedef pid_t ac__type_new_;
31056 if ((ac__type_new_ *) 0)
31058 if (sizeof (ac__type_new_))
31064 rm -f conftest.$ac_objext
31065 if { (ac_try="$ac_compile"
31066 case "(($ac_try" in
31067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31068 *) ac_try_echo=$ac_try;;
31070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31071 (eval "$ac_compile") 2>conftest.er1
31073 grep -v '^ *+' conftest.er1 >conftest.err
31075 cat conftest.err >&5
31076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31077 (exit $ac_status); } &&
31078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31079 { (case "(($ac_try" in
31080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31081 *) ac_try_echo=$ac_try;;
31083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31084 (eval "$ac_try") 2>&5
31086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31087 (exit $ac_status); }; } &&
31088 { ac_try='test -s conftest.$ac_objext'
31089 { (case "(($ac_try" in
31090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31091 *) ac_try_echo=$ac_try;;
31093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31094 (eval "$ac_try") 2>&5
31096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31097 (exit $ac_status); }; }; then
31098 ac_cv_type_pid_t=yes
31100 echo "$as_me: failed program was:" >&5
31101 sed 's/^/| /' conftest.$ac_ext >&5
31103 ac_cv_type_pid_t=no
31106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31108 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31109 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31110 if test $ac_cv_type_pid_t = yes; then
31114 cat >>confdefs.h <<_ACEOF
31120 { echo "$as_me:$LINENO: checking for size_t" >&5
31121 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31122 if test "${ac_cv_type_size_t+set}" = set; then
31123 echo $ECHO_N "(cached) $ECHO_C" >&6
31125 cat >conftest.$ac_ext <<_ACEOF
31128 cat confdefs.h >>conftest.$ac_ext
31129 cat >>conftest.$ac_ext <<_ACEOF
31130 /* end confdefs.h. */
31131 $ac_includes_default
31132 typedef size_t ac__type_new_;
31136 if ((ac__type_new_ *) 0)
31138 if (sizeof (ac__type_new_))
31144 rm -f conftest.$ac_objext
31145 if { (ac_try="$ac_compile"
31146 case "(($ac_try" in
31147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31148 *) ac_try_echo=$ac_try;;
31150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31151 (eval "$ac_compile") 2>conftest.er1
31153 grep -v '^ *+' conftest.er1 >conftest.err
31155 cat conftest.err >&5
31156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31157 (exit $ac_status); } &&
31158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31159 { (case "(($ac_try" in
31160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31161 *) ac_try_echo=$ac_try;;
31163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31164 (eval "$ac_try") 2>&5
31166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31167 (exit $ac_status); }; } &&
31168 { ac_try='test -s conftest.$ac_objext'
31169 { (case "(($ac_try" in
31170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31171 *) ac_try_echo=$ac_try;;
31173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31174 (eval "$ac_try") 2>&5
31176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177 (exit $ac_status); }; }; then
31178 ac_cv_type_size_t=yes
31180 echo "$as_me: failed program was:" >&5
31181 sed 's/^/| /' conftest.$ac_ext >&5
31183 ac_cv_type_size_t=no
31186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31188 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31189 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31190 if test $ac_cv_type_size_t = yes; then
31194 cat >>confdefs.h <<_ACEOF
31195 #define size_t unsigned int
31200 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31201 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31202 if test "${ac_cv_type_signal+set}" = set; then
31203 echo $ECHO_N "(cached) $ECHO_C" >&6
31205 cat >conftest.$ac_ext <<_ACEOF
31208 cat confdefs.h >>conftest.$ac_ext
31209 cat >>conftest.$ac_ext <<_ACEOF
31210 /* end confdefs.h. */
31211 #include <sys/types.h>
31212 #include <signal.h>
31217 return *(signal (0, 0)) (0) == 1;
31222 rm -f conftest.$ac_objext
31223 if { (ac_try="$ac_compile"
31224 case "(($ac_try" in
31225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31226 *) ac_try_echo=$ac_try;;
31228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31229 (eval "$ac_compile") 2>conftest.er1
31231 grep -v '^ *+' conftest.er1 >conftest.err
31233 cat conftest.err >&5
31234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31235 (exit $ac_status); } &&
31236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31237 { (case "(($ac_try" in
31238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31239 *) ac_try_echo=$ac_try;;
31241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31242 (eval "$ac_try") 2>&5
31244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31245 (exit $ac_status); }; } &&
31246 { ac_try='test -s conftest.$ac_objext'
31247 { (case "(($ac_try" in
31248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31249 *) ac_try_echo=$ac_try;;
31251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31252 (eval "$ac_try") 2>&5
31254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31255 (exit $ac_status); }; }; then
31256 ac_cv_type_signal=int
31258 echo "$as_me: failed program was:" >&5
31259 sed 's/^/| /' conftest.$ac_ext >&5
31261 ac_cv_type_signal=void
31264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31266 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31267 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31269 cat >>confdefs.h <<_ACEOF
31270 #define RETSIGTYPE $ac_cv_type_signal
31274 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31275 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31276 if test "${ac_cv_struct_tm+set}" = set; then
31277 echo $ECHO_N "(cached) $ECHO_C" >&6
31279 cat >conftest.$ac_ext <<_ACEOF
31282 cat confdefs.h >>conftest.$ac_ext
31283 cat >>conftest.$ac_ext <<_ACEOF
31284 /* end confdefs.h. */
31285 #include <sys/types.h>
31291 struct tm *tp; tp->tm_sec;
31296 rm -f conftest.$ac_objext
31297 if { (ac_try="$ac_compile"
31298 case "(($ac_try" in
31299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300 *) ac_try_echo=$ac_try;;
31302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31303 (eval "$ac_compile") 2>conftest.er1
31305 grep -v '^ *+' conftest.er1 >conftest.err
31307 cat conftest.err >&5
31308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309 (exit $ac_status); } &&
31310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31311 { (case "(($ac_try" in
31312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31313 *) ac_try_echo=$ac_try;;
31315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31316 (eval "$ac_try") 2>&5
31318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31319 (exit $ac_status); }; } &&
31320 { ac_try='test -s conftest.$ac_objext'
31321 { (case "(($ac_try" in
31322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31323 *) ac_try_echo=$ac_try;;
31325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31326 (eval "$ac_try") 2>&5
31328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31329 (exit $ac_status); }; }; then
31330 ac_cv_struct_tm=time.h
31332 echo "$as_me: failed program was:" >&5
31333 sed 's/^/| /' conftest.$ac_ext >&5
31335 ac_cv_struct_tm=sys/time.h
31338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31340 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31341 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31342 if test $ac_cv_struct_tm = sys/time.h; then
31344 cat >>confdefs.h <<\_ACEOF
31345 #define TM_IN_SYS_TIME 1
31350 { echo "$as_me:$LINENO: checking for int64_t" >&5
31351 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31352 if test "${ac_cv_type_int64_t+set}" = set; then
31353 echo $ECHO_N "(cached) $ECHO_C" >&6
31355 cat >conftest.$ac_ext <<_ACEOF
31358 cat confdefs.h >>conftest.$ac_ext
31359 cat >>conftest.$ac_ext <<_ACEOF
31360 /* end confdefs.h. */
31361 $ac_includes_default
31362 typedef int64_t ac__type_new_;
31366 if ((ac__type_new_ *) 0)
31368 if (sizeof (ac__type_new_))
31374 rm -f conftest.$ac_objext
31375 if { (ac_try="$ac_compile"
31376 case "(($ac_try" in
31377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31378 *) ac_try_echo=$ac_try;;
31380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31381 (eval "$ac_compile") 2>conftest.er1
31383 grep -v '^ *+' conftest.er1 >conftest.err
31385 cat conftest.err >&5
31386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31387 (exit $ac_status); } &&
31388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31389 { (case "(($ac_try" in
31390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31391 *) ac_try_echo=$ac_try;;
31393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31394 (eval "$ac_try") 2>&5
31396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31397 (exit $ac_status); }; } &&
31398 { ac_try='test -s conftest.$ac_objext'
31399 { (case "(($ac_try" in
31400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31401 *) ac_try_echo=$ac_try;;
31403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31404 (eval "$ac_try") 2>&5
31406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31407 (exit $ac_status); }; }; then
31408 ac_cv_type_int64_t=yes
31410 echo "$as_me: failed program was:" >&5
31411 sed 's/^/| /' conftest.$ac_ext >&5
31413 ac_cv_type_int64_t=no
31416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31418 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31419 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31420 if test $ac_cv_type_int64_t = yes; then
31422 cat >>confdefs.h <<_ACEOF
31423 #define HAVE_INT64_T 1
31428 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31429 echo "$as_me: error: Type int64_t required but not found" >&2;}
31430 { (exit 1); exit 1; }; }
31433 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31434 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31435 if test "${ac_cv_type_uint64_t+set}" = set; then
31436 echo $ECHO_N "(cached) $ECHO_C" >&6
31438 cat >conftest.$ac_ext <<_ACEOF
31441 cat confdefs.h >>conftest.$ac_ext
31442 cat >>conftest.$ac_ext <<_ACEOF
31443 /* end confdefs.h. */
31444 $ac_includes_default
31445 typedef uint64_t ac__type_new_;
31449 if ((ac__type_new_ *) 0)
31451 if (sizeof (ac__type_new_))
31457 rm -f conftest.$ac_objext
31458 if { (ac_try="$ac_compile"
31459 case "(($ac_try" in
31460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31461 *) ac_try_echo=$ac_try;;
31463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31464 (eval "$ac_compile") 2>conftest.er1
31466 grep -v '^ *+' conftest.er1 >conftest.err
31468 cat conftest.err >&5
31469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31470 (exit $ac_status); } &&
31471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31472 { (case "(($ac_try" in
31473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31474 *) ac_try_echo=$ac_try;;
31476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31477 (eval "$ac_try") 2>&5
31479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31480 (exit $ac_status); }; } &&
31481 { ac_try='test -s conftest.$ac_objext'
31482 { (case "(($ac_try" in
31483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31484 *) ac_try_echo=$ac_try;;
31486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31487 (eval "$ac_try") 2>&5
31489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31490 (exit $ac_status); }; }; then
31491 ac_cv_type_uint64_t=yes
31493 echo "$as_me: failed program was:" >&5
31494 sed 's/^/| /' conftest.$ac_ext >&5
31496 ac_cv_type_uint64_t=no
31499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31501 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31502 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31503 if test $ac_cv_type_uint64_t = yes; then
31505 cat >>confdefs.h <<_ACEOF
31506 #define HAVE_UINT64_T 1
31511 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31512 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31513 if test "${ac_cv_type_u_int64_t+set}" = set; then
31514 echo $ECHO_N "(cached) $ECHO_C" >&6
31516 cat >conftest.$ac_ext <<_ACEOF
31519 cat confdefs.h >>conftest.$ac_ext
31520 cat >>conftest.$ac_ext <<_ACEOF
31521 /* end confdefs.h. */
31522 $ac_includes_default
31523 typedef u_int64_t ac__type_new_;
31527 if ((ac__type_new_ *) 0)
31529 if (sizeof (ac__type_new_))
31535 rm -f conftest.$ac_objext
31536 if { (ac_try="$ac_compile"
31537 case "(($ac_try" in
31538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31539 *) ac_try_echo=$ac_try;;
31541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31542 (eval "$ac_compile") 2>conftest.er1
31544 grep -v '^ *+' conftest.er1 >conftest.err
31546 cat conftest.err >&5
31547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548 (exit $ac_status); } &&
31549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31550 { (case "(($ac_try" in
31551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31552 *) ac_try_echo=$ac_try;;
31554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31555 (eval "$ac_try") 2>&5
31557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31558 (exit $ac_status); }; } &&
31559 { ac_try='test -s conftest.$ac_objext'
31560 { (case "(($ac_try" in
31561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31562 *) ac_try_echo=$ac_try;;
31564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31565 (eval "$ac_try") 2>&5
31567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31568 (exit $ac_status); }; }; then
31569 ac_cv_type_u_int64_t=yes
31571 echo "$as_me: failed program was:" >&5
31572 sed 's/^/| /' conftest.$ac_ext >&5
31574 ac_cv_type_u_int64_t=no
31577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31579 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31580 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31581 if test $ac_cv_type_u_int64_t = yes; then
31583 cat >>confdefs.h <<_ACEOF
31584 #define HAVE_U_INT64_T 1
31589 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31590 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31591 { (exit 1); exit 1; }; }
31605 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31611 echo $ECHO_N "(cached) $ECHO_C" >&6
31613 cat >conftest.$ac_ext <<_ACEOF
31616 cat confdefs.h >>conftest.$ac_ext
31617 cat >>conftest.$ac_ext <<_ACEOF
31618 /* end confdefs.h. */
31619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31621 #define $ac_func innocuous_$ac_func
31623 /* System header to define __stub macros and hopefully few prototypes,
31624 which can conflict with char $ac_func (); below.
31625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31626 <limits.h> exists even on freestanding compilers. */
31629 # include <limits.h>
31631 # include <assert.h>
31636 /* Override any GCC internal prototype to avoid an error.
31637 Use char because int might match the return type of a GCC
31638 builtin and then its argument prototype would still apply. */
31643 /* The GNU C library defines this for functions which it implements
31644 to always fail with ENOSYS. Some functions are actually named
31645 something starting with __ and the normal name is an alias. */
31646 #if defined __stub_$ac_func || defined __stub___$ac_func
31653 return $ac_func ();
31658 rm -f conftest.$ac_objext conftest$ac_exeext
31659 if { (ac_try="$ac_link"
31660 case "(($ac_try" in
31661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31662 *) ac_try_echo=$ac_try;;
31664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31665 (eval "$ac_link") 2>conftest.er1
31667 grep -v '^ *+' conftest.er1 >conftest.err
31669 cat conftest.err >&5
31670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31671 (exit $ac_status); } &&
31672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31673 { (case "(($ac_try" in
31674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31675 *) ac_try_echo=$ac_try;;
31677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31678 (eval "$ac_try") 2>&5
31680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31681 (exit $ac_status); }; } &&
31682 { ac_try='test -s conftest$ac_exeext'
31683 { (case "(($ac_try" in
31684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31685 *) ac_try_echo=$ac_try;;
31687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31688 (eval "$ac_try") 2>&5
31690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31691 (exit $ac_status); }; }; then
31692 eval "$as_ac_var=yes"
31694 echo "$as_me: failed program was:" >&5
31695 sed 's/^/| /' conftest.$ac_ext >&5
31697 eval "$as_ac_var=no"
31700 rm -f core conftest.err conftest.$ac_objext \
31701 conftest$ac_exeext conftest.$ac_ext
31703 ac_res=`eval echo '${'$as_ac_var'}'`
31704 { echo "$as_me:$LINENO: result: $ac_res" >&5
31705 echo "${ECHO_T}$ac_res" >&6; }
31706 if test `eval echo '${'$as_ac_var'}'` = yes; then
31707 cat >>confdefs.h <<_ACEOF
31708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31718 for ac_func in powf fmodf strtof round
31720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31721 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31724 echo $ECHO_N "(cached) $ECHO_C" >&6
31726 cat >conftest.$ac_ext <<_ACEOF
31729 cat confdefs.h >>conftest.$ac_ext
31730 cat >>conftest.$ac_ext <<_ACEOF
31731 /* end confdefs.h. */
31732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31734 #define $ac_func innocuous_$ac_func
31736 /* System header to define __stub macros and hopefully few prototypes,
31737 which can conflict with char $ac_func (); below.
31738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31739 <limits.h> exists even on freestanding compilers. */
31742 # include <limits.h>
31744 # include <assert.h>
31749 /* Override any GCC internal prototype to avoid an error.
31750 Use char because int might match the return type of a GCC
31751 builtin and then its argument prototype would still apply. */
31756 /* The GNU C library defines this for functions which it implements
31757 to always fail with ENOSYS. Some functions are actually named
31758 something starting with __ and the normal name is an alias. */
31759 #if defined __stub_$ac_func || defined __stub___$ac_func
31766 return $ac_func ();
31771 rm -f conftest.$ac_objext conftest$ac_exeext
31772 if { (ac_try="$ac_link"
31773 case "(($ac_try" in
31774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31775 *) ac_try_echo=$ac_try;;
31777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31778 (eval "$ac_link") 2>conftest.er1
31780 grep -v '^ *+' conftest.er1 >conftest.err
31782 cat conftest.err >&5
31783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31784 (exit $ac_status); } &&
31785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31786 { (case "(($ac_try" in
31787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31788 *) ac_try_echo=$ac_try;;
31790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31791 (eval "$ac_try") 2>&5
31793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31794 (exit $ac_status); }; } &&
31795 { ac_try='test -s conftest$ac_exeext'
31796 { (case "(($ac_try" in
31797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31798 *) ac_try_echo=$ac_try;;
31800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31801 (eval "$ac_try") 2>&5
31803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804 (exit $ac_status); }; }; then
31805 eval "$as_ac_var=yes"
31807 echo "$as_me: failed program was:" >&5
31808 sed 's/^/| /' conftest.$ac_ext >&5
31810 eval "$as_ac_var=no"
31813 rm -f core conftest.err conftest.$ac_objext \
31814 conftest$ac_exeext conftest.$ac_ext
31816 ac_res=`eval echo '${'$as_ac_var'}'`
31817 { echo "$as_me:$LINENO: result: $ac_res" >&5
31818 echo "${ECHO_T}$ac_res" >&6; }
31819 if test `eval echo '${'$as_ac_var'}'` = yes; then
31820 cat >>confdefs.h <<_ACEOF
31821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31832 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31835 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31837 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31838 echo $ECHO_N "(cached) $ECHO_C" >&6
31840 cat >conftest.$ac_ext <<_ACEOF
31843 cat confdefs.h >>conftest.$ac_ext
31844 cat >>conftest.$ac_ext <<_ACEOF
31845 /* end confdefs.h. */
31846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31848 #define $ac_func innocuous_$ac_func
31850 /* System header to define __stub macros and hopefully few prototypes,
31851 which can conflict with char $ac_func (); below.
31852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31853 <limits.h> exists even on freestanding compilers. */
31856 # include <limits.h>
31858 # include <assert.h>
31863 /* Override any GCC internal prototype to avoid an error.
31864 Use char because int might match the return type of a GCC
31865 builtin and then its argument prototype would still apply. */
31870 /* The GNU C library defines this for functions which it implements
31871 to always fail with ENOSYS. Some functions are actually named
31872 something starting with __ and the normal name is an alias. */
31873 #if defined __stub_$ac_func || defined __stub___$ac_func
31880 return $ac_func ();
31885 rm -f conftest.$ac_objext conftest$ac_exeext
31886 if { (ac_try="$ac_link"
31887 case "(($ac_try" in
31888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31889 *) ac_try_echo=$ac_try;;
31891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31892 (eval "$ac_link") 2>conftest.er1
31894 grep -v '^ *+' conftest.er1 >conftest.err
31896 cat conftest.err >&5
31897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898 (exit $ac_status); } &&
31899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31900 { (case "(($ac_try" in
31901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31902 *) ac_try_echo=$ac_try;;
31904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31905 (eval "$ac_try") 2>&5
31907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31908 (exit $ac_status); }; } &&
31909 { ac_try='test -s conftest$ac_exeext'
31910 { (case "(($ac_try" in
31911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31912 *) ac_try_echo=$ac_try;;
31914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31915 (eval "$ac_try") 2>&5
31917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918 (exit $ac_status); }; }; then
31919 eval "$as_ac_var=yes"
31921 echo "$as_me: failed program was:" >&5
31922 sed 's/^/| /' conftest.$ac_ext >&5
31924 eval "$as_ac_var=no"
31927 rm -f core conftest.err conftest.$ac_objext \
31928 conftest$ac_exeext conftest.$ac_ext
31930 ac_res=`eval echo '${'$as_ac_var'}'`
31931 { echo "$as_me:$LINENO: result: $ac_res" >&5
31932 echo "${ECHO_T}$ac_res" >&6; }
31933 if test `eval echo '${'$as_ac_var'}'` = yes; then
31934 cat >>confdefs.h <<_ACEOF
31935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31944 for ac_func in isatty mkdtemp mkstemp
31946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31947 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31950 echo $ECHO_N "(cached) $ECHO_C" >&6
31952 cat >conftest.$ac_ext <<_ACEOF
31955 cat confdefs.h >>conftest.$ac_ext
31956 cat >>conftest.$ac_ext <<_ACEOF
31957 /* end confdefs.h. */
31958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31960 #define $ac_func innocuous_$ac_func
31962 /* System header to define __stub macros and hopefully few prototypes,
31963 which can conflict with char $ac_func (); below.
31964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31965 <limits.h> exists even on freestanding compilers. */
31968 # include <limits.h>
31970 # include <assert.h>
31975 /* Override any GCC internal prototype to avoid an error.
31976 Use char because int might match the return type of a GCC
31977 builtin and then its argument prototype would still apply. */
31982 /* The GNU C library defines this for functions which it implements
31983 to always fail with ENOSYS. Some functions are actually named
31984 something starting with __ and the normal name is an alias. */
31985 #if defined __stub_$ac_func || defined __stub___$ac_func
31992 return $ac_func ();
31997 rm -f conftest.$ac_objext conftest$ac_exeext
31998 if { (ac_try="$ac_link"
31999 case "(($ac_try" in
32000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32001 *) ac_try_echo=$ac_try;;
32003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32004 (eval "$ac_link") 2>conftest.er1
32006 grep -v '^ *+' conftest.er1 >conftest.err
32008 cat conftest.err >&5
32009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010 (exit $ac_status); } &&
32011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32012 { (case "(($ac_try" in
32013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32014 *) ac_try_echo=$ac_try;;
32016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32017 (eval "$ac_try") 2>&5
32019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32020 (exit $ac_status); }; } &&
32021 { ac_try='test -s conftest$ac_exeext'
32022 { (case "(($ac_try" in
32023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32024 *) ac_try_echo=$ac_try;;
32026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32027 (eval "$ac_try") 2>&5
32029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030 (exit $ac_status); }; }; then
32031 eval "$as_ac_var=yes"
32033 echo "$as_me: failed program was:" >&5
32034 sed 's/^/| /' conftest.$ac_ext >&5
32036 eval "$as_ac_var=no"
32039 rm -f core conftest.err conftest.$ac_objext \
32040 conftest$ac_exeext conftest.$ac_ext
32042 ac_res=`eval echo '${'$as_ac_var'}'`
32043 { echo "$as_me:$LINENO: result: $ac_res" >&5
32044 echo "${ECHO_T}$ac_res" >&6; }
32045 if test `eval echo '${'$as_ac_var'}'` = yes; then
32046 cat >>confdefs.h <<_ACEOF
32047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32058 for ac_func in mktemp realpath sbrk setrlimit strdup
32060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32061 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32064 echo $ECHO_N "(cached) $ECHO_C" >&6
32066 cat >conftest.$ac_ext <<_ACEOF
32069 cat confdefs.h >>conftest.$ac_ext
32070 cat >>conftest.$ac_ext <<_ACEOF
32071 /* end confdefs.h. */
32072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32074 #define $ac_func innocuous_$ac_func
32076 /* System header to define __stub macros and hopefully few prototypes,
32077 which can conflict with char $ac_func (); below.
32078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32079 <limits.h> exists even on freestanding compilers. */
32082 # include <limits.h>
32084 # include <assert.h>
32089 /* Override any GCC internal prototype to avoid an error.
32090 Use char because int might match the return type of a GCC
32091 builtin and then its argument prototype would still apply. */
32096 /* The GNU C library defines this for functions which it implements
32097 to always fail with ENOSYS. Some functions are actually named
32098 something starting with __ and the normal name is an alias. */
32099 #if defined __stub_$ac_func || defined __stub___$ac_func
32106 return $ac_func ();
32111 rm -f conftest.$ac_objext conftest$ac_exeext
32112 if { (ac_try="$ac_link"
32113 case "(($ac_try" in
32114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32115 *) ac_try_echo=$ac_try;;
32117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32118 (eval "$ac_link") 2>conftest.er1
32120 grep -v '^ *+' conftest.er1 >conftest.err
32122 cat conftest.err >&5
32123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32124 (exit $ac_status); } &&
32125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32126 { (case "(($ac_try" in
32127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32128 *) ac_try_echo=$ac_try;;
32130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32131 (eval "$ac_try") 2>&5
32133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32134 (exit $ac_status); }; } &&
32135 { ac_try='test -s conftest$ac_exeext'
32136 { (case "(($ac_try" in
32137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32138 *) ac_try_echo=$ac_try;;
32140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32141 (eval "$ac_try") 2>&5
32143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32144 (exit $ac_status); }; }; then
32145 eval "$as_ac_var=yes"
32147 echo "$as_me: failed program was:" >&5
32148 sed 's/^/| /' conftest.$ac_ext >&5
32150 eval "$as_ac_var=no"
32153 rm -f core conftest.err conftest.$ac_objext \
32154 conftest$ac_exeext conftest.$ac_ext
32156 ac_res=`eval echo '${'$as_ac_var'}'`
32157 { echo "$as_me:$LINENO: result: $ac_res" >&5
32158 echo "${ECHO_T}$ac_res" >&6; }
32159 if test `eval echo '${'$as_ac_var'}'` = yes; then
32160 cat >>confdefs.h <<_ACEOF
32161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32171 for ac_func in strerror strerror_r strerror_s setenv
32173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32174 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32176 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32177 echo $ECHO_N "(cached) $ECHO_C" >&6
32179 cat >conftest.$ac_ext <<_ACEOF
32182 cat confdefs.h >>conftest.$ac_ext
32183 cat >>conftest.$ac_ext <<_ACEOF
32184 /* end confdefs.h. */
32185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32187 #define $ac_func innocuous_$ac_func
32189 /* System header to define __stub macros and hopefully few prototypes,
32190 which can conflict with char $ac_func (); below.
32191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32192 <limits.h> exists even on freestanding compilers. */
32195 # include <limits.h>
32197 # include <assert.h>
32202 /* Override any GCC internal prototype to avoid an error.
32203 Use char because int might match the return type of a GCC
32204 builtin and then its argument prototype would still apply. */
32209 /* The GNU C library defines this for functions which it implements
32210 to always fail with ENOSYS. Some functions are actually named
32211 something starting with __ and the normal name is an alias. */
32212 #if defined __stub_$ac_func || defined __stub___$ac_func
32219 return $ac_func ();
32224 rm -f conftest.$ac_objext conftest$ac_exeext
32225 if { (ac_try="$ac_link"
32226 case "(($ac_try" in
32227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32228 *) ac_try_echo=$ac_try;;
32230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32231 (eval "$ac_link") 2>conftest.er1
32233 grep -v '^ *+' conftest.er1 >conftest.err
32235 cat conftest.err >&5
32236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237 (exit $ac_status); } &&
32238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32239 { (case "(($ac_try" in
32240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32241 *) ac_try_echo=$ac_try;;
32243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32244 (eval "$ac_try") 2>&5
32246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247 (exit $ac_status); }; } &&
32248 { ac_try='test -s conftest$ac_exeext'
32249 { (case "(($ac_try" in
32250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32251 *) ac_try_echo=$ac_try;;
32253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32254 (eval "$ac_try") 2>&5
32256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257 (exit $ac_status); }; }; then
32258 eval "$as_ac_var=yes"
32260 echo "$as_me: failed program was:" >&5
32261 sed 's/^/| /' conftest.$ac_ext >&5
32263 eval "$as_ac_var=no"
32266 rm -f core conftest.err conftest.$ac_objext \
32267 conftest$ac_exeext conftest.$ac_ext
32269 ac_res=`eval echo '${'$as_ac_var'}'`
32270 { echo "$as_me:$LINENO: result: $ac_res" >&5
32271 echo "${ECHO_T}$ac_res" >&6; }
32272 if test `eval echo '${'$as_ac_var'}'` = yes; then
32273 cat >>confdefs.h <<_ACEOF
32274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32284 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32287 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32289 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32290 echo $ECHO_N "(cached) $ECHO_C" >&6
32292 cat >conftest.$ac_ext <<_ACEOF
32295 cat confdefs.h >>conftest.$ac_ext
32296 cat >>conftest.$ac_ext <<_ACEOF
32297 /* end confdefs.h. */
32298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32300 #define $ac_func innocuous_$ac_func
32302 /* System header to define __stub macros and hopefully few prototypes,
32303 which can conflict with char $ac_func (); below.
32304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32305 <limits.h> exists even on freestanding compilers. */
32308 # include <limits.h>
32310 # include <assert.h>
32315 /* Override any GCC internal prototype to avoid an error.
32316 Use char because int might match the return type of a GCC
32317 builtin and then its argument prototype would still apply. */
32322 /* The GNU C library defines this for functions which it implements
32323 to always fail with ENOSYS. Some functions are actually named
32324 something starting with __ and the normal name is an alias. */
32325 #if defined __stub_$ac_func || defined __stub___$ac_func
32332 return $ac_func ();
32337 rm -f conftest.$ac_objext conftest$ac_exeext
32338 if { (ac_try="$ac_link"
32339 case "(($ac_try" in
32340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32341 *) ac_try_echo=$ac_try;;
32343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32344 (eval "$ac_link") 2>conftest.er1
32346 grep -v '^ *+' conftest.er1 >conftest.err
32348 cat conftest.err >&5
32349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32350 (exit $ac_status); } &&
32351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32352 { (case "(($ac_try" in
32353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32354 *) ac_try_echo=$ac_try;;
32356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32357 (eval "$ac_try") 2>&5
32359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32360 (exit $ac_status); }; } &&
32361 { ac_try='test -s conftest$ac_exeext'
32362 { (case "(($ac_try" in
32363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32364 *) ac_try_echo=$ac_try;;
32366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32367 (eval "$ac_try") 2>&5
32369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32370 (exit $ac_status); }; }; then
32371 eval "$as_ac_var=yes"
32373 echo "$as_me: failed program was:" >&5
32374 sed 's/^/| /' conftest.$ac_ext >&5
32376 eval "$as_ac_var=no"
32379 rm -f core conftest.err conftest.$ac_objext \
32380 conftest$ac_exeext conftest.$ac_ext
32382 ac_res=`eval echo '${'$as_ac_var'}'`
32383 { echo "$as_me:$LINENO: result: $ac_res" >&5
32384 echo "${ECHO_T}$ac_res" >&6; }
32385 if test `eval echo '${'$as_ac_var'}'` = yes; then
32386 cat >>confdefs.h <<_ACEOF
32387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32397 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32400 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32402 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32403 echo $ECHO_N "(cached) $ECHO_C" >&6
32405 cat >conftest.$ac_ext <<_ACEOF
32408 cat confdefs.h >>conftest.$ac_ext
32409 cat >>conftest.$ac_ext <<_ACEOF
32410 /* end confdefs.h. */
32411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32413 #define $ac_func innocuous_$ac_func
32415 /* System header to define __stub macros and hopefully few prototypes,
32416 which can conflict with char $ac_func (); below.
32417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32418 <limits.h> exists even on freestanding compilers. */
32421 # include <limits.h>
32423 # include <assert.h>
32428 /* Override any GCC internal prototype to avoid an error.
32429 Use char because int might match the return type of a GCC
32430 builtin and then its argument prototype would still apply. */
32435 /* The GNU C library defines this for functions which it implements
32436 to always fail with ENOSYS. Some functions are actually named
32437 something starting with __ and the normal name is an alias. */
32438 #if defined __stub_$ac_func || defined __stub___$ac_func
32445 return $ac_func ();
32450 rm -f conftest.$ac_objext conftest$ac_exeext
32451 if { (ac_try="$ac_link"
32452 case "(($ac_try" in
32453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32454 *) ac_try_echo=$ac_try;;
32456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32457 (eval "$ac_link") 2>conftest.er1
32459 grep -v '^ *+' conftest.er1 >conftest.err
32461 cat conftest.err >&5
32462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463 (exit $ac_status); } &&
32464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32465 { (case "(($ac_try" in
32466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32467 *) ac_try_echo=$ac_try;;
32469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32470 (eval "$ac_try") 2>&5
32472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32473 (exit $ac_status); }; } &&
32474 { ac_try='test -s conftest$ac_exeext'
32475 { (case "(($ac_try" in
32476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32477 *) ac_try_echo=$ac_try;;
32479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32480 (eval "$ac_try") 2>&5
32482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32483 (exit $ac_status); }; }; then
32484 eval "$as_ac_var=yes"
32486 echo "$as_me: failed program was:" >&5
32487 sed 's/^/| /' conftest.$ac_ext >&5
32489 eval "$as_ac_var=no"
32492 rm -f core conftest.err conftest.$ac_objext \
32493 conftest$ac_exeext conftest.$ac_ext
32495 ac_res=`eval echo '${'$as_ac_var'}'`
32496 { echo "$as_me:$LINENO: result: $ac_res" >&5
32497 echo "${ECHO_T}$ac_res" >&6; }
32498 if test `eval echo '${'$as_ac_var'}'` = yes; then
32499 cat >>confdefs.h <<_ACEOF
32500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32506 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32507 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32508 if test "${llvm_cv_c_printf_a+set}" = set; then
32509 echo $ECHO_N "(cached) $ECHO_C" >&6
32512 ac_cpp='$CPP $CPPFLAGS'
32513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32517 if test "$cross_compiling" = yes; then
32518 llvmac_cv_c_printf_a=no
32520 cat >conftest.$ac_ext <<_ACEOF
32524 cat confdefs.h >>conftest.$ac_ext
32525 cat >>conftest.$ac_ext <<_ACEOF
32526 /* end confdefs.h. */
32529 #include <stdlib.h>
32535 volatile double A, B;
32539 sprintf(Buffer, "%a", A);
32543 if (A != 0x1.999999999999ap-4)
32550 rm -f conftest$ac_exeext
32551 if { (ac_try="$ac_link"
32552 case "(($ac_try" in
32553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32554 *) ac_try_echo=$ac_try;;
32556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32557 (eval "$ac_link") 2>&5
32559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32561 { (case "(($ac_try" in
32562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32563 *) ac_try_echo=$ac_try;;
32565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32566 (eval "$ac_try") 2>&5
32568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32569 (exit $ac_status); }; }; then
32570 llvm_cv_c_printf_a=yes
32572 echo "$as_me: program exited with status $ac_status" >&5
32573 echo "$as_me: failed program was:" >&5
32574 sed 's/^/| /' conftest.$ac_ext >&5
32576 ( exit $ac_status )
32577 llvmac_cv_c_printf_a=no
32579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32584 ac_cpp='$CPP $CPPFLAGS'
32585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32590 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32591 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32592 if test "$llvm_cv_c_printf_a" = "yes"; then
32594 cat >>confdefs.h <<\_ACEOF
32595 #define HAVE_PRINTF_A 1
32600 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32601 # for constant arguments. Useless!
32602 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32603 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32604 if test "${ac_cv_working_alloca_h+set}" = set; then
32605 echo $ECHO_N "(cached) $ECHO_C" >&6
32607 cat >conftest.$ac_ext <<_ACEOF
32610 cat confdefs.h >>conftest.$ac_ext
32611 cat >>conftest.$ac_ext <<_ACEOF
32612 /* end confdefs.h. */
32613 #include <alloca.h>
32617 char *p = (char *) alloca (2 * sizeof (int));
32623 rm -f conftest.$ac_objext conftest$ac_exeext
32624 if { (ac_try="$ac_link"
32625 case "(($ac_try" in
32626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32627 *) ac_try_echo=$ac_try;;
32629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32630 (eval "$ac_link") 2>conftest.er1
32632 grep -v '^ *+' conftest.er1 >conftest.err
32634 cat conftest.err >&5
32635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636 (exit $ac_status); } &&
32637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32638 { (case "(($ac_try" in
32639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32640 *) ac_try_echo=$ac_try;;
32642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32643 (eval "$ac_try") 2>&5
32645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32646 (exit $ac_status); }; } &&
32647 { ac_try='test -s conftest$ac_exeext'
32648 { (case "(($ac_try" in
32649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32650 *) ac_try_echo=$ac_try;;
32652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32653 (eval "$ac_try") 2>&5
32655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32656 (exit $ac_status); }; }; then
32657 ac_cv_working_alloca_h=yes
32659 echo "$as_me: failed program was:" >&5
32660 sed 's/^/| /' conftest.$ac_ext >&5
32662 ac_cv_working_alloca_h=no
32665 rm -f core conftest.err conftest.$ac_objext \
32666 conftest$ac_exeext conftest.$ac_ext
32668 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32669 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32670 if test $ac_cv_working_alloca_h = yes; then
32672 cat >>confdefs.h <<\_ACEOF
32673 #define HAVE_ALLOCA_H 1
32678 { echo "$as_me:$LINENO: checking for alloca" >&5
32679 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32680 if test "${ac_cv_func_alloca_works+set}" = set; then
32681 echo $ECHO_N "(cached) $ECHO_C" >&6
32683 cat >conftest.$ac_ext <<_ACEOF
32686 cat confdefs.h >>conftest.$ac_ext
32687 cat >>conftest.$ac_ext <<_ACEOF
32688 /* end confdefs.h. */
32690 # define alloca __builtin_alloca
32693 # include <malloc.h>
32694 # define alloca _alloca
32697 # include <alloca.h>
32702 # ifndef alloca /* predefined by HP cc +Olibcalls */
32713 char *p = (char *) alloca (1);
32719 rm -f conftest.$ac_objext conftest$ac_exeext
32720 if { (ac_try="$ac_link"
32721 case "(($ac_try" in
32722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32723 *) ac_try_echo=$ac_try;;
32725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32726 (eval "$ac_link") 2>conftest.er1
32728 grep -v '^ *+' conftest.er1 >conftest.err
32730 cat conftest.err >&5
32731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32732 (exit $ac_status); } &&
32733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32734 { (case "(($ac_try" in
32735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32736 *) ac_try_echo=$ac_try;;
32738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32739 (eval "$ac_try") 2>&5
32741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742 (exit $ac_status); }; } &&
32743 { ac_try='test -s conftest$ac_exeext'
32744 { (case "(($ac_try" in
32745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32746 *) ac_try_echo=$ac_try;;
32748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32749 (eval "$ac_try") 2>&5
32751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32752 (exit $ac_status); }; }; then
32753 ac_cv_func_alloca_works=yes
32755 echo "$as_me: failed program was:" >&5
32756 sed 's/^/| /' conftest.$ac_ext >&5
32758 ac_cv_func_alloca_works=no
32761 rm -f core conftest.err conftest.$ac_objext \
32762 conftest$ac_exeext conftest.$ac_ext
32764 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32765 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32767 if test $ac_cv_func_alloca_works = yes; then
32769 cat >>confdefs.h <<\_ACEOF
32770 #define HAVE_ALLOCA 1
32774 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32775 # that cause trouble. Some versions do not even contain alloca or
32776 # contain a buggy version. If you still want to use their alloca,
32777 # use ar to extract alloca.o from them instead of compiling alloca.c.
32779 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32781 cat >>confdefs.h <<\_ACEOF
32786 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32787 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32788 if test "${ac_cv_os_cray+set}" = set; then
32789 echo $ECHO_N "(cached) $ECHO_C" >&6
32791 cat >conftest.$ac_ext <<_ACEOF
32794 cat confdefs.h >>conftest.$ac_ext
32795 cat >>conftest.$ac_ext <<_ACEOF
32796 /* end confdefs.h. */
32797 #if defined CRAY && ! defined CRAY2
32804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32805 $EGREP "webecray" >/dev/null 2>&1; then
32813 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32814 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32815 if test $ac_cv_os_cray = yes; then
32816 for ac_func in _getb67 GETB67 getb67; do
32817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32818 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32820 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32821 echo $ECHO_N "(cached) $ECHO_C" >&6
32823 cat >conftest.$ac_ext <<_ACEOF
32826 cat confdefs.h >>conftest.$ac_ext
32827 cat >>conftest.$ac_ext <<_ACEOF
32828 /* end confdefs.h. */
32829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32831 #define $ac_func innocuous_$ac_func
32833 /* System header to define __stub macros and hopefully few prototypes,
32834 which can conflict with char $ac_func (); below.
32835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32836 <limits.h> exists even on freestanding compilers. */
32839 # include <limits.h>
32841 # include <assert.h>
32846 /* Override any GCC internal prototype to avoid an error.
32847 Use char because int might match the return type of a GCC
32848 builtin and then its argument prototype would still apply. */
32853 /* The GNU C library defines this for functions which it implements
32854 to always fail with ENOSYS. Some functions are actually named
32855 something starting with __ and the normal name is an alias. */
32856 #if defined __stub_$ac_func || defined __stub___$ac_func
32863 return $ac_func ();
32868 rm -f conftest.$ac_objext conftest$ac_exeext
32869 if { (ac_try="$ac_link"
32870 case "(($ac_try" in
32871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32872 *) ac_try_echo=$ac_try;;
32874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32875 (eval "$ac_link") 2>conftest.er1
32877 grep -v '^ *+' conftest.er1 >conftest.err
32879 cat conftest.err >&5
32880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32881 (exit $ac_status); } &&
32882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32883 { (case "(($ac_try" in
32884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32885 *) ac_try_echo=$ac_try;;
32887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32888 (eval "$ac_try") 2>&5
32890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32891 (exit $ac_status); }; } &&
32892 { ac_try='test -s conftest$ac_exeext'
32893 { (case "(($ac_try" in
32894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32895 *) ac_try_echo=$ac_try;;
32897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32898 (eval "$ac_try") 2>&5
32900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32901 (exit $ac_status); }; }; then
32902 eval "$as_ac_var=yes"
32904 echo "$as_me: failed program was:" >&5
32905 sed 's/^/| /' conftest.$ac_ext >&5
32907 eval "$as_ac_var=no"
32910 rm -f core conftest.err conftest.$ac_objext \
32911 conftest$ac_exeext conftest.$ac_ext
32913 ac_res=`eval echo '${'$as_ac_var'}'`
32914 { echo "$as_me:$LINENO: result: $ac_res" >&5
32915 echo "${ECHO_T}$ac_res" >&6; }
32916 if test `eval echo '${'$as_ac_var'}'` = yes; then
32918 cat >>confdefs.h <<_ACEOF
32919 #define CRAY_STACKSEG_END $ac_func
32928 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32929 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32930 if test "${ac_cv_c_stack_direction+set}" = set; then
32931 echo $ECHO_N "(cached) $ECHO_C" >&6
32933 if test "$cross_compiling" = yes; then
32934 ac_cv_c_stack_direction=0
32936 cat >conftest.$ac_ext <<_ACEOF
32939 cat confdefs.h >>conftest.$ac_ext
32940 cat >>conftest.$ac_ext <<_ACEOF
32941 /* end confdefs.h. */
32942 $ac_includes_default
32944 find_stack_direction ()
32946 static char *addr = 0;
32951 return find_stack_direction ();
32954 return (&dummy > addr) ? 1 : -1;
32960 return find_stack_direction () < 0;
32963 rm -f conftest$ac_exeext
32964 if { (ac_try="$ac_link"
32965 case "(($ac_try" in
32966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32967 *) ac_try_echo=$ac_try;;
32969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32970 (eval "$ac_link") 2>&5
32972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32974 { (case "(($ac_try" in
32975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32976 *) ac_try_echo=$ac_try;;
32978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32979 (eval "$ac_try") 2>&5
32981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982 (exit $ac_status); }; }; then
32983 ac_cv_c_stack_direction=1
32985 echo "$as_me: program exited with status $ac_status" >&5
32986 echo "$as_me: failed program was:" >&5
32987 sed 's/^/| /' conftest.$ac_ext >&5
32989 ( exit $ac_status )
32990 ac_cv_c_stack_direction=-1
32992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32997 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32998 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33000 cat >>confdefs.h <<_ACEOF
33001 #define STACK_DIRECTION $ac_cv_c_stack_direction
33008 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33009 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33010 if test "${ac_cv_func_rand48+set}" = set; then
33011 echo $ECHO_N "(cached) $ECHO_C" >&6
33014 ac_cpp='$CXXCPP $CPPFLAGS'
33015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33019 cat >conftest.$ac_ext <<_ACEOF
33022 cat confdefs.h >>conftest.$ac_ext
33023 cat >>conftest.$ac_ext <<_ACEOF
33024 /* end confdefs.h. */
33025 #include <stdlib.h>
33029 srand48(0);lrand48();drand48();
33034 rm -f conftest.$ac_objext
33035 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
33043 grep -v '^ *+' conftest.er1 >conftest.err
33045 cat conftest.err >&5
33046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33047 (exit $ac_status); } &&
33048 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33049 { (case "(($ac_try" in
33050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33051 *) ac_try_echo=$ac_try;;
33053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33054 (eval "$ac_try") 2>&5
33056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057 (exit $ac_status); }; } &&
33058 { ac_try='test -s conftest.$ac_objext'
33059 { (case "(($ac_try" in
33060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33061 *) ac_try_echo=$ac_try;;
33063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33064 (eval "$ac_try") 2>&5
33066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33067 (exit $ac_status); }; }; then
33068 ac_cv_func_rand48=yes
33070 echo "$as_me: failed program was:" >&5
33071 sed 's/^/| /' conftest.$ac_ext >&5
33073 ac_cv_func_rand48=no
33076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33078 ac_cpp='$CPP $CPPFLAGS'
33079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33084 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33085 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33087 if test "$ac_cv_func_rand48" = "yes" ; then
33089 cat >>confdefs.h <<\_ACEOF
33090 #define HAVE_RAND48 1
33096 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33097 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33098 if test "${ac_cv_cxx_namespaces+set}" = set; then
33099 echo $ECHO_N "(cached) $ECHO_C" >&6
33102 ac_cpp='$CXXCPP $CPPFLAGS'
33103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33107 cat >conftest.$ac_ext <<_ACEOF
33110 cat confdefs.h >>conftest.$ac_ext
33111 cat >>conftest.$ac_ext <<_ACEOF
33112 /* end confdefs.h. */
33113 namespace Outer { namespace Inner { int i = 0; }}
33117 using namespace Outer::Inner; return i;
33122 rm -f conftest.$ac_objext
33123 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
33131 grep -v '^ *+' conftest.er1 >conftest.err
33133 cat conftest.err >&5
33134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33135 (exit $ac_status); } &&
33136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33137 { (case "(($ac_try" in
33138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33139 *) ac_try_echo=$ac_try;;
33141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33142 (eval "$ac_try") 2>&5
33144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33145 (exit $ac_status); }; } &&
33146 { ac_try='test -s conftest.$ac_objext'
33147 { (case "(($ac_try" in
33148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33149 *) ac_try_echo=$ac_try;;
33151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33152 (eval "$ac_try") 2>&5
33154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155 (exit $ac_status); }; }; then
33156 ac_cv_cxx_namespaces=yes
33158 echo "$as_me: failed program was:" >&5
33159 sed 's/^/| /' conftest.$ac_ext >&5
33161 ac_cv_cxx_namespaces=no
33164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33166 ac_cpp='$CPP $CPPFLAGS'
33167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33173 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33174 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33175 if test "$ac_cv_cxx_namespaces" = yes; then
33177 cat >>confdefs.h <<\_ACEOF
33178 #define HAVE_NAMESPACES
33183 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33184 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33185 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33186 echo $ECHO_N "(cached) $ECHO_C" >&6
33190 ac_cpp='$CXXCPP $CPPFLAGS'
33191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33195 cat >conftest.$ac_ext <<_ACEOF
33198 cat confdefs.h >>conftest.$ac_ext
33199 cat >>conftest.$ac_ext <<_ACEOF
33200 /* end confdefs.h. */
33201 #include <iterator>
33202 #ifdef HAVE_NAMESPACES
33203 using namespace std;
33208 iterator<int,int,int> t; return 0;
33213 rm -f conftest.$ac_objext
33214 if { (ac_try="$ac_compile"
33215 case "(($ac_try" in
33216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33217 *) ac_try_echo=$ac_try;;
33219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33220 (eval "$ac_compile") 2>conftest.er1
33222 grep -v '^ *+' conftest.er1 >conftest.err
33224 cat conftest.err >&5
33225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226 (exit $ac_status); } &&
33227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33228 { (case "(($ac_try" in
33229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33230 *) ac_try_echo=$ac_try;;
33232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33233 (eval "$ac_try") 2>&5
33235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33236 (exit $ac_status); }; } &&
33237 { ac_try='test -s conftest.$ac_objext'
33238 { (case "(($ac_try" in
33239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33240 *) ac_try_echo=$ac_try;;
33242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33243 (eval "$ac_try") 2>&5
33245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246 (exit $ac_status); }; }; then
33247 ac_cv_cxx_have_std_iterator=yes
33249 echo "$as_me: failed program was:" >&5
33250 sed 's/^/| /' conftest.$ac_ext >&5
33252 ac_cv_cxx_have_std_iterator=no
33255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33257 ac_cpp='$CPP $CPPFLAGS'
33258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33264 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33265 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33266 if test "$ac_cv_cxx_have_std_iterator" = yes
33269 cat >>confdefs.h <<\_ACEOF
33270 #define HAVE_STD_ITERATOR 1
33275 cat >>confdefs.h <<\_ACEOF
33276 #define HAVE_STD_ITERATOR 0
33281 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33282 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33283 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33284 echo $ECHO_N "(cached) $ECHO_C" >&6
33288 ac_cpp='$CXXCPP $CPPFLAGS'
33289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33293 cat >conftest.$ac_ext <<_ACEOF
33296 cat confdefs.h >>conftest.$ac_ext
33297 cat >>conftest.$ac_ext <<_ACEOF
33298 /* end confdefs.h. */
33299 #include <iterator>
33300 #ifdef HAVE_NAMESPACES
33301 using namespace std;
33306 bidirectional_iterator<int,int> t; return 0;
33311 rm -f conftest.$ac_objext
33312 if { (ac_try="$ac_compile"
33313 case "(($ac_try" in
33314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33315 *) ac_try_echo=$ac_try;;
33317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33318 (eval "$ac_compile") 2>conftest.er1
33320 grep -v '^ *+' conftest.er1 >conftest.err
33322 cat conftest.err >&5
33323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324 (exit $ac_status); } &&
33325 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33326 { (case "(($ac_try" in
33327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33328 *) ac_try_echo=$ac_try;;
33330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33331 (eval "$ac_try") 2>&5
33333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334 (exit $ac_status); }; } &&
33335 { ac_try='test -s conftest.$ac_objext'
33336 { (case "(($ac_try" in
33337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33338 *) ac_try_echo=$ac_try;;
33340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33341 (eval "$ac_try") 2>&5
33343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33344 (exit $ac_status); }; }; then
33345 ac_cv_cxx_have_bi_iterator=yes
33347 echo "$as_me: failed program was:" >&5
33348 sed 's/^/| /' conftest.$ac_ext >&5
33350 ac_cv_cxx_have_bi_iterator=no
33353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33355 ac_cpp='$CPP $CPPFLAGS'
33356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33362 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33363 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33364 if test "$ac_cv_cxx_have_bi_iterator" = yes
33367 cat >>confdefs.h <<\_ACEOF
33368 #define HAVE_BI_ITERATOR 1
33373 cat >>confdefs.h <<\_ACEOF
33374 #define HAVE_BI_ITERATOR 0
33379 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33380 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33381 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33382 echo $ECHO_N "(cached) $ECHO_C" >&6
33386 ac_cpp='$CXXCPP $CPPFLAGS'
33387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33391 cat >conftest.$ac_ext <<_ACEOF
33394 cat confdefs.h >>conftest.$ac_ext
33395 cat >>conftest.$ac_ext <<_ACEOF
33396 /* end confdefs.h. */
33397 #include <iterator>
33398 #ifdef HAVE_NAMESPACES
33399 using namespace std;
33404 forward_iterator<int,int> t; return 0;
33409 rm -f conftest.$ac_objext
33410 if { (ac_try="$ac_compile"
33411 case "(($ac_try" in
33412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33413 *) ac_try_echo=$ac_try;;
33415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33416 (eval "$ac_compile") 2>conftest.er1
33418 grep -v '^ *+' conftest.er1 >conftest.err
33420 cat conftest.err >&5
33421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33422 (exit $ac_status); } &&
33423 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33424 { (case "(($ac_try" in
33425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33426 *) ac_try_echo=$ac_try;;
33428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33429 (eval "$ac_try") 2>&5
33431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33432 (exit $ac_status); }; } &&
33433 { ac_try='test -s conftest.$ac_objext'
33434 { (case "(($ac_try" in
33435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33436 *) ac_try_echo=$ac_try;;
33438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33439 (eval "$ac_try") 2>&5
33441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33442 (exit $ac_status); }; }; then
33443 ac_cv_cxx_have_fwd_iterator=yes
33445 echo "$as_me: failed program was:" >&5
33446 sed 's/^/| /' conftest.$ac_ext >&5
33448 ac_cv_cxx_have_fwd_iterator=no
33451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33453 ac_cpp='$CPP $CPPFLAGS'
33454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33460 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33461 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33462 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33465 cat >>confdefs.h <<\_ACEOF
33466 #define HAVE_FWD_ITERATOR 1
33471 cat >>confdefs.h <<\_ACEOF
33472 #define HAVE_FWD_ITERATOR 0
33478 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33479 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33480 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33481 echo $ECHO_N "(cached) $ECHO_C" >&6
33484 ac_cpp='$CXXCPP $CPPFLAGS'
33485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33489 cat >conftest.$ac_ext <<_ACEOF
33492 cat confdefs.h >>conftest.$ac_ext
33493 cat >>conftest.$ac_ext <<_ACEOF
33494 /* end confdefs.h. */
33504 rm -f conftest.$ac_objext
33505 if { (ac_try="$ac_compile"
33506 case "(($ac_try" in
33507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33508 *) ac_try_echo=$ac_try;;
33510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33511 (eval "$ac_compile") 2>conftest.er1
33513 grep -v '^ *+' conftest.er1 >conftest.err
33515 cat conftest.err >&5
33516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33517 (exit $ac_status); } &&
33518 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
33526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33527 (exit $ac_status); }; } &&
33528 { ac_try='test -s conftest.$ac_objext'
33529 { (case "(($ac_try" in
33530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33531 *) ac_try_echo=$ac_try;;
33533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33534 (eval "$ac_try") 2>&5
33536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33537 (exit $ac_status); }; }; then
33538 ac_cv_func_isnan_in_math_h=yes
33540 echo "$as_me: failed program was:" >&5
33541 sed 's/^/| /' conftest.$ac_ext >&5
33543 ac_cv_func_isnan_in_math_h=no
33546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33548 ac_cpp='$CPP $CPPFLAGS'
33549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33554 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33555 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33558 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33560 cat >>confdefs.h <<\_ACEOF
33561 #define HAVE_ISNAN_IN_MATH_H 1
33566 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33567 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33568 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33569 echo $ECHO_N "(cached) $ECHO_C" >&6
33572 ac_cpp='$CXXCPP $CPPFLAGS'
33573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33577 cat >conftest.$ac_ext <<_ACEOF
33580 cat confdefs.h >>conftest.$ac_ext
33581 cat >>conftest.$ac_ext <<_ACEOF
33582 /* end confdefs.h. */
33592 rm -f conftest.$ac_objext
33593 if { (ac_try="$ac_compile"
33594 case "(($ac_try" in
33595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33596 *) ac_try_echo=$ac_try;;
33598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33599 (eval "$ac_compile") 2>conftest.er1
33601 grep -v '^ *+' conftest.er1 >conftest.err
33603 cat conftest.err >&5
33604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33605 (exit $ac_status); } &&
33606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33607 { (case "(($ac_try" in
33608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33609 *) ac_try_echo=$ac_try;;
33611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33612 (eval "$ac_try") 2>&5
33614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33615 (exit $ac_status); }; } &&
33616 { ac_try='test -s conftest.$ac_objext'
33617 { (case "(($ac_try" in
33618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33619 *) ac_try_echo=$ac_try;;
33621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33622 (eval "$ac_try") 2>&5
33624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33625 (exit $ac_status); }; }; then
33626 ac_cv_func_isnan_in_cmath=yes
33628 echo "$as_me: failed program was:" >&5
33629 sed 's/^/| /' conftest.$ac_ext >&5
33631 ac_cv_func_isnan_in_cmath=no
33634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33636 ac_cpp='$CPP $CPPFLAGS'
33637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33642 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33643 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33645 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33647 cat >>confdefs.h <<\_ACEOF
33648 #define HAVE_ISNAN_IN_CMATH 1
33653 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33654 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33655 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33656 echo $ECHO_N "(cached) $ECHO_C" >&6
33659 ac_cpp='$CXXCPP $CPPFLAGS'
33660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33664 cat >conftest.$ac_ext <<_ACEOF
33667 cat confdefs.h >>conftest.$ac_ext
33668 cat >>conftest.$ac_ext <<_ACEOF
33669 /* end confdefs.h. */
33674 float f; std::isnan(f);
33679 rm -f conftest.$ac_objext
33680 if { (ac_try="$ac_compile"
33681 case "(($ac_try" in
33682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33683 *) ac_try_echo=$ac_try;;
33685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33686 (eval "$ac_compile") 2>conftest.er1
33688 grep -v '^ *+' conftest.er1 >conftest.err
33690 cat conftest.err >&5
33691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33692 (exit $ac_status); } &&
33693 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33694 { (case "(($ac_try" in
33695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33696 *) ac_try_echo=$ac_try;;
33698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33699 (eval "$ac_try") 2>&5
33701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33702 (exit $ac_status); }; } &&
33703 { ac_try='test -s conftest.$ac_objext'
33704 { (case "(($ac_try" in
33705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33706 *) ac_try_echo=$ac_try;;
33708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33709 (eval "$ac_try") 2>&5
33711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33712 (exit $ac_status); }; }; then
33713 ac_cv_func_std_isnan_in_cmath=yes
33715 echo "$as_me: failed program was:" >&5
33716 sed 's/^/| /' conftest.$ac_ext >&5
33718 ac_cv_func_std_isnan_in_cmath=no
33721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33723 ac_cpp='$CPP $CPPFLAGS'
33724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33729 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33730 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33732 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33734 cat >>confdefs.h <<\_ACEOF
33735 #define HAVE_STD_ISNAN_IN_CMATH 1
33741 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33742 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33743 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33744 echo $ECHO_N "(cached) $ECHO_C" >&6
33747 ac_cpp='$CXXCPP $CPPFLAGS'
33748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33752 cat >conftest.$ac_ext <<_ACEOF
33755 cat confdefs.h >>conftest.$ac_ext
33756 cat >>conftest.$ac_ext <<_ACEOF
33757 /* end confdefs.h. */
33767 rm -f conftest.$ac_objext
33768 if { (ac_try="$ac_compile"
33769 case "(($ac_try" in
33770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33771 *) ac_try_echo=$ac_try;;
33773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33774 (eval "$ac_compile") 2>conftest.er1
33776 grep -v '^ *+' conftest.er1 >conftest.err
33778 cat conftest.err >&5
33779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33780 (exit $ac_status); } &&
33781 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33782 { (case "(($ac_try" in
33783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33784 *) ac_try_echo=$ac_try;;
33786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33787 (eval "$ac_try") 2>&5
33789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33790 (exit $ac_status); }; } &&
33791 { ac_try='test -s conftest.$ac_objext'
33792 { (case "(($ac_try" in
33793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33794 *) ac_try_echo=$ac_try;;
33796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33797 (eval "$ac_try") 2>&5
33799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800 (exit $ac_status); }; }; then
33801 ac_cv_func_isinf_in_math_h=yes
33803 echo "$as_me: failed program was:" >&5
33804 sed 's/^/| /' conftest.$ac_ext >&5
33806 ac_cv_func_isinf_in_math_h=no
33809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33811 ac_cpp='$CPP $CPPFLAGS'
33812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33817 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33818 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33820 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33822 cat >>confdefs.h <<\_ACEOF
33823 #define HAVE_ISINF_IN_MATH_H 1
33828 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33829 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33830 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33831 echo $ECHO_N "(cached) $ECHO_C" >&6
33834 ac_cpp='$CXXCPP $CPPFLAGS'
33835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33839 cat >conftest.$ac_ext <<_ACEOF
33842 cat confdefs.h >>conftest.$ac_ext
33843 cat >>conftest.$ac_ext <<_ACEOF
33844 /* end confdefs.h. */
33854 rm -f conftest.$ac_objext
33855 if { (ac_try="$ac_compile"
33856 case "(($ac_try" in
33857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33858 *) ac_try_echo=$ac_try;;
33860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33861 (eval "$ac_compile") 2>conftest.er1
33863 grep -v '^ *+' conftest.er1 >conftest.err
33865 cat conftest.err >&5
33866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33867 (exit $ac_status); } &&
33868 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33869 { (case "(($ac_try" in
33870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33871 *) ac_try_echo=$ac_try;;
33873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33874 (eval "$ac_try") 2>&5
33876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33877 (exit $ac_status); }; } &&
33878 { ac_try='test -s conftest.$ac_objext'
33879 { (case "(($ac_try" in
33880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33881 *) ac_try_echo=$ac_try;;
33883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33884 (eval "$ac_try") 2>&5
33886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33887 (exit $ac_status); }; }; then
33888 ac_cv_func_isinf_in_cmath=yes
33890 echo "$as_me: failed program was:" >&5
33891 sed 's/^/| /' conftest.$ac_ext >&5
33893 ac_cv_func_isinf_in_cmath=no
33896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33898 ac_cpp='$CPP $CPPFLAGS'
33899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33904 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33905 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33907 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33909 cat >>confdefs.h <<\_ACEOF
33910 #define HAVE_ISINF_IN_CMATH 1
33915 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33916 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33917 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33918 echo $ECHO_N "(cached) $ECHO_C" >&6
33921 ac_cpp='$CXXCPP $CPPFLAGS'
33922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33926 cat >conftest.$ac_ext <<_ACEOF
33929 cat confdefs.h >>conftest.$ac_ext
33930 cat >>conftest.$ac_ext <<_ACEOF
33931 /* end confdefs.h. */
33936 float f; std::isinf(f)}
33941 rm -f conftest.$ac_objext
33942 if { (ac_try="$ac_compile"
33943 case "(($ac_try" in
33944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33945 *) ac_try_echo=$ac_try;;
33947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33948 (eval "$ac_compile") 2>conftest.er1
33950 grep -v '^ *+' conftest.er1 >conftest.err
33952 cat conftest.err >&5
33953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954 (exit $ac_status); } &&
33955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33956 { (case "(($ac_try" in
33957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33958 *) ac_try_echo=$ac_try;;
33960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33961 (eval "$ac_try") 2>&5
33963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964 (exit $ac_status); }; } &&
33965 { ac_try='test -s conftest.$ac_objext'
33966 { (case "(($ac_try" in
33967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33968 *) ac_try_echo=$ac_try;;
33970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33971 (eval "$ac_try") 2>&5
33973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33974 (exit $ac_status); }; }; then
33975 ac_cv_func_std_isinf_in_cmath=yes
33977 echo "$as_me: failed program was:" >&5
33978 sed 's/^/| /' conftest.$ac_ext >&5
33980 ac_cv_func_std_isinf_in_cmath=no
33983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33985 ac_cpp='$CPP $CPPFLAGS'
33986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33991 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33992 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33994 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33996 cat >>confdefs.h <<\_ACEOF
33997 #define HAVE_STD_ISINF_IN_CMATH 1
34002 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34003 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34004 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34005 echo $ECHO_N "(cached) $ECHO_C" >&6
34008 ac_cpp='$CXXCPP $CPPFLAGS'
34009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34013 cat >conftest.$ac_ext <<_ACEOF
34016 cat confdefs.h >>conftest.$ac_ext
34017 cat >>conftest.$ac_ext <<_ACEOF
34018 /* end confdefs.h. */
34019 #include <ieeefp.h>
34023 float f; finite(f);
34028 rm -f conftest.$ac_objext
34029 if { (ac_try="$ac_compile"
34030 case "(($ac_try" in
34031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34032 *) ac_try_echo=$ac_try;;
34034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34035 (eval "$ac_compile") 2>conftest.er1
34037 grep -v '^ *+' conftest.er1 >conftest.err
34039 cat conftest.err >&5
34040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34041 (exit $ac_status); } &&
34042 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34043 { (case "(($ac_try" in
34044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34045 *) ac_try_echo=$ac_try;;
34047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34048 (eval "$ac_try") 2>&5
34050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34051 (exit $ac_status); }; } &&
34052 { ac_try='test -s conftest.$ac_objext'
34053 { (case "(($ac_try" in
34054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34055 *) ac_try_echo=$ac_try;;
34057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34058 (eval "$ac_try") 2>&5
34060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34061 (exit $ac_status); }; }; then
34062 ac_cv_func_finite_in_ieeefp_h=yes
34064 echo "$as_me: failed program was:" >&5
34065 sed 's/^/| /' conftest.$ac_ext >&5
34067 ac_cv_func_finite_in_ieeefp_h=no
34070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34072 ac_cpp='$CPP $CPPFLAGS'
34073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34078 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34079 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34081 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34083 cat >>confdefs.h <<\_ACEOF
34084 #define HAVE_FINITE_IN_IEEEFP_H 1
34091 if test "$llvm_cv_platform_type" = "Unix" ; then
34094 for ac_header in stdlib.h unistd.h
34096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34101 echo $ECHO_N "(cached) $ECHO_C" >&6
34103 ac_res=`eval echo '${'$as_ac_Header'}'`
34104 { echo "$as_me:$LINENO: result: $ac_res" >&5
34105 echo "${ECHO_T}$ac_res" >&6; }
34107 # Is the header compilable?
34108 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34110 cat >conftest.$ac_ext <<_ACEOF
34113 cat confdefs.h >>conftest.$ac_ext
34114 cat >>conftest.$ac_ext <<_ACEOF
34115 /* end confdefs.h. */
34116 $ac_includes_default
34117 #include <$ac_header>
34119 rm -f conftest.$ac_objext
34120 if { (ac_try="$ac_compile"
34121 case "(($ac_try" in
34122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34123 *) ac_try_echo=$ac_try;;
34125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34126 (eval "$ac_compile") 2>conftest.er1
34128 grep -v '^ *+' conftest.er1 >conftest.err
34130 cat conftest.err >&5
34131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34132 (exit $ac_status); } &&
34133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34134 { (case "(($ac_try" in
34135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34136 *) ac_try_echo=$ac_try;;
34138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34139 (eval "$ac_try") 2>&5
34141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34142 (exit $ac_status); }; } &&
34143 { ac_try='test -s conftest.$ac_objext'
34144 { (case "(($ac_try" in
34145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34146 *) ac_try_echo=$ac_try;;
34148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34149 (eval "$ac_try") 2>&5
34151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34152 (exit $ac_status); }; }; then
34153 ac_header_compiler=yes
34155 echo "$as_me: failed program was:" >&5
34156 sed 's/^/| /' conftest.$ac_ext >&5
34158 ac_header_compiler=no
34161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34162 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34163 echo "${ECHO_T}$ac_header_compiler" >&6; }
34165 # Is the header present?
34166 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34167 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34168 cat >conftest.$ac_ext <<_ACEOF
34171 cat confdefs.h >>conftest.$ac_ext
34172 cat >>conftest.$ac_ext <<_ACEOF
34173 /* end confdefs.h. */
34174 #include <$ac_header>
34176 if { (ac_try="$ac_cpp conftest.$ac_ext"
34177 case "(($ac_try" in
34178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34179 *) ac_try_echo=$ac_try;;
34181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34184 grep -v '^ *+' conftest.er1 >conftest.err
34186 cat conftest.err >&5
34187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34188 (exit $ac_status); } >/dev/null; then
34189 if test -s conftest.err; then
34190 ac_cpp_err=$ac_c_preproc_warn_flag
34191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34198 if test -z "$ac_cpp_err"; then
34199 ac_header_preproc=yes
34201 echo "$as_me: failed program was:" >&5
34202 sed 's/^/| /' conftest.$ac_ext >&5
34204 ac_header_preproc=no
34207 rm -f conftest.err conftest.$ac_ext
34208 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34209 echo "${ECHO_T}$ac_header_preproc" >&6; }
34211 # So? What about this header?
34212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34218 ac_header_preproc=yes
34221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34224 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34228 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34234 ## ----------------------------------- ##
34235 ## Report this to llvmbugs@cs.uiuc.edu ##
34236 ## ----------------------------------- ##
34238 ) | sed "s/^/$as_me: WARNING: /" >&2
34241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34244 echo $ECHO_N "(cached) $ECHO_C" >&6
34246 eval "$as_ac_Header=\$ac_header_preproc"
34248 ac_res=`eval echo '${'$as_ac_Header'}'`
34249 { echo "$as_me:$LINENO: result: $ac_res" >&5
34250 echo "${ECHO_T}$ac_res" >&6; }
34253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34254 cat >>confdefs.h <<_ACEOF
34255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34263 for ac_func in getpagesize
34265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34266 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34268 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34269 echo $ECHO_N "(cached) $ECHO_C" >&6
34271 cat >conftest.$ac_ext <<_ACEOF
34274 cat confdefs.h >>conftest.$ac_ext
34275 cat >>conftest.$ac_ext <<_ACEOF
34276 /* end confdefs.h. */
34277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34279 #define $ac_func innocuous_$ac_func
34281 /* System header to define __stub macros and hopefully few prototypes,
34282 which can conflict with char $ac_func (); below.
34283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34284 <limits.h> exists even on freestanding compilers. */
34287 # include <limits.h>
34289 # include <assert.h>
34294 /* Override any GCC internal prototype to avoid an error.
34295 Use char because int might match the return type of a GCC
34296 builtin and then its argument prototype would still apply. */
34301 /* The GNU C library defines this for functions which it implements
34302 to always fail with ENOSYS. Some functions are actually named
34303 something starting with __ and the normal name is an alias. */
34304 #if defined __stub_$ac_func || defined __stub___$ac_func
34311 return $ac_func ();
34316 rm -f conftest.$ac_objext conftest$ac_exeext
34317 if { (ac_try="$ac_link"
34318 case "(($ac_try" in
34319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34320 *) ac_try_echo=$ac_try;;
34322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34323 (eval "$ac_link") 2>conftest.er1
34325 grep -v '^ *+' conftest.er1 >conftest.err
34327 cat conftest.err >&5
34328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34329 (exit $ac_status); } &&
34330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34331 { (case "(($ac_try" in
34332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34333 *) ac_try_echo=$ac_try;;
34335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34336 (eval "$ac_try") 2>&5
34338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34339 (exit $ac_status); }; } &&
34340 { ac_try='test -s conftest$ac_exeext'
34341 { (case "(($ac_try" in
34342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34343 *) ac_try_echo=$ac_try;;
34345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34346 (eval "$ac_try") 2>&5
34348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34349 (exit $ac_status); }; }; then
34350 eval "$as_ac_var=yes"
34352 echo "$as_me: failed program was:" >&5
34353 sed 's/^/| /' conftest.$ac_ext >&5
34355 eval "$as_ac_var=no"
34358 rm -f core conftest.err conftest.$ac_objext \
34359 conftest$ac_exeext conftest.$ac_ext
34361 ac_res=`eval echo '${'$as_ac_var'}'`
34362 { echo "$as_me:$LINENO: result: $ac_res" >&5
34363 echo "${ECHO_T}$ac_res" >&6; }
34364 if test `eval echo '${'$as_ac_var'}'` = yes; then
34365 cat >>confdefs.h <<_ACEOF
34366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34372 { echo "$as_me:$LINENO: checking for working mmap" >&5
34373 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34374 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34375 echo $ECHO_N "(cached) $ECHO_C" >&6
34377 if test "$cross_compiling" = yes; then
34378 ac_cv_func_mmap_fixed_mapped=no
34380 cat >conftest.$ac_ext <<_ACEOF
34383 cat confdefs.h >>conftest.$ac_ext
34384 cat >>conftest.$ac_ext <<_ACEOF
34385 /* end confdefs.h. */
34386 $ac_includes_default
34387 /* malloc might have been renamed as rpl_malloc. */
34390 /* Thanks to Mike Haertel and Jim Avera for this test.
34391 Here is a matrix of mmap possibilities:
34392 mmap private not fixed
34393 mmap private fixed at somewhere currently unmapped
34394 mmap private fixed at somewhere already mapped
34395 mmap shared not fixed
34396 mmap shared fixed at somewhere currently unmapped
34397 mmap shared fixed at somewhere already mapped
34398 For private mappings, we should verify that changes cannot be read()
34399 back from the file, nor mmap's back from the file at a different
34400 address. (There have been systems where private was not correctly
34401 implemented like the infamous i386 svr4.0, and systems where the
34402 VM page cache was not coherent with the file system buffer cache
34403 like early versions of FreeBSD and possibly contemporary NetBSD.)
34404 For shared mappings, we should conversely verify that changes get
34405 propagated back to all the places they're supposed to be.
34407 Grep wants private fixed already mapped.
34408 The main things grep needs to know about mmap are:
34409 * does it exist and is it safe to write into the mmap'd area
34410 * how to use it (BSD variants) */
34413 #include <sys/mman.h>
34415 #if !STDC_HEADERS && !HAVE_STDLIB_H
34419 /* This mess was copied from the GNU getpagesize.h. */
34420 #if !HAVE_GETPAGESIZE
34421 /* Assume that all systems that can run configure have sys/param.h. */
34422 # if !HAVE_SYS_PARAM_H
34423 # define HAVE_SYS_PARAM_H 1
34426 # ifdef _SC_PAGESIZE
34427 # define getpagesize() sysconf(_SC_PAGESIZE)
34428 # else /* no _SC_PAGESIZE */
34429 # if HAVE_SYS_PARAM_H
34430 # include <sys/param.h>
34431 # ifdef EXEC_PAGESIZE
34432 # define getpagesize() EXEC_PAGESIZE
34433 # else /* no EXEC_PAGESIZE */
34435 # define getpagesize() NBPG * CLSIZE
34438 # endif /* no CLSIZE */
34439 # else /* no NBPG */
34441 # define getpagesize() NBPC
34442 # else /* no NBPC */
34444 # define getpagesize() PAGESIZE
34445 # endif /* PAGESIZE */
34446 # endif /* no NBPC */
34447 # endif /* no NBPG */
34448 # endif /* no EXEC_PAGESIZE */
34449 # else /* no HAVE_SYS_PARAM_H */
34450 # define getpagesize() 8192 /* punt totally */
34451 # endif /* no HAVE_SYS_PARAM_H */
34452 # endif /* no _SC_PAGESIZE */
34454 #endif /* no HAVE_GETPAGESIZE */
34459 char *data, *data2, *data3;
34463 pagesize = getpagesize ();
34465 /* First, make a file with some known garbage in it. */
34466 data = (char *) malloc (pagesize);
34469 for (i = 0; i < pagesize; ++i)
34470 *(data + i) = rand ();
34472 fd = creat ("conftest.mmap", 0600);
34475 if (write (fd, data, pagesize) != pagesize)
34479 /* Next, try to mmap the file at a fixed address which already has
34480 something else allocated at it. If we can, also make sure that
34481 we see the same garbage. */
34482 fd = open ("conftest.mmap", O_RDWR);
34485 data2 = (char *) malloc (2 * pagesize);
34488 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34489 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34490 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34492 for (i = 0; i < pagesize; ++i)
34493 if (*(data + i) != *(data2 + i))
34496 /* Finally, make sure that changes to the mapped area do not
34497 percolate back to the file as seen by read(). (This is a bug on
34498 some variants of i386 svr4.0.) */
34499 for (i = 0; i < pagesize; ++i)
34500 *(data2 + i) = *(data2 + i) + 1;
34501 data3 = (char *) malloc (pagesize);
34504 if (read (fd, data3, pagesize) != pagesize)
34506 for (i = 0; i < pagesize; ++i)
34507 if (*(data + i) != *(data3 + i))
34513 rm -f conftest$ac_exeext
34514 if { (ac_try="$ac_link"
34515 case "(($ac_try" in
34516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34517 *) ac_try_echo=$ac_try;;
34519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34520 (eval "$ac_link") 2>&5
34522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34524 { (case "(($ac_try" in
34525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34526 *) ac_try_echo=$ac_try;;
34528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34529 (eval "$ac_try") 2>&5
34531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34532 (exit $ac_status); }; }; then
34533 ac_cv_func_mmap_fixed_mapped=yes
34535 echo "$as_me: program exited with status $ac_status" >&5
34536 echo "$as_me: failed program was:" >&5
34537 sed 's/^/| /' conftest.$ac_ext >&5
34539 ( exit $ac_status )
34540 ac_cv_func_mmap_fixed_mapped=no
34542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34547 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34548 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34549 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34551 cat >>confdefs.h <<\_ACEOF
34552 #define HAVE_MMAP 1
34556 rm -f conftest.mmap
34558 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34559 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34560 if test "${ac_cv_func_mmap_file+set}" = set; then
34561 echo $ECHO_N "(cached) $ECHO_C" >&6
34564 ac_cpp='$CPP $CPPFLAGS'
34565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34569 if test "$cross_compiling" = yes; then
34570 ac_cv_func_mmap_file=no
34572 cat >conftest.$ac_ext <<_ACEOF
34576 cat confdefs.h >>conftest.$ac_ext
34577 cat >>conftest.$ac_ext <<_ACEOF
34578 /* end confdefs.h. */
34580 #include <sys/types.h>
34581 #include <sys/mman.h>
34589 fd = creat ("foo",0777);
34590 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34592 return (fd != (int) MAP_FAILED);
34597 rm -f conftest$ac_exeext
34598 if { (ac_try="$ac_link"
34599 case "(($ac_try" in
34600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34601 *) ac_try_echo=$ac_try;;
34603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34604 (eval "$ac_link") 2>&5
34606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34608 { (case "(($ac_try" in
34609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34610 *) ac_try_echo=$ac_try;;
34612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34613 (eval "$ac_try") 2>&5
34615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34616 (exit $ac_status); }; }; then
34617 ac_cv_func_mmap_file=yes
34619 echo "$as_me: program exited with status $ac_status" >&5
34620 echo "$as_me: failed program was:" >&5
34621 sed 's/^/| /' conftest.$ac_ext >&5
34623 ( exit $ac_status )
34624 ac_cv_func_mmap_file=no
34626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34631 ac_cpp='$CPP $CPPFLAGS'
34632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34638 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34639 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34640 if test "$ac_cv_func_mmap_file" = yes; then
34642 cat >>confdefs.h <<\_ACEOF
34643 #define HAVE_MMAP_FILE
34650 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34651 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34652 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34653 echo $ECHO_N "(cached) $ECHO_C" >&6
34655 if test "$llvm_cv_os_type" = "Interix" ; then
34656 ac_cv_need_dev_zero_for_mmap=yes
34658 ac_cv_need_dev_zero_for_mmap=no
34662 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34663 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34664 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34666 cat >>confdefs.h <<\_ACEOF
34667 #define NEED_DEV_ZERO_FOR_MMAP 1
34672 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34674 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34675 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34677 if test "$ac_cv_func_mmap_file" = "no"
34679 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34680 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34684 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34685 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34686 cat >conftest.$ac_ext <<_ACEOF
34689 cat confdefs.h >>conftest.$ac_ext
34690 cat >>conftest.$ac_ext <<_ACEOF
34691 /* end confdefs.h. */
34693 volatile unsigned long val = 1;
34694 __sync_synchronize();
34695 __sync_val_compare_and_swap(&val, 1, 0);
34696 __sync_add_and_fetch(&val, 1);
34697 __sync_sub_and_fetch(&val, 1);
34702 rm -f conftest.$ac_objext conftest$ac_exeext
34703 if { (ac_try="$ac_link"
34704 case "(($ac_try" in
34705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34706 *) ac_try_echo=$ac_try;;
34708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34709 (eval "$ac_link") 2>conftest.er1
34711 grep -v '^ *+' conftest.er1 >conftest.err
34713 cat conftest.err >&5
34714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34715 (exit $ac_status); } &&
34716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34717 { (case "(($ac_try" in
34718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34719 *) ac_try_echo=$ac_try;;
34721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34722 (eval "$ac_try") 2>&5
34724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34725 (exit $ac_status); }; } &&
34726 { ac_try='test -s conftest$ac_exeext'
34727 { (case "(($ac_try" in
34728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34729 *) ac_try_echo=$ac_try;;
34731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34732 (eval "$ac_try") 2>&5
34734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34735 (exit $ac_status); }; }; then
34736 { echo "$as_me:$LINENO: result: yes" >&5
34737 echo "${ECHO_T}yes" >&6; }
34739 cat >>confdefs.h <<\_ACEOF
34740 #define LLVM_MULTITHREADED 1
34744 echo "$as_me: failed program was:" >&5
34745 sed 's/^/| /' conftest.$ac_ext >&5
34747 { echo "$as_me:$LINENO: result: no" >&5
34748 echo "${ECHO_T}no" >&6; }
34750 cat >>confdefs.h <<\_ACEOF
34751 #define LLVM_MULTITHREADED 0
34754 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34755 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34758 rm -f core conftest.err conftest.$ac_objext \
34759 conftest$ac_exeext conftest.$ac_ext
34763 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
34764 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
34765 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
34766 if test "${llvm_cv_linux_mixed+set}" = set; then
34767 echo $ECHO_N "(cached) $ECHO_C" >&6
34770 ac_cpp='$CPP $CPPFLAGS'
34771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34775 cat >conftest.$ac_ext <<_ACEOF
34778 cat confdefs.h >>conftest.$ac_ext
34779 cat >>conftest.$ac_ext <<_ACEOF
34780 /* end confdefs.h. */
34782 error: Not x86-64 even if uname says so!
34793 rm -f conftest.$ac_objext
34794 if { (ac_try="$ac_compile"
34795 case "(($ac_try" in
34796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34797 *) ac_try_echo=$ac_try;;
34799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34800 (eval "$ac_compile") 2>conftest.er1
34802 grep -v '^ *+' conftest.er1 >conftest.err
34804 cat conftest.err >&5
34805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34806 (exit $ac_status); } &&
34807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34808 { (case "(($ac_try" in
34809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34810 *) ac_try_echo=$ac_try;;
34812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34813 (eval "$ac_try") 2>&5
34815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34816 (exit $ac_status); }; } &&
34817 { ac_try='test -s conftest.$ac_objext'
34818 { (case "(($ac_try" in
34819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34820 *) ac_try_echo=$ac_try;;
34822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34823 (eval "$ac_try") 2>&5
34825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34826 (exit $ac_status); }; }; then
34827 llvm_cv_linux_mixed=no
34829 echo "$as_me: failed program was:" >&5
34830 sed 's/^/| /' conftest.$ac_ext >&5
34832 llvm_cv_linux_mixed=yes
34835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34837 ac_cpp='$CPP $CPPFLAGS'
34838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34844 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
34845 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
34847 if test "$llvm_cv_linux_mixed" = "yes"; then
34848 llvm_cv_target_arch="x86"
34854 for ac_func in __dso_handle
34856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34857 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34859 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34860 echo $ECHO_N "(cached) $ECHO_C" >&6
34862 cat >conftest.$ac_ext <<_ACEOF
34865 cat confdefs.h >>conftest.$ac_ext
34866 cat >>conftest.$ac_ext <<_ACEOF
34867 /* end confdefs.h. */
34868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34870 #define $ac_func innocuous_$ac_func
34872 /* System header to define __stub macros and hopefully few prototypes,
34873 which can conflict with char $ac_func (); below.
34874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34875 <limits.h> exists even on freestanding compilers. */
34878 # include <limits.h>
34880 # include <assert.h>
34885 /* Override any GCC internal prototype to avoid an error.
34886 Use char because int might match the return type of a GCC
34887 builtin and then its argument prototype would still apply. */
34892 /* The GNU C library defines this for functions which it implements
34893 to always fail with ENOSYS. Some functions are actually named
34894 something starting with __ and the normal name is an alias. */
34895 #if defined __stub_$ac_func || defined __stub___$ac_func
34902 return $ac_func ();
34907 rm -f conftest.$ac_objext conftest$ac_exeext
34908 if { (ac_try="$ac_link"
34909 case "(($ac_try" in
34910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34911 *) ac_try_echo=$ac_try;;
34913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34914 (eval "$ac_link") 2>conftest.er1
34916 grep -v '^ *+' conftest.er1 >conftest.err
34918 cat conftest.err >&5
34919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34920 (exit $ac_status); } &&
34921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34922 { (case "(($ac_try" in
34923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34924 *) ac_try_echo=$ac_try;;
34926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34927 (eval "$ac_try") 2>&5
34929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34930 (exit $ac_status); }; } &&
34931 { ac_try='test -s conftest$ac_exeext'
34932 { (case "(($ac_try" in
34933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34934 *) ac_try_echo=$ac_try;;
34936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34937 (eval "$ac_try") 2>&5
34939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34940 (exit $ac_status); }; }; then
34941 eval "$as_ac_var=yes"
34943 echo "$as_me: failed program was:" >&5
34944 sed 's/^/| /' conftest.$ac_ext >&5
34946 eval "$as_ac_var=no"
34949 rm -f core conftest.err conftest.$ac_objext \
34950 conftest$ac_exeext conftest.$ac_ext
34952 ac_res=`eval echo '${'$as_ac_var'}'`
34953 { echo "$as_me:$LINENO: result: $ac_res" >&5
34954 echo "${ECHO_T}$ac_res" >&6; }
34955 if test `eval echo '${'$as_ac_var'}'` = yes; then
34956 cat >>confdefs.h <<_ACEOF
34957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34964 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34965 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34966 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34967 echo $ECHO_N "(cached) $ECHO_C" >&6
34969 llvm_cv_llvmgcc_sanity="no"
34970 if test -x "$LLVMGCC" ; then
34971 cp /dev/null conftest.c
34972 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34973 grep 'target datalayout =' > /dev/null 2>&1
34974 if test $? -eq 0 ; then
34975 llvm_cv_llvmgcc_sanity="yes"
34980 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34981 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34983 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34984 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34985 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34986 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34987 LLVMCC1=$llvmcc1path
34989 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34990 LLVMCC1PLUS=$llvmcc1pluspath
34992 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34993 LLVMGCCDIR=$llvmgccdir
34995 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34996 LLVMGCCLIBEXEC=$llvmgcclibexec
34998 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34999 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35000 LLVMGCC_VERSION=$llvmgccversion
35002 LLVMGCC_MAJVERS=$llvmgccmajvers
35004 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
35005 LLVMGCC_LANGS=$llvmgcclangs
35007 { echo "$as_me:$LINENO: result: ok" >&5
35008 echo "${ECHO_T}ok" >&6; }
35011 SHLIBEXT=$libltdl_cv_shlibext
35014 # Translate the various configuration directories and other basic
35015 # information into substitutions that will end up in Makefile.config.in
35016 # that these configured values can be used by the makefiles
35017 if test "${prefix}" = "NONE" ; then
35018 prefix="/usr/local"
35020 eval LLVM_PREFIX="${prefix}";
35021 eval LLVM_BINDIR="${prefix}/bin";
35022 eval LLVM_LIBDIR="${prefix}/lib";
35023 eval LLVM_DATADIR="${prefix}/share/llvm";
35024 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35025 eval LLVM_ETCDIR="${prefix}/etc/llvm";
35026 eval LLVM_INCLUDEDIR="${prefix}/include";
35027 eval LLVM_INFODIR="${prefix}/info";
35028 eval LLVM_MANDIR="${prefix}/man";
35029 LLVM_CONFIGTIME=`date`
35041 # Place the various directores into the config.h file as #defines so that we
35042 # can know about the installation paths within LLVM.
35044 cat >>confdefs.h <<_ACEOF
35045 #define LLVM_PREFIX "$LLVM_PREFIX"
35049 cat >>confdefs.h <<_ACEOF
35050 #define LLVM_BINDIR "$LLVM_BINDIR"
35054 cat >>confdefs.h <<_ACEOF
35055 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35059 cat >>confdefs.h <<_ACEOF
35060 #define LLVM_DATADIR "$LLVM_DATADIR"
35064 cat >>confdefs.h <<_ACEOF
35065 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35069 cat >>confdefs.h <<_ACEOF
35070 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35074 cat >>confdefs.h <<_ACEOF
35075 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35079 cat >>confdefs.h <<_ACEOF
35080 #define LLVM_INFODIR "$LLVM_INFODIR"
35084 cat >>confdefs.h <<_ACEOF
35085 #define LLVM_MANDIR "$LLVM_MANDIR"
35089 cat >>confdefs.h <<_ACEOF
35090 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35094 cat >>confdefs.h <<_ACEOF
35095 #define LLVM_HOSTTRIPLE "$host"
35099 # Determine which bindings to build.
35100 if test "$BINDINGS_TO_BUILD" = auto ; then
35101 BINDINGS_TO_BUILD=""
35102 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35103 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35106 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35109 # This isn't really configurey, but it avoids having to repeat the list in
35114 # Do any work necessary to ensure that bindings have what they need.
35115 binding_prereqs_failed=0
35116 for a_binding in $BINDINGS_TO_BUILD ; do
35117 case "$a_binding" in
35119 if test "x$OCAMLC" = x ; then
35120 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35121 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35122 binding_prereqs_failed=1
35124 if test "x$OCAMLDEP" = x ; then
35125 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35126 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35127 binding_prereqs_failed=1
35129 if test "x$OCAMLOPT" = x ; then
35130 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35131 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35133 if test "x$with_ocaml_libdir" != xauto ; then
35134 OCAML_LIBDIR=$with_ocaml_libdir
35137 ocaml_stdlib="`"$OCAMLC" -where`"
35138 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35140 # ocaml stdlib is beneath our prefix; use stdlib
35141 OCAML_LIBDIR=$ocaml_stdlib
35144 # ocaml stdlib is outside our prefix; use libdir/ocaml
35145 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35152 if test "$binding_prereqs_failed" = 1 ; then
35153 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35154 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35155 { (exit 1); exit 1; }; }
35158 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35159 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35160 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35161 echo $ECHO_N "(cached) $ECHO_C" >&6
35164 ac_cpp='$CXXCPP $CPPFLAGS'
35165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35169 oldcxxflags="$CXXFLAGS"
35170 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35171 cat >conftest.$ac_ext <<_ACEOF
35174 cat confdefs.h >>conftest.$ac_ext
35175 cat >>conftest.$ac_ext <<_ACEOF
35176 /* end confdefs.h. */
35186 rm -f conftest.$ac_objext
35187 if { (ac_try="$ac_compile"
35188 case "(($ac_try" in
35189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35190 *) ac_try_echo=$ac_try;;
35192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35193 (eval "$ac_compile") 2>conftest.er1
35195 grep -v '^ *+' conftest.er1 >conftest.err
35197 cat conftest.err >&5
35198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35199 (exit $ac_status); } &&
35200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35201 { (case "(($ac_try" in
35202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35203 *) ac_try_echo=$ac_try;;
35205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35206 (eval "$ac_try") 2>&5
35208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35209 (exit $ac_status); }; } &&
35210 { ac_try='test -s conftest.$ac_objext'
35211 { (case "(($ac_try" in
35212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35213 *) ac_try_echo=$ac_try;;
35215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35216 (eval "$ac_try") 2>&5
35218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35219 (exit $ac_status); }; }; then
35220 llvm_cv_cxx_visibility_inlines_hidden=yes
35222 echo "$as_me: failed program was:" >&5
35223 sed 's/^/| /' conftest.$ac_ext >&5
35225 llvm_cv_cxx_visibility_inlines_hidden=no
35228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35229 CXXFLAGS="$oldcxxflags"
35231 ac_cpp='$CPP $CPPFLAGS'
35232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35238 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35239 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35240 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35241 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35244 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35249 if test "$llvm_cv_link_use_r" = "yes" ; then
35256 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35257 RDYNAMIC="-Wl,-export-dynamic"
35264 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35266 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35268 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35270 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35272 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35275 ac_config_files="$ac_config_files Makefile.config"
35278 ac_config_files="$ac_config_files llvm.spec"
35281 ac_config_files="$ac_config_files docs/doxygen.cfg"
35284 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35287 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35290 ac_config_commands="$ac_config_commands setup"
35292 ac_config_commands="$ac_config_commands Makefile"
35295 ac_config_commands="$ac_config_commands Makefile.common"
35298 ac_config_commands="$ac_config_commands examples/Makefile"
35301 ac_config_commands="$ac_config_commands lib/Makefile"
35304 ac_config_commands="$ac_config_commands runtime/Makefile"
35307 ac_config_commands="$ac_config_commands test/Makefile"
35310 ac_config_commands="$ac_config_commands test/Makefile.tests"
35313 ac_config_commands="$ac_config_commands unittests/Makefile"
35316 ac_config_commands="$ac_config_commands tools/Makefile"
35319 ac_config_commands="$ac_config_commands utils/Makefile"
35322 ac_config_commands="$ac_config_commands projects/Makefile"
35325 ac_config_commands="$ac_config_commands bindings/Makefile"
35328 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35332 cat >confcache <<\_ACEOF
35333 # This file is a shell script that caches the results of configure
35334 # tests run on this system so they can be shared between configure
35335 # scripts and configure runs, see configure's option --config-cache.
35336 # It is not useful on other systems. If it contains results you don't
35337 # want to keep, you may remove or edit it.
35339 # config.status only pays attention to the cache file if you give it
35340 # the --recheck option to rerun configure.
35342 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35343 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35344 # following values.
35348 # The following way of writing the cache mishandles newlines in values,
35349 # but we know of no workaround that is simple, portable, and efficient.
35350 # So, we kill variables containing newlines.
35351 # Ultrix sh set writes to stderr and can't be redirected directly,
35352 # and sets the high bit in the cache file unless we assign to the vars.
35354 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35355 eval ac_val=\$$ac_var
35359 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35360 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35363 _ | IFS | as_nl) ;; #(
35364 *) $as_unset $ac_var ;;
35370 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35371 *${as_nl}ac_space=\ *)
35372 # `set' does not quote correctly, so add quotes (double-quote
35373 # substitution turns \\\\ into \\, and sed turns \\ into \).
35376 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35379 # `set' quotes correctly as required by POSIX, so do not add quotes.
35380 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35389 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35391 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35393 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35394 if test -w "$cache_file"; then
35395 test "x$cache_file" != "x/dev/null" &&
35396 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35397 echo "$as_me: updating cache $cache_file" >&6;}
35398 cat confcache >$cache_file
35400 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35401 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35406 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35407 # Let make expand exec_prefix.
35408 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35410 DEFS=-DHAVE_CONFIG_H
35414 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35415 # 1. Remove the extension, and $U if already installed.
35416 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35417 ac_i=`echo "$ac_i" | sed "$ac_script"`
35418 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35419 # will be set to the directory where LIBOBJS objects are built.
35420 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35421 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35423 LIBOBJS=$ac_libobjs
35425 LTLIBOBJS=$ac_ltlibobjs
35428 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35429 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35430 Usually this means the macro was only invoked conditionally." >&5
35431 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35432 Usually this means the macro was only invoked conditionally." >&2;}
35433 { (exit 1); exit 1; }; }
35435 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35436 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35437 Usually this means the macro was only invoked conditionally." >&5
35438 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35439 Usually this means the macro was only invoked conditionally." >&2;}
35440 { (exit 1); exit 1; }; }
35443 : ${CONFIG_STATUS=./config.status}
35444 ac_clean_files_save=$ac_clean_files
35445 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35446 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35447 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35448 cat >$CONFIG_STATUS <<_ACEOF
35450 # Generated by $as_me.
35451 # Run this file to recreate the current configuration.
35452 # Compiler output produced by configure, useful for debugging
35453 # configure, is in config.log if it exists.
35456 ac_cs_recheck=false
35458 SHELL=\${CONFIG_SHELL-$SHELL}
35461 cat >>$CONFIG_STATUS <<\_ACEOF
35462 ## --------------------- ##
35463 ## M4sh Initialization. ##
35464 ## --------------------- ##
35466 # Be Bourne compatible
35467 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35470 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35471 # is contrary to our usage. Disable this feature.
35472 alias -g '${1+"$@"}'='"$@"'
35473 setopt NO_GLOB_SUBST
35475 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35477 BIN_SH=xpg4; export BIN_SH # for Tru64
35478 DUALCASE=1; export DUALCASE # for MKS sh
35482 # Avoid depending upon Character Ranges.
35483 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35484 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35485 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35486 as_cr_digits='0123456789'
35487 as_cr_alnum=$as_cr_Letters$as_cr_digits
35489 # The user is always right.
35490 if test "${PATH_SEPARATOR+set}" != set; then
35491 echo "#! /bin/sh" >conf$$.sh
35492 echo "exit 0" >>conf$$.sh
35494 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35502 # Support unset when possible.
35503 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35511 # We need space, tab and new line, in precisely that order. Quoting is
35512 # there to prevent editors from complaining about space-tab.
35513 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35514 # splitting by setting IFS to empty value.)
35519 # Find who we are. Look in the path if we contain no directory separator.
35521 *[\\/]* ) as_myself=$0 ;;
35522 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35523 for as_dir in $PATH
35526 test -z "$as_dir" && as_dir=.
35527 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35533 # We did not find ourselves, most probably we were run as `sh COMMAND'
35534 # in which case we are not to be found in the path.
35535 if test "x$as_myself" = x; then
35538 if test ! -f "$as_myself"; then
35539 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35540 { (exit 1); exit 1; }
35543 # Work around bugs in pre-3.0 UWIN ksh.
35544 for as_var in ENV MAIL MAILPATH
35545 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35553 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35554 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35555 LC_TELEPHONE LC_TIME
35557 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35558 eval $as_var=C; export $as_var
35560 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35564 # Required to use basename.
35565 if expr a : '\(a\)' >/dev/null 2>&1 &&
35566 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35572 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35573 as_basename=basename
35579 # Name of the executable.
35580 as_me=`$as_basename -- "$0" ||
35581 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35582 X"$0" : 'X\(//\)$' \| \
35583 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35585 sed '/^.*\/\([^/][^/]*\)\/*$/{
35604 as_lineno_1=$LINENO
35605 as_lineno_2=$LINENO
35606 test "x$as_lineno_1" != "x$as_lineno_2" &&
35607 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35609 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35610 # uniformly replaced by the line number. The first 'sed' inserts a
35611 # line-number line after each line using $LINENO; the second 'sed'
35612 # does the real work. The second script uses 'N' to pair each
35613 # line-number line with the line containing $LINENO, and appends
35614 # trailing '-' during substitution so that $LINENO is not a special
35615 # case at line end.
35616 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35617 # scripts with optimization help from Paolo Bonzini. Blame Lee
35618 # E. McMahon (1931-1989) for sed's syntax. :-)
35630 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35633 ' >$as_me.lineno &&
35634 chmod +x "$as_me.lineno" ||
35635 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35636 { (exit 1); exit 1; }; }
35638 # Don't try to exec as it changes $[0], causing all sort of problems
35639 # (the dirname of $[0] is not the place where we might find the
35640 # original and so on. Autoconf is especially sensitive to this).
35641 . "./$as_me.lineno"
35642 # Exit status is that of the last command.
35647 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35653 ECHO_C= ECHO_N= ECHO_T=
35654 case `echo -n x` in
35656 case `echo 'x\c'` in
35657 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35664 if expr a : '\(a\)' >/dev/null 2>&1 &&
35665 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35671 rm -f conf$$ conf$$.exe conf$$.file
35672 if test -d conf$$.dir; then
35673 rm -f conf$$.dir/conf$$.file
35679 if ln -s conf$$.file conf$$ 2>/dev/null; then
35681 # ... but there are two gotchas:
35682 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35683 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35684 # In both cases, we have to default to `cp -p'.
35685 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35687 elif ln conf$$.file conf$$ 2>/dev/null; then
35692 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35693 rmdir conf$$.dir 2>/dev/null
35695 if mkdir -p . 2>/dev/null; then
35698 test -d ./-p && rmdir ./-p
35702 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
35703 # systems may use methods other than mode bits to determine executability.
35704 cat >conf$$.file <<_ASEOF
35708 chmod +x conf$$.file
35709 if test -x conf$$.file >/dev/null 2>&1; then
35710 as_executable_p="test -x"
35716 # Sed expression to map a string onto a valid CPP name.
35717 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35719 # Sed expression to map a string onto a valid variable name.
35720 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35725 # Save the log message, to keep $[0] and so on meaningful, and to
35726 # report actual input values of CONFIG_FILES etc. instead of their
35727 # values after options handling.
35729 This file was extended by llvm $as_me 2.7svn, which was
35730 generated by GNU Autoconf 2.60. Invocation command line was
35732 CONFIG_FILES = $CONFIG_FILES
35733 CONFIG_HEADERS = $CONFIG_HEADERS
35734 CONFIG_LINKS = $CONFIG_LINKS
35735 CONFIG_COMMANDS = $CONFIG_COMMANDS
35738 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35743 cat >>$CONFIG_STATUS <<_ACEOF
35744 # Files that config.status was made for.
35745 config_files="$ac_config_files"
35746 config_headers="$ac_config_headers"
35747 config_commands="$ac_config_commands"
35751 cat >>$CONFIG_STATUS <<\_ACEOF
35753 \`$as_me' instantiates files from templates according to the
35754 current configuration.
35756 Usage: $0 [OPTIONS] [FILE]...
35758 -h, --help print this help, then exit
35759 -V, --version print version number, then exit
35760 -q, --quiet do not print progress messages
35761 -d, --debug don't remove temporary files
35762 --recheck update $as_me by reconfiguring in the same conditions
35763 --file=FILE[:TEMPLATE]
35764 instantiate the configuration file FILE
35765 --header=FILE[:TEMPLATE]
35766 instantiate the configuration header FILE
35768 Configuration files:
35771 Configuration headers:
35774 Configuration commands:
35777 Report bugs to <bug-autoconf@gnu.org>."
35780 cat >>$CONFIG_STATUS <<_ACEOF
35782 llvm config.status 2.7svn
35783 configured by $0, generated by GNU Autoconf 2.60,
35784 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35786 Copyright (C) 2006 Free Software Foundation, Inc.
35787 This config.status script is free software; the Free Software Foundation
35788 gives unlimited permission to copy, distribute and modify it."
35795 cat >>$CONFIG_STATUS <<\_ACEOF
35796 # If no file are specified by the user, then we need to provide default
35797 # value. By we need to know if files were specified by the user.
35803 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35804 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35815 # Handling of the options.
35816 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35818 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35819 echo "$ac_cs_version"; exit ;;
35820 --debug | --debu | --deb | --de | --d | -d )
35822 --file | --fil | --fi | --f )
35824 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35825 ac_need_defaults=false;;
35826 --header | --heade | --head | --hea )
35828 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35829 ac_need_defaults=false;;
35831 # Conflict between --help and --header
35832 { echo "$as_me: error: ambiguous option: $1
35833 Try \`$0 --help' for more information." >&2
35834 { (exit 1); exit 1; }; };;
35835 --help | --hel | -h )
35836 echo "$ac_cs_usage"; exit ;;
35837 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35838 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35841 # This is an error.
35842 -*) { echo "$as_me: error: unrecognized option: $1
35843 Try \`$0 --help' for more information." >&2
35844 { (exit 1); exit 1; }; } ;;
35846 *) ac_config_targets="$ac_config_targets $1"
35847 ac_need_defaults=false ;;
35853 ac_configure_extra_args=
35855 if $ac_cs_silent; then
35857 ac_configure_extra_args="$ac_configure_extra_args --silent"
35861 cat >>$CONFIG_STATUS <<_ACEOF
35862 if \$ac_cs_recheck; then
35863 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35864 CONFIG_SHELL=$SHELL
35865 export CONFIG_SHELL
35866 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35870 cat >>$CONFIG_STATUS <<\_ACEOF
35874 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35875 ## Running $as_me. ##
35881 cat >>$CONFIG_STATUS <<_ACEOF
35885 llvm_src="${srcdir}"
35889 cat >>$CONFIG_STATUS <<\_ACEOF
35891 # Handling of arguments.
35892 for ac_config_target in $ac_config_targets
35894 case $ac_config_target in
35895 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35896 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35897 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35898 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
35899 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35900 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35901 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35902 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35903 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35904 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35905 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35906 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35907 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35908 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35909 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35910 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35911 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35912 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35913 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35914 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35915 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35916 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35917 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35918 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35920 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35921 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35922 { (exit 1); exit 1; }; };;
35927 # If the user did not use the arguments to specify the items to instantiate,
35928 # then the envvar interface is used. Set only those that are not.
35929 # We use the long form for the default assignment because of an extremely
35930 # bizarre bug on SunOS 4.1.3.
35931 if $ac_need_defaults; then
35932 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35933 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35934 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35937 # Have a temporary directory for convenience. Make it in the build tree
35938 # simply because there is no reason against having it here, and in addition,
35939 # creating and moving files from /tmp can sometimes cause problems.
35940 # Hook for its removal unless debugging.
35941 # Note that there is a small window in which the directory will not be cleaned:
35942 # after its creation but before its name has been assigned to `$tmp'.
35946 trap 'exit_status=$?
35947 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35949 trap '{ (exit 1); exit 1; }' 1 2 13 15
35951 # Create a (secure) tmp directory for tmp files.
35954 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35955 test -n "$tmp" && test -d "$tmp"
35958 tmp=./conf$$-$RANDOM
35959 (umask 077 && mkdir "$tmp")
35962 echo "$me: cannot create a temporary directory in ." >&2
35963 { (exit 1); exit 1; }
35967 # Set up the sed scripts for CONFIG_FILES section.
35970 # No need to generate the scripts if there are no CONFIG_FILES.
35971 # This happens for instance when ./config.status config.h
35972 if test -n "$CONFIG_FILES"; then
35979 for ac_last_try in false false false false false :; do
35980 cat >conf$$subs.sed <<_ACEOF
35981 SHELL!$SHELL$ac_delim
35982 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35983 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35984 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35985 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35986 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35987 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35988 exec_prefix!$exec_prefix$ac_delim
35989 prefix!$prefix$ac_delim
35990 program_transform_name!$program_transform_name$ac_delim
35991 bindir!$bindir$ac_delim
35992 sbindir!$sbindir$ac_delim
35993 libexecdir!$libexecdir$ac_delim
35994 datarootdir!$datarootdir$ac_delim
35995 datadir!$datadir$ac_delim
35996 sysconfdir!$sysconfdir$ac_delim
35997 sharedstatedir!$sharedstatedir$ac_delim
35998 localstatedir!$localstatedir$ac_delim
35999 includedir!$includedir$ac_delim
36000 oldincludedir!$oldincludedir$ac_delim
36001 docdir!$docdir$ac_delim
36002 infodir!$infodir$ac_delim
36003 htmldir!$htmldir$ac_delim
36004 dvidir!$dvidir$ac_delim
36005 pdfdir!$pdfdir$ac_delim
36006 psdir!$psdir$ac_delim
36007 libdir!$libdir$ac_delim
36008 localedir!$localedir$ac_delim
36009 mandir!$mandir$ac_delim
36010 DEFS!$DEFS$ac_delim
36011 ECHO_C!$ECHO_C$ac_delim
36012 ECHO_N!$ECHO_N$ac_delim
36013 ECHO_T!$ECHO_T$ac_delim
36014 LIBS!$LIBS$ac_delim
36015 build_alias!$build_alias$ac_delim
36016 host_alias!$host_alias$ac_delim
36017 target_alias!$target_alias$ac_delim
36018 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36019 subdirs!$subdirs$ac_delim
36020 build!$build$ac_delim
36021 build_cpu!$build_cpu$ac_delim
36022 build_vendor!$build_vendor$ac_delim
36023 build_os!$build_os$ac_delim
36024 host!$host$ac_delim
36025 host_cpu!$host_cpu$ac_delim
36026 host_vendor!$host_vendor$ac_delim
36027 host_os!$host_os$ac_delim
36028 target!$target$ac_delim
36029 target_cpu!$target_cpu$ac_delim
36030 target_vendor!$target_vendor$ac_delim
36031 target_os!$target_os$ac_delim
36033 HOST_OS!$HOST_OS$ac_delim
36034 TARGET_OS!$TARGET_OS$ac_delim
36035 LINKALL!$LINKALL$ac_delim
36036 NOLINKALL!$NOLINKALL$ac_delim
36037 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36038 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36039 ARCH!$ARCH$ac_delim
36040 ENDIAN!$ENDIAN$ac_delim
36042 CFLAGS!$CFLAGS$ac_delim
36043 LDFLAGS!$LDFLAGS$ac_delim
36044 CPPFLAGS!$CPPFLAGS$ac_delim
36045 ac_ct_CC!$ac_ct_CC$ac_delim
36046 EXEEXT!$EXEEXT$ac_delim
36047 OBJEXT!$OBJEXT$ac_delim
36049 GREP!$GREP$ac_delim
36050 EGREP!$EGREP$ac_delim
36051 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36052 BUILD_CC!$BUILD_CC$ac_delim
36053 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36054 BUILD_CXX!$BUILD_CXX$ac_delim
36055 CVSBUILD!$CVSBUILD$ac_delim
36056 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36057 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36058 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36059 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36060 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36061 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36062 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
36064 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36065 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36066 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36067 ENABLE_PIC!$ENABLE_PIC$ac_delim
36068 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36069 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36070 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36071 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36072 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36073 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36074 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36075 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36076 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36080 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36082 elif $ac_last_try; then
36083 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36084 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36085 { (exit 1); exit 1; }; }
36087 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36091 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36092 if test -n "$ac_eof"; then
36093 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36094 ac_eof=`expr $ac_eof + 1`
36097 cat >>$CONFIG_STATUS <<_ACEOF
36098 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36099 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36102 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36103 s/^/s,@/; s/!/@,|#_!!_#|/
36106 s/'"$ac_delim"'$/,g/; t
36108 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36109 ' >>$CONFIG_STATUS <conf$$subs.sed
36110 rm -f conf$$subs.sed
36111 cat >>$CONFIG_STATUS <<_ACEOF
36117 for ac_last_try in false false false false false :; do
36118 cat >conf$$subs.sed <<_ACEOF
36119 CXXFLAGS!$CXXFLAGS$ac_delim
36120 ac_ct_CXX!$ac_ct_CXX$ac_delim
36122 ifGNUmake!$ifGNUmake$ac_delim
36123 LN_S!$LN_S$ac_delim
36126 DATE!$DATE$ac_delim
36127 FIND!$FIND$ac_delim
36128 MKDIR!$MKDIR$ac_delim
36130 RANLIB!$RANLIB$ac_delim
36134 BINPWD!$BINPWD$ac_delim
36135 GRAPHVIZ!$GRAPHVIZ$ac_delim
36138 NEATO!$NEATO$ac_delim
36139 TWOPI!$TWOPI$ac_delim
36140 CIRCO!$CIRCO$ac_delim
36142 DOTTY!$DOTTY$ac_delim
36143 PERL!$PERL$ac_delim
36144 HAVE_PERL!$HAVE_PERL$ac_delim
36145 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36146 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36147 INSTALL_DATA!$INSTALL_DATA$ac_delim
36148 BZIP2!$BZIP2$ac_delim
36149 DOXYGEN!$DOXYGEN$ac_delim
36150 GROFF!$GROFF$ac_delim
36151 GZIP!$GZIP$ac_delim
36152 POD2HTML!$POD2HTML$ac_delim
36153 POD2MAN!$POD2MAN$ac_delim
36154 RUNTEST!$RUNTEST$ac_delim
36155 TCLSH!$TCLSH$ac_delim
36157 OCAMLC!$OCAMLC$ac_delim
36158 OCAMLOPT!$OCAMLOPT$ac_delim
36159 OCAMLDEP!$OCAMLDEP$ac_delim
36160 OCAMLDOC!$OCAMLDOC$ac_delim
36162 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36163 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36164 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36165 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36166 LIBADD_DL!$LIBADD_DL$ac_delim
36167 ECHO!$ECHO$ac_delim
36169 STRIP!$STRIP$ac_delim
36170 CXXCPP!$CXXCPP$ac_delim
36172 FFLAGS!$FFLAGS$ac_delim
36173 ac_ct_F77!$ac_ct_F77$ac_delim
36174 LIBTOOL!$LIBTOOL$ac_delim
36175 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36176 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36177 LLVMGCC!$LLVMGCC$ac_delim
36178 LLVMGXX!$LLVMGXX$ac_delim
36179 USE_UDIS86!$USE_UDIS86$ac_delim
36180 USE_OPROFILE!$USE_OPROFILE$ac_delim
36181 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36182 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36183 ALLOCA!$ALLOCA$ac_delim
36184 MMAP_FILE!$MMAP_FILE$ac_delim
36185 LLVMCC1!$LLVMCC1$ac_delim
36186 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36187 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36188 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36189 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36190 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36191 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36192 SHLIBEXT!$SHLIBEXT$ac_delim
36193 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36194 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36195 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36196 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36197 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36198 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36199 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36200 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36201 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36202 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36203 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36204 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36205 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36206 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36207 RPATH!$RPATH$ac_delim
36208 RDYNAMIC!$RDYNAMIC$ac_delim
36209 LIBOBJS!$LIBOBJS$ac_delim
36210 LTLIBOBJS!$LTLIBOBJS$ac_delim
36213 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
36215 elif $ac_last_try; then
36216 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36217 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36218 { (exit 1); exit 1; }; }
36220 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36224 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36225 if test -n "$ac_eof"; then
36226 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36227 ac_eof=`expr $ac_eof + 1`
36230 cat >>$CONFIG_STATUS <<_ACEOF
36231 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36232 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36235 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36236 s/^/s,@/; s/!/@,|#_!!_#|/
36239 s/'"$ac_delim"'$/,g/; t
36241 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36242 ' >>$CONFIG_STATUS <conf$$subs.sed
36243 rm -f conf$$subs.sed
36244 cat >>$CONFIG_STATUS <<_ACEOF
36251 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36252 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36253 # trailing colons and then remove the whole line if VPATH becomes empty
36254 # (actually we leave an empty line to preserve line numbers).
36255 if test "x$srcdir" = x.; then
36256 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36257 s/:*\$(srcdir):*/:/
36258 s/:*\${srcdir}:*/:/
36260 s/^\([^=]*=[ ]*\):*/\1/
36266 cat >>$CONFIG_STATUS <<\_ACEOF
36267 fi # test -n "$CONFIG_FILES"
36270 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36273 :[FHLC]) ac_mode=$ac_tag; continue;;
36275 case $ac_mode$ac_tag in
36277 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36278 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36279 { (exit 1); exit 1; }; };;
36280 :[FH]-) ac_tag=-:-;;
36281 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36298 -) ac_f="$tmp/stdin";;
36299 *) # Look for the file first in the build tree, then in the source tree
36300 # (if the path is not absolute). The absolute path cannot be DOS-style,
36301 # because $ac_f cannot contain `:'.
36305 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36307 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36308 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36309 { (exit 1); exit 1; }; };;
36311 ac_file_inputs="$ac_file_inputs $ac_f"
36314 # Let's still pretend it is `configure' which instantiates (i.e., don't
36315 # use $as_me), people would be surprised to read:
36316 # /* config.h. Generated by config.status. */
36317 configure_input="Generated from "`IFS=:
36318 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36319 if test x"$ac_file" != x-; then
36320 configure_input="$ac_file. $configure_input"
36321 { echo "$as_me:$LINENO: creating $ac_file" >&5
36322 echo "$as_me: creating $ac_file" >&6;}
36326 *:-:* | *:-) cat >"$tmp/stdin";;
36331 ac_dir=`$as_dirname -- "$ac_file" ||
36332 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36333 X"$ac_file" : 'X\(//\)[^/]' \| \
36334 X"$ac_file" : 'X\(//\)$' \| \
36335 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36341 /^X\(\/\/\)[^/].*/{
36356 -*) as_dir=./$as_dir;;
36358 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36362 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36363 *) as_qdir=$as_dir;;
36365 as_dirs="'$as_qdir' $as_dirs"
36366 as_dir=`$as_dirname -- "$as_dir" ||
36367 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36368 X"$as_dir" : 'X\(//\)[^/]' \| \
36369 X"$as_dir" : 'X\(//\)$' \| \
36370 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36376 /^X\(\/\/\)[^/].*/{
36389 test -d "$as_dir" && break
36391 test -z "$as_dirs" || eval "mkdir $as_dirs"
36392 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36393 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36394 { (exit 1); exit 1; }; }; }
36398 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36400 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36401 # A ".." for each directory in $ac_dir_suffix.
36402 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36403 case $ac_top_builddir_sub in
36404 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36405 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36408 ac_abs_top_builddir=$ac_pwd
36409 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36410 # for backward compatibility:
36411 ac_top_builddir=$ac_top_build_prefix
36414 .) # We are building in place.
36416 ac_top_srcdir=$ac_top_builddir_sub
36417 ac_abs_top_srcdir=$ac_pwd ;;
36418 [\\/]* | ?:[\\/]* ) # Absolute name.
36419 ac_srcdir=$srcdir$ac_dir_suffix;
36420 ac_top_srcdir=$srcdir
36421 ac_abs_top_srcdir=$srcdir ;;
36422 *) # Relative name.
36423 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36424 ac_top_srcdir=$ac_top_build_prefix$srcdir
36425 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36427 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36437 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36438 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36442 cat >>$CONFIG_STATUS <<\_ACEOF
36443 # If the template does not know about datarootdir, expand it.
36444 # FIXME: This hack should be removed a few years after 2.60.
36445 ac_datarootdir_hack=; ac_datarootdir_seen=
36447 case `sed -n '/datarootdir/ {
36456 ' $ac_file_inputs` in
36457 *datarootdir*) ac_datarootdir_seen=yes;;
36458 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36459 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36460 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36462 cat >>$CONFIG_STATUS <<_ACEOF
36463 ac_datarootdir_hack='
36464 s&@datadir@&$datadir&g
36465 s&@docdir@&$docdir&g
36466 s&@infodir@&$infodir&g
36467 s&@localedir@&$localedir&g
36468 s&@mandir@&$mandir&g
36469 s&\\\${datarootdir}&$datarootdir&g' ;;
36473 # Neutralize VPATH when `$srcdir' = `.'.
36474 # Shell code in configure.ac might set extrasub.
36475 # FIXME: do we really want to maintain this feature?
36476 cat >>$CONFIG_STATUS <<_ACEOF
36480 cat >>$CONFIG_STATUS <<\_ACEOF
36482 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36483 s&@configure_input@&$configure_input&;t t
36484 s&@top_builddir@&$ac_top_builddir_sub&;t t
36485 s&@srcdir@&$ac_srcdir&;t t
36486 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36487 s&@top_srcdir@&$ac_top_srcdir&;t t
36488 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36489 s&@builddir@&$ac_builddir&;t t
36490 s&@abs_builddir@&$ac_abs_builddir&;t t
36491 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36492 s&@INSTALL@&$ac_INSTALL&;t t
36493 $ac_datarootdir_hack
36494 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36496 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36497 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36498 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36499 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36500 which seems to be undefined. Please make sure it is defined." >&5
36501 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36502 which seems to be undefined. Please make sure it is defined." >&2;}
36506 -) cat "$tmp/out"; rm -f "$tmp/out";;
36507 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36516 # Transform confdefs.h into a sed script `conftest.defines', that
36517 # substitutes the proper values into config.h.in to produce config.h.
36518 rm -f conftest.defines conftest.tail
36519 # First, append a space to every undef/define line, to ease matching.
36520 echo 's/$/ /' >conftest.defines
36521 # Then, protect against being on the right side of a sed subst, or in
36522 # an unquoted here document, in config.status. If some macros were
36523 # called several times there might be several #defines for the same
36524 # symbol, which is useless. But do not sort them, since the last
36525 # AC_DEFINE must be honored.
36526 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36527 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36528 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36529 # PARAMS is the parameter list in the macro definition--in most cases, it's
36530 # just an empty string.
36531 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36532 ac_dB='\\)[ (].*,\\1define\\2'
36540 s/^[ ]*#[ ]*define[ ][ ]*//
36545 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36546 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36547 ' >>conftest.defines
36549 # Remove the space that was appended to ease matching.
36550 # Then replace #undef with comments. This is necessary, for
36551 # example, in the case of _POSIX_SOURCE, which is predefined and required
36552 # on some systems where configure will not decide to define it.
36553 # (The regexp can be short, since the line contains either #define or #undef.)
36555 s,^[ #]*u.*,/* & */,' >>conftest.defines
36557 # Break up conftest.defines:
36558 ac_max_sed_lines=50
36560 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36561 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36562 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36564 ac_in='$ac_file_inputs'
36565 ac_out='"$tmp/out1"'
36566 ac_nxt='"$tmp/out2"'
36570 # Write a here document:
36571 cat >>$CONFIG_STATUS <<_ACEOF
36572 # First, check the format of the line:
36573 cat >"\$tmp/defines.sed" <<\\CEOF
36574 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36575 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36579 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36581 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36582 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36583 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36584 grep . conftest.tail >/dev/null || break
36585 rm -f conftest.defines
36586 mv conftest.tail conftest.defines
36588 rm -f conftest.defines conftest.tail
36590 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36591 cat >>$CONFIG_STATUS <<\_ACEOF
36592 if test x"$ac_file" != x-; then
36593 echo "/* $configure_input */" >"$tmp/config.h"
36594 cat "$ac_result" >>"$tmp/config.h"
36595 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36596 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36597 echo "$as_me: $ac_file is unchanged" >&6;}
36600 mv "$tmp/config.h" $ac_file
36603 echo "/* $configure_input */"
36609 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36610 echo "$as_me: executing $ac_file commands" >&6;}
36615 case $ac_file$ac_mode in
36616 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36617 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
36618 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36619 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
36620 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36621 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
36622 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36623 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
36624 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36625 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36626 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36627 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
36628 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36629 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36630 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36631 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36632 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36633 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
36634 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36635 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
36636 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36637 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
36638 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36639 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36640 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36641 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36647 { (exit 0); exit 0; }
36649 chmod +x $CONFIG_STATUS
36650 ac_clean_files=$ac_clean_files_save
36653 # configure is writing to config.log, and then calls config.status.
36654 # config.status does its own redirection, appending to config.log.
36655 # Unfortunately, on DOS this fails, as config.log is still kept open
36656 # by configure, so config.status won't be able to write to it; its
36657 # output is simply discarded. So we exec the FD to /dev/null,
36658 # effectively closing config.log, so it can be properly (re)opened and
36659 # appended to by config.status. When coming back to configure, we
36660 # need to make the FD available again.
36661 if test "$no_create" != yes; then
36663 ac_config_status_args=
36664 test "$silent" = yes &&
36665 ac_config_status_args="$ac_config_status_args --quiet"
36667 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36669 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36670 # would make configure fail if this is the last instruction.
36671 $ac_cs_success || { (exit 1); exit 1; }
36675 # CONFIG_SUBDIRS section.
36677 if test "$no_recursion" != yes; then
36679 # Remove --cache-file and --srcdir arguments so they do not pile up.
36680 ac_sub_configure_args=
36682 eval "set x $ac_configure_args"
36686 if test -n "$ac_prev"; then
36691 -cache-file | --cache-file | --cache-fil | --cache-fi \
36692 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36693 ac_prev=cache_file ;;
36694 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36695 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36698 --config-cache | -C)
36700 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36702 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36704 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36706 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36710 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36712 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36716 # Always prepend --prefix to ensure using the same prefix
36717 # in subdir configurations.
36718 ac_arg="--prefix=$prefix"
36720 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36722 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36725 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36727 # Do not complain, so a configure script can configure whichever
36728 # parts of a large source tree are present.
36729 test -d "$srcdir/$ac_dir" || continue
36731 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36732 echo "$as_me:$LINENO: $ac_msg" >&5
36736 -*) as_dir=./$as_dir;;
36738 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36742 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36743 *) as_qdir=$as_dir;;
36745 as_dirs="'$as_qdir' $as_dirs"
36746 as_dir=`$as_dirname -- "$as_dir" ||
36747 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36748 X"$as_dir" : 'X\(//\)[^/]' \| \
36749 X"$as_dir" : 'X\(//\)$' \| \
36750 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36756 /^X\(\/\/\)[^/].*/{
36769 test -d "$as_dir" && break
36771 test -z "$as_dirs" || eval "mkdir $as_dirs"
36772 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36773 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36774 { (exit 1); exit 1; }; }; }
36778 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36780 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36781 # A ".." for each directory in $ac_dir_suffix.
36782 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36783 case $ac_top_builddir_sub in
36784 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36785 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36788 ac_abs_top_builddir=$ac_pwd
36789 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36790 # for backward compatibility:
36791 ac_top_builddir=$ac_top_build_prefix
36794 .) # We are building in place.
36796 ac_top_srcdir=$ac_top_builddir_sub
36797 ac_abs_top_srcdir=$ac_pwd ;;
36798 [\\/]* | ?:[\\/]* ) # Absolute name.
36799 ac_srcdir=$srcdir$ac_dir_suffix;
36800 ac_top_srcdir=$srcdir
36801 ac_abs_top_srcdir=$srcdir ;;
36802 *) # Relative name.
36803 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36804 ac_top_srcdir=$ac_top_build_prefix$srcdir
36805 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36807 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36812 # Check for guested configure; otherwise get Cygnus style configure.
36813 if test -f "$ac_srcdir/configure.gnu"; then
36814 ac_sub_configure=$ac_srcdir/configure.gnu
36815 elif test -f "$ac_srcdir/configure"; then
36816 ac_sub_configure=$ac_srcdir/configure
36817 elif test -f "$ac_srcdir/configure.in"; then
36818 # This should be Cygnus configure.
36819 ac_sub_configure=$ac_aux_dir/configure
36821 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36822 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36826 # The recursion is here.
36827 if test -n "$ac_sub_configure"; then
36828 # Make the cache file name correct relative to the subdirectory.
36829 case $cache_file in
36830 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36831 *) # Relative name.
36832 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36835 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36836 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36837 # The eval makes quoting arguments work.
36838 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36839 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36840 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36841 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36842 { (exit 1); exit 1; }; }